<page-loding wx:if="{{showLoding}}"></page-loding>
<view class="main-container">
    <view class="nav-list">
        <view bindtap="changeTab" class="nav-item" data-tab="{{item.tab}}" wx:for="{{navList}}" wx:key="index">
            <view class="{{item.tab==tab?'text--active':''}}">{{item.name}}</view>
        </view>
    </view>
    <view class="order-list">
        <navigator class="order-item" url="{{item.pay_status==0?'/pages/orderPay/orderPay?orderid='+item.orderid:'/pages/orderDetails/orderDetails?orderid='+item.orderid}}" wx:for="{{data}}" wx:key="index">
            <view class="order-item__hd thin-border_b">
                <view class="time">订单编号：{{item.orderid}}</view>
                <view class="state" wx:if="{{item.pay_status!=-1}}">{{status[item.status]}}</view>
                <view class="state" wx:if="{{item.pay_status==-1}}">付款超时</view>
            </view>
            <view :key="i" class="order-item__bd " wx:for="{{item.shop}}" wx:for-item="s">
                <view class="order-mes">
                    <image class="img-shop" mode="widthFix" src="{{s.image}}"></image>
                    <view class="mes">
                        <view class="mes-name overflow-2-row">{{s.name}}</view>
                    </view>
                </view>
                <view class="order-money">
                    <view class="date">下单日期：{{item.timestamp}}</view>
                    <view>{{item.total_num}}件商品共：¥{{item.pay_money}}</view>
                </view>
            </view>
            <view class="order-item__ft thin-border_t">
                <view class="btn-box">
                    <view class="btn" wx:if="{{item.pay_status!=-1&&item.status==0}}">确认付款</view>
                    <view class="btn" wx:if="{{item.pay_status!=-1&&item.status!=0}}">查看订单</view>
                    <view catchtap="deleteItem" class="btn btn-grey" data-index="{{index}}" data-orderid="{{item.orderid}}" wx:if="{{item.pay_status==-1}}">删除</view>
                </view>
            </view>
        </navigator>
    </view>
    <view class="van-list__finished-text" wx:if="{{loading}}">正在加载...</view>
    <view class="van-list__finished-text" wx:if="{{!loading&&!next_page&&data.length>0}}">没有更多了</view>
    <view class="no-content" wx:if="{{data.length==0&&!loading}}">
        <image src="/img/nocontent.png"></image>
        <view>没有内容哦~</view>
    </view>
</view>
