|
@@ -126,7 +126,9 @@ const mineRoutes = [
|
|
name: 'payCheck',
|
|
name: 'payCheck',
|
|
meta: {
|
|
meta: {
|
|
title: '充值',
|
|
title: '充值',
|
|
- isTab: true
|
|
|
|
|
|
+ isTab: true,
|
|
|
|
+ isUseCache: false,
|
|
|
|
+ keepAlive: true
|
|
}
|
|
}
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -135,13 +137,46 @@ const mineRoutes = [
|
|
name: 'payWallet',
|
|
name: 'payWallet',
|
|
meta: {
|
|
meta: {
|
|
title: '我的钱包',
|
|
title: '我的钱包',
|
|
- isTab: true
|
|
|
|
|
|
+ isTab: true,
|
|
|
|
+ isUseCache: false,
|
|
|
|
+ keepAlive: true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
]
|
|
|
|
|
|
|
|
+// 礼品商城
|
|
|
|
+const mallRoutes = [
|
|
|
|
+ {
|
|
|
|
+ path: '/mall',
|
|
|
|
+ component: _import('modules/mall/index'),
|
|
|
|
+ name: 'mall',
|
|
|
|
+ meta: {
|
|
|
|
+ title: '礼品商城',
|
|
|
|
+ isUseCache: false
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ path: '/mall/goods-detail/:goodsId',
|
|
|
|
+ component: _import('modules/mall/goods-detail'),
|
|
|
|
+ name: 'goodsDetail',
|
|
|
|
+ meta: {
|
|
|
|
+ title: '商品详情',
|
|
|
|
+ isUseCache: false
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ path: '/mall/goods-order/:goodsId',
|
|
|
|
+ component: _import('modules/mall/goods-order'),
|
|
|
|
+ name: 'goodsDetail',
|
|
|
|
+ meta: {
|
|
|
|
+ title: '确认订单',
|
|
|
|
+ isUseCache: false
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+]
|
|
|
|
+
|
|
// 主入口路由(需嵌套上左右整体布局)
|
|
// 主入口路由(需嵌套上左右整体布局)
|
|
const mainRoutes = {
|
|
const mainRoutes = {
|
|
path: '/',
|
|
path: '/',
|
|
@@ -158,7 +193,8 @@ const mainRoutes = {
|
|
{ path: '/register', component: _import('modules/account/register'), name: 'register', meta: { title: '注册' } },
|
|
{ path: '/register', component: _import('modules/account/register'), name: 'register', meta: { title: '注册' } },
|
|
{ path: '/home', component: _import('common/home'), name: 'home', meta: { title: '首页', isTab: true } },
|
|
{ path: '/home', component: _import('common/home'), name: 'home', meta: { title: '首页', isTab: true } },
|
|
...toolsRoutes,
|
|
...toolsRoutes,
|
|
- ...mineRoutes
|
|
|
|
|
|
+ ...mineRoutes,
|
|
|
|
+ ...mallRoutes
|
|
]
|
|
]
|
|
}
|
|
}
|
|
|
|
|