myOrder.wxml 19.2 KB
<!--pages/my/myOrder/myOrder.wxml-->
<view class='page {{cancel_order||after_order?"active":""}}'>
        <view class='banner'>
                <view class='iconfont icon-fanhui' bindtap='get_back'></view>
                <view class='coupons'>我的订单</view>
        </view> 

        <view class='select_list'> 
                <view class='nav_item {{navId==item.id?"active":""}}' wx:for='{{nav}}' wx:key='{{item.id}}' data-navid='{{item.id}}' bindtap='changeNavId' data-status='{{item.status}}'>{{item.name}}</view>
        </view>
        <block wx:if='{{navId==1}}'>
                <view class='content_item'>
                        <view wx:if='{{orderList.length>0}}'>
                                <view class='item_list' wx:for='{{orderList}}' wx:for-item='cell' wx:key='{{index}}' wx:for-index='index' data-status='{{cell.status}}' bindtap='jump_order_detail' data-id='{{cell.id}}'>
                                        <view class='list_title'>
                                                <view class='title'> 
                                                        <view>HI 鲜生</view>
                                                        <view class='auto_cancle' wx:if='{{cell.status==1&&cell.is_cancel}}'>自动取消 {{cell.hours}}时{{cell.minutes}}分 </view>
                                                </view>
                                                <view class='wait_pay' wx:if='{{cell.status==1}}'>等待买家付款</view>
                                                <view class='wait_pay' wx:if='{{cell.status==2}}'>买家已付款</view>
                                                <view class='wait_pay' wx:if='{{cell.status==3}}'>商品已发出</view>
                                                <view class='wait_pay' wx:if='{{cell.status==4}}'>交易成功</view>
                                                <view class='wait_pay' wx:if='{{cell.status==5}}'>交易成功</view>
                                                <view class='wait_pay' wx:if='{{cell.status==8}}'>交易关闭</view>
                                        </view>
                                        <view class='list_content'>
                                                <view class='content_img' wx:for="{{cell.more.thumbnail}}" wx:for-item='item' wx:key='{{item}}' wx:for-index='index'>
                                                        <image src='{{item}}'></image>
                                                </view>
                                        </view>
                                        <view class='order_detail'>
                                                <view>共计{{cell.goods_num}}件商品(运费¥{{cell.yunfei}})</view>
                                                <view class='time'>{{cell.create_time}}</view>
                                        </view>
                                        <view class='order_money'>
                                                <view>实付:¥
                                                        <text class='money_num'>{{cell.real_price}}</text>
                                                </view>
                                                <view>
                                                        <view class='money_btn' wx:if='{{cell.status==1}}'>
                                                                <view class='cancel' catchtap='cancel_order' data-index='{{index}}' data-orderid='{{cell.id}}'>取消订单</view>
                                                                <view class='pay' data-order='{{cell.order_sn}}' catchtap='go_pay' data-index='{{index}}'>付款</view>
                                                        </view>
                                                        <view class='money_btn' wx:elif='{{cell.status==2}}'>
                                                                <view class='cancel' data-index='{{index}}' catchtap='alert_send_goods' data-ordersn='{{cell.order_sn}}'>提醒发货</view>
                                                        </view>
                                                        <view wx:elif='{{cell.status==3}}'>
                                                                <view class='cancel' data-index='{{index}}' catchtap='confirm_goods' data-id='{{cell.id}}'>确认收货</view>
                                                        </view>
                                                        <view wx:elif='{{cell.status==4}}'>
                                                                <view class='pay' data-index='{{index}}'>待评价</view>
                                                        </view>
                                                        <view wx:elif='{{cell.status==8}}'>
                                                                <view class='money_btn'>
                                                                        <!-- <view class='cancel' data-index='{{index}}'>已取消</view> -->
                                                                        <view class='pay' data-index='{{index}}' catchtap='clearOrder' data-id='{{cell.id}}'>删除订单</view>
                                                                </view>

                                                        </view>
                                                </view>
                                        </view>
                                </view>
                        </view>
                         <view class='gogogo' wx:if='{{orderList.length==0}}'>
                        <image src='../../imgs/no.png'></image>
                <view>您暂时没有订单哦</view>
        </view>
                </view>
        </block>
        <block wx:if='{{navId==2}}'>
                <view class='content_item'>
                        <view wx:if='{{orderList.length>0}}'>
                                <view class='item_list' wx:for='{{orderList}}' bindtap='jump_unpay_detail' data-id='{{cell.id}}' wx:for-index='index' wx:key='{{index}}' wx:for-item='cell' wx:if='{{cell.status==1}}'>
                                        <view class='list_title'>
                                                <view class='title'>
                                                        <view>HI 鲜生</view>
                                                        <view class='auto_cancle' wx:if='{{cell.status==1&&cell.is_cancel}}'>自动取消 {{cell.hours}}时{{cell.minutes}}分 </view>
                                                </view>
                                                <view class='wait_pay'>等待买家付款</view>
                                        </view>
                                        <view class='list_content'>
                                                <view class='content_img' wx:for="{{cell.more.thumbnail}}" wx:for-item='item' wx:key='{{item}}' wx:for-index='index'>
                                                        <image src='{{item}}'></image>
                                                </view>
                                        </view>
                                        <view class='order_detail'>
                                                <view>共计{{cell.goods_num}}件商品
                                                        <text wx:if='{{cell.yunfei>0}}'> (运费¥{{cell.yunfei}})</text>
                                                </view>
                                                <view class='time'>{{cell.create_time}}</view>
                                        </view>
                                        <view class='order_money'>
                                                <view>实付:¥
                                                        <text class='money_num'>{{cell.real_price}}</text>
                                                </view>
                                                <view class='money_btn'>
                                                        <view class='cancel' catchtap='cancel_order' data-index='{{index}}' data-orderid='{{cell.id}}'>取消订单</view>
                                                        <view class='pay' catchtap='go_pay' data-index='{{index}}'>付款</view>
                                                </view>
                                        </view>
                                </view>
                        </view>
                        <view class='gogogo' wx:if='{{orderList.length==0}}'>
                        <image src='../../imgs/no.png'></image>
                <view>您暂时没有待付款的订单哦</view>
        </view>
                </view>
        </block>
        <block wx:if='{{navId==3}}'>
                <view class='content_item'>
                        <view wx:if='{{orderList.length>0}}'>
                                <view class='item_list' wx:for='{{orderList}}' wx:for-index='index' data-id='{{cell.id}}' data-status='{{cell.status}}' bindtap='jump_order_detail' wx:key='{{index}}' wx:for-item='cell' wx:if='{{cell.status==2}}'>
                                        <view class='list_title'>
                                                <view class='title'>
                                                        <view>HI 鲜生</view>
                                                </view>
                                        </view>
                                        <view class='list_content'>
                                                <view class='content_img' wx:for="{{cell.more.thumbnail}}" wx:for-item='item' wx:key='{{item}}'>
                                                        <image src='{{item}}'></image>
                                                </view>
                                        </view>
                                        <view class='order_detail'>
                                                <view>共计{{cell.goods_num}}件商品(运费¥{{cell.yunfei}})</view>
                                                <view class='time'>{{cell.create_time}}</view>
                                        </view>
                                        <view class='order_money'>
                                                <view>实付:¥
                                                        <text class='money_num'>{{cell.real_price}}</text>
                                                </view>
                                                <view class='money_btn'>
                                                        <view class='cancel' catchtap='alert_send_goods' data-ordersn='{{cell.order_sn}}'>提醒发货</view>
                                                </view>
                                        </view>
                                </view>
                        </view>
                       <view class='gogogo' wx:if='{{orderList.length==0}}'>
                        <image src='../../imgs/no.png'></image>
                <view>您暂时没有待发货的订单哦</view>
        </view>
                </view>
        </block>
        <block wx:if='{{navId==4}}'>
                <view class='content_item'>
                        <view wx:if='{{orderList.length>0}}'>
                                <view class='item_list' wx:for='{{orderList}}' bindtap='unship' data-id='{{cell.id}}' wx:for-index='index' wx:key='{{index}}' wx:for-item='cell' wx:if='{{cell.status==3}}'>
                                        <view class='list_title'>
                                                <view class='title'>
                                                        <view>HI 鲜生</view>
                                                </view>
                                        </view>
                                        <view class='list_content'>
                                                <view class='content_img' wx:for="{{cell.more.thumbnail}}" wx:for-item='item' wx:key='{{item}}'>
                                                        <image src='{{item}}'></image>
                                                </view>
                                        </view>
                                        <view class='order_detail'>
                                                <view>共计{{cell.goods_num}}件商品(运费¥{{cell.yunfei}})</view>
                                                <view class='time'>{{cell.create_time}}</view>
                                        </view>
                                        <view class='order_money'>
                                                <view>实付:¥
                                                        <text class='money_num'>{{cell.real_price}}</text>
                                                </view>
                                                <view class='money_btn'>
                                                        <view class='cancel' catchtap='confirm_goods' data-id='{{cell.id}}'>确认收货</view>
                                                </view>
                                        </view>
                                </view>
                        </view>
                       <view class='gogogo' wx:if='{{orderList.length==0}}'>
                        <image src='../../imgs/no.png'></image>
                <view>您暂时没有待收货的订单哦</view>
        </view>
                </view>
        </block>
        <block wx:if='{{navId==5}}'>
                <view class='content_item'>
                        <view wx:if='{{orderList.length>0}}'>
                                <view class='item_list' wx:for='{{orderList}}' bindtap='uncomment' data-id='{{cell.id}}' wx:for-index='index' wx:key='{{index}}' wx:for-item='cell' wx:if='{{cell.status==4}}'>
                                        <view class='list_title'>
                                                <view class='title'>
                                                        <view>HI 鲜生</view>
                                                </view>
                                        </view>
                                        <view class='list_content'>
                                                <view class='content_img' wx:for="{{cell.more.thumbnail}}" wx:for-item='item' wx:key='{{item}}'>
                                                        <image src='{{item}}'></image>
                                                </view>
                                        </view>
                                        <view class='order_detail'>
                                                <view>共计{{cell.goods_num}}件商品(运费¥{{cell.yunfei}})</view>
                                                <view class='time'>{{cell.create_time}}</view>
                                        </view>
                                        <view class='order_money'>
                                                <view>实付:¥
                                                        <text class='money_num'>{{cell.real_price}}</text>
                                                </view>
                                                <view class='money_btn'>
                                                        <view class='cancel' data-id='{{cell.id}}' catchtap='goComments'>评价</view>
                                                </view>
                                        </view>
                                </view>
                        </view>
                        <view class='gogogo' wx:if='{{orderList.length==0}}'>
                        <image src='../../imgs/no.png'></image>
                <view>您暂时没有待评价的订单哦</view>
        </view>
                </view>
        </block>
        <block wx:if='{{navId==6}}'>
                <view class='content_item'>
                        <view wx:if='{{orderList.length>0}}'>
                                <view class='item_list' wx:for='{{orderList}}' bindtap='afterMarket' data-id='{{cell.id}}' wx:for-index='index' wx:key='{{index}}' wx:for-item='cell' wx:if='{{cell.status==5}}'>
                                        <view class='list_title'>
                                                <view class='title'>
                                                        <view>HI 鲜生</view>
                                                </view>
                                        </view>
                                        <view class='list_content'>
                                                <view class='content_img' wx:for="{{cell.more.thumbnail}}" wx:for-item='item' wx:key='{{item}}'>
                                                        <image src='{{item}}'></image>
                                                </view>
                                        </view>
                                        <view class='order_detail'>
                                                <view>共计{{cell.goods_num}}件商品(运费¥{{cell.yunfei}})</view>
                                                <view class='time'>{{cell.create_time}}</view>
                                        </view>
                                        <view class='order_money'>
                                                <view>实付:¥
                                                        <text class='money_num'>{{cell.real_price}}</text>
                                                </view>
                                                <view class='money_btn'>
                                                        <view class='cancel' catchtap='after_order' data-orderid='{{cell.id}}'>申请售后</view>
                                                        <!-- <view class='pay' bindtap='go_pay' data-index='{{index}}'>付款</view> -->
                                                </view>
                                        </view>

                                </view>
                        </view>
                        <view class='gogogo' wx:if='{{orderList.length==0}}'>
                        <image src='../../imgs/no.png'></image>
                <view>您暂时没有完成的订单哦</view>
        </view>
                </view>
        </block>
</view>
<!-- 订单取消 -->  
<view class='cancelOrder_mask' wx:if='{{cancel_order}}' bindtap='cacel_unpay_orderList'>
        <view class='cancelOrder_diceng'>
                <view class='cancel_one'>取消原因</view>
                <view class='cancel_two'>
                        <view class='cancel_two_item {{cancel_id===item.id?"active":""}}' wx:for='{{cancel_reason}}' wx:key='{{item.id}}' data-id='{{item.id}}' data-value='{{item.name}}' catchtap='changeReasonId'>{{item.name}}</view>
                </view>
                <view class='cancel_three' catchtap='close_cancel_mask'>我知道了</view>
        </view>
</view>
<!-- 申请售后 -->
<view class='cancelOrder_mask' wx:if='{{after_order}}'>
        <view class='cancelOrder_diceng'>
                <view class='cancel_one'>取消原因</view>
                <view class='cancel_two'>
                        <view class='cancel_two_item {{cancel_id===item.id?"active":""}}' wx:for='{{cancel_reason}}' wx:key='{{item.id}}' data-id='{{item.id}}' data-value='{{item.name}}' bindtap='changeReasonId'>{{item.name}}</view>
                </view>
                <view class='cancel_three' bindtap='close_cancel_masks'>我知道了</view>
        </view>
</view>