修正#角色面板的角色等级展示异常

This commit is contained in:
yoimiya-kokomi 2022-08-19 07:16:28 +08:00
parent 5f47e19789
commit ce358f5b4b
6 changed files with 10 additions and 10 deletions

View File

@ -45,7 +45,7 @@ let EnkaData = {
lodash.forEach({ lodash.forEach({
name: 'nickname', name: 'nickname',
avatar: 'profilePicture.avatarId', avatar: 'profilePicture.avatarId',
lv: 'level' level: 'level'
}, (src, key) => { }, (src, key) => {
ret[key] = lodash.get(data.playerInfo, src, '') ret[key] = lodash.get(data.playerInfo, src, '')
}) })

View File

@ -17,7 +17,7 @@ let Miao = {
lodash.forEach({ lodash.forEach({
name: 'nickname', name: 'nickname',
avatar: 'profilePicture.avatarID', avatar: 'profilePicture.avatarID',
lv: 'level', level: 'level',
signature: 'signature' signature: 'signature'
}, (src, key) => { }, (src, key) => {
ret[key] = lodash.get(data, src, '') ret[key] = lodash.get(data, src, '')
@ -41,7 +41,7 @@ let Miao = {
name: char ? char.name : '', name: char ? char.name : '',
dataSource: 'miao', dataSource: 'miao',
updateTime: now.format('YYYY-MM-DD HH:mm:ss'), updateTime: now.format('YYYY-MM-DD HH:mm:ss'),
lv: ds.level level: ds.level
} }
}, },
getAvatarDetail (ds) { getAvatarDetail (ds) {
@ -52,7 +52,7 @@ let Miao = {
name: char ? char.name : '', name: char ? char.name : '',
dataSource: 'miao', dataSource: 'miao',
updateTime: now.format('YYYY-MM-DD HH:mm:ss'), updateTime: now.format('YYYY-MM-DD HH:mm:ss'),
lv: ds.level, level: ds.level,
fetter: ds.fetterLevel, fetter: ds.fetterLevel,
attr: Miao.getAttr(ds.combatValue), attr: Miao.getAttr(ds.combatValue),
weapon: Miao.getWeapon(ds.weapon), weapon: Miao.getWeapon(ds.weapon),

View File

@ -72,7 +72,7 @@ let Data = {
lodash.forEach({ lodash.forEach({
name: '角色名称', name: '角色名称',
avatar: '头像ID', avatar: '头像ID',
lv: '冒险等阶' level: '冒险等阶'
}, (title, key) => { }, (title, key) => {
ret[key] = data[title] || '' ret[key] = data[title] || ''
}) })
@ -89,7 +89,7 @@ let Data = {
return { return {
id: data['英雄Id'], id: data['英雄Id'],
name: char ? char.name : '', name: char ? char.name : '',
lv: data['等级'], level: data['等级'],
attr: Data.getAttr(data), attr: Data.getAttr(data),
// weapon: Data.getWeapon(data), // weapon: Data.getWeapon(data),
artis: Data.getArtifact(data) artis: Data.getArtifact(data)
@ -146,7 +146,7 @@ let Data = {
getWeapon (data) { getWeapon (data) {
return { return {
name: data['武器名称'], name: data['武器名称'],
lv: data['武器等级'], level: data['武器等级'],
refine: data['武器精炼'] refine: data['武器精炼']
} }
}, },

View File

@ -16,7 +16,7 @@
style="background-image:url({{_res_path}}/meta/character/{{data.name}}/gacha_splash.png)"></div> style="background-image:url({{_res_path}}/meta/character/{{data.name}}/gacha_splash.png)"></div>
<div class="detail"> <div class="detail">
<div class="char-name">{{data.name}}</div> <div class="char-name">{{data.name}}</div>
<div class="char-lv">UID {{uid}} - Lv.{{data.lv}} <div class="char-lv">UID {{uid}} - Lv.{{data.level}}
<span class="cons cons-{{data.cons}}">{{data.cons}}命</span></div> <span class="cons cons-{{data.cons}}">{{data.cons}}命</span></div>
<div class="cont"> <div class="cont">
<div class="item arti-stat"> <div class="item arti-stat">

View File

@ -14,7 +14,7 @@
style="background-image:url({{_res_path}}/meta/character/{{name}}/gacha_splash.png)"></div> style="background-image:url({{_res_path}}/meta/character/{{name}}/gacha_splash.png)"></div>
<div class="detail"> <div class="detail">
<div class="char-name">{{name}}</div> <div class="char-name">{{name}}</div>
<div class="char-lv">UID {{uid}} - Lv.{{data.lv}} <div class="char-lv">UID {{uid}} - Lv.{{data.level}}
<span class="cons cons-{{data.cons}}">{{data.cons}}命</span></div> <span class="cons cons-{{data.cons}}">{{data.cons}}命</span></div>
<div class="char-talents"> <div class="char-talents">
{{each talentMap tName key}} {{each talentMap tName key}}

View File

@ -9,7 +9,7 @@
<div class="char-name">{{ds.name}}</div> <div class="char-name">{{ds.name}}</div>
<div class="char-lv"> <div class="char-lv">
{{if uid}}UID {{uid}} - {{/if}} {{if uid}}UID {{uid}} - {{/if}}
<span class="cons cons-{{ds.cons}}">{{ds.cons}}命</span> {{if ds.lv}} Lv.{{ds.lv}}{{/if}} <span class="cons cons-{{ds.cons}}">{{ds.cons}}命</span> {{if ds.level}} Lv.{{ds.level}}{{/if}}
</div> </div>
<div class="char-talents"> <div class="char-talents">
{{each ds.talentMap tName key}} {{each ds.talentMap tName key}}