| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- import Auth from '@/views/layout/auth'
- import MusicAuth from '@/student/music-group/layout/auth'
- import { router, rootRouter } from './routes-common'
- type metaType = {
- isRegister: boolean
- }
- const noLoginRouter = [
- ]
- export default [
- {
- path: '/',
- component: Auth,
- children: [
- ...router,
- {
- path: '/login',
- name: 'login',
- component: () => import('@/views/layout/login'),
- meta: {
- isRegister: false
- } as metaType
- },
- {
- path: '/home',
- name: 'home',
- component: () => import('@/student/home/index')
- },
- {
- path: '/coupons',
- name: 'coupons',
- component: () => import('@/student/coupons/index'),
- meta: {
- title: '优惠券'
- }
- }, {
- path: '/memberCenter',
- name: 'memberCenter',
- component: () => import('@/student/member-center/index'),
- meta: {
- title: '会员中心'
- }
- }
- ]
- },
- {
- path: '/msuicGroup',
- component: MusicAuth,
- children: [{
- path: '/loginMusic',
- name: 'loginMusic',
- component: () => import('@/student/music-group/layout/login'),
- meta: {
- isRegister: false
- } as metaType
- }, {
- path: '/preApply',
- name: 'preApply',
- component: () => import('@/student/music-group/pre-apply/index'),
- meta: {
- title: '乐团报名'
- }
- }, {
- path: '/orderDetail',
- name: 'orderDetail',
- component: () => import('@/student/music-group/pre-apply/order-detail'),
- meta: {
- title: '订单详情'
- }
- }, {
- path: '/shopAddress',
- name: 'shopAddress',
- component: () => import('@/student/music-group/shop-address/index'),
- meta: {
- title: '收货地址'
- }
- }, {
- path: '/addressOperation',
- name: 'addressOperation',
- component: () => import('@/student/music-group/shop-address/address-operation'),
- meta: {
- title: '收货地址'
- }
- }]
- },
- ...noLoginRouter,
- ...rootRouter
- ]
|