<view class="container">
  <lip-sync />
	<auth bindlogin="onShow" />
	
  <view class="header-list">
    <view class="li {{activeIdx==item.id?'active':''}}" wx:for="{{header}}" bindtap="tabHeader" data-id="{{item.id}}" wx:key="index">
      {{item.name}}
    </view>
  </view>

    <view class="orders" wx:if="{{orderList.length > 0 || loadding}}">
        <navigator hover-class="none" url="../orderDetail/orderDetail?id={{item.id}}" class="order" wx:for="{{orderList}}" wx:key="{{item.id}}">
            <view class="h">
                <view class="l">订单编号：{{item.order_sn}}</view>
                <view class="r">{{item.order_status_text}}</view>
            </view>
            <view class="goods" wx:for="{{item.goodsList}}" wx:key="{{gitem.id}}" wx:for-item="gitem">
                <view class="img">
                    <image mode="aspectFit" src="{{gitem.list_pic_url}}"></image>
                </view>
                <view class="info">
                    <text class="name">{{gitem.goods_name}}</text>
                    <text class="number">￥{{gitem.retail_price}} x {{gitem.number}}</text>
                </view>
                <view class="status"></view>
            </view>
            <view class="b">
                <!-- <view class="l">实付：￥{{item.actual_price}}</view> -->
                <view class="t">共{{item.goodsCount}}件商品，价格：￥{{item.actual_price}}</view>
                <!-- <view class="r">
                    <button class="btn default"  data-id="{{item.id}}" data-no="{{item.shipping_no}}" wx:if="{{item.shipping_status}}" catchtap="gotoLogti">查看物流</button>
                </view> -->
                <view class="r">
                    <button class="btn" data-order-index="{{index}}" catchtap="payOrder" wx:if="{{item.handleOption.pay}}">去付款</button>
                </view>
                
            </view>
        </navigator>
    </view>
    <view wx:else class="unbrand">
      <image src="/static/images/img_nodata@2x.png"></image>
      <view class="text">暂无相关数据</view>
    </view>

    <view wx:if="{{orderList.length>6}}" class="loadmore">
      <block wx:if="{{nomore}}">
        <text>{{nomoreText}}</text>
      </block>
      <block wx:else>
        <text class="iconfont icon-loading loading" space="nbsp"></text>
        <text> {{loadmoreText}}</text>
      </block>
    </view>
</view>
