系统管理后台实现商户页面和用户页面
This commit is contained in:
@ -10,7 +10,7 @@ export function login(data) {
|
|||||||
|
|
||||||
export function getInfo() {
|
export function getInfo() {
|
||||||
return request({
|
return request({
|
||||||
url: '/api/admin/info',
|
url: '/x/admin/info',
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -43,6 +43,42 @@ export const constantRoutes = [
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/user',
|
||||||
|
component: Layout,
|
||||||
|
redirect: '/user/list',
|
||||||
|
name: 'UserCenter',
|
||||||
|
meta: { title: '用户中心', icon: 'el-icon-user' },
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: 'list',
|
||||||
|
name: 'UserList',
|
||||||
|
component: () => import('@/views/user/user-list'),
|
||||||
|
meta: { title: '用户列表' }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'feedback',
|
||||||
|
name: 'FeedbackList',
|
||||||
|
component: () => import('@/views/user/feedback-list'),
|
||||||
|
meta: { title: '用户反馈' }
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/agent',
|
||||||
|
component: Layout,
|
||||||
|
redirect: '/agent/merchant-list',
|
||||||
|
name: 'AgentCenter',
|
||||||
|
meta: { title: '代理商管理', icon: 'el-icon-user' },
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: 'merchant-list',
|
||||||
|
name: 'MerchantList',
|
||||||
|
component: () => import('@/views/merchant/merchant-list'),
|
||||||
|
meta: { title: '商户列表' }
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
{ path: '*', redirect: '/404', hidden: true }
|
{ path: '*', redirect: '/404', hidden: true }
|
||||||
]
|
]
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
title: '乐推优品管理后台',
|
title: '竞时代游戏广场系统后台',
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {boolean} true | false
|
* @type {boolean} true | false
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
<div class="main">
|
<div class="main">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<div>欢迎来到</div>
|
<div>欢迎来到</div>
|
||||||
<div>XXX管理后台</div>
|
<div>竞时代游戏广场管理后台</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<div class="right-title">请登录</div>
|
<div class="right-title">请登录</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user