mirror of
https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git
synced 2024-12-23 20:00:51 +08:00
16 lines
510 B
HTML
16 lines
510 B
HTML
|
{{set avatar = $data[0]}}
|
||
|
{{set {_res_path,_char} = $data[1]}}
|
||
|
{{set _char = _char || "meta/character/"}}
|
||
|
|
||
|
<div class="item">
|
||
|
<div class="item-bg elem-{{avatar.element}}">
|
||
|
<div class="role-box char-{{avatar.name}}">
|
||
|
<img class="role" src="{{_res_path}}{{_char}}/{{avatar.name}}/gacha_card.png"/>
|
||
|
</div>
|
||
|
{{ if avatar.cons>0}}
|
||
|
<div class="role-life life{{avatar.cons}}">{{avatar.cons}}命</div>
|
||
|
{{/if}}
|
||
|
<div class="role-name">{{avatar.label || avatar.name}}</div>
|
||
|
</div>
|
||
|
</div>
|