order.wxml
3.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!--pages/order/order.wxml-->
<view class='tab'>
<swiper class='tab-nav' display-multiple-items='5' current="{{status}}" circular='true'>
<swiper-item class='{{status==0?"on":""}}' data-status="0" bindtap='tab'>全部</swiper-item>
<swiper-item class='{{status==1?"on":""}}' data-status="1" bindtap='tab'>已下单</swiper-item>
<swiper-item class='{{status==2?"on":""}}' data-status="2" bindtap='tab'>已取货</swiper-item>
<swiper-item class='{{status==3?"on":""}}' data-status="3" bindtap='tab'>已到达</swiper-item>
<swiper-item class='{{status==4?"on":""}}' data-status="4" bindtap='tab'>到绿色分拣</swiper-item>
<swiper-item class='{{status==5?"on":""}}' data-status="5" bindtap='tab'>已分类</swiper-item>
<swiper-item class='{{status==6?"on":""}}' data-status="6" bindtap='tab'>已再生利用</swiper-item>
</swiper>
<swiper class='tab-box' current="{{status}}" bindchange="eventchange">
<swiper-item wx:for='{{[1,1,1,1,1,1,1]}}' wx:key>
<view wx:if='{{orderlist.length>0}}'>
<scroll-view scroll-y='{{tap}}' class='orderbox'>
<view class='content' wx:for='{{orderlist}}' wx:key bindtap='goorderdetail' id='{{item.id}}'>
<view class='border_titlebox'>
<view>订单编号
<text>{{item.order_number}}</text>
</view>
<view class='title_no'>{{item.statustxt}}</view>
</view>
<view class='order_main'>
<view class='order_item'>
<view class='order_left'>寄件人</view>
<view class='order_comtent'>{{item.sender_name}} {{item.sender_phone}}</view>
</view>
<view class='order_item'>
<view class='order_left'>地 址</view>
<view class='order_comtent'>{{item.sender_province}}{{item.sender_city}}{{item.sender_county}}{{item.sender_address}}</view>
</view>
<view class='order_item'>
<view class='order_left'>预约重量</view>
<view class='order_comtent'>{{item.weight_scope==null?'暂无':item.weight_scope}}</view>
</view>
<view class='order_item'>
<view class='order_left'>预约时间</view>
<view class='order_comtent'>{{item.time==null?'暂无':item.time}}</view>
</view>
<view class='order_item'>
<view class='order_left'>备 注</view>
<view class='order_comtent'>{{item.remark==null?'暂无':item.remark}}</view>
</view>
<view class='btn_box' wx:if='{{item.status==1}}'>
<view class='order_btn' catchtap='exitorder' id='{{item.id}}'>修改订单</view>
<view class='order_nobtn' id='{{item.id}}' data-index='{{item.index}}' catchtap='cancelorder'>取消订单</view>
</view>
<view class='btn_box' wx:if='{{item.status==2}}' >
<view class='order_btn' catchtap='lookwuliu' id='{{item.id}}'>查看物流</view>
</view>
</view>
</view>
</scroll-view>
</view>
<view class='noorder' wx:else>
<view class='nooderimg'>
<image src='https://wxapp.xianghejia.cn/imgs/cele01@2x.png'></image>
</view>
<view class='no_txt'>~让每件衣服延续它的温暖,您还 没有爱心预约订单哦~
</view>
<view class='no_btn' bindtap='goappintment'>点击预约</view>
</view>
</swiper-item>
</swiper>
</view>
<import src="../template/template.wxml"></import>
<view>
<template is="goindex" data></template>
</view>