ensure-coupon-usable.hbs
2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<div class="head-msg fw300">{{{headMsg}}}</div>
<div class="list-content">
{{#each usableCoupon}}
<div class="list-{{@key}} type-content clearfix">
{{#each this}}
{{#if show}}
{{#if is_selected_support}}
<div class="coupon-item coupon-item-{{catalog}}{{#if selected}} active{{/if}}" data-code="{{coupon_code}}">
{{^}}
<div class="coupon-item coupon-item-{{catalog}} mutex">
{{/if}}
{{#if is_overdue_soon}}
<div class="due-tig"></div>
{{/if}}
<div class="worth">
<p>
{{#if isFreight}}
<span class="freight">{{coupon_value_str}}</span>
{{^}}
<span class="price">{{coupon_value_str}}</span>
{{#if use_rule}}<br><span class="conditions">{{use_rule}}</span>{{/if}}
{{/if}}
</p>
</div>
<div class="coupon-info">
<p class="name"><span class="type">[{{catalog_name}}]</span> {{coupon_name}}</p>
<p class="time">{{coupon_validity}}</p>
{{#if desc}}
<p class="mutex-tip">{{desc}}</p>
{{/if}}
</div>
{{#if selected}}
<span class="iconfont check-icon coupon-check-btn"></span>
{{^}}
{{#if is_selected_support}}
<span class="iconfont coupon-check-btn"></span>
{{^}}
<span class="iconfont disable-icon coupon-check-btn"></span>
{{/if}}
{{/if}}
</div>
{{/if}}
{{/each}}
</div>
{{/each}}
{{#unless usableNum}}
<p class="empty"><span>暂无优惠券</span></p>
{{/unless}}
</div>