cart-item.wxml 1.74 KB
<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}}">
      <text class="iconfont icon-duihao-fill" wx:if="{{item.selected === 'Y'}}"></text>
      <text class="iconfont icon-round" wx:else></text>
    </block>
  </view>

  <image class="thumb" src="{{helper.image(item.goods_images || item.goods_image, 76, 100)}}">
    <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.bLackStorage}}">
      <text>库存不足</text>
    </view>
  </image>

  <view class="info">
    <view class="info-wrap">
      <view class="name">{{item.product_name}}</view>
      <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>
      </view>
      <view class="price-down" wx:if="{{item.price_down > 0}}">
        <text>已降¥{{item.price_down}}</text>
      </view>
    </view>



  </view>
  <view class="buy-num">
    <text>x {{item.buy_number}}</text>
  </view>
</view>