Commit 66ac5cd0 authored by 张海枝's avatar 张海枝

feat: 目录增加

parent 39ce397d
<template>
<div>应用接入</div>
</template>
\ No newline at end of file
<template>
<div>组织机构</div>
</template>
\ No newline at end of file
<template>
<div>门店管理</div>
</template>
\ No newline at end of file
<template>
<div>素材库</div>
</template>
\ No newline at end of file
<template>
<div>
<a-input
placeholder="请输入token"
v-model="token"
/>
<a-button
type="primary"
@click="setToken"
>设置token</a-button>
</div>
</template>
<script>
import { mapActions } from 'vuex';
export default {
data() {
return {
token: null,
};
},
methods: {
...mapActions(['getUserInfo', 'getUserFunctionList']),
async setToken() {
if (this.token) {
await this.getUserInfo(this.token);
await this.getUserFunctionList();
this.$router.push('/store/store-admin');
} else {
this.$message.error('请输入token');
}
},
},
};
</script>
<template>
<div>首页</div>
</template>
\ No newline at end of file
<template>
<div>群发任务</div>
</template>
\ No newline at end of file
<template>
<div>奖励任务</div>
</template>
\ No newline at end of file
......@@ -7,6 +7,21 @@ export default new Router({
base: baseURL,
mode: 'history',
routes: [
{
path: '/',
redirect: '/opetate',
meta: {
standalone: true,
},
},
{
path: '/test',
name: 'test',
component: () => import('@/pages/test'),
meta: {
standalone: true,
},
},
...routerConfig,
],
});
import manage from './guiderManage'
import miniprogram from './miniprogram'
import operate from './operate'
import points from './points'
import publicStore from './publicStore'
import statistics from './statistics'
import task from './task'
const routerConfig = [
{
path: '/',
redirect: '/test',
meta: {
standalone: true,
},
},
{
path: '/test',
name: 'test',
component: () => import('@/pages/test'),
meta: {
standalone: true,
},
},
...operate
...operate,
...manage,
...miniprogram,
...publicStore,
...statistics,
...task
];
console.log(routerConfig)
export default routerConfig
\ No newline at end of file
/**小程序管理 */
import layout from '@/pages/layout.vue'
const Routes = [{
path: '/miniprogram/',
name: '小程序管理',
meta: {
title: '小程序管理',
},
component: layout,
children: [{
path: 'organization',
meta: { title: "组织机构" },
component:() => import('@/pages/miniprogram/organization/index'),
},
{
path: 'storeManagement',
meta: { title: "门店管理" },
component:() => import('@/pages/miniprogram/storeManagement/index'),
},
{
path: 'applicationJoin',
meta: { title: "应用接入" },
component:() => import('@/pages/miniprogram/applicationJoin/index'),
}
]
}]
export default Routes
\ No newline at end of file
/**客户运营路由 */
import layout from '@/pages/layout.vue'
const operateRoutes = [{
path: '/operate/',
name: '客户运营',
import layout from "@/pages/layout.vue";
const operateRoutes = [
{
path: "/operate/",
name: "客户运营",
redirect: "/operate/welcome",
meta: {
title: '客户运营',
title: "客户运营",
},
component: layout,
children: [{
path: 'welcome',
children: [
{
path: "welcome",
meta: { title: "欢迎语" },
component:() => import('@/pages/operate/welcome/index'),
}]
}]
component: () => import("@/pages/operate/welcome/index"),
},
{
path: "customerManagement",
meta: { title: "客户管理" },
component: () => import("@/pages/operate/customerManagement/index"),
},
{
path: "customerGroupManagement",
meta: { title: "客户群管理" },
component: () => import("@/pages/operate/customerGroupManagement/index"),
},
{
path: "massMessaging",
meta: { title: "群发消息" },
component: () => import("@/pages/operate/massMessaging/index"),
},
],
},
];
export default operateRoutes
\ No newline at end of file
export default operateRoutes;
/**导购积分 */
\ No newline at end of file
/**素材库 */
import layout from '@/pages/layout.vue'
const Routes = [{
path: '/publicStore/',
name: '素材库',
meta: {
title: '素材库',
},
component: layout,
children: [{
path: 'index',
meta: { title: "素材库" },
component:() => import('@/pages/publicStore/index'),
}
]
}]
export default Routes
\ No newline at end of file
/**数据统计 */
import layout from '@/pages/layout.vue'
const Routes = [{
path: '/statistics/',
name: '首页统计',
meta: {
title: '首页',
},
component: layout,
children: [{
path: 'manage',
meta: { title: "首页" },
component:() => import('@/pages/statistics/index'),
}
]
}]
export default Routes
\ No newline at end of file
/**导购任务 */
import layout from '@/pages/layout.vue'
const Routes = [{
path: '/task/',
name: '导购任务',
meta: {
title: '导购任务',
},
component: layout,
children: [{
path: 'mass',
meta: { title: "群发任务" },
component:() => import('@/pages/task/mass/index'),
},
{
path: 'reward',
meta: { title: "奖励任务" },
component:() => import('@/pages/task/reward/index'),
}
]
}]
export default Routes
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment