This commit is contained in:
parent
0201275a06
commit
8cb9bd1bf7
|
@ -13,7 +13,7 @@ export default class RoleIndex extends base {
|
|||
this.model = 'roleIndex'
|
||||
this.other = gsCfg.getdefSet('role', 'other')
|
||||
this.wother = gsCfg.getdefSet('weapon', 'other')
|
||||
this.lable = gsCfg.getdefSet('rolr', 'index')
|
||||
this.lable = gsCfg.getdefSet('role', 'index')
|
||||
|
||||
this.area = {
|
||||
蒙德: 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([
|
||||
{ lable: '家园等级', num: res.homes[0].level },
|
||||
{ lable: '最高仙力', num: res.homes[0].comfort_num },
|
||||
{ lable: '洞天名称', num: res.homes[0].comfort_level_name },
|
||||
{ lable: '获得摆设', num: res.homes[0].item_num },
|
||||
{ lable: '历史访客', num: res.homes[0].visit_num }
|
||||
{ lable: '家园等级', num: resIndex.homes[0].level },
|
||||
{ lable: '最高仙力', num: resIndex.homes[0].comfort_num },
|
||||
{ lable: '洞天名称', num: resIndex.homes[0].comfort_level_name },
|
||||
{ lable: '获得摆设', num: resIndex.homes[0].item_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 = []
|
||||
for (let val of res.world_explorations) {
|
||||
for (let val of resIndex.world_explorations) {
|
||||
if (val.id == 7) continue
|
||||
|
||||
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}级` })
|
||||
|
||||
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
|
||||
})
|
||||
if (underground) {
|
||||
|
@ -602,11 +602,11 @@ export default class RoleIndex extends base {
|
|||
basicInfo,
|
||||
headIndexStyle: this.headIndexStyle,
|
||||
...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}`,
|
||||
gameavatar: res?.role?.avatar ?? 0,
|
||||
gamelevel: res?.role?.level ?? 0,
|
||||
gamefwq: res?.role?.region
|
||||
gameavatar: resIndex?.role?.avatar ?? 0,
|
||||
gamelevel: resIndex?.role?.level ?? 0,
|
||||
gamefwq: resIndex?.role?.region
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue