cart-item.hbs
3.57 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
<li class="pre-sell-box tr
{{#isChecked}}active{{/isChecked}}
{{#inValid}}tr-disabled {{#unless sku}}tr-disabled-none{{/unless}}{{/inValid}}
{{#isSamebrandWithNext}} tr-group {{/isSamebrandWithNext}}"
data-role="pitem"
{{#if pid}}data-pid="{{pid}}"{{/if}}
{{#if id}}data-id="{{id}}"{{/if}}
{{#if skn}}data-skn="{{skn}}"{{/if}}
{{#if sku}}data-sku="{{sku}}"{{/if}}
{{#if productNum}}data-productnum="{{productNum}}"{{/if}}
{{#if goodsType}}data-goodstype="{{goodsType}}"{{/if}}
data-promotionid="{{promotionId}}"
data-color="{{productColor}}"
data-size="{{productSize}}"
{{#if isGift}} data-isgift="true"{{/if}}
{{#if isPriceGift}}data-ispricegift="true"{{/if}} >
<div class="pay-pro td" style="width: 368px;">
{{#unless isGift}}
{{#if inValid}}
<i class="cart-item-disabled iconfont"></i>
{{else}}
<i class="cart-item-check iconfont {{#isChecked}}cart-item-checked{{/isChecked}}"
data-role="cart-item-check"
data-goodstype="{{goodsType}}"
{{#isTipNoStore}}data-tipnostore="true"{{/isTipNoStore}}
{{#if isChecked}}checked{{/if}}></i>
{{/if}}
{{/unless}}
<a class="pay-pro-icon" href="{{link}}" target="_blank">
<img src="{{imgCover}}">
{{#if isAdvance}}<span class="incentive">预售</span>{{/if}}
</a>
<p class="pay-pro-info">
<a href="{{link}}" target="_blank">{{#if tag}}<code class="good-mark">{{tag}}</code>{{/if}}{{productTitle}}</a>
<em class="pay-pro-detail"><span><b title="{{productColor}}">颜色:{{productColor}}</b> 尺码:{{productSize}}<i class="iconfont"></i></span></em>
</p>
</div>
<div class="product-price td" style="width:148px;">¥{{productPrice}}
{{#if promotionInfos}}
<div class="sale-info">
<span class="sale-info-title">促销信息<i></i></span>
<ul class="none">
{{#promotionInfos}}
<li>{{promotionTitle}}
{{>cart-promotion-btn}}
{{#if isNotReach}}
<a class="btn-clear blue order-pay-link" target="_blank" href="{{promotionPageUrl}}">去凑单 ></a>
{{/if}}
</li>
{{/promotionInfos}}
</ul>
</div>
{{/if}}
</div>
<div style="width:128px;" class="adjust-cart-num td">
{{#or isGift isPriceGift inValid}}
<div>{{productNum}}</div>
{{^}}
<div class="cart-num-cont">
<span class="minus cart-num-btn"><i class="iconfont icon-minus"></i></span>
<input type="text" value="{{productNum}}" readonly="readonly"/>
<span class="plus cart-num-btn"><i class="iconfont icon-plus"></i></span>
</div>
<p class="tip-message {{#isTipNoStore}}tipNoStore{{/isTipNoStore}}">{{tipMessage}}</p>
{{/or}}
</div>
<div style="width:160px;" class="sub-total red td">
¥{{productSubtotal}}
{{#if yohoIcon}}
<p class="tip-message tip-message-coin"><i class="yoho-coin"></i>返{{yohoIcon}}有货币</p>
{{/if}}
</div>
<div style="width:100px;" class="cart-operation td">
<span class="cart-del-btn" data-role="cart-del-btn">删除</span>
<span class="cart-col-btn" data-role="cart-mov2fav-btn">移入收藏</span>
</div>
</li>