cart-good.hbs
3.96 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
<div class="good-item{{#if lowStocks}} low-stocks{{/if}}{{#if isStudents}} is-students{{/if}}{{#if isVipPrice}} is-vip-price{{/if}}{{#ifand checked showCheckbox}} is-checked{{/ifand}}{{#if noEdit}} no-edit{{/if}}{{#if inValid}} in-valid{{/if}}{{#if inValidLow}} in-valid-low{{/if}}{{#ifor isGift isAdvanceBuy}} is-gift{{/ifor}}" data-promotion="{{promotion_id}}" data-id="{{id}}" data-skn="{{skn}}" data-mnum="{{minNumber}}" data-link="{{link}}" data-activityid="{{parent.poolId}}">
<div class="opt">
{{#if showCheckbox}}
<i class="iconfont chk select{{#if checked}} checked{{/if}}"></i>
{{/if}}
<i class="iconfont chk edit"></i>
{{#inValid}}
<span class="disable fill-text">失效</span>
{{/inValid}}
</div>
<div class="good-new-info">
<a href="javascript:;" class="img-a">
<div class="img">
<img class="thumb lazy" data-original="{{thumb}}" alt="">
{{#isGift}}
<div class="flag gift"><div class="text">赠品</div></div>
{{/isGift}}
{{#isAdvanceBuy}}
<div class="flag price-gift"><div class="text">加价购</div></div>
{{/isAdvanceBuy}}
{{#if parent.isBundle}}
<div class="flag bundle"></div>
{{/if}}
</div>
</a>
<div class="info">
<div class="fixed-height">
<div class="intro intro-name">
<div class="name-row">
<div class="name">
<a href="javascript:;">{{name}}</a>
</div>
</div>
<p class="color-size-row"><span class="color">颜色:{{color}}</span><span class="size">尺码:{{size}}</span></p>
</div>
{{#ifnot noEdit}}
<div class="intro intro-edit">
<div class="edit-box">
{{#unless parent.isBundle}}
<div class="num-opt">
<a href="javascript:;" class="btn btn-opt-minus{{#ifor minSelectNum isGift isAdvanceBuy}} disabled{{/ifor}}"><span class="iconfont"></span></a>
<input type="text" class="good-num" disabled="true" value="{{count}}" data-min="{{minNumber}}" data-max="{{maxNumber}}">
<a href="javascript:;" class="btn btn-opt-plus{{#ifor maxSelectNum isGift isAdvanceBuy}} disabled{{/ifor}}"><span class="iconfont"></span></a>
</div>
{{^}}
<input type="hidden" class="good-num" value="{{count}}" data-min="{{minNumber}}" data-max="{{maxNumber}}">
{{/unless}}
<div class="edit-size-info {{#ifnot parent.isBundle}} edit-size-info-notop {{/ifnot}}">
<div class="txt">颜色:{{color}} 尺码:{{size}}</div>
<div class="down">
<i class="iconfont"></i>
</div>
</div>
</div>
</div>
{{^}}
<input type="hidden" class="good-num" value="{{count}}" data-min="{{minNumber}}" data-max="{{maxNumber}}">
{{/ifnot}}
<div class="count">x{{count}}</div>
</div>
<p class="price">
<span class="market-price">¥{{price}}</span>
{{#if isStudents}}<span class="vip fill-text">学</span>{{/if}}
{{#if isVipPrice}}<span class="vip fill-text">VIP</span>{{/if}}
</p>
<div class="tags">
{{#if lowStocks}}<span class="low-stocks fill-text">库存不足</span>{{/if}}
{{#appearDate}}<span class="appear-date">上市期:{{.}}</span>{{/appearDate}}
</div>
</div>
</div>
</div>