shoppingCartOneProductCell.ttml
4.49 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
<view class="pollGoodContainer" bindtap='{{data.isEditing ? "" : "shoppingCartProductItemAction"}}' data-identifier="navtoProductDetailPage" data-item='{{data.goodsItem}}' data-type="{{data.goodsItem}}" bindtouchend="moveEnd" bindtouchstart="moveStart" animation="{{data.tempSku == data.goodsItem.unique_identifier ? data.deleteAnimation : ''}}" >
<image tt:if="{{(data.goodsItem.goods_type != 'gift') && (!data.goodsItem.batch_no && !data.goodsItem.bundle_activity_id)}}" src="{{data.goodsItem.bSelected ? '../../../images/gwc_choose@2x.png' : '../../../images/gwc_n@2x.png'}}" class="selectBtn" catchtap="shoppingCartProductItemAction" data-identifier="selectSingleGoodsAction" data-type="{{data.goodsItem}}"></image>
<image src="{{data.goodsItem.goods_images}}" class="goodsImage"></image>
<image tt:if="{{data.goodsItem.bLackStorage}}" class='gift-tag-image' src='../../../images/kcbz-lab@2x.png'/>
<image tt:elif="{{data.goodsItem.goods_type == 'gift'}}" class='gift-tag-image' src='../../../images/zp-lab@2x.png'/>
<image tt:elif="{{data.goodsItem.goods_type == 'price_gift'}}" class='gift-tag-image' src='../../../images/jjg-lab@2x.png'/>
<view class="goodsInfoContainer" tt:if="{{!data.isEditing}}">
<text class="productName">{{data.goodsItem.product_name}}</text>
<text class="productColorSizeString">{{data.goodsItem.goodColorSizeString}}</text>
<view class="priceContainer">
<view class='current-old-price-container'>
<text class="goodsPriceString">{{data.goodsItem.priceString}}</text>
<block tt:if="{{data.goodsItem.isShowOldPrice}}">
<text class="oldPrice">{{data.goodsItem.oldPricString}}</text>
</block>
</view>
<view class="reduceStringontainer" tt:if="{{data.goodsItem.price_down > 0}}">
<text class="reduceString">已降¥{{data.goodsItem.price_down}}</text>
</view>
</view>
</view>
<view class='bundleGoodSizeInfoContainer' bindtap="shoppingCartProductItemAction" data-identifier="chooseSizeColorAction" data-type="{{data.goodsItem}}" tt:if="{{data.isEditing && (data.goodsItem.batch_no && data.goodsItem.bundle_activity_id)}}">
<view class='bundleGoodSizeText'>{{data.goodsItem.goodColorSizeString}}</view>
<image class='bundleGoodArrowImage' src='../../../images/down-ic@2x.png'></image>
</view>
<view class="goodsInfoEditContainer" tt:elif="{{data.isEditing}}">
<view class="cutPlusContainer">
<view class="cutPlusView" tt:if="{{data.goodsItem.buy_number != 1}}" bindtap="shoppingCartProductItemAction" data-identifier="cutDownBuyCountAction" data-type="{{data.goodsItem}}">
<image src="../../../images/jian_h@2x.png" class="cutImage"></image>
</view>
<view class="cutPlusView" tt:if="{{data.goodsItem.buy_number == 1}}">
<image src="../../../images/jian_disable@2x.png" class="cutImage"></image>
</view>
<view class="numberView">
<text class="numberText">{{data.goodsItem.buy_number}}</text>
</view>
<view class="cutPlusView" tt:if="{{!data.goodsItem.bLackStorage && data.goodsItem.buy_number != data.goodsItem.storage_number}}" bindtap="shoppingCartProductItemAction" data-identifier="plusBuyCountAction" data-type="{{data.goodsItem}}">
<image src="../../../images/and_normal@2x.png" class="plusImage"></image>
</view>
<view class="cutPlusView" tt:if="{{data.goodsItem.bLackStorage || data.goodsItem.buy_number == data.goodsItem.storage_number}}" bindtap="shoppingCartProductItemAction" data-identifier="plusReachedMaxAction">
<image src="../../../images/and_h@2x.png" class="plusImage"></image>
</view>
</view>
<view class="colorSizeContainer" bindtap="shoppingCartProductItemAction" data-identifier="chooseSizeColorAction" data-type="{{data.goodsItem}}">
<view class="colorSizeView">
<text class="colorSizeText">{{data.goodsItem.goodColorSizeString}}</text>
</view>
<view class="cutPlusView">
<image class="arrowImage" src="../../../images/down-ic@2x.png"></image>
</view>
</view>
</view>
<text class="buyNumbText" tt:if="{{!data.isEditing}}">x {{data.goodsItem.buy_number}}</text>
<!-- <view class="lackStorageContainer" tt:if="{{data.goodsItem.bLackStorage && !data.isEditing}}">
<text class="lackStorageText">库存不足</text>
</view> -->
<view class="cellDeleteBtn" catchtap="shoppingCartProductItemAction" data-identifier="deleteGoodsCell" data-type="{{data.goodsItem}}">
<text class="cellDeleteText">删除</text>
</view>
</view>