对接接口
This commit is contained in:
+178
-1
@@ -8,6 +8,155 @@ const routes = [
|
||||
path: '/',
|
||||
name: 'home',
|
||||
component: () => import('../pages/home.vue')
|
||||
},
|
||||
{
|
||||
path: '/search',
|
||||
name: 'search',
|
||||
meta: { title: '搜索' },
|
||||
component: () => import('@/pages/search')
|
||||
},
|
||||
{
|
||||
path: '/temple',
|
||||
name: 'temple',
|
||||
meta: { title: '寺院', navBarBackgroundColor: 'white', showNavBar: false },
|
||||
component: { render: h => h('router-view') },
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
name: 'temple-home',
|
||||
meta: { title: '寺院', navBarBackgroundColor: 'white', showNavBar: false },
|
||||
component: () => import('@/pages/temple-home')
|
||||
},
|
||||
{
|
||||
path: 'list',
|
||||
name: 'temple-list',
|
||||
meta: { title: '寺院列表', navBarBackgroundColor: 'white',showNavBar: false },
|
||||
component: () => import('@/pages/temple-list')
|
||||
},
|
||||
{
|
||||
path: 'detail',
|
||||
name: 'temple-detail',
|
||||
meta: { title: '寺院详情', navBarBackgroundColor: 'white',showNavBar: false },
|
||||
component: () => import('@/pages/temple-detail')
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/buddha-activity',
|
||||
name: 'buddha-activity',
|
||||
meta: { title: '进展活动', navBarBackgroundColor: 'white' },
|
||||
component: () => import('@/pages/buddha-activity')
|
||||
},
|
||||
{
|
||||
path: '/merit-list',
|
||||
name: 'merit-list',
|
||||
meta: { title: '功德无量', navBarBackgroundColor: 'white' },
|
||||
component: () => import('@/pages/merit-list')
|
||||
},
|
||||
{
|
||||
path: '/merit-box',
|
||||
name: 'merit-box',
|
||||
meta: { title: '功德无量', navBarBackgroundColor: 'white', showNavBar: false},
|
||||
component: () => import('@/pages/merit-box')
|
||||
},
|
||||
|
||||
{
|
||||
path: '/monk',
|
||||
name: 'monk',
|
||||
meta: { title: '详情', navBarBackgroundColor: 'white' },
|
||||
component: () => import('@/pages/monk')
|
||||
},
|
||||
{
|
||||
path: '/pay',
|
||||
name: 'pay',
|
||||
meta: { title: '支付', navBarBackgroundColor: 'white' },
|
||||
component: () => import('@/pages/pay')
|
||||
},
|
||||
{
|
||||
path: '/join-cert',
|
||||
name: 'join-cert',
|
||||
meta: { title: '参与成功', navBarBackgroundColor: 'white' },
|
||||
component: () => import('@/pages/join-cert')
|
||||
},
|
||||
{
|
||||
path: '/goods-detail',
|
||||
name: 'goods-detail',
|
||||
meta: { title: '详情', navBarBackgroundColor: 'white' },
|
||||
component: () => import('@/pages/goods-detail')
|
||||
},
|
||||
{
|
||||
path: '/everyday-donation',
|
||||
name: 'everyday-donation',
|
||||
meta: { title: '日行一善', navBarBackgroundColor: 'white', showNavBar: false },
|
||||
component: () => import('@/pages/everyday-donation')
|
||||
},
|
||||
{
|
||||
path: '/user',
|
||||
name: 'user',
|
||||
component: () => import('@/pages/user/root'),
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
name: 'user-home',
|
||||
meta: { title: '个人中心', showNavBar: false },
|
||||
component: () => import('@/pages/user/index')
|
||||
},
|
||||
{
|
||||
path: 'customer',
|
||||
name: 'user-customer',
|
||||
meta: { title: '客服中心' },
|
||||
component: () => import('@/pages/user/customer')
|
||||
},
|
||||
{
|
||||
path: 'temple-station',
|
||||
name: 'user-temple-station',
|
||||
meta: { title: '寺院入驻', showNavBar: false },
|
||||
component: () => import('@/pages/user/temple-station')
|
||||
},
|
||||
{
|
||||
path: 'certificate',
|
||||
name: 'user-certificate',
|
||||
meta: { title: '客服中心' },
|
||||
component: () => import('@/pages/user/certificate')
|
||||
},
|
||||
{
|
||||
path: 'order',
|
||||
name: 'user-order',
|
||||
meta: { title: '我的善缘' },
|
||||
component: () => import('@/pages/user/order')
|
||||
},
|
||||
{
|
||||
path: 'focus',
|
||||
name: 'user-focus',
|
||||
meta: { title: '我的关注' },
|
||||
component: () => import('@/pages/user/focus')
|
||||
},
|
||||
{
|
||||
path: 'approve',
|
||||
name: 'user-approve',
|
||||
meta: { title: '认证法师' },
|
||||
component: () => import('@/pages/user/approve')
|
||||
},
|
||||
{
|
||||
path: 'course',
|
||||
name: 'user-course',
|
||||
meta: { title: '修行' },
|
||||
component: { render: h => h('router-view')},
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
name: 'user-course-list',
|
||||
meta: { title: '修行' },
|
||||
component: () => import('@/pages/user/course'),
|
||||
},
|
||||
{
|
||||
path: 'detail',
|
||||
name: 'user-course-detail',
|
||||
meta: { title: '我的功课' },
|
||||
component: () => import('@/pages/user/course/detail'),
|
||||
}, ]
|
||||
},
|
||||
]
|
||||
}
|
||||
]
|
||||
const router = new Router({
|
||||
@@ -15,4 +164,32 @@ const router = new Router({
|
||||
routes
|
||||
})
|
||||
|
||||
export default router;
|
||||
export default router;
|
||||
|
||||
export const tabbar = [
|
||||
{
|
||||
path: '/',
|
||||
name: 'home',
|
||||
title: '首页'
|
||||
},
|
||||
{
|
||||
path: '/user/course',
|
||||
name: 'user-course',
|
||||
title: '修行'
|
||||
},
|
||||
{
|
||||
path: '/merit-box',
|
||||
name: 'merit-box',
|
||||
title: '每日功德'
|
||||
},
|
||||
{
|
||||
path: '/temple/list',
|
||||
name: 'temple-list',
|
||||
title: '参寺'
|
||||
},
|
||||
{
|
||||
path: '/user',
|
||||
name: 'user',
|
||||
title: '我的'
|
||||
},
|
||||
]
|
||||
Reference in New Issue
Block a user