orderListCell.ttml 3.33 KB
<view id="order-container" class="order-container">
  <block tt:for="{{orders}}" tt:key="order_code">
    <view class="order" data-order_code="{{item.order_code}}" data-attribute="{{item.attribute}}" bindtap="navToOrderDetail">
      <view class="header">
          订单编号:{{item.order_code}}
        <view class="order-status">{{item.status_str}}</view>
      </view>
      <view class="order-goods">
        <block tt:for="{{item.order_goods}}" tt:for-item="good" tt:key="product_id">
          <view class="order-good" data-id="">
            <view class="thumb-wrap">
              <image class="thumb" src="{{good.goods_image}}"></image>
              <image tt:if="{{good.goods_type=='gift'}}" class='productTag' src='../../../images/zp-lab@2x.png'></image>
              <image tt:elif="{{good.goods_type=='price_gift'}}" class='productTag' src='../../../images/jjg-lab@2x.png'></image>
              <image tt:elif="{{good.goods_type=='virtual'}}" class='productTag' src='../../../images/vitual@2x.png'></image>
            </view>
            <view class="deps">
              <view class="name row">{{good.product_name}}</view>
              <view class="row">
                <block tt:if="{{good.goods_type=='virtual'}}">
                  <view class="color">
                    日期:{{good.color_name}}
                  </view>
                  <view class="size">
                    区域:{{good.size_name}}
                  </view>
                </block>
                <block tt:else>
                    <view class="color">
                        颜色:{{good.color_name}}
                    </view>
                    <view class="size">
                        尺码:{{good.size_name}}
                    </view>

                    <block tt:if="{{good.expect_arrival_time && good.goods_type!=='ordinary'}}">
                      <text class="order-tip" >上市期:{{good.expect_arrival_time}}</text>
                    </block>

                </block>
              </view>
              <view class="row price-wrap">
                <view class="price">
                  ¥{{good.real_pay_price}}
                </view>
                <view tt:if="{{good.sales_price}}" class="count" style='text-decoration:line-through;'>
                  ¥{{good.sales_price}}
                </view>
                <view class="count">
                  ×{{good.buy_number}}
                </view>
              </view>
            </view>
          </view>
        </block>
      </view>
      <view class="footer">
        共{{item.buy_total}}件商品 实付
        <view class="sum-cost">¥{{item.amount}} </view> 
        (含运费¥{{item.shipping_cost}})
      </view>
      
      <view tt:if="{{item.attribute == 9}}" class="order-opt" style='font-size:28rpx;color:#444444'>*此订单只能在APP端操作</view>

      <view tt:elif="{{item.links.length > 0}}" class="order-opt">
        <block tt:if="{{item.counter_flag == 'Y' && item.is_cancel != 'Y' && item.pay_lefttime > 0}}"> 
          <view class="counterView">
            <image class="timeIcon" src='../../../images/shijian@3x.png'></image>  
            <text class="counter">剩余 {{item.time_left}}</text> 
          </view>
        </block> 

        <operationBar data="{{item}}" bindtapOperationBar="tapOperationBar"></operationBar>
      </view>
    </view>
  </block>
</view>