169 lines
5.0 KiB
JavaScript
169 lines
5.0 KiB
JavaScript
/** When your routing table is too long, you can split it into small modules **/
|
|
|
|
import Layout from '@/layout'
|
|
|
|
const gamesRouter = {
|
|
path: '/games',
|
|
component: Layout,
|
|
redirect: '/games/list',
|
|
name: 'Games',
|
|
meta: {
|
|
title: '游戏管理',
|
|
icon: 'games',
|
|
},
|
|
children: [
|
|
{
|
|
path: 'list',
|
|
component: () => import('@/views/games/list'), // Parent router-view
|
|
name: 'GameList',
|
|
meta: {title: '游戏列表'},
|
|
},
|
|
{
|
|
path: 'settings',
|
|
component: () => import('@/views/games/settings'), // Parent router-view
|
|
name: 'GameSettings',
|
|
meta: {title: '配置项管理'},
|
|
},
|
|
{
|
|
path: 'platforms',
|
|
component: () => import('@/views/games/platforms'), // Parent router-view
|
|
name: 'GamePlatforms',
|
|
meta: {title: '平台管理'},
|
|
},
|
|
{
|
|
path: 'ad-area',
|
|
component: () => import('@/views/games/ad-area'), // Parent router-view
|
|
name: 'GameAdArea',
|
|
meta: {title: '广告区域管理'},
|
|
},
|
|
{
|
|
path: 'lib',
|
|
component: () => import('@/views/games/lib'), // Parent router-view
|
|
name: 'GameLib',
|
|
meta: {title: '素材管理'},
|
|
},
|
|
{
|
|
path: 'details/:uid?',
|
|
component: () => import('@/views/games/details/index'), // Parent router-view
|
|
redirect: '/games/details/info',
|
|
name: 'GameDetails',
|
|
hidden: true,
|
|
// meta: { title: '游戏信息' },
|
|
children: [
|
|
{
|
|
path: 'info',
|
|
component: () => import('@/views/games/details/info'),
|
|
name: 'GameDetailsInfo',
|
|
meta: {title: '详细信息'},
|
|
},
|
|
{
|
|
path: 'data',
|
|
component: () => import('@/views/games/details/data'),
|
|
name: 'GameDetailsData',
|
|
meta: {title: '数据'},
|
|
},
|
|
{
|
|
path: 'settings/index',
|
|
component: () => import('@/views/games/details/settings/index'),
|
|
name: 'GameDetailsSettings',
|
|
meta: {title: '配置'},
|
|
},
|
|
|
|
{
|
|
path: 'settings/achievement',
|
|
component: () => import('@/views/games/details/settings/achievement'),
|
|
name: 'GameDetailsAchievement',
|
|
meta: {title: '成就'},
|
|
},
|
|
{
|
|
path: 'settings/invitation',
|
|
component: () => import('@/views/games/details/settings/invitation'),
|
|
name: 'GameDetailsInvitation',
|
|
meta: {title: '邀请'},
|
|
},
|
|
{
|
|
path: 'settings/red-envelope',
|
|
component: () =>
|
|
import('@/views/games/details/settings/red-envelope'),
|
|
name: 'GameDetailsRedEnvelope',
|
|
meta: {title: '红包'},
|
|
},
|
|
{
|
|
path: 'settings/sign',
|
|
component: () => import('@/views/games/details/settings/sign'),
|
|
name: 'GameDetailsSign',
|
|
meta: {title: '签到'},
|
|
},
|
|
{
|
|
path: 'settings/online',
|
|
component: () => import('@/views/games/details/settings/online'),
|
|
name: 'GameDetailsOnline',
|
|
meta: {title: '在线时长奖励'},
|
|
},
|
|
{
|
|
path: 'settings/banner',
|
|
component: () => import('@/views/games/details/settings/banner'),
|
|
name: 'GameDetailsBanner',
|
|
meta: {title: 'Banner广告配置'},
|
|
},
|
|
{
|
|
path: 'recommendation',
|
|
component: () => import('@/views/games/details/recommendation'),
|
|
name: 'GameDetailsRecommendation',
|
|
meta: {title: '关联推荐'},
|
|
},
|
|
{
|
|
path: 'share',
|
|
component: () => import('@/views/games/details/share/index'),
|
|
name: 'GameDetailsShare',
|
|
meta: {title: '分享图'},
|
|
},
|
|
{
|
|
path: 'share/edit',
|
|
component: () => import('@/views/games/details/share/edit'),
|
|
name: 'GameDetailsShareEdit',
|
|
meta: {title: '编辑分享图'},
|
|
},
|
|
{
|
|
path: 'reward',
|
|
component: () => import('@/views/games/details/reward'),
|
|
name: 'GameDetailsReward',
|
|
meta: {title: '客服奖励'},
|
|
},
|
|
{
|
|
path: 'ad-pos',
|
|
component: () => import('@/views/games/details/adPos'),
|
|
name: 'GameDetailsAdPos',
|
|
meta: {title: '广告位'},
|
|
},
|
|
{
|
|
path: 'ad-uid',
|
|
component: () => import('@/views/games/details/adUid'),
|
|
name: 'GameDetailsAdUid',
|
|
meta: {title: '广告码'},
|
|
},
|
|
{
|
|
path: 'item',
|
|
component: () => import('@/views/games/details/item'),
|
|
name: 'GameDetailsItems',
|
|
meta: {title: '道具'},
|
|
},
|
|
{
|
|
path: 'mp/edit',
|
|
component: () => import('@/views/games/details/mp/edit'),
|
|
name: 'GameDetailsMpEdit',
|
|
meta: {title: '分享小程序模板编辑'},
|
|
},
|
|
{
|
|
path: 'mp/index',
|
|
component: () => import('@/views/games/details/mp/index'),
|
|
name: 'GameDetailsMp',
|
|
meta: {title: '分享小程序模板列表'},
|
|
},
|
|
],
|
|
},
|
|
],
|
|
}
|
|
|
|
export default gamesRouter
|