mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-22 06:58:24 +00:00
74 lines
3.0 KiB
HTML
74 lines
3.0 KiB
HTML
{{extend elemLayout}}
|
|
{{block 'css'}}
|
|
<link rel="stylesheet" type="text/css" href="{{_res_path}}/common/tpl.css?v=1.0" />
|
|
<link rel="stylesheet" type="text/css" href="{{_res_path}}/character/avatar-list.css" />
|
|
<link rel="stylesheet" type="text/css" href="{{_res_path}}/gacha/gacha-detail.css?v=1.0" />
|
|
{{/block}}
|
|
{{if game === 'gs'}}
|
|
{{ set statMap = { allNum:'抽卡总数', fiveNum:'金卡数',wai:'歪 T.T',fourNum:'紫卡数', fiveAvg:'平均出金', upYs:'UP原石' } }}
|
|
{{else}}
|
|
{{ set statMap = { allNum:'抽卡总数', fiveNum:'金卡数',wai:'歪 T.T',fourNum:'紫卡数', fiveAvg:'平均出金', upYs:'UP星琼' } }}
|
|
{{/if}}
|
|
{{block 'main'}}
|
|
{{ set gameHash = game === 'gs' ? '#' : '*'}}
|
|
<div class="basic">
|
|
<div class="user-banner" style="background-image:url({{_res_path}}{{face?.banner}})">
|
|
<div class="face">
|
|
<span style="background-image:url({{_res_path}}{{face?.qFace||face?.face}})"></span>
|
|
</div>
|
|
<div class="user-info">
|
|
<div class="name">
|
|
<strong>{{face.name}}</strong>
|
|
</div>
|
|
<div class="uid">
|
|
{{if uid}}<span> #{{uid}}</span>{{/if}}
|
|
</div>
|
|
</div>
|
|
{{if gacha && gacha.stat }}
|
|
{{set stat = gacha.stat }}
|
|
<div class="stat">
|
|
{{each statMap title key}}
|
|
{{if stat[key] }}
|
|
<div class="stat-li">
|
|
<strong>{{stat[key]}}</strong>
|
|
<span>{{title}}</span>
|
|
</div>
|
|
{{/if}}
|
|
{{/each}}
|
|
</div>
|
|
{{/if}}
|
|
</div>
|
|
<div class="ck-notice">
|
|
<strong>{{gameHash}}抽卡帮助</strong>获取抽卡链接,<strong>{{gameHash}}更新抽卡记录</strong>更新抽卡信息,<strong>{{gameHash}}抽卡统计</strong><strong>{{gameHash}}角色统计</strong>可查看按卡池分析结果
|
|
</div>
|
|
<div class="cont avatar-cont">
|
|
<div class="gacha-list">
|
|
{{each gacha.fiveLog ds idx}}
|
|
{{set item = gacha.items[ds.id]}}
|
|
{{set max = type === 'weapon'?80:90}}
|
|
{{set hasDate = (idx===0 || idx ===gacha.items.length-1 || (idx>0 && gacha.fiveLog[idx-1].date !== ds.date)) }}
|
|
{{set nameWidth = (game==='sr' && type==='weapon'? 120 : 90)}}
|
|
<div class="gacha-item {{!hasDate?'no-date':'has-date'
|
|
}} {{ds.isUp ?'up':'wai'}} {{item.abbr==='已抽'?'no-avatar':''}}">
|
|
<div class="date ">
|
|
<div class="dot {{idx===0?'first':''}} {{idx===gacha.items.length-1?'last':''}}"></div>
|
|
<div class="txt">{{ds.date}}</div>
|
|
</div>
|
|
<div class="name" style="width:{{nameWidth}}px">{{item.abbr}}</div>
|
|
<div class="icon">
|
|
<div class="icon-bg star{{item.star}}">
|
|
<span class="img mini" style="background-image:url({{_res_path}}{{item.img}})"></span>
|
|
</div>
|
|
</div>
|
|
<div class="process">
|
|
{{set count = ds.count}}
|
|
<div class="bar {{count<=10?'gold': (count<max*0.5 ? 'good' : (count<max*0.83) ? 'normal': 'bad')}}"
|
|
style="width:{{count/max*100}}%">{{count}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{/each}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{/block}} |