index.hbs
4.33 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
{{#realData}}
{{! 头部banner}}
<div class="stu-page">
<span id="bannerFloorId" class="hide">{{mainBanner/floorId}}</span>
{{> common/main-banner}}
<div class="center-content">
{{! 分类导航}}
<div class="sort-nav clearfix" urlLocation="">
{{#sortItem}}
<a class="sort-item {{#if @first}}first active{{/if}} {{#if @last}}last{{/if}}" href='#{{href}}'>{{title}}</a>
{{/sortItem}}
</div>
{{! 学生权益}}
{{#rightsObj}}
<div class="stu-box" id="stu-rights-box" floorId="{{floorId}}">
<div class="floor-header clearfix">
<a name="stu-rights">
<h2 class="floor-title">学生权益</h2>
</a>
<span id="rights-dia" class="floor-more">全部权益 ></span>
</div>
<div class="commodity-list clearfix">
{{> students/stu-rights}}
</div>
</div>
{{/rightsObj}}
{{! 身份验证}}
{{#identityObj}}
<div class="stu-box " id="stu-identity-box" floorId="{{floorId}}">
<div class="floor-header clearfix">
<a name="stu-identity">
<h2 class="floor-title">身份验证</h2>
</a>
</div>
<div class="commodity-list clearfix">
{{> students/stu-identity}}
</div>
</div>
{{/identityObj}}
{{! 优惠券}}
{{#couponObj}}
<div class="stu-box" id="stu-coupon-box" floorId="{{floorId}}">
<div class="floor-header clearfix">
<a name="stu-coupon">
<h2 class="floor-title">优惠券</h2>
</a>
{{#if couponMore}}
<span class="floor-more">
<a id="stu-coupon-more" target="_blank" href="{{couponMore.more_url}}">MORE ></a>
</span>
{{/if}}
</div>
<div class="commodity-list clearfix">
{{#each couponItem}}
{{> product/coupon}}
{{/each}}
</div>
</div>
{{/couponObj}}
{{! 热门单品}}
{{#proObj}}
<div class="stu-box" id="stu-good-box" floorId="{{floorId}}">
<div class="floor-header clearfix">
<a name="stu-good">
<h2 class="floor-title">热门单品</h2>
</a>
<span class="floor-more">
<a target="_blank" href="{{moreProducts}}" id="stu-good-more">MORE ></a>
</span>
</div>
<div class="commodity-list clearfix">
<span id="proIds" class="hide">{{proIds}}</span>
{{#each proItem}}
{{> product/good}}
{{/each}}
</div>
</div>
{{/proObj}}
{{! 活动推荐}}
{{#activityObj}}
<div class="stu-box" id="stu-activity-box" floorId="{{floorId}}">
<div class="floor-header clearfix">
<a name="stu-activity">
<h2 class="floor-title">活动推荐</h2>
</a>
</div>
<div class="commodity-list clearfix">
{{#activityItem}}
<a target="_blank" href="{{url}}"><img class="activity-item" src="{{image src 1150 283}}" /></a>
{{/activityItem}}
</div>
</div>
{{/activityObj}}
</div>
</div>
<div id="hide-template">
<script type="text/html" id="stu-select">
\{{#provData}}
<li><a areaCode="\{{areaCode}}">\{{addresseeName}}</a></li>
\{{/provData}}
\{{#schoolData}}
<li><a schoolCode="\{{schoolCode}}">\{{schoolName}}</a></li>
\{{/schoolData}}
\{{#eduData}}
<li><a>\{{this}}</a></li>
\{{/eduData}}
\{{#yearData}}
<li><a>\{{this}}</a></li>
\{{/yearData}}
</script>
<script type="text/html" id="identity-back">
<div class="identity-back-wrap">
<div class="identity-back-icon fail-icon"></div>
<p class="identity-back-title">{{msg}}</p>
<p class="identity-back-subtitle">您可以<span class="backForm">重新验证></span></p>
</div>
</script>
</div>
{{/realData}}