student.hbs
5.53 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
{{#unless isApp}}
<header class="yoho-header">
<a href="javascript:history.go(-1);" class="iconfont nav-back"></a>
<p class="nav-title">有货学生专享优惠</p>
</header>
{{/unless}}
<div class="mobile-container">
<div class="mobile-wrap yoho-page student">
{{! 头部banner}}
{{#banner}}
{{> resources/banner-top}}
{{/banner}}
{{#icons}}
<section class='s-section clearfix' data-template-id="{{template_id}}">
<h1>学生权益<a class='more s-quan' href='//m.yohobuy.com/activity/student/detail/quanyi?openby:yohobuy={"action":"go.h5","params":{"islogin":"N","url":"{{../http}}//m.yohobuy.com/activity/student/detail/quanyi"}}'>更多权益</a></h1>
<div class='s-content'>
{{#each data.list}}
<div class='s-section'>
<a href="javascript:void(0)">
<img src='{{image src 357 174}}' title="{{title}}">
</a>
</div>
{{/each}}
</div>
</section>
{{/icons}}
{{#coupons}}
<section class='s-section clearfix' data-template-id="{{template_id}}">
<h1>领券中心
<a class='more' href="{{link}}">...</a>
</h1>
<div class='s-coupon-contain'>
{{#each data}}
<div class="coupon-floor" coupon-id="{{couponID}}">
<div class="floor-main" style="background-image: url({{image image.src 0 0}});">
<a href="{{image.url}}" class="main-left"></a>
<a href="{{image.url}}" class="main-right-use" >
{{#isEqual status 1}}
<span class="on-receive on-lingqu" style="color: #fff;background-image: none;">
<p>可以</p>
<p>领取</p>
</span>
{{/isEqual}}
{{#isEqual status 2}}
<span class="zero"></span>
{{/isEqual}}
{{#isEqual status 3}}
<span class="received"></span>
{{/isEqual}}
{{#isEqual status 4}}
<span class="on-receive" style="color: #fff;background-image: none;">
<p>已经</p>
<p>过期</p>
</span>
{{/isEqual}}
</a>
</div>
</div>
{{/each}}
</div>
</section>
{{/coupons}}
{{#activities}}
<section class='s-section clearfix' data-template-id="{{template_id}}">
<h1>学生专属活动</h1>
{{#each data.list}}
<a class='s-activity' href="{{url}}">
<img src='{{image src 750 234}}' title='{{title}}'>
</a>
{{/each}}
</section>
{{/activities}}
<section class='s-section clearfix'>
<h1>学生专享商品<a class="more" href="//search.m.yohobuy.com/?students=1&title=学生专享商品&app_version=1">...</a></h1>
<div class='goods-list clearfix'>
{{#each goods}}
<div class="good-info">
<div class="tag-container clearfix">
{{# tags}}
{{# isNew}}
<p class="good-tag new-tag">NEW</p>
{{/ isNew}}
{{# isAdvance}}
<p class="good-tag renew-tag">再到着</p>
{{/ isAdvance}}
{{# isDiscount}}
<p class="good-tag sale-tag">SALE</p>
{{/ isDiscount}}
{{# isYohoood}}
<p class="good-tag running-man-tag">跑男同款</p>
{{/ isYohoood}}
{{# isLimited}}
<p class="good-tag limit-tag">限量商品</p>
{{/ isLimited}}
{{/ tags}}
</div>
<div class="good-detail-img">
<a class="good-thumb" href="{{url}}">
<img class="lazy" data-original="{{image default_images 235 314}}">
</a>
</div>
<div class="good-detail-text">
<div class="name">
<a href="{{url}}">{{product_name}}</a>
</div>
<div class="price">
<span class="sale-price">¥{{round student_price}} <i class='s-biaoqian'>学生价</i></span>
<p class="s-price-block">
<span class="market-price">¥{{round market_price}}</span>
</p>
</div>
</div>
</div>
{{/each}}
</div>
<a class='s-more' href='//search.m.yohobuy.com/?students=1&title=学生专享商品&app_version=1'>查看更多</a>
</section>
{{#loginUrl}}
<div class='s-layout'>
快来认证吧,认证通过即可享受专属优惠!
<a class='s-renzhen' href='{{.}}'>立即认证</a>
</div>
<div class="s-replace"></div>
{{/loginUrl}}
</div>
</div>