2022-08-04 06:04:30 +00:00
|
|
|
{{set avatar = $data[0] || false }}
|
2022-09-24 21:05:22 +00:00
|
|
|
{{set {_res_path, cardType} = $data[1]}}
|
2022-07-31 21:42:16 +00:00
|
|
|
{{set weapon = avatar.weapon || {} }}
|
2022-08-01 21:15:37 +00:00
|
|
|
{{set talentMap = ['a','e','q'] }}
|
2022-07-31 21:42:16 +00:00
|
|
|
|
2022-09-24 21:05:22 +00:00
|
|
|
<div class="avatar-card elem-{{avatar.elem}} avatar-{{avatar.name}} card-{{cardType||'mini'}}">
|
2022-07-31 21:42:16 +00:00
|
|
|
<div class="card">
|
2022-08-04 06:04:30 +00:00
|
|
|
{{if avatar}}
|
2022-07-31 21:42:16 +00:00
|
|
|
<div class="avatar-face item-icon star{{avatar.star==4?4:5}}">
|
2022-09-24 21:05:22 +00:00
|
|
|
<div class="img mini" style="background-image:url({{_res_path}}{{avatar.face}})"></div>
|
|
|
|
<div class="img wide avatar-{{avatar.name}}" style="background-image:url({{_res_path}}{{avatar.gacha}})"></div>
|
|
|
|
<span class="cons cons-{{avatar.cons}} mini">{{avatar.cons}}</span>
|
2023-02-13 19:47:22 +00:00
|
|
|
<div class="avatar-level"><span>Lv</span>{{avatar.level}} {{avatar.abbr}}</div>
|
2022-07-31 21:42:16 +00:00
|
|
|
</div>
|
2022-09-24 21:05:22 +00:00
|
|
|
<div class="avatar-info">
|
|
|
|
{{set talent = avatar.talent || {} }}
|
2023-02-13 19:47:22 +00:00
|
|
|
|
2022-09-24 21:05:22 +00:00
|
|
|
<div class="avatar-name wide">
|
|
|
|
<strong>{{avatar.abbr}}</strong>
|
2023-02-13 19:47:22 +00:00
|
|
|
<div class="lv-info">
|
|
|
|
<span class="cons cons-{{avatar.cons}}">{{avatar.cons}}</span>
|
|
|
|
<span class="avatar-level">Lv{{avatar.level}}</span>
|
|
|
|
</div>
|
2022-09-24 21:05:22 +00:00
|
|
|
<div class="line"></div>
|
|
|
|
</div>
|
2023-02-13 19:47:22 +00:00
|
|
|
{{if talent.a && talent.a.level }}
|
2022-09-24 21:05:22 +00:00
|
|
|
<div class="avatar-talent">
|
|
|
|
{{each talentMap k}}
|
2023-02-13 19:47:22 +00:00
|
|
|
{{set t = talent[k] || {} }}
|
|
|
|
<span class="talent-item talent-{{k}} talent-{{t.original===10?'crown':'none'}} talent-{{t.level>t.original?'plus':'none'}}">{{t.level}}</span>
|
2022-09-24 21:05:22 +00:00
|
|
|
{{/each}}
|
2022-07-31 21:42:16 +00:00
|
|
|
</div>
|
2022-09-24 21:05:22 +00:00
|
|
|
{{else}}
|
|
|
|
<div class="avatar-talent no-talent"><span>暂无天赋数据</span></div>
|
|
|
|
{{/if}}
|
|
|
|
<div class="line"></div>
|
|
|
|
<div class="avatar-detail">
|
|
|
|
<div class="item avatar-weapon">
|
|
|
|
<div class="item-icon star{{weapon.star}}">
|
|
|
|
<span class="img" style="background-image:url({{_res_path}}{{weapon.img}})"></span>
|
2023-02-13 19:47:22 +00:00
|
|
|
<span class="cons cons-{{weapon.affix > 4 ? weapon.affix + 1 : weapon.affix}}">{{weapon.affix}}</span>
|
2022-09-24 21:05:22 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="item avatar-artis artis{{avatar.artisSet?.names?.length}}">
|
|
|
|
<div class="artis item-icon">
|
|
|
|
{{each avatar.artisSet?.imgs img}}
|
|
|
|
<div class="img" style="background-image:url({{_res_path}}{{img}})"></div>
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
|
|
|
<div class="item-info wide"></div>
|
2022-07-31 21:42:16 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-05-10 21:54:01 +00:00
|
|
|
</div>
|
2024-07-03 07:34:37 +00:00
|
|
|
{{/if}}
|
2022-05-10 21:54:01 +00:00
|
|
|
</div>
|
2022-07-31 21:42:16 +00:00
|
|
|
</div>
|