mine.js
12.1 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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
export const ToolList = Object.freeze([{
text: "我的地址",
icon: "myAddress",
url: "/packageMine/pages/address/index/index",
}, ]);
export const OrderStatusEnum = {
ALL: "0",
PAY_PENDING: "10000", //待支付
WAIT_DELIVER: "10001", //待发货
WAIT_RECEIVE: "10002", //待收货
COMPLETED: "10003", //已完成
AFTER_SALE: "10004", //售后 (没有这个状态 显示用)
AFTER_SALE_PENDING_REVIEW: "10005", //售后中 -待审核
AFTER_SALE_WAIT_RECEIVE: "10006", //售后中 -待收货(审核通过)
AFTER_SALE_REJECTED: "10007", //售后审核不通过
AFTER_SALE_REFUNDED: "10008", //已退款
AFTER_SALE_REFUNDED_FAILED: "10009", //退款失败
AFTER_SALE_REVEAL: "10010" //所有其他状态
};
export const OrderStatusTypes = {
QUERY_TAB: "QUERY_TAB", // 查询订单列表TAB项
MY_ORDER: "MY_ORDER", // 我的 页面 我的订单 显示的项目
};
export const GoodsSource = {
YZH: 1, //云中鹤订单
SELF: 2, //自营订单
};
export const OrderActionButtons = {
AFTER_SALE: {
text: "售后",
type: "cancelOrder",
class: "btn",
handler: "onAfterSale",
},
CONFIRM_RECEIVE: {
text: "确认收货",
type: "confirmReceive",
class: "btn",
handler: "onConfirmReceive",
},
SHOW_EXPRESS: {
text: "查看物流",
type: "showExpress",
class: "btn",
handler: "onShowExpress",
},
AFTER_SALE_DETAIL: {
text: "售后详情",
type: "after_sale_detail",
class: "btn",
handler: "onAfterSaleDetail",
},
AFTER_SALE_REJECTED: {
text: "审核不通过",
type: "after_sale_rejected",
class: "btn",
handler: "onAfterSaleDetail",
},
};
export const ORDER_STATUS = {
[OrderStatusEnum.ALL]: {
text: "全部",
status: OrderStatusEnum.ALL,
index: 0, // 查询订单列表TAB高亮的索引
requestType: 0, // 查询订单列表TAB查询参数
type: OrderStatusTypes.QUERY_TAB, // 查询订单列表显示的TAB项
},
[OrderStatusEnum.PAY_PENDING]: {
text: "待支付",
image: "noPay",
status: OrderStatusEnum.PAY_PENDING,
index: 1, // 查询订单列表TAB高亮的索引
requestType: 2, // 查询订单列表TAB查询参数
buttons: null,
type: OrderStatusTypes.MY_ORDER, //我的 页面 我的订单 显示的项目
},
[OrderStatusEnum.WAIT_DELIVER]: {
text: "待发货",
image: "noTakeCommodity",
status: OrderStatusEnum.WAIT_DELIVER,
index: 2, // 查询订单列表TAB高亮的索引
requestType: 6, // 查询订单列表TAB查询参数
type: OrderStatusTypes.MY_ORDER, //我的 页面 我的订单 显示的项目
buttons: {
[GoodsSource.SELF]: [ //自营商品 在商品列表对应的按钮
OrderActionButtons.CONFIRM_RECEIVE
],
},
},
[OrderStatusEnum.WAIT_RECEIVE]: {
text: "待收货",
image: "takeCommodity",
status: 1008,
index: 3, // 查询订单列表TAB高亮的索引
requestType: 1, // 查询订单列表TAB查询参数
type: OrderStatusTypes.MY_ORDER, //我的 页面 我的订单 显示的项目
buttons: {
[GoodsSource.SELF]: [ //自营商品 在商品列表对应的按钮
OrderActionButtons.CONFIRM_RECEIVE,
// OrderActionButtons.SHOW_EXPRESS,
],
[GoodsSource.YZH]: [ //云中鹤商品 在商品列表对应的按钮
OrderActionButtons.CONFIRM_RECEIVE,
// OrderActionButtons.SHOW_EXPRESS,
],
},
},
[OrderStatusEnum.COMPLETED]: {
text: "已完成",
status: OrderStatusEnum.COMPLETED,
index: 4, // 查询订单列表TAB高亮的索引
requestType: 4, // 查询订单列表TAB查询参数
type: OrderStatusTypes.QUERY_TAB, // 查询订单列表显示的TAB项
buttons: {
[GoodsSource.SELF]: [ //自营商品 在商品列表对应的按钮
// OrderActionButtons.SHOW_EXPRESS,
OrderActionButtons.AFTER_SALE,
],
[GoodsSource.YZH]: [ //云中鹤商品 在商品列表对应的按钮
// OrderActionButtons.SHOW_EXPRESS,
OrderActionButtons.AFTER_SALE,
],
},
},
[OrderStatusEnum.AFTER_SALE]: {
text: "退货/售后",
my_order_text: "售后",
image: "aftermarket",
status: OrderStatusEnum.AFTER_SALE,
index: 5, // 查询订单列表TAB高亮的索引
requestType: 0, // 查询订单列表TAB查询参数
buttons: null,
type: OrderStatusTypes.MY_ORDER, //我的 页面 我的订单 显示的项目
},
[OrderStatusEnum.AFTER_SALE_PENDING_REVIEW]: {
text: "售后中",
status: OrderStatusEnum.AFTER_SALE_PENDING_REVIEW,
tips: "您可以尝试再次提交退款申请", //售后详情提示语
image: "mine/order/error.png", //售后详情页面显示的状态图标
buttons: {
[GoodsSource.SELF]: [OrderActionButtons.AFTER_SALE_DETAIL], //自营商品 在商品列表对应的按钮
[GoodsSource.YZH]: [OrderActionButtons.AFTER_SALE_DETAIL], //云中鹤商品 在商品列表对应的按钮
},
},
[OrderStatusEnum.AFTER_SALE_WAIT_RECEIVE]: {
text: "售后中",
status: OrderStatusEnum.AFTER_SALE_WAIT_RECEIVE,
tips: "您可以尝试再次提交退款申请", //售后详情提示语
image: "mine/order/error.png", //售后详情页面显示的状态图标
buttons: {
[GoodsSource.SELF]: [OrderActionButtons.AFTER_SALE_DETAIL], //自营商品 在商品列表对应的按钮
[GoodsSource.YZH]: [OrderActionButtons.AFTER_SALE_DETAIL], //云中鹤商品 在商品列表对应的按钮
},
},
[OrderStatusEnum.AFTER_SALE_REJECTED]: {
text: "审核不通过",
status: OrderStatusEnum.AFTER_SALE_REJECTED,
tips: "您可以尝试再次提交退款申请", //售后详情提示语
image: "mine/order/error.png", //售后详情页面显示的状态图标
buttons: {
[GoodsSource.SELF]: [OrderActionButtons.AFTER_SALE, OrderActionButtons.AFTER_SALE_REJECTED], //自营商品 在商品列表对应的按钮
[GoodsSource.YZH]: [OrderActionButtons.AFTER_SALE, OrderActionButtons.AFTER_SALE_REJECTED], //云中鹤商品 在商品列表对应的按钮
},
},
[OrderStatusEnum.AFTER_SALE_REFUNDED]: {
text: "已退款",
status: OrderStatusEnum.AFTER_SALE_REFUNDED,
tips: "您可以尝试再次提交退款申请", //售后详情提示语
image: "mine/order/error.png", //售后详情页面显示的状态图标
buttons: {
[GoodsSource.SELF]: [OrderActionButtons.AFTER_SALE_DETAIL], //自营商品 在商品列表对应的按钮
[GoodsSource.YZH]: [OrderActionButtons.AFTER_SALE_DETAIL], //云中鹤商品 在商品列表对应的按钮
},
},
[OrderStatusEnum.AFTER_SALE_REFUNDED_FAILED]: {
text: "退款失败",
status: OrderStatusEnum.AFTER_SALE_REFUNDED_FAILED,
tips: "您可以尝试再次提交退款申请", //售后详情提示语
image: "mine/order/error.png", //售后详情页面显示的状态图标
buttons: {
[GoodsSource.SELF]: [OrderActionButtons.AFTER_SALE_DETAIL], //自营商品 在商品列表对应的按钮
[GoodsSource.YZH]: [OrderActionButtons.AFTER_SALE_DETAIL], //云中鹤商品 在商品列表对应的按钮
},
},
[OrderStatusEnum.AFTER_SALE_REVEAL]: {
text: "售后处理中",
status: OrderStatusEnum.AFTER_SALE_REVEAL,
tips: "您可以尝试再次提交退款申请", //售后详情提示语
image: "mine/order/error.png", //售后详情页面显示的状态图标
buttons: {
[GoodsSource.SELF]: [OrderActionButtons.AFTER_SALE_DETAIL], //自营商品 在商品列表对应的按钮
[GoodsSource.YZH]: [OrderActionButtons.AFTER_SALE_DETAIL], //云中鹤商品 在商品列表对应的按钮
},
},
};
export const RefundReason = [{
text: "商品无货",
value: 1001,
},
{
text: "发货时间问题",
value: 1002,
},
{
text: "不想要了/不喜欢",
value: 1003,
},
{
text: "商品信息填写错误",
value: 1004,
},
{
text: "地址信息填写错误",
value: 1005,
},
{
text: "商品降价",
value: 1006,
},
{
text: "其他",
value: 1007,
},
{
text: "尺码不合适",
value: 1008,
},
{
text: "无理由退货",
value: 1009,
},
{
text: "发票问题",
value: 1010,
},
{
text: "商品与页面描述不符",
value: 1011,
},
{
text: "发错货",
value: 1012,
},
{
text: "质量问题",
value: 1013,
},
{
text: "买错尺码/颜色/型号",
value: 1014,
},
{
text: "商品缺少或破损",
value: 1015,
},
{
text: "买错了",
value: 1016,
},
];
export const RefundReasonKeyList = {
1001: "商品无货",
1002: "发货时间问题",
1003: "不想要了/不喜欢",
1004: "商品信息填写错误",
1005: "地址信息填写错误",
1006: "商品降价",
1007: "其他",
1008: "尺码不合适",
1009: "无理由退货",
1010: "发票问题",
1011: "商品与页面描述不符",
1012: "发错货",
1013: "质量问题",
1014: "买错尺码/颜色/型号",
1015: "商品缺少或破损",
1016: "买错了"
};
export const RefundStatus = [{
status: 1,
title: "待处理",
tips: "等待平台处理",
image: "status/loading.png",
},
{
status: 2,
title: "待发货",
tips: "等待平台处理",
image: "status/loading.png",
},
{
status: 3,
title: "待确认收到退货",
tips: "等待平台处理",
image: "status/loading.png",
},
{
status: 4,
title: "退款中",
tips: "等待平台处理",
image: "status/loading.png",
},
{
status: 5,
title: "已退款",
tips: "钱款已退回至原账户",
image: "status/success.png",
},
{
status: 6,
title: "退款失败",
tips: "您可以尝试再次提交退款申请",
image: "status/fail.png",
},
{
status: 7,
title: "审核不通过",
tips: "您可以尝试再次提交退款申请",
image: "status/fail.png",
},
];
export const ExpressList = [{
value: 0,
text: "圆通快递",
},
{
value: 1,
text: "顺丰快递",
},
{
value: 2,
text: "中通快递",
},
{
value: 3,
text: "韵达快递",
},
{
value: 4,
text: "京东快递",
},
{
value: 5,
text: "百世快递",
},
{
value: 6,
text: "德邦快递",
},
{
value: 7,
text: "其他",
},
];
export const AfterSaleObj = [{
title: "退款原因",
key: "returnReasonType",
enum: RefundReasonKeyList
},
{
title: "退款金额",
key: "refundPoints",
unit: '积分'
},
{
title: "退款数量",
key: "applyQty",
unit: '件'
},
{
title: "售后编号",
key: "tparReturnOrderCode",
},
{
title: "申请时间",
key: "createdDate",
},
{
title: "申请描述",
key: "returnContent",
},
];
export const AddressInfo = [{
title: "地址",
key: "address",
},
{
title: "收货人",
key: "receiver",
},
{
title: "联系电话",
key: "phone",
},
];
export const OrderStatus = [{
title: "待付款",
value: "1",
image: "mine/order-wait.png",
tips: "待付款",
},
{
title: "已支付",
value: "2",
image: "mine/order-receiving.png",
tips: "已支付",
},
{
title: "已关闭",
value: "3",
image: "mine/order-close.png",
tips: "已关闭",
},
{
title: "已发货",
value: "4",
image: "mine/order-receiving.png",
tips: "已发货",
},
{
title: "已收货",
value: "5",
image: "mine/order-success.png",
tips: "已收货",
},
{
title: "待发货",
value: "6",
image: "mine/order-wait.png",
tips: "待发货",
},
{
title: "待安装",
value: "7",
image: "mine/order-wait.png",
tips: "待安装",
},
{
title: "已安装",
value: "8",
image: "mine/order-success.png",
tips: "已安装",
},
{
title: "售后中",
value: "9",
image: "mine/order-wait.png",
tips: "售后中",
},
{
title: "售后完成",
value: "10",
image: "mine/order-close.png",
tips: "售后完成",
},
];