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

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({
name: 'nickname',
avatar: 'profilePicture.avatarId',
lv: 'level'
level: 'level'
}, (src, key) => {
ret[key] = lodash.get(data.playerInfo, src, '')
})

View File

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

View File

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

View File

@ -16,7 +16,7 @@
style="background-image:url({{_res_path}}/meta/character/{{data.name}}/gacha_splash.png)"></div>
<div class="detail">
<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>
<div class="cont">
<div class="item arti-stat">

View File

@ -14,7 +14,7 @@
style="background-image:url({{_res_path}}/meta/character/{{name}}/gacha_splash.png)"></div>
<div class="detail">
<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>
<div class="char-talents">
{{each talentMap tName key}}

View File

@ -9,7 +9,7 @@
<div class="char-name">{{ds.name}}</div>
<div class="char-lv">
{{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 class="char-talents">
{{each ds.talentMap tName key}}