orderList.wxml
6.17 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<wxs src="../../index.wxs" module="filter" />
<view class="main">
<view class="to-box">
<view class="search-box">
<view class="search-input">
<image src="/images/search.png" class="search-icon" />
<input
type="text"
placeholder="客户姓名/商品名称/订单编号/手机号"
class="input"
value="{{ keyword }}"
placeholder-class="input-placeholder"
bindinput="input"
bindconfirm="search"
/>
<block wx:if="{{ keyword }}">
<image src="/images/clear.png" class="search-clear" bindtap="clear" />
</block>
</view>
</view>
</view>
<!-- 订单状态 1 待跟进, 2 不升级, 3 待支付,4 已支付,6 已评价 , 9 已撤销 -->
<block wx:if="{{ flag }}">
<scroll-view
scroll-y
enable-back-to-top
refresher-enabled="{{ true }}"
bindrefresherrefresh="search"
bindscrolltolower="scrollonReachBottom"
bindscroll="onPageScroll"
class="list"
style="height:calc(100vh - var(--fontSize124));"
refresher-threshold="104"
refresher-triggered="{{ triggered }}"
>
<block wx:if="{{ list.length > 0 }}">
<block wx:for="{{ list }}" wx:key="index">
<block wx:for="{{ item }}" wx:for-item="li" wx:for-index="ind" wx:key="ind">
<view
style="{{ li.txtStyle }}"
class="touch-item {{ li.isTouchMove ? 'touch-move-active' : '' }}"
data-ind="{{ ind }}"
data-index="{{ index }}"
>
<!-- 广汇订单出库成功 -->
<image wx:if="{{ li.outboundStatus == 4 }}" class="stockIcon" src="../../images/stockIcon.png" />
<view
class="item content"
data-ind="{{ ind }}"
data-index="{{ index }}"
data-name="{{ li.status == 3 ? 'confirmOrder' : li.status == 1 ? 'createOrder' : 'orderDetail' }}"
data-item="{{ li }}"
>
<view class="status text-center" style="color:{{ li.statuscolor }};background-color:{{li.statusbackground }};">
<block wx:if="{{ li.status == 1||li.status == 3 }}">
<block wx:if="{{ status[li.status].background }}">
<view class="arc y-center">
<view class="outside box-center" style="background-color:{{ status[li.status].background }};" />
<view class="inside box-center" style="background-color:{{ status[li.status].color }};" />
</view>
</block>
</block>
{{li.statusText }}
</view>
<view class="name">
<view class="name-text text-hide">{{li.customer.customerName}}</view>
<image
class="name-sex-icon"
src="{{ IMG_URL}}{{li.customer.customerSex == 1 ? 'miniProgram/icon-man.png' : 'miniProgram/icon-woman.png' }}"
mode=""
/>
</view>
<view class="goods-list" style="padding-bottom:{{ li.subOrderList.length<1?0:'' }}">
<block wx:if="{{ li.subOrderList.length }}">
<block wx:for="{{ li.subOrderList }}" wx:key="sindex" wx:for-item="i" wx:for-index="sindex">
<view class="goods" wx:if="{{ li.showAllGoodsListFlag ? true : sindex < 2 }}">
<view class="goods-name text-hide">
{{filter.replaceItemText(i.upgradeGoodsAlias) ||filter.replaceItemText(i.upgradeGoodsName) || ''}}
</view>
<view class="goods-price">
¥
<text>{{i.totalPrice || 0}}</text>
</view>
</view>
</block>
<block wx:if="{{ li.subOrderList.length > 2 }}">
<view class="goods-more">
<text catch:tap="showAllGoodsList" data-item="{{ li }}">{{li.showAllGoodsListFlag ? '收起' : '查看全部'}}</text>
(共{{li.subOrderList.length}}件)
</view>
</block>
</block>
</view>
<view class="order-list">
<block wx:for="{{ orderObj }}" wx:key="sindex" wx:for-index="sindex" wx:for-item="i">
<view class="order">
<view class="order-label">{{i.label}}</view>
<view class="order-value">
<block wx:if="{{ i.arr }}">
<block wx:if="{{ li[i.arr[1]] }}">
<block wx:for="{{ i.arr }}" wx:key="sindex" wx:for-index="arr_index" wx:for-item="k">
<view class="order-value-item text-hide">
<block wx:if="{{ arr_index == 1 }}">
<text class="split">|</text>
</block>
{{li[k]}}
</view>
</block>
</block>
</block>
<block wx:else>{{li[i.key] || ''}}</block>
</view>
</view>
</block>
</view>
<view class="order-payType" wx:if="{{ li.selectPayType || li.selectPayType == 0 }}">
<view class="payType">
<view class="payType-label">支付方式</view>
<view class="payType-value">
{{payType[li['selectPayType']]}}
<image wx:if="{{ li.selectPayType == 1 }}" class="payType-image" src="{{ IMG_URL }}miniProgram/wxPay.png" mode="" />
<image wx:if="{{ li.selectPayType == 2 }}" class="payType-image" src="{{ IMG_URL }}miniProgram/store_pay.png" mode="" />
<image wx:if="{{ li.selectPayType == 3 }}" class="payType-image" src="{{ IMG_URL }}miniProgram/posPay.png" mode="" />
</view>
</view>
<block wx:if="{{ li.status != 1 && li.selectPayType != 0 && li.total_price != 0 }}">
<view class="order-price">
<view class="order-price-label">实付金额</view>
<view class="price">
<text class="unit">¥</text>
{{li.totalPrice}}
</view>
</view>
</block>
</view>
<view class="item-footer">
<view wx:if="{{ li.orderStatus != '4' && li.orderStatus!=11&& li.orderStatus!=9 }}" class="btn_class">
<block wx:if="{{ li.orderStatus != '0' }}">
<view class="order-btn default-btn padding_20" bindtap="jumpReception" data-item="{{ li }}">接待记录</view>
</block>
</view>
</view>
</view>
</view>
</block>
</block>
<block wx:if="{{ nothing }}">
<view class="list-nothing">到底了~</view>
</block>
</block>
<block wx:else>
<empty-data />
</block>
</scroll-view>
</block>
</view>