shop-index.hbs
5.07 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
<div class="blk-page yoho-shop-index" data-id="{{shopId}}">
<div class="center-content">
{{# navPath}}
{{> path-nav}}
{{/ navPath}}
</div>
<div class="center-content clearfix">
{{> brand-banner-list }}
{{> list/shop-menu }}
{{> list/banner-info }}
</div>
{{# banner.resources}}
{{#if largeSlideImg}}
<div class="center-content clearfix slide-warp">
{{#each largeSlideImg}}
<div class="slide-left">
<a href="{{url}}">
<img src="{{src}}" alt="">
</a>
</div>
{{/each}}
<div class="slide-right">
{{#each oneRowTwoColImages}}
<a href="{{url}}">
<img src="{{src}}" alt="">
</a>
{{/each}}
</div>
</div>
{{/if}}
{{#if newProducts}}
<div class="center-content clearfix new-arrival-warp">
<div class="floor-header clearfix">
<h2 class="floor-title en-size">NEW ARRIVALS</h2>
<p class="floor-title zh-size">最新上架</p>
<a class="floor-more" href="{{@root.mores.new.href}}">MORE</a>
</div>
<div class="goods-wrap">
{{#each newProducts}}
<div class="goods-info" data-skn="{{productSkn}}">
<a href="" target="_blank">
<img class="lazy thumb" data-original="{{src}}" style="display: block;">
</a>
<div class="desc">
<a class="name" href="" target="_blank">{{productName}}</a>
<p class="price">¥{{round salesPrice 2}}</p>
</div>
</div>
{{/each}}
</div>
</div>
{{/if}}
{{#if hotProducts}}
<div class="center-content clearfix hot-product-warp">
<div class="floor-header clearfix">
<h2 class="floor-title en-size">HOT</h2>
<p class="floor-title zh-size">人气单品</p>
<a class="floor-more" href="{{@root.mores.hot.href}}">MORE</a>
</div>
<div class="goods-wrap">
{{#each hotProducts}}
<div class="goods-info" data-skn="{{productSkn}}">
<a href="" target="_blank">
<img class="lazy thumb" data-original="{{src}}" style="display: block;">
</a>
<div class="desc">
<a class="name" href="" target="_blank">{{productName}}</a>
<p class="price">¥{{round salesPrice 2}}</p>
</div>
</div>
{{/each}}
</div>
</div>
{{/if}}
{{/ banner.resources}}
<div class="center-content clearfix all-product-warp">
<div class="floor-header clearfix">
<h2 class="floor-title en-size">ALL</h2>
<p class="floor-title zh-size">全部商品</p>
</div>
{{> list/shop-sort}}
{{> list/order-area}}
<div class="goods-wrap">
{{#each products}}
<div class="goods-info" data-skn="{{productSkn}}">
<a href="{{url}}" target="_blank">
<img class="lazy thumb" data-original="{{image defaultImages 270 366}}" style="display: block;">
</a>
<div class="desc">
<a class="name" href="{{url}}" target="_blank">{{productName}}</a>
<p class="price">¥{{round salesPrice 2}}</p>
</div>
</div>
{{/each}}
</div>
</div>
{{#if showEditorial}}
<div class="center-content clearfix">
<div class="floor-header clearfix">
<h2 class="floor-title en-size">EDITORIAL</h2>
<p class="floor-title zh-size">资讯</p>
</div>
<div class="editorial-wrap clearfix">
{{#each editorial}}
<div class="editorial-info">
<a href="{{url}}" target="_blank">
<img class="lazy thumb" alt="{{title}}" data-original="{{image src 368 340}}" width="368"
height="340" style="display: block;">
</a>
<div class="desc">
<a class="name" href="{{url}}" target="_blank">{{title}}</a>
<p class="intro">{{intro}}</p>
</div>
</div>
{{/each}}
</div>
</div>
{{/if}}
</div>