page.hbs
2.56 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
51
52
53
54
55
56
57
58
59
60
61
<div class="coupon-new-page">
<div class="filter-box">
<span class="filter-btn-box">
<span class="filter-btn no-used active">未使用({{couponNum.notuse}}+)</span>
<span class="iconfont icon-down show-filter-btn"></span>
</span>
<span class="filter-btn-box">
<span class="filter-btn used">已使用({{couponNum.use}})</span>
</span>
<span class="filter-btn-box">
<span class="filter-btn invalid">已失效({{couponNum.overtime}})</span>
</span>
</div>
<div class="filter-item hide">
{{#pageData.filters}}
<button data-id="{{filter_id}}">{{filter_name}}</button>
{{/ pageData.filters}}
</div>
<div class="exchange-box">
<input type="text" placeholder="请输入优惠券码">
<button>兑换</button>
</div>
<div class="coupon-list" id="couponList">
{{#pageData.couponList}}
<section class="coupon-section" data-code="{{coupon_code}}" data-id="{{coupon_id}}">
<div class="coupon">
<div class="coupon-left">
<p class="value">¥<span>{{coupon_value}}</span></p>
<p class="threshold">满499可用</p>
</div>
<div class="coupon-right">
<p class="title"><span class="{{#isEqualOr coupon_type '1'}} type-activity{{/isEqualOr}}
{{#isEqualOr coupon_type '5'}} type-freight{{/isEqualOr}}
{{#isEqualOr coupon_type '6'}} type-shop{{/isEqualOr}}">[{{catalog_name}}]</span> {{coupon_name}}</p>
<p class="time">2018.1.12-2018.5.20</p>
{{#if notes}}
<p>
<span class="show-intro-btn">使用说明</span>
<span class="iconfont icon-down show-intro-btn show-intro-arrow"></span>
</p>
{{/if}}
<span class="tip"></span>
</div>
<button class="use-now">立即使用</button>
{{#isEqualOr is_overdue_soon 'Y'}}
<span class="top-tip"></span>
{{/isEqualOr}}
</div>
<ul class="coupon-intro hide">
{{#notes}}
<li>{{.}}</li>
{{/ notes}}
</ul>
</section>
{{/ pageData.couponList}}
</div>
<div class="no-conpon-now{{#if pageData.couponList}} hide{{/if}}">
<div class="icon-not"></div>
<p>暂无优惠券</p>
</div>
</div>