refundGoods.wxml 2.65 KB
<!--page/subPackage/pages/refundGoods/refundGoods.wxml-->
<view class="refund-goods-bg margin-bottom">
  <block wx:for="{{list}}" wx:key="{{item.id}}">
    <view class="refund-good margin-top" bindtap="navgationToRefund" data-id="{{item.id}}">
      <view class="refund-good-header margin-left margin-top border-bottom">
        <view class="refund-good-number margin-bottom">
          <text class="black-text-color middle-text-size">订单编号: {{item.order_code}}</text>
          <text class="small-text-size gray-text-color">申请时间: {{item.create_time}}</text>
        </view>
        <text class="red-text-color middle-text-size margin-right margin-bottom ping-fang-sc-bold">{{item.status_name}}</text>
      </view>
      <view class="refund-good-body">
        <block wx:for="{{item.goods}}" wx:for-item="goods" wx:key="{{index}}">
          <view class="goods margin-top margin-left {{ index !== item.goods.length - 1 ? 'border-bottom' : ''}}">
            <view class="goods-image 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 margin-bottom">
              <view class="title-color-size">
                <text class="black-text-color middle-text-size product-info">{{goods.product_name}}</text>
                <text class="small-text-size gray-text-color pingfangsc-regular">颜色:{{goods.color_name}} {{good.sku_title || '尺码'}}:{{goods.size_name}}</text>
              </view>
              <view class="price-number margin-right">
                <text class="red-text-color middle-text-size pingfangsc-regular">¥{{goods.sales_price}}</text>
                <text class="small-text-size gray-text-color pingfangsc-regular">x{{goods.number ? goods.number : 1}}</text>
              </view>
            </view>
          </view>  
        </block>  
      </view>
      <block wx:if="{{item.canCancel === 'Y'}}">
        <view class="refund-good-footer border-top">
          <text class="black-text-color middle-text-size border refund-cancel border-radius margin-right" catchtap="cancelRefundGoods" data-id="{{item.id}}">取消申请</text>
        </view>
      </block>
    </view>
  </block>
</view>