This commit is contained in:
bbaban 2023-08-27 14:25:47 +08:00
parent 0201275a06
commit 8cb9bd1bf7
1 changed files with 14 additions and 14 deletions

View File

@ -13,7 +13,7 @@ export default class RoleIndex extends base {
this.model = 'roleIndex' this.model = 'roleIndex'
this.other = gsCfg.getdefSet('role', 'other') this.other = gsCfg.getdefSet('role', 'other')
this.wother = gsCfg.getdefSet('weapon', 'other') this.wother = gsCfg.getdefSet('weapon', 'other')
this.lable = gsCfg.getdefSet('rolr', 'index') this.lable = gsCfg.getdefSet('role', 'index')
this.area = { this.area = {
蒙德: 1, 蒙德: 1,
@ -526,20 +526,20 @@ export default class RoleIndex extends base {
], ],
] ]
// 尘歌壶 // 尘歌壶
if (res.homes && res.homes.length > 0) { if (resIndex.homes && resIndex.homes.length > 0) {
line.push([ line.push([
{ lable: '家园等级', num: res.homes[0].level }, { lable: '家园等级', num: resIndex.homes[0].level },
{ lable: '最高仙力', num: res.homes[0].comfort_num }, { lable: '最高仙力', num: resIndex.homes[0].comfort_num },
{ lable: '洞天名称', num: res.homes[0].comfort_level_name }, { lable: '洞天名称', num: resIndex.homes[0].comfort_level_name },
{ lable: '获得摆设', num: res.homes[0].item_num }, { lable: '获得摆设', num: resIndex.homes[0].item_num },
{ lable: '历史访客', num: res.homes[0].visit_num } { lable: '历史访客', num: resIndex.homes[0].visit_num }
]) ])
} }
res.world_explorations = lodash.orderBy(res.world_explorations, ['id'], ['desc']) resIndex.world_explorations = lodash.orderBy(resIndex.world_explorations, ['id'], ['desc'])
let explor = [] let explor = []
for (let val of res.world_explorations) { for (let val of resIndex.world_explorations) {
if (val.id == 7) continue if (val.id == 7) continue
val.name = this.areaName[val.id] ? this.areaName[val.id] : lodash.truncate(val.name, { length: 6 }) val.name = this.areaName[val.id] ? this.areaName[val.id] : lodash.truncate(val.name, { length: 6 })
@ -558,7 +558,7 @@ export default class RoleIndex extends base {
tmp.line.push({ name: '声望', text: `${val.level}` }) tmp.line.push({ name: '声望', text: `${val.level}` })
if (val.id == 6) { if (val.id == 6) {
let underground = lodash.find(res.world_explorations, function (o) { let underground = lodash.find(resIndex.world_explorations, function (o) {
return o.id == 7 return o.id == 7
}) })
if (underground) { if (underground) {
@ -602,11 +602,11 @@ export default class RoleIndex extends base {
basicInfo, basicInfo,
headIndexStyle: this.headIndexStyle, headIndexStyle: this.headIndexStyle,
...this.screenData, ...this.screenData,
gamename: res?.role?.nickname ?? 0, gamename: resIndex?.role?.nickname ?? 0,
avatar: `https://q1.qlogo.cn/g?b=qq&s=0&nk=${this.qq}`, avatar: `https://q1.qlogo.cn/g?b=qq&s=0&nk=${this.qq}`,
gameavatar: res?.role?.avatar ?? 0, gameavatar: resIndex?.role?.avatar ?? 0,
gamelevel: res?.role?.level ?? 0, gamelevel: resIndex?.role?.level ?? 0,
gamefwq: res?.role?.region gamefwq: resIndex?.role?.region
} }
} }