|
|
<wxs src="../../../wxs/helper.wxs" module="helper" />
|
|
|
|
|
|
<view class="goods-item" bindtap="itemTapped">
|
|
|
<view class="choose-btn">
|
|
|
<block wx:if="{{item.goods_type !== 'gift' && !item.batch_no && !item.bundle_activity_id && !isInvalid}}">
|
|
|
<text class="iconfont icon-duihao-fill" wx:if="{{item.selected === 'Y'}}"></text>
|
|
|
<text class="iconfont icon-round" wx:else></text>
|
|
|
</block>
|
|
|
<view class="invalid-tag" wx:if="{{isInvalid}}">失效</view>
|
|
|
</view>
|
|
|
|
|
|
<image class="thumb" src="{{helper.image(item.goods_images || item.goods_image, 76, 100)}}">
|
|
|
<block wx:if="{{!isInvalid}}">
|
|
|
<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 class="goods-type low-storage-tag" wx:if="{{item.goods_type === 'lowStorage'}}">
|
|
|
<text>库存不足</text>
|
|
|
</view>
|
|
|
</block>
|
|
|
</image>
|
|
|
|
|
|
<view class="info">
|
|
|
<view class="info-wrap">
|
|
|
<view class="name">{{item.product_name}}</view>
|
|
|
<block wx:if="{{!isInvalid}}">
|
|
|
<view class="color-size">颜色:{{item.factory_goods_name}} 尺码:{{item.size_name}}</view>
|
|
|
<view class="price">
|
|
|
<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>
|
|
|
<text class="vip-price-tig" wx:if="{{item.isVipPrice}}">VIP</text>
|
|
|
</view>
|
|
|
<view class="price-down" wx:if="{{item.price_down > 0}}">
|
|
|
<text>已降¥{{item.price_down}}</text>
|
|
|
</view>
|
|
|
<view class="info-edit" wx:if="{{isEditing}}">
|
|
|
<view class="edit-block">
|
|
|
<cart-edit goods="{{item}}"></cart-edit>
|
|
|
<view class="price">
|
|
|
<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>
|
|
|
<text class="vip-price-tig" wx:if="{{item.isVipPrice}}">VIP</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</block>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="buy-num">
|
|
|
<text>x {{item.buy_number}}</text>
|
|
|
</view>
|
|
|
</view> |
...
|
...
|
|