goodsListCell.wxml 2.46 KB
<!--component/goods-list-cell/goods-list-cell.wxml-->
<view class="{{index === 0 ? 'goods' : 'goods margin-top'}}">
  <block wx:if="{{showSelect}}">
    <block wx:if="{{goods.is_limit_skn === 'Y'}}">
      <image class="selected-image margin-left" src="{{unSelectedImage}}"></image>
    </block>
    <block wx:else>
      <image class="selected-image margin-left" src="{{goods.selected ? selectedImage : unSelectedImage}}" bindtap="selectedAction" data-index="{{index}}"></image>
    </block>
  </block>
  <!-- 商品图 -->
  <!-- <image class="goods-image" src="{{goods.goods_image}}"></image> -->
  <view class="goods-images margin-left column margin-top margin-bottom">
    <image 
      class="goods-image" 
      src="{{goods.goods_image}}">
    </image>
    <block wx:if="{{goods.goods_type === 'price_gift'}}">
      <image class="productTag" mode="aspectFill" src="{{price_gift}}"></image>
    </block>
    <block wx:if="{{goods.goods_type === 'gift'}}">
      <image class="productTag" mode="aspectFill" src="{{gift}}"></image>
    </block>
  </view>
  <!-- 商品详情 -->
  <view class="goods-detail margin-left">
    <view class="title-color-size">
      <text class="product-name product-info">{{goods.product_name}}</text>
      <text class="color-size light-gray pingfangsc-regular">颜色:{{goods.color_name}} {{goods.sku_title}}:{{goods.size_name}}</text>
    </view>
    <view class="price-number">
      <text class="product-name">¥{{goods.last_price}}</text>
      <text class="color-size light-gray pingfangsc-regular">x{{goods.number ? goods.number : 1}}</text>
    </view>
  </view>
</view>
<block wx:if="{{showLine || (goods.selected && goods.goods_type !== 'gift')}}">
  <view class="light-line"></view>
</block>
<block wx:if="{{goods.selected && goods.goods_type !== 'gift'}}">
  <show-picker-bg hasBottomLine="{{hasBottomLine}}" title="退货原因" index="{{index}}" range="{{returnReason}}" rangeKey="name" bindpickerselect="bindPickerSelectReason" reasonIndex="{{goods.reasonIndex}}"></show-picker-bg>
  <block wx:if="{{isShowInputAndUploadImage}}">
    <upload-image-example 
      up="{{up}}" 
      down="{{down}}"
      currentIndex="{{index}}"
      uploadImage="{{uploadImage}}"  
      uploadImages="{{uploadImages}}" 
      isShowExample="{{isShowExample}}"
      bindupdateimagearrays="updateImagesArrays"
      bindconfirmreason="confirmReasonInfo"
    ></upload-image-example>
  </block>
  <block wx:if="{{showLine}}">
    <view class="space"></view> 
  </block>
</block>