goods.hbs
2.82 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
{{# result}}
{{#each goods}}
<div class="good-info {{#if vip}} good-info-big{{/if}} {{#if vip1}} good-info-big{{/if}} {{#if vip2}} good-info-big{{/if}} {{#if vip3}} good-info-big{{/if}} {{#if vipPicture}} good-info-big{{/if}}" data-skn="{{skn}}" data-from="{{from}}">
<div class="tag-container clearfix">
{{# tags}}
{{# isNew}}
<span class="good-tag new-tag">NEW</span>
{{/ isNew}}
{{# isReNew}}
<span class="good-tag renew-tag">再到着</span>
{{/ isReNew}}
{{# isSale}}
<span class="good-tag sale-tag">SALE</span>
{{/ isSale}}
{{# isNewFestival}}
<span class="good-tag new-festival-tag">新品节</span>
{{/ isNewFestival}}
{{# isLimited}}
<span class="good-tag limit-tag">限量商品</span>
{{/ isLimited}}
{{# isYearEndPromotion}}
<span class="good-tag yep-tag">年终大促</span>
{{/ isYearEndPromotion}}
{{# isYearMidPromotion}}
<span class="good-tag ymp-tag">年中热促</span>
{{/ isYearMidPromotion}}
{{/ tags}}
</div>
<div class="good-detail-img">
<a class="good-thumb" href="{{url}}" target="_blank">
<img class="lazy" data-original="{{image thumb 280 380}}">
</a>
{{# tags}}
{{# isFew}}
<p class="few-tag">即将售罄</p>
{{/ isFew}}
{{/ tags}}
{{#if showColBtn}}
<span class="col-btn iconfont{{#if coled}} coled{{/if}}"></span>
{{/if}}
</div>
<div class="good-detail-text">
<a href="{{url}}" target="_blank">{{{productName}}}</a>
<p class="brand">
<a href="{{brandUrl}}">{{brandName}}</a>
</p>
<p class="price">
{{# marketPrice}}
<span class="market-price">¥{{.}}</span>
{{/ marketPrice}}
{{# salesPrice}}
<span class="sale-price{{#unless marketPrice}}prime-cost{{/unless}}">
¥{{.}}
</span>
{{/ salesPrice}}
{{#vip}}<span class="vip-tag"> VIP </span><strong>更优惠</strong>{{/vip}}
{{#vip1}}<span class="vip-1"> </span><strong>{{vipPrice}}</strong>{{/vip1}}
{{#vip2}}<span class="vip-2"> </span><strong>{{vipPrice}}</strong>{{/vip2}}
{{#vip3}}<span class="vip-3"> </span><strong>{{vipPrice}}</strong>{{/vip3}}
</p>
</div>
</div>
{{/each}}
{{/ result}}