调整技能信息的展示

This commit is contained in:
yoimiya-kokomi 2022-04-08 05:47:05 +08:00
parent f61418fca6
commit 581b1938a0
3 changed files with 11 additions and 248 deletions

View File

@ -48,10 +48,10 @@ export async function wiki(e, { render }) {
const getLineData = function (data) {
let ret = [];
lodash.forEach(data.lvStat, (ls) => {
lodash.forEach(data.lvStat.detail["90"], (num, idx) => {
ret.push({
num: ls.values["90"],
label: ls.name
num,
label: data.lvStat.stat[idx]
})
})

View File

@ -1,237 +0,0 @@
{
"10000002": {
"id": "10000002",
"key": "Ayaka",
"name": "神里绫华"
},
"10000003": {
"id": "10000003",
"key": "Jean",
"name": "琴"
},
"10000006": {
"id": "10000006",
"key": "Lisa",
"name": "丽莎"
},
"10000014": {
"id": "10000014",
"key": "Barbara",
"name": "芭芭拉"
},
"10000015": {
"id": "10000015",
"key": "Kaeya",
"name": "凯亚"
},
"10000016": {
"id": "10000016",
"key": "Diluc",
"name": "迪卢克"
},
"10000020": {
"id": "10000020",
"key": "Razor",
"name": "雷泽"
},
"10000021": {
"id": "10000021",
"key": "Amber",
"name": "安柏"
},
"10000022": {
"id": "10000022",
"key": "Venti",
"name": "温迪"
},
"10000023": {
"id": "10000023",
"key": "Xiangling",
"name": "香菱"
},
"10000024": {
"id": "10000024",
"key": "Beidou",
"name": "北斗"
},
"10000025": {
"id": "10000025",
"key": "Xingqiu",
"name": "行秋"
},
"10000026": {
"id": "10000026",
"key": "Xiao",
"name": "魈"
},
"10000027": {
"id": "10000027",
"key": "Ningguang",
"name": "凝光"
},
"10000029": {
"id": "10000029",
"key": "Klee",
"name": "可莉"
},
"10000030": {
"id": "10000030",
"key": "Zhongli",
"name": "钟离"
},
"10000031": {
"id": "10000031",
"key": "Fischl",
"name": "菲谢尔"
},
"10000032": {
"id": "10000032",
"key": "Bennett",
"name": "班尼特"
},
"10000033": {
"id": "10000033",
"key": "Tartaglia",
"name": "达达利亚"
},
"10000034": {
"id": "10000034",
"key": "Noelle",
"name": "诺艾尔"
},
"10000035": {
"id": "10000035",
"key": "Qiqi",
"name": "七七"
},
"10000036": {
"id": "10000036",
"key": "Chongyun",
"name": "重云"
},
"10000037": {
"id": "10000037",
"key": "Ganyu",
"name": "甘雨"
},
"10000038": {
"id": "10000038",
"key": "Albedo",
"name": "阿贝多"
},
"10000039": {
"id": "10000039",
"key": "Diona",
"name": "迪奥娜"
},
"10000041": {
"id": "10000041",
"key": "Mona",
"name": "莫娜"
},
"10000042": {
"id": "10000042",
"key": "Keqing",
"name": "刻晴"
},
"10000043": {
"id": "10000043",
"key": "Sucrose",
"name": "砂糖"
},
"10000044": {
"id": "10000044",
"key": "Xinyan",
"name": "辛焱"
},
"10000045": {
"id": "10000045",
"key": "Rosaria",
"name": "罗莎莉亚"
},
"10000046": {
"id": "10000046",
"key": "Hutao",
"name": "胡桃"
},
"10000047": {
"id": "10000047",
"key": "Kazuha",
"name": "枫原万叶"
},
"10000048": {
"id": "10000048",
"key": "Yanfei",
"name": "烟绯"
},
"10000049": {
"id": "10000049",
"key": "Yoimiya",
"name": "宵宫"
},
"10000050": {
"id": "10000050",
"key": "Thoma",
"name": "托马"
},
"10000051": {
"id": "10000051",
"key": "Eula",
"name": "优菈"
},
"10000052": {
"id": "10000052",
"key": "RaidenShogun",
"name": "雷电将军"
},
"10000053": {
"id": "10000053",
"key": "Sayu",
"name": "早柚"
},
"10000054": {
"id": "10000054",
"key": "Kokomi",
"name": "珊瑚宫心海"
},
"10000055": {
"id": "10000055",
"key": "Gorou",
"name": "五郎"
},
"10000056": {
"id": "10000056",
"key": "Sara",
"name": "九条裟罗"
},
"10000057": {
"id": "10000057",
"key": "Itto",
"name": "荒泷一斗"
},
"10000058": {
"id": "10000058",
"key": "YaeMiko",
"name": "八重神子"
},
"10000062": {
"id": "10000062",
"key": "Aloy",
"name": "埃洛伊"
},
"10000063": {
"id": "10000063",
"key": "ShenHe",
"name": "申鹤"
},
"10000064": {
"id": "10000064",
"key": "YunJin",
"name": "云堇"
},
"10000066": {
"id": "10000066",
"key": "Ayato",
"name": "神里绫人"
}
}

View File

@ -51,33 +51,33 @@
<div class="talent-info">
<strong class="talent-name">{{skill.name}}</strong>
<div class="talent-desc">
{{each skill.desc.split("\n") d}}
{{each skill.desc d}}
{{ if d.length < 6 }}
{{if d === "•"}} • {{else}} <span>{{d}}</span>
{{/if}}
{{else}}
{{d}}</br>
{{#d}}</br>
{{/if}}
{{/each}}
</div>
</div>
{{if skill.table && skill.table.length > 0}}
{{if skill.tables && skill.tables.length > 0}}
<div class="talent-table">
<div class="tr">
<div class="th"></div>
{{each skill.tableKeys lv idx}}
{{each skill.lvs lv idx}}
{{if (type=="a" && idx>4 && idx<11) || (type!="a" && idx>4 && idx < 13)}}
<div class="th lv">{{lv}}</div>
{{/if}}
{{/each}}
</div>
{{each skill.table tr}}
{{each skill.tables tr}}
<div class="tr">
<div class="th talent_name">
{{tr.name}}
</div>
{{each tr.value v idx}}
{{each tr.values v idx}}
{{if (type=="a" && idx>4 && idx<11) || (type!="a" && idx>4 && idx < 13)}}
<div class="td">{{v}}</div>
{{/if}}
@ -93,10 +93,10 @@
<div class="talent-box">
<div class="talent-detail">
{{each passive pass}}
{{each passive pass idx}}
<div class="talent-line">
<div class="talent-icon">
<img src="{{_res_path}}{{_char}}/passive_{{pass.name}}.png"/>
<img src="{{_res_path}}{{_char}}/passive_{{idx+1}}.png"/>
</div>
<div class="talent-info">
<strong class="talent-name">{{pass.name}}</strong>