12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481 |
- /*
- * @Author: wenjie 1454560336@qq.com
- * @Date: 2024-03-05 11:36:07
- * @LastEditors: wenjie 1454560336@qq.com
- * @LastEditTime: 2024-08-18 15:45:41
- * @FilePath: \admin-manage\src\router\index.js
- * @Description:
- *
- * Copyright (c) 2024 by ${git_name_email}, All Rights Reserved.
- */
- import Vue from 'vue'
- import Router from 'vue-router'
- Vue.use(Router)
- /* Layout */
- import Layout from '@/layout'
- import operationLayout from '@/views/operationManage/index'
- /**
- * Note: sub-menu only appear when route children.length >= 1
- * Detail see: https://panjiachen.github.io/vue-element-admin-site/guide/essentials/router-and-nav.html
- *
- * hidden: true if set true, item will not show in the sidebar(default is false)
- * alwaysShow: true if set true, will always show the root menu
- * if not set alwaysShow, when item has more than one children route,
- * it will becomes nested mode, otherwise not show the root menu
- * redirect: noRedirect if set noRedirect will no redirect in the breadcrumb
- * name:'router-name' the name is used by <keep-alive> (must set!!!)
- * meta : {
- roles: ['admin','editor'] control the page roles (you can set multiple roles)
- title: 'title' the name show in sidebar and breadcrumb (recommend set)
- icon: 'svg-name'/'el-icon-x' the icon show in the sidebar
- breadcrumb: false if set false, the item will hidden in breadcrumb(default is true)
- activeMenu: '/example/list' if set path, the sidebar will highlight the path you set
- }
- */
- /**
- * constantRoutes
- * a base page that does not have permission requirements
- * all roles can be accessed
- */
- export let constantRoutes = [{
- path: '/login',
- component: () => import('@/views/login/index'),
- hidden: true
- },
- {
- path: '/404',
- component: () => import('@/views/404'),
- hidden: true
- },
- // {
- // id: 0,
- // path: '/statisticsManage',
- // component: Layout,
- // meta: { title: '中数❤移动', icon: 'icon-shouyefill' },
- // children: [
- // {
- // id: 1,
- // path: '/statisticsManage',
- // name: '/statisticsManage',
- // component: () => import('@/views/statisticsManage/index.vue'),
- // meta: { title: '中数❤移动', icon: '' },
- // },
- // ]
- // },
- {
- id: 0,
- path: '/',
- component: Layout,
- redirect: '/home',
- meta: {
- title: '首页',
- icon: 'icon-shouyefill'
- },
- children: [{
- id: 1,
- path: '/home',
- name: '/home',
- component: () => import('@/views/home/index.vue'),
- meta: {
- title: '首页',
- icon: ''
- },
- },
- {
- id: 1,
- path: '/updatePassword',
- name: '/updatePassword',
- component: () => import('@/views/updatePassword/index.vue'),
- meta: {
- title: '修改密码',
- icon: ''
- },
- },
- ]
- },
- // {
- // id: 36,
- // path: '/adminManage',
- // component: Layout,
- // meta: { title: '账号管理', icon: 'el-icon-user-solid' },
- // alwaysShow: true,
- // children: [
- // {
- // id: 37,
- // path: '/adminManage/adminList',
- // name: '/adminManage/adminList',
- // component: () => import('@/views/adminManage/adminList.vue'),
- // meta: { title: '账号列表', icon: '' },
- // },
- // {
- // id: 37,
- // path: '/adminManage/adminDetail',
- // name: '/adminManage/adminDetail',
- // hidden: true ,
- // component: () => import('@/views/adminManage/adminDetail.vue'),
- // meta: { title: '账号详情', icon: '',activeMenu:'/adminManage/adminList' },
- // },
- // {
- // id: 37,
- // path: '/adminManage/adminAdd',
- // name: '/adminManage/adminAdd',
- // hidden: true ,
- // component: () => import('@/views/adminManage/adminAdd.vue'),
- // meta: { title: '人员添加', icon: '',activeMenu:'/adminManage/adminList' },
- // },
- // ]
- // },
- {
- id: 0,
- path: '/operationManage/index',
- component: Layout,
- meta: {
- title: '运营管理',
- icon: 'el-icon-s-shop'
- },
- alwaysShow: true,
- children: [{
- id: 0,
- path: '/operationManage/shopManage/index',
- component: operationLayout,
- meta: {
- title: '商铺管理',
- icon: ''
- },
- alwaysShow: true,
- children: [
- {
- id: 1,
- path: '/operationManage/shopManage/shopType',
- name: '/operationManage/shopManage/shopType',
- component: () => import('@/views/operationManage/shopManage/shopType.vue'),
- hidden:true,
- meta: {
- title: '店铺类型',
- icon: ''
- },
- },{
- id: 1,
- path: '/operationManage/shopManage/index',
- name: '/operationManage/shopManage/index',
- component: () => import('@/views/operationManage/shopManage/index.vue'),
- meta: {
- title: '店铺列表',
- icon: ''
- },
- },
-
- {
- id: 1,
- path: '/operationManage/shopManage/shopAdd',
- name: '/operationManage/shopManage/shopAdd',
- component: () => import('@/views/operationManage/shopManage/shopAdd.vue'),
- meta: {
- title: '店铺添加'
- },
- },
- {
- id: 1,
- path: '/operationManage/shopManage/shopAdd1',
- name: '/operationManage/shopManage/shopAdd1',
- hidden: true,
- component: () => import('@/views/operationManage/shopManage/shopAdd1.vue'),
- meta: {
- title: '银联认证',
- activeMenu: '/operationManage/shopManage/index'
- },
- },
- {
- id: 1,
- path: '/operationManage/shopManage/shopAdd2',
- name: '/operationManage/shopManage/shopAdd2',
- hidden: true,
- component: () => import('@/views/operationManage/shopManage/shopAdd2.vue'),
- meta: {
- title: '银联认证',
- activeMenu: '/operationManage/shopManage/index'
- },
- },
- {
- id: 1,
- path: '/operationManage/shopManage/shopAdd3',
- name: '/operationManage/shopManage/shopAdd3',
- hidden: true,
- component: () => import('@/views/operationManage/shopManage/shopAdd3.vue'),
- meta: {
- title: '银联认证',
- activeMenu: '/operationManage/shopManage/index'
- },
- },
- {
- id: 1,
- path: '/operationManage/shopManage/shopAdd4',
- name: '/operationManage/shopManage/shopAdd4',
- hidden: true,
- component: () => import('@/views/operationManage/shopManage/shopAdd4.vue'),
- meta: {
- title: '银联认证',
- activeMenu: '/operationManage/shopManage/index'
- },
- }
- ]
- },
- // {
- // id: 0,
- // path: '/operationManage/shopAudit/index',
- // component: operationLayout,
- // meta: {
- // title: '店铺审核',
- // icon: ''
- // },
- // alwaysShow: true,
- // children: [{
- // id: 1,
- // path: '/operationManage/shopAudit/index',
- // name: '/operationManage/shopAudit/index',
- // component: () => import('@/views/operationManage/shopAudit/index.vue'),
- // meta: {
- // title: '审核列表',
- // icon: ''
- // },
- // },
- // {
- // id: 1,
- // path: '/operationManage/shopAudit/audit',
- // name: '/operationManage/shopAudit/audit',
- // hidden:true,
- // component: () => import('@/views/operationManage/shopAudit/audit.vue'),
- // meta: {
- // title: '店铺审核',
- // icon: '',
- // activeMenu: '/operationManage/shopAudit/index'
- // },
- // },
- // ]
- // },
- // {
- // id: 0,
- // path: '/operationManage/goodsTemplate/index',
- // component: operationLayout,
- // meta: {
- // title: '规格模板',
- // icon: ''
- // },
- // alwaysShow: true,
- // children: [{
- // id: 1,
- // path: '/operationManage/goodsTemplate/index',
- // name: '/operationManage/goodsTemplate/index',
- // component: () => import('@/views/operationManage/goodsTemplate/index.vue'),
- // meta: {
- // title: '商品规格',
- // icon: ''
- // },
- // },
- // {
- // id: 1,
- // path: '/operationManage/goodsTemplate/addGoodsTemplate',
- // name: '/operationManage/goodsTemplate/addGoodsTemplate',
- // hidden:true,
- // component: () => import('@/views/operationManage/goodsTemplate/addGoodsTemplate.vue'),
- // meta: {
- // title: '添加规格',
- // icon: '',
- // activeMenu: '/operationManage/goodsTemplate/index'
- // },
- // },
- // ]
- // },
- {
- id: 0,
- path: '/operationManage/goodsType/index',
- component: operationLayout,
- meta: {
- title: '商品分类',
- icon: ''
- },
- alwaysShow: true,
- children: [{
- id: 1,
- path: '/operationManage/goodsType/index',
- name: '/operationManage/goodsType/index',
- component: () => import('@/views/operationManage/goodsType/index.vue'),
- meta: {
- title: '分类列表',
- icon: ''
- },
- },
- {
- id: 1,
- path: '/operationManage/goodsType/addGoodsType',
- name: '/operationManage/goodsType/addGoodsType',
- hidden:true,
- component: () => import('@/views/operationManage/goodsType/addGoodsType.vue'),
- meta: {
- title: '添加分类',
- icon: '',
- activeMenu: '/operationManage/goodsType/index'
- },
- },
- ]
- },
- {
- id: 0,
- path: '/operationManage/goodsManage/index',
- component: operationLayout,
- meta: {
- title: '商品管理',
- icon: ''
- },
- alwaysShow: true,
- children: [{
- id: 1,
- path: '/operationManage/goodsManage/index',
- name: '/operationManage/goodsManage/index',
- component: () => import('@/views/operationManage/goodsManage/index.vue'),
- meta: {
- title: '商品列表',
- icon: ''
- },
- },
- {
- id: 1,
- path: '/operationManage/goodsManage/goodsDetail',
- name: '/operationManage/goodsManage/goodsDetail',
- hidden:true,
- component: () => import('@/views/operationManage/goodsManage/goodsDetail.vue'),
- meta: {
- title: '商品配置',
- icon: '',
- activeMenu: '/operationManage/goodsManage/index'
- },
- },
- {
- id: 1,
- path: '/operationManage/goodsManage/labelList',
- name: '/operationManage/goodsManage/labelList',
- component: () => import('@/views/operationManage/goodsManage/labelList.vue'),
- meta: {
- title: '标签列表',
- icon: ''
- },
- },
- {
- id: 1,
- path: '/operationManage/goodsManage/productLibrary',
- name: '/operationManage/goodsManage/productLibrary',
- component: () => import('@/views/operationManage/goodsManage/productLibrary.vue'),
- meta: {
- title: '产品库',
- icon: ''
- },
- },
- {
- id: 1,
- path: '/operationManage/goodsManage/homeGoodsSet',
- name: '/operationManage/goodsManage/homeGoodsSet',
- component: () => import('@/views/operationManage/goodsManage/homeGoodsSet.vue'),
- meta: {
- title: '首页设置',
- icon: ''
- },
- },
- ]
- },
- // {
- // id: 0,
- // path: '/operationManage/goodsAudit/index',
- // component: operationLayout,
- // meta: {
- // title: '商品审核',
- // icon: ''
- // },
- // alwaysShow: true,
- // children: [{
- // id: 1,
- // path: '/operationManage/goodsAudit/index',
- // name: '/operationManage/goodsAudit/index',
- // component: () => import('@/views/operationManage/goodsAudit/index.vue'),
- // meta: {
- // title: '审核列表',
- // icon: ''
- // },
- // },
- // {
- // id: 1,
- // path: '/operationManage/goodsAudit/auditGoods',
- // name: '/operationManage/goodsAudit/auditGoods',
- // hidden:true,
- // component: () => import('@/views/operationManage/goodsAudit/auditGoods.vue'),
- // meta: {
- // title: '商品审核',
- // icon: '',
- // activeMenu: '/operationManage/goodsAudit/index'
- // },
- // },
- // // {
- // // id: 1,
- // // path: '/operationManage/goodsAudit/auditDetail',
- // // name: '/operationManage/goodsAudit/auditDetail',
- // // component: () => import('@/views/operationManage/goodsAudit/auditDetail.vue'),
- // // meta: {
- // // title: '审核详情',
- // // icon: ''
- // // },
- // // },
- // ]
- // },
- {
- id: 0,
- path: '/operationManage/orderManage/index',
- component: operationLayout,
- meta: {
- title: '订单管理',
- icon: ''
- },
- alwaysShow: true,
- children: [{
- id: 1,
- path: '/operationManage/orderManage/index',
- name: '/operationManage/orderManage/index',
- component: () => import('@/views/operationManage/orderManage/index.vue'),
- meta: {
- title: '支付订单',
- icon: ''
- },
- },
- {
- id: 1,
- path: '/operationManage/orderManage/payDetail',
- name: '/operationManage/orderManage/payDetail',
- hidden:true,
- component: () => import('@/views/operationManage/orderManage/payDetail.vue'),
- meta: {
- title: '订单详情',
- icon: '',
- activeMenu: '/operationManage/orderManage/index'
- },
- },
- {
- id: 1,
- path: '/operationManage/orderManage/list',
- name: '/operationManage/orderManage/list',
- component: () => import('@/views/operationManage/orderManage/list.vue'),
- meta: {
- title: '商品订单',
- icon: ''
- },
- },
- {
- id: 1,
- path: '/operationManage/orderManage/orderDetail',
- name: '/operationManage/orderManage/orderDetail',
- hidden:true,
- component: () => import('@/views/operationManage/orderManage/orderDetail.vue'),
- meta: {
- title: '订单详情',
- icon: '',
- activeMenu: '/operationManage/orderManage/list'
- },
- },
-
- ]
- },
- {
- id: 0,
- path: '/operationManage/marketingManage/index',
- component: operationLayout,
- meta: {
- title: '营销管理',
- icon: ''
- },
- alwaysShow: true,
- children: [{
- id: 1,
- path: '/operationManage/marketingManage/index',
- name: '/operationManage/marketingManage/index',
- component: () => import('@/views/operationManage/marketingManage/index.vue'),
- meta: {
- title: '小桔活动',
- icon: ''
- },
- },
- {
- id: 0,
- path: '/operationManage/marketingManage/invitePromotion/index',
- component: operationLayout,
- meta: {
- title: '推广邀请规则',
- icon: ''
- },
- alwaysShow: true,
- children: [
- {
- id: 1,
- path: '/operationManage/marketingManage/invitePromotion/index',
- name: '/operationManage/marketingManage/invitePromotion/index',
- component: () => import('@/views/operationManage/marketingManage/invitePromotion/index.vue'),
- meta: {
- title: '规则管理',
- icon: ''
- },
- },
- {
- id: 1,
- path: '/operationManage/marketingManage/invitePromotion/add',
- name: '/operationManage/marketingManage/invitePromotion/add',
- component: () => import('@/views/operationManage/marketingManage/invitePromotion/add.vue'),
- meta: {
- title: '规则添加',
- icon: ''
- },
- }
- ]
- }
- ]
- },
- {
- id: 0,
- path: '/operationManage/comboManage/index',
- component: operationLayout,
- meta: {
- title: '套餐管理',
- icon: ''
- },
- alwaysShow: true,
- children: [{
- id: 1,
- path: '/operationManage/comboManage/index',
- name: '/operationManage/comboManage/index',
- component: () => import('@/views/operationManage/comboManage/index.vue'),
- meta: {
- title: '套餐列表',
- icon: ''
- },
- },
- // {
- // id: 1,
- // path: '/operationManage/comboManage/addCombo',
- // name: '/operationManage/comboManage/addCombo',
- // component: () => import('@/views/operationManage/comboManage/addCombo.vue'),
- // meta: {
- // title: '添加套餐',
- // icon: ''
- // },
- // },
- {
- id: 1,
- path: '/operationManage/comboManage/editCombo',
- name: '/operationManage/comboManage/editCombo',
- hidden:true,
- component: () => import('@/views/operationManage/comboManage/editCombo.vue'),
- meta: {
- title: '编辑套餐',
- icon: ''
- },
- },
- {
- id: 1,
- path: '/operationManage/equitiesManage/index',
- name: '/operationManage/equitiesManage/index',
- component: () => import('@/views/operationManage/equitiesManage/index.vue'),
- hidden:true,
- meta: {
- title: '权益列表',
- icon: '',
- activeMenu: '/operationManage/comboManage/index'
- },
- },
- {
- id: 1,
- path: '/operationManage/equitiesManage/addEquities',
- name: '/operationManage/equitiesManage/addEquities',
- hidden:true,
- component: () => import('@/views/operationManage/equitiesManage/addEquities.vue'),
- meta: {
- title: '添加权益',
- icon: '',
- activeMenu: '/operationManage/comboManage/index'
- },
- },
- ]
- },
-
- {
- id: 0,
- path: '/operationManage/financeManage/index',
- component: operationLayout,
- meta: {
- title: '财务管理',
- icon: ''
- },
- alwaysShow: true,
- children: [{
- id: 1,
- path: '/operationManage/financeManage/index',
- name: '/operationManage/financeManage/index',
- component: () => import('@/views/operationManage/financeManage/index.vue'),
- meta: {
- title: '分账列表',
- icon: ''
- },
- },
- {
- id: 1,
- path: '/operationManage/financeManage/withdraw',
- name: '/operationManage/financeManage/withdraw',
- component: () => import('@/views/operationManage/financeManage/withdraw.vue'),
- meta: {
- title: '账户余额',
- icon: ''
- },
- },
- ]
- },
- // {
- // id: 0,
- // path: '/operationManage/ticketManage/index',
- // component: operationLayout,
- // meta: {
- // title: '核销管理',
- // icon: ''
- // },
- // alwaysShow: true,
- // children: [{
- // id: 1,
- // path: '/operationManage/ticketManage/index',
- // name: '/operationManage/ticketManage/index',
- // component: () => import('@/views/operationManage/ticketManage/index.vue'),
- // meta: {
- // title: '核销列表',
- // icon: ''
- // },
- // }, ]
- // },
- {
- id: 0,
- path: '/operationManage/appMenuManage/index',
- component: operationLayout,
- meta: {
- title: '小程序菜单',
- icon: ''
- },
- alwaysShow: true,
- children: [{
- id: 1,
- path: '/operationManage/appMenuManage/index',
- name: '/operationManage/appMenuManage/index',
- component: () => import('@/views/operationManage/appMenuManage/index.vue'),
- meta: {
- title: '菜单列表',
- icon: ''
- },
- },
- {
- id: 1,
- path: '/operationManage/appMenuManage/addMenu',
- name: '/operationManage/appMenuManage/addMenu',
- hidden:true,
- component: () => import('@/views/operationManage/appMenuManage/addMenu.vue'),
- meta: {
- title: '添加菜单',
- icon: '',
- activeMenu: '/operationManage/appMenuManage/index'
- },
- },
- {
- id: 1,
- path: '/operationManage/appMenuManage/editMenu',
- name: '/operationManage/appMenuManage/editMenu',
- hidden:true,
- component: () => import('@/views/operationManage/appMenuManage/editMenu.vue'),
- meta: {
- title: '编辑菜单',
- icon: '',
- activeMenu: '/operationManage/appMenuManage/index'
- },
- },
- ]
- },
- {
- id: 0,
- path: '/operationManage/bannerManage/index',
- component: operationLayout,
- meta: {
- title: 'banner管理',
- icon: ''
- },
- alwaysShow: true,
- children: [{
- id: 1,
- path: '/operationManage/bannerManage/index',
- name: '/operationManage/bannerManage/index',
- component: () => import('@/views/operationManage/bannerManage/index.vue'),
- meta: {
- title: 'banner列表',
- icon: ''
- },
- },
- {
- id: 1,
- path: '/operationManage/bannerManage/addBanner',
- name: '/operationManage/bannerManage/addBanner',
- hidden:true,
- component: () => import('@/views/operationManage/bannerManage/addBanner.vue'),
- meta: {
- title: '添加banner',
- icon: '',
- activeMenu: '/operationManage/bannerManage/index'
- },
- },
- {
- id: 1,
- path: '/operationManage/bannerManage/editBanner',
- name: '/operationManage/bannerManage/editBanner',
- hidden:true,
- component: () => import('@/views/operationManage/bannerManage/editBanner.vue'),
- meta: {
- title: '编辑banner',
- icon: '',
- activeMenu: '/operationManage/bannerManage/index'
- },
- },
- ]
- },
- {
- id: 0,
- path: '/operationManage/advertisingManage/index',
- component: operationLayout,
- meta: {
- title: '广告位管理',
- icon: ''
- },
- alwaysShow: true,
- children: [{
- id: 1,
- path: '/operationManage/advertisingManage/index',
- name: '/operationManage/advertisingManage/index',
- component: () => import('@/views/operationManage/advertisingManage/index.vue'),
- meta: {
- title: '广告位列表',
- icon: ''
- },
- },
- {
- id: 1,
- path: '/operationManage/advertisingManage/addAdv',
- name: '/operationManage/advertisingManage/addAdv',
- hidden:true,
- component: () => import('@/views/operationManage/advertisingManage/addAdv.vue'),
- meta: {
- title: '添加广告位',
- icon: '',
- activeMenu: '/operationManage/advertisingManage/index'
- },
- },
- {
- id: 1,
- path: '/operationManage/advertisingManage/editAdv',
- name: '/operationManage/advertisingManage/editAdv',
- hidden:true,
- component: () => import('@/views/operationManage/advertisingManage/editAdv.vue'),
- meta: {
- title: '编辑广告位',
- icon: '',
- activeMenu: '/operationManage/advertisingManage/index'
- },
- },
- ]
- },
- {
- id: 0,
- path: '/operationManage/couponManage/index',
- component: operationLayout,
- meta: {
- title: '优惠券管理',
- icon: ''
- },
- alwaysShow: true,
- children: [{
- id: 1,
- path: '/operationManage/couponManage/index',
- name: '/operationManage/couponManage/index',
- component: () => import('@/views/operationManage/couponManage/index.vue'),
- meta: {
- title: '优惠券列表',
- icon: ''
- },
- },
- {
- id: 1,
- path: '/operationManage/couponManage/fullDiscountCoupon',
- name: '/operationManage/couponManage/fullDiscountCoupon',
- component: () => import('@/views/operationManage/couponManage/fullDiscountCoupon.vue'),
- hidden:true,
- meta: {
- title: '满减优惠券',
- icon: '',
- activeMenu: '/operationManage/couponManage/index'
- },
- },
- {
- id: 1,
- path: '/operationManage/couponManage/discountCoupon',
- name: '/operationManage/couponManage/discountCoupon',
- component: () => import('@/views/operationManage/couponManage/discountCoupon.vue'),
- hidden:true,
- meta: {
- title: '折扣优惠券',
- icon: '',
- activeMenu: '/operationManage/couponManage/index'
- },
- },
- {
- id: 1,
- path: '/operationManage/couponManage/refuelCoupon',
- name: '/operationManage/couponManage/refuelCoupon',
- component: () => import('@/views/operationManage/couponManage/refuelCoupon.vue'),
- hidden:true,
- meta: {
- title: '加油优惠券',
- icon: '',
- activeMenu: '/operationManage/couponManage/index'
- },
- },
-
- ]
- },
- {
- id: 0,
- path: '/operationManage/activityManage/index',
- component: operationLayout,
- meta: {
- title: '活动管理',
- icon: ''
- },
- alwaysShow: true,
- children: [{
- id: 1,
- path: '/operationManage/activityManage/index',
- name: '/operationManage/activityManage/index',
- component: () => import('@/views/operationManage/activityManage/index.vue'),
- meta: {
- title: '活动列表',
- icon: ''
- },
- },
- {
- id: 1,
- path: '/operationManage/activityManage/addActivity',
- name: '/operationManage/activityManage/addActivity',
- hidden:true,
- component: () => import('@/views/operationManage/activityManage/addActivity.vue'),
- meta: {
- title: '添加活动',
- icon: '',
- activeMenu: '/operationManage/activityManage/index'
- },
- },
- {
- id: 1,
- path: '/operationManage/activityManage/dataList',
- name: '/operationManage/activityManage/dataList',
- hidden:true,
- component: () => import('@/views/operationManage/activityManage/dataList.vue'),
- meta: {
- title: '报名详情',
- icon: '',
- activeMenu: '/operationManage/activityManage/index'
- },
- },
- ]
- },
- {
- id: 0,
- path: '/operationManage/templateManage/index',
- component: operationLayout,
- meta: {
- title: '数据采集模板',
- icon: ''
- },
- alwaysShow: true,
- children: [{
- id: 1,
- path: '/operationManage/templateManage/index',
- name: '/operationManage/templateManage/index',
- component: () => import('@/views/operationManage/templateManage/index.vue'),
- meta: {
- title: '模板列表',
- icon: ''
- },
- },
- {
- id: 1,
- path: '/operationManage/templateManage/addTemplate',
- name: '/operationManage/templateManage/addTemplate',
- hidden:true,
- component: () => import('@/views/operationManage/templateManage/addTemplate.vue'),
- meta: {
- title: '添加模板',
- icon: '',
- activeMenu: '/operationManage/templateManage/index'
- },
- },
- ]
- },
-
- // {
- // id: 0,
- // path: '/operationManage/noticeManage/index',
- // component: operationLayout,
- // meta: {
- // title: '通知管理',
- // icon: ''
- // },
- // alwaysShow: true,
- // children: [{
- // id: 1,
- // path: '/operationManage/noticeManage/index',
- // name: '/operationManage/noticeManage/index',
- // component: () => import('@/views/operationManage/noticeManage/index.vue'),
- // meta: {
- // title: '通知列表',
- // icon: ''
- // },
- // },
- // {
- // id: 1,
- // path: '/operationManage/noticeManage/addBanner',
- // name: '/operationManage/noticeManage/addBanner',
- // component: () => import('@/views/operationManage/noticeManage/addNotice.vue'),
- // meta: {
- // title: '添加通知',
- // icon: ''
- // },
- // },
- // {
- // id: 1,
- // path: '/operationManage/noticeManage/editBanner',
- // name: '/operationManage/noticeManage/editBanner',
- // component: () => import('@/views/operationManage/noticeManage/editNotice.vue'),
- // meta: {
- // title: '编辑通知',
- // icon: ''
- // },
- // },
- // ]
- // },
- ]
- },
- {
- id: 0,
- path: '/studyManage/index',
- component: Layout,
- meta: {
- title: '研学管理',
- icon: 'el-icon-s-shop'
- },
- alwaysShow: true,
- children: [
- {
- id: 0,
- path: '/studyManage/bannerManage/index',
- component: operationLayout,
- meta: {
- title: 'banner管理',
- icon: ''
- },
- alwaysShow: true,
- children: [
- {
- id: 1,
- path: '/studyManage/bannerManage/index',
- name: '/studyManage/bannerManage/index',
- component: () => import('@/views/studyManage/bannerManage/index.vue'),
- meta: {
- title: 'banner列表',
- icon: ''
- },
- },
- {
- id: 1,
- path: '/studyManage/bannerManage/addBanner',
- name: '/studyManage/bannerManage/addBanner',
- hidden:true,
- component: () => import('@/views/studyManage/bannerManage/addBanner.vue'),
- meta: {
- title: '添加banner',
- icon: '',
- activeMenu: '/studyManage/bannerManage/index'
- },
- }
- ]
- },
- {
- id: 0,
- path: '/studyManage/menuManage/index',
- component: operationLayout,
- meta: {
- title: '栏目管理',
- icon: ''
- },
- alwaysShow: true,
- children: [
- {
- id: 1,
- path: '/studyManage/menuManage/index',
- name: '/studyManage/menuManage/index',
- component: () => import('@/views/studyManage/menuManage/index.vue'),
- meta: {
- title: '栏目列表',
- icon: ''
- },
- },
- {
- id: 1,
- path: '/studyManage/menuManage/addMenu',
- name: '/studyManage/menuManage/addMenu',
- hidden:true,
- component: () => import('@/views/studyManage/menuManage/addMenu.vue'),
- meta: {
- title: '添加栏目',
- icon: '',
- activeMenu: '/studyManage/menuManage/index'
- },
- }
- ]
- },
- {
- id: 0,
- path: '/studyManage/courseManage/index',
- component: operationLayout,
- meta: {
- title: '课程管理',
- icon: ''
- },
- alwaysShow: true,
- children: [
- {
- id: 1,
- path: '/studyManage/courseManage/index',
- name: '/studyManage/courseManage/index',
- component: () => import('@/views/studyManage/courseManage/index.vue'),
- meta: {
- title: '课程列表',
- icon: ''
- },
- },
- {
- id: 1,
- path: '/studyManage/courseManage/addCourse',
- name: '/studyManage/courseManage/addCourse',
- hidden:true,
- component: () => import('@/views/studyManage/courseManage/addCourse.vue'),
- meta: {
- title: '添加课程',
- icon: '',
- activeMenu: '/studyManage/courseManage/index'
- },
- }
- ]
- },
- {
- id: 0,
- path: '/studyManage/tabManage/index',
- component: operationLayout,
- meta: {
- title: '社区标签',
- icon: ''
- },
- alwaysShow: true,
- children: [
- {
- id: 1,
- path: '/studyManage/tabManage/index',
- name: '/studyManage/tabManage/index',
- component: () => import('@/views/studyManage/tabManage/index.vue'),
- meta: {
- title: '标签列表',
- icon: ''
- },
- },
- ]
- },
- {
- id: 0,
- path: '/studyManage/communityManage/index',
- component: operationLayout,
- meta: {
- title: '社区管理',
- icon: ''
- },
- alwaysShow: true,
- children: [
- {
- id: 1,
- path: '/studyManage/communityManage/index',
- name: '/studyManage/communityManage/index',
- component: () => import('@/views/studyManage/communityManage/index.vue'),
- meta: {
- title: '文章列表',
- icon: ''
- },
- },
- {
- id: 1,
- path: '/studyManage/communityManage/addArticle',
- name: '/studyManage/communityManage/addArticle',
- hidden:true,
- component: () => import('@/views/studyManage/communityManage/addArticle.vue'),
- meta: {
- title: '添加文章',
- icon: '',
- activeMenu: '/studyManage/communityManage/index'
- },
- }
- ]
- },
- {
- id: 0,
- path: '/studyManage/questionBankManage/index',
- component: operationLayout,
- meta: {
- title: '试题管理',
- icon: ''
- },
- alwaysShow: true,
- children: [
- {
- id: 1,
- path: '/studyManage/questionBankManage/index',
- name: '/studyManage/questionBankManage/index',
- component: () => import('@/views/studyManage/questionBankManage/index.vue'),
- meta: {
- title: '题库列表',
- icon: ''
- },
- },
- {
- id: 1,
- path: '/studyManage/questionBankManage/editQuestions',
- name: '/studyManage/questionBankManage/editQuestions',
- hidden:true,
- component: () => import('@/views/studyManage/questionBankManage/editQuestions.vue'),
- meta: {
- title: '编辑试卷',
- icon: '',
- activeMenu: '/studyManage/questionBankManage/index'
- },
- },
- ]
- },
- {
- id: 0,
- path: '/studyManage/subscribeManage/index',
- component: operationLayout,
- meta: {
- title: '预约管理',
- icon: ''
- },
- alwaysShow: true,
- children: [
- {
- id: 1,
- path: '/studyManage/subscribeManage/index',
- name: '/studyManage/subscribeManage/index',
- component: () => import('@/views/studyManage/subscribeManage/index.vue'),
- meta: {
- title: '预约列表',
- icon: ''
- },
- },
- ]
- },
- ]
- },
- {
- id: 0,
- path: '/merchantManage/index',
- component: Layout,
- redirect: '/merchantManage/index',
- meta: {
- title: '商户管理',
- icon: 'el-icon-s-shop'
- },
- children: [{
- id: 1,
- path: '/merchantManage/index',
- name: '/merchantManage/index',
- component: () => import('@/views/merchantManage/index.vue'),
- meta: {
- title: '商户列表',
- icon: ''
- },
- },
- {
- id: 1,
- path: '/merchantManage/shopDetail',
- name: '/merchantManage/shopDetail',
- component: () => import('@/views/merchantManage/shopDetail.vue'),
- hidden:true,
- meta: {
- title: '商户详情',
- icon: '',
- activeMenu:'/merchantManage/index'
- },
- },
- {
- id: 1,
- hidden:true,
- path: '/merchantManage/addUser',
- name: '/merchantManage/addUser',
- component: () => import('@/views/merchantManage/addUser.vue'),
- meta: {
- title: '添加商户',
- icon: ''
- },
- },
- ]
- },
- // 用户管理
- {
- id: 0,
- path: '/userManage/index',
- component: Layout,
- meta: {
- title: '用户管理',
- icon: 'el-icon-s-shop'
- },
- alwaysShow: true,
- children:[
- // {
- // id: 0,
- // path: '/userManage/agentManage',
- // component: operationLayout,
- // redirect: '/userManage/agentManage',
- // meta: {
- // title: '渠道商',
- // icon: ''
- // },
- // children: [{
- // id: 1,
- // path: '/userManage/agentManage/index',
- // name: '/userManage/agentManage/index',
- // component: () => import('@/views/userManage/agentManage/index.vue'),
- // meta: {
- // title: '渠道商列表',
- // icon: ''
- // },
- // },
- // {
- // id: 1,
- // path: '/userManage/agentManage/addAgent',
- // name: '/userManage/agentManage/addAgent',
- // hidden:true,
- // component: () => import('@/views/userManage/agentManage/addAgent.vue'),
- // meta: {
- // title: '添加渠道商',
- // icon: ''
- // },
- // },
- // {
- // id: 1,
- // path: '/userManage/agentManage/editAgent',
- // name: '/userManage/agentManage/editAgent',
- // hidden:true,
- // component: () => import('@/views/userManage/agentManage/editAgent.vue'),
- // meta: {
- // title: '编辑渠道商',
- // icon: ''
- // },
- // },
- // ]
- // },
- {
- id: 0,
- path: '/userManage/memberManage',
- component: operationLayout,
- redirect: '/userManage/memberManage',
- meta: {
- title: '会员管理',
- icon: ''
- },
- children: [{
- id: 1,
- path: '/userManage/memberManage/index',
- name: '/userManage/memberManage/index',
- component: () => import('@/views/userManage/memberManage/index.vue'),
- meta: {
- title: '会员列表',
- icon: ''
- },
- },
- // {
- // id: 1,
- // path: '/userManage/memberManage/memberDetail',
- // name: '/userManage/memberManage/memberDetail',
- // component: () => import('@/views/userManage/memberManage/memberDetail.vue'),
- // meta: {
- // title: '会员详情',
- // icon: ''
- // },
- // },
- ]
- },
- ]
- },
- {
- id: 0,
- path: '/setting/index',
- component: Layout,
- meta: {
- title: '系统设置',
- icon: 'el-icon-s-shop'
- },
- alwaysShow: true,
- children:[
- {
- id: 0,
- path: '/setting/rulesManage',
- component: operationLayout,
- meta: {
- title: '分账规则',
- icon: ''
- },
- children: [{
- id: 1,
- path: '/setting/rulesManage',
- name: '/setting/rulesManage',
- component: () => import('@/views//setting/rulesManage/index.vue'),
- meta: {
- title: '规则列表',
- icon: ''
- },
- },
- ]
- },
- {
- id: 1,
- path: '/setting/synchronization',
- name: '/setting/synchronization',
- component: () => import('@/views/setting/synchronization.vue'),
- meta: {
- title: '同步管理',
- icon: ''
- },
- },
- {
- id: 1,
- path: '/setting/cityList',
- name: '/setting/cityList',
- component: () => import('@/views/setting/cityList.vue'),
- meta: {
- title: '城市列表',
- icon: ''
- },
- },
- // {
- // id: 0,
- // path: '/setting/commissionManage',
- // component: operationLayout,
- // meta: {
- // title: '渠道佣金',
- // icon: ''
- // },
- // children: [{
- // id: 1,
- // path: '/setting/commissionManage',
- // name: '/setting/commissionManage',
- // component: () => import('@/views//setting/commissionManage/index.vue'),
- // meta: {
- // title: '渠道佣金',
- // icon: ''
- // },
- // },
- // ]
- // },
- {
- id: 0,
- path: '/setting/setting',
- component: operationLayout,
- meta: {
- title: '账号设置',
- icon: ''
- },
- children: [{
- id: 1,
- path: '/setting/setting',
- name: '/setting/setting',
- component: () => import('@/views//setting/setting.vue'),
- meta: {
- title: '账号设置',
- icon: ''
- },
- },
- ]
- },
- {
- id: 0,
- path: '/setting/base',
- component: operationLayout,
- meta: {
- title: '通用设置',
- icon: ''
- },
- children: [{
- id: 0,
- path: '/setting/base',
- name: '/setting/base',
- component: () => import('@/views/setting/base.vue'),
- meta: {
- title: '通用设置',
- icon: ''
- },
- },
- ]
- }
- ]
- }
- // 404 page must be placed at the end !!!
- // { path: '*', redirect: '/404', hidden: true }
- ]
- export const asyncRouter = [
- ]
- const createRouter = () => new Router({
- // mode: 'history', // require service support
- scrollBehavior: () => ({
- y: 0
- }),
- routes: constantRoutes
- })
- const router = createRouter()
- // Detail see: https://github.com/vuejs/vue-router/issues/1234#issuecomment-357941465
- export function resetRouter() {
- const newRouter = createRouter()
- router.matcher = newRouter.matcher // reset router
- }
- export default router
|