order-item.wxml
1.98 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
<wxs src="../../../wxs/helper.wxs" module="helper" />
<view class="goods-item {{index ? '' : 'top-none'}} {{frame ? 'frame' : ''}}" bindtap="itemTapped">
<view class="thumb">
<image class="thumb" src="{{helper.image(item.goods_images || item.goods_image, 76, 100)}}"></image>
<view class="goods-type price-gift-tag" wx:if="{{item.goods_type === 'price_gift'}}">
<text>加价购</text>
</view>
<view class="goods-type gift-tag" wx:if="{{item.goods_type === 'gift'}}">
<text>赠品</text>
</view>
<view class="goods-type virtual-tag" wx:if="{{item.goods_type === 'ticket'}}">
<text>虚拟商品</text>
</view>
<view class="goods-type advance-tag" wx:if="{{item.goods_type === 'advance'}}">
<text>预售</text>
</view>
</view>
<view class="name-price">
<text class="name item-left">{{item.product_name}}</text>
<view class="price item-right red">
<text class="sale-price">¥ {{helper.round(item.sales_price)}}</text>
<text wx:if="{{item.mark_price}}" class="mark-price">¥ {{helper.round(item.mark_price)}}</text>
</view>
</view>
<view class="color-size-num">
<view class="color-size item-left">
<text class="color">颜色:{{item.factory_goods_name || item.color_name}}</text>
<text class="size">尺码:{{item.size_name}}</text>
</view>
<text class="num item-right">x {{item.buy_number}}</text>
</view>
<block wx:for="{{item.tags}}" wx:key="unique">
<view class="warn-tip red" wx:if="{{item === 'LRE'}}">
<text class="iconfont icon-warn-fill"></text>
<text class="tip">不支持7天无理由退换</text>
</view>
<view class="warn-tip red" wx:if="{{item === 'L15DE'}}">
<text class="iconfont icon-warn-fill"></text>
<text class="tip">不支持15天无理由换货</text>
</view>
</block>
</view>