good.hbs
3.51 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
<div class="good-info" data-skn="{{skn}}" data-from="{{from}}">
<div class="tag-container clearfix">
{{# tags}}
{{#if is_global}}
<span class="good-tag global-tag">{{name}}</span>
{{/if}}
{{# is_new_festival}}
<span class="good-tag new-festival-tag">新品节</span>
{{/ is_new_festival}}
{{# is_new}}
<span class="good-tag new-tag">NEW</span>
{{/ is_new}}
{{# is_re_new}}
<span class="good-tag renew-tag">再到着</span>
{{/ is_re_new}}
{{# is_year_end_promotion}}
<span class="good-tag yep-tag">年终大促</span>
{{/ is_year_end_promotion}}
{{# is_year_mid_promotion}}
<span class="good-tag ymp-tag">年中热促</span>
{{/ is_year_mid_promotion}}
{{# is_sale}}
<span class="good-tag sale-tag">SALE</span>
{{/ is_sale}}
{{# is_limit}}
<span class="good-tag limit-tag">限量</span>
{{/ is_limit}}
{{# is_presell}}
<span class="good-tag presell-tag">预售</span>
{{/ is_presell}}
{{/ tags}}
</div>
<div class="good-detail-img">
<a class="good-thumb" href="{{url}}" title="{{#if productTitle}}{{productTitle}}{{^}}{{product_name}}{{/if}}"{{#if noFollow}} rel="nofollow"{{/if}} target="_blank">
<img class="lazy" data-original="{{image2 thumb w=280 h=382}}" alt="{{#if productTitle}}{{productTitle}}{{^}}{{product_name}}{{/if}}">
</a>
{{# is_few}}
<p class="few-tag">即将售罄</p>
{{/ is_few}}
{{# is_solded}}
<p class="sale-out">已售罄</p>
{{/ is_solded}}
</div>
<div class="good-detail-text {{#for_stu}} stu-good-detail {{/for_stu}}">
<a href="{{url}}" target="_blank" title="{{#if productTitle}}{{productTitle}}{{^}}{{product_name}}{{/if}}" {{#if noFollow}} rel="nofollow"{{/if}}>{{{product_name}}}</a>
<p class="brand">
{{#if brand_name}}
<a href="{{brandUrl}}" title="{{#if productTitle}}{{productTitle}}{{^}}{{product_name}}{{/if}}" {{#if @root.pageNoFollow}} rel="nofollow"{{/if}}>{{brand_name}}</a>
{{/if}}
</p>
<p class="price {{#if vip}}vip-center{{/if}}">
{{# market_price}}
<span class="market-price">¥{{round . 2}}</span>
{{/ market_price}}
{{# sales_price}}
<span class="sale-price {{#unless market_price}}prime-cost{{/unless}}">
¥{{round . 2}}
</span>
{{/ sales_price}}
{{# discount}}
<span class="discount">{{.}}折</span>
{{/ discount}}
{{#vip}}<span class="vip-tag vip-span"><span> VIP </span></span><strong>更优惠</strong>{{/vip}}
{{#vip1}}<span class="vip-1 vip-span"></span>{{/vip1}}
{{#vip2}}<span class="vip-2 vip-span"></span>{{/vip2}}
{{#vip3}}<span class="vip-3 vip-span"></span>{{/vip3}}
{{#for_newuser}}<span class="new-user-tag"> 新人价 </span>{{/for_newuser}}
{{#for_stu}}<span class="stu-tag"> 学生价 </span>{{/for_stu}}
</p>
<div class="hideList hide">
{{#goods_list}}
<li data-src="{{image2 images_url w=280 h=382}}" data-url="{{../url}}" data-status="{{status}}"></li>
{{/goods_list}}
</div>
</div>
</div>