index.js
2.53 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
import PriceChange from './price-change';
import OrderList from './order-list';
import OrderDetail from './order-detail';
export default [
{
name: 'OrderSellConfirm',
path: '/xianyu/order/sellconfirm.html',
component: () => import(/* webpackChunkName: "order" */ './seller-confirm'),
props: route => ({
productId: route.query.productId,
storageId: route.query.storageId,
}),
},
{
name: 'OrderPay',
path: '/xianyu/order/pay.html',
component: () => import(/* webpackChunkName: "order" */ './pay'),
props: route => ({
orderCode: route.query.orderCode,
payParams: route.query.payParams,
extra: route.query.extra,
price: route.query.price
}),
},
{
name: 'OrderBuyConfirm',
path: '/xianyu/order/buyconfirm.html',
component: () => import(/* webpackChunkName: "order" */ './buyer-confirm'),
props: route => ({
productId: route.query.productId,
storageId: route.query.storageId,
}),
},
{
name: 'SellPayOk',
path: '/xianyu/order/sellpayok.html',
component: () => import(/* webpackChunkName: "order" */ './sell-pay-ok'),
props: route => ({
orderCode: route.query.orderCode,
}),
},
{
name: 'BuyPayOk',
path: '/xianyu/order/buypayok.html',
component: () => import(/* webpackChunkName: "order" */ './buy-pay-ok'),
props: route => ({
orderCode: route.query.orderCode,
productId: route.query.productId,
}),
},
{
name: 'buyerAskOrder', // 买家求购确认
path: '/xianyu/order/buyeraskorder.html',
component: () => import('./buyer-ask-order'),
props: route => ({
storageId: route.query.storageId,
}),
},
{
name: 'sellAskOrder', // 卖家求购确认
path: '/xianyu/order/selleraskorder.html',
component: () => import('./seller-ask-order'),
props: route => ({
skup: route.query.skup,
price: route.query.price,
}),
},
// 物流信息
// code: 订单编码
{
name: 'orderLogisticsInfo',
path: '/xianyu/:owner/order/logistics/:code',
component: () => import('./order-logistics-info'),
},
{
name: 'order.deliver',
path: '/xianyu/order/deliver/:skup/:code',
component: () =>
import(/* webpackChunkName: "order.deliver" */ './deliver'),
},
{
name: 'deliverBackAddress',
path: '/xianyu/detail/deliver/back/address/:code',
component: () =>
import(
/* webpackChunkName: "deliverBackAddress" */ './delivery-back-address.vue'
),
},
...PriceChange,
...OrderList,
...OrderDetail,
];