goodsListCell.wxml 2.49 KB
<!--component/goods-list-cell/goods-list-cell.wxml-->
<view class="{{index === 0 ? 'goods' : 'goods margin-top'}}">
  <block tt:if="{{showSelect}}">
    <block tt:if="{{goods.is_limit_skn === 'Y'}}">
      <image class="selected-image margin-left" src="{{unSelectedImage}}"></image>
    </block>
    <block tt: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 tt:if="{{goods.goods_type === 'price_gift'}}">
      <image class="productTag" mode="aspectFill" src="{{price_gift}}"></image>
    </block>
    <block tt: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.sale_attr_desc.skc_attr}}  {{goods.sale_attr_desc.sku_attr?goods.sale_attr_desc.sku_attr:''}}</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 tt:if="{{showLine || (goods.selected && goods.goods_type !== 'gift')}}">
  <view class="light-line"></view>
</block>
<block tt: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 tt: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 tt:if="{{showLine}}">
    <view class="space"></view> 
  </block>
</block>