e7874705
liuqimichale
init
|
1
2
3
|
import Vue from 'vue'
import Router from 'vue-router'
import plateNumber from '@/components/plateNumber'
|
9393381b
liuqimichale
payType
|
4
|
// import parkRecord from '@/components/parkRecord'
|
5478746a
liuqimichale
赤峰动态码
|
5
|
import dynCodePay from '@/components/dynCodePay'
|
b67c269c
liuqimichale
入场码
|
6
|
import parkEnter from '@/components/parkEnter'
|
e7874705
liuqimichale
init
|
7
8
9
|
Vue.use(Router)
|
b67c269c
liuqimichale
入场码
|
10
|
const router = new Router({
|
e7874705
liuqimichale
init
|
11
12
13
|
routes: [
{
path: '/',
|
26e543b8
liuqimichale
ajax 统一封装
|
14
|
redirect: {
|
bbee10ca
刘淇
通道码
|
15
|
name: 'plateNumber'
|
26e543b8
liuqimichale
ajax 统一封装
|
16
|
}
|
e7874705
liuqimichale
init
|
17
|
},
|
5478746a
liuqimichale
赤峰动态码
|
18
19
20
21
22
|
// {
// path: '/navigation',
// name: 'navigation',
// component: navigation
// },
|
b137bb0e
liuqimichale
扫码后 车牌是否 咨询页面
|
23
|
{
|
b67c269c
liuqimichale
入场码
|
24
25
26
27
28
29
30
31
|
path: '/parkEnter',
name: 'parkEnter',
component: parkEnter,
meta: {
title: '入场码'
}
},
{
|
e7874705
liuqimichale
init
|
32
33
|
path: '/plateNumber',
name: 'plateNumber',
|
b67c269c
liuqimichale
入场码
|
34
35
36
37
|
component: plateNumber,
meta: {
title: '静态码'
}
|
e7874705
liuqimichale
init
|
38
|
},
|
2c31a41c
liuqimichale
赤峰静态码测试完成
|
39
40
41
42
43
44
45
46
47
48
|
// {
// path: '/parkRecord',
// name: 'parkRecord',
// component: parkRecord
// },
// {
// path: '/orderPay',
// name: 'orderPay',
// component: () => import("@/components/orderPay.vue")
// },
|
455431ac
liuqimichale
欠费缴纳--费用支付
|
49
|
|
d29bf602
liuqimichale
赤峰测试环境 农行支付
|
50
51
52
53
54
55
56
|
{
path: '/payResult',
name: 'payResult',
component: () => import("@/components/payResult.vue")
},
|
8910837d
liuqimichale
赤峰动态二维码
|
57
58
59
|
{
path: '/dynCodePay',
name: 'dynCodePay',
|
b67c269c
liuqimichale
入场码
|
60
61
62
63
|
component: () => import("@/components/dynCodePay.vue"),
meta: {
title: '动态码'
}
|
8910837d
liuqimichale
赤峰动态二维码
|
64
65
|
},
|
2c31a41c
liuqimichale
赤峰静态码测试完成
|
66
67
68
69
70
71
|
{
path: '/pay',
name: 'pay',
component: () => import("@/components/pay.vue")
},
|
402b26c9
liuqimichale
西城 静态码
|
72
73
74
75
76
|
{
path: '/noPass',
name: 'noPass',
component: () => import("@/components/noPass.vue")
},
|
d29bf602
liuqimichale
赤峰测试环境 农行支付
|
77
|
|
e7874705
liuqimichale
init
|
78
79
80
|
]
})
|
b67c269c
liuqimichale
入场码
|
81
82
83
84
85
86
87
88
89
90
|
router.beforeEach((to, from, next) => {
/* 路由发生变化修改页面title */
if (to.meta.title) {
document.title = to.meta.title
}
next()
})
export default router
|