| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878 |
- // eslint-disable-next-line
- import { UserLayout, BasicLayout, BlankLayout } from '@/layouts'
- import * as Icons from '@/core/icons'
- import { tree } from '@/api/region'
- const RouteView = {
- name: 'RouteView',
- render: (h) => h('router-view')
- }
- /**
- * 路由配置说明:
- * 建议:sider menu 请不要超过三级菜单,若超过三级菜单,则应该设计为顶部主菜单 配合左侧次级菜单
- // {
- // redirect: noredirect, //重定向
- // name: 'router-name', //路由名称
- // hidden: true, //可以在菜单中不展示这个路由,包括子路由。效果可以查看 other 下的路由配置。
- // meta: {
- // title: 'title', //菜单项名称
- // icon: 'a-icon', //菜单项图标
- // keepAlive: true, //缓存页面
- // permission:[string] //用来配置这个路由的权限,如果配置了将会验证当前用户的权限,并决定是否展示 *(默认情况下)
- // }
- // }
- **/
- export const asyncRouterMap = [
- {
- path: '/',
- name: 'root',
- component: BasicLayout,
- children: [
- // 后台首页
- {
- path: '/index',
- name: 'index',
- component: () => import(/* webpackChunkName: "index" */ '@/views/index/Index'),
- meta: {
- title: '工作台',
- keepAlive: true,
- icon: Icons.home,
- permission: ['/index']
- }
- // hidden: true
- },
- {
- path: '/canvas',
- name: 'canvas',
- component: RouteView,
- redirect: '/canvas/index',
- hidden: true,
- meta: {
- title: 'canvas',
- icon: Icons.home,
- permission: ['/canvas']
- },
- children: [
- {
- path: '/canvas/index',
- name: 'index',
- component: () => import(/* webpackChunkName: "index" */ '@/views/canvas/Index'),
- meta: {
- title: 'index',
- keepAlive: true,
- icon: Icons.home,
- permission: ['/canvas/index']
- }
- },
- {
- path: '/canvas/test',
- name: 'test',
- component: () => import(/* webpackChunkName: "index" */ '@/views/canvas/Test'),
- meta: {
- title: 'test',
- keepAlive: true,
- icon: Icons.home,
- permission: ['/canvas/test']
- }
- }
- ]
- },
- // 首页配置
- {
- path: '/home',
- name: 'home',
- component: RouteView,
- redirect: '/home/ad/index',
- meta: {
- title: '首页配置',
- icon: Icons.home,
- permission: ['/home']
- },
- children: [
- {
- path: '/home/ad/index',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/home/ad/Index'),
- meta: {
- title: '广告位列表',
- keepAlive: false,
- permission: ['/home/ad/index']
- },
- // 访问其他页面时激活该菜单(router-link-active)
- activePath: ['/home/ad/create', '/home/ad/update']
- },
- {
- path: '/home/ad/create',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/home/ad/Create'),
- meta: {
- title: '新增广告位',
- keepAlive: false,
- permission: ['/home/ad/create']
- },
- hidden: true
- },
- {
- path: '/home/ad/update',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/home/ad/Update'),
- meta: {
- title: '编辑广告位',
- keepAlive: false,
- permission: ['/home/ad/update']
- },
- hidden: true
- },
- {
- path: '/home/custom-blocks/index',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/home/custom-blocks/Index'),
- meta: {
- title: '首页版块配置',
- keepAlive: false,
- permission: ['/home/custom-blocks/index']
- },
- hidden: true
- },
- {
- path: '/home/custom-block-goods/index',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/home/custom-block-goods/Index'),
- meta: {
- title: '首页商品列表',
- keepAlive: false,
- permission: ['/home/custom-block-goods/index']
- }
- },
- {
- path: '/home/brand',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/home/Brand'),
- meta: {
- title: '探秘',
- keepAlive: false,
- permission: ['/home/brand']
- }
- },
- {
- path: '/home/experience',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/home/Experience'),
- meta: {
- title: '体验',
- keepAlive: false,
- permission: ['/home/experience']
- }
- },
- {
- path: '/home/video',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/home/Video'),
- meta: {
- title: '首页视频',
- keepAlive: false,
- permission: ['/home/video']
- }
- },
- {
- path: '/home/use',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/home/Use'),
- meta: {
- title: '当前启用',
- keepAlive: false,
- permission: ['/home/use']
- }
- },
- {
- path: '/home/activity',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/home/Activity'),
- meta: {
- title: '活动版首页',
- keepAlive: false,
- permission: ['/home/activity']
- }
- }
- ]
- },
- // 商品管理
- {
- path: '/goods',
- name: 'goods',
- component: RouteView,
- redirect: '/goods/index',
- meta: {
- title: '商品管理',
- icon: Icons.goods,
- permission: ['/goods']
- },
- children: [
- {
- path: '/goods/index',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/goods/Index'),
- meta: {
- title: '商品列表',
- keepAlive: false,
- permission: ['/goods/index']
- },
- // 访问其他页面时激活该菜单(router-link-active)
- activePath: ['/goods/create', '/goods/update']
- },
- {
- path: '/goods/create',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/goods/Create'),
- meta: {
- title: '创建商品',
- keepAlive: false,
- permission: ['/goods/create']
- },
- hidden: true
- },
- {
- path: '/goods/update',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/goods/Update'),
- meta: {
- title: '编辑商品',
- keepAlive: false,
- permission: ['/goods/update']
- },
- hidden: true
- },
- {
- path: '/goods/category/index',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/goods/category/Index'),
- meta: {
- title: '商品分类',
- keepAlive: false,
- permission: ['/goods/category/index']
- }
- },
- // {
- // path: '/goods/spec-template/index',
- // component: () => import(/* webpackChunkName: "goods" */ '@/views/goods/service/Index'),
- // meta: { title: '规格模板', keepAlive: false, permission: ['/goods/spec-template/index'] }
- // },
- {
- path: '/goods/service/index',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/goods/service/Index'),
- meta: {
- title: '服务承诺',
- keepAlive: false,
- permission: ['/goods/service/index']
- },
- hidden: true
- },
- {
- path: '/goods/comment/index',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/goods/comment/Index'),
- meta: {
- title: '评价管理',
- keepAlive: false,
- permission: ['/goods/comment/index']
- }
- }
- ]
- },
- // 活动中心
- {
- path: '/activityCenter',
- name: 'activityCenter',
- component: RouteView,
- redirect: '/activityCenter/fission/index',
- meta: {
- title: '活动中心',
- icon: Icons.goods,
- permission: ['/activityCenter']
- },
- children: [
- {
- path: '/activityCenter/fission/index',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/fission/Index'),
- meta: {
- title: '裂变券礼包活动',
- keepAlive: false,
- permission: ['/activityCenter/fission/index']
- },
- // 访问其他页面时激活该菜单(router-link-active)
- activePath: ['/activityCenter/fission/create', '/activityCenter/fission/lookFission']
- },
- {
- path: '/activityCenter/fission/create',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/fission/Create'),
- meta: {
- title: '新增裂变券礼包',
- keepAlive: false,
- permission: ['/activityCenter/fission/create']
- },
- hidden: true
- },
- {
- path: '/activityCenter/fission/lookFission',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/fission/LookFission'),
- meta: {
- title: '查看裂变券礼包详情',
- keepAlive: false,
- permission: ['/activityCenter/fission/lookFission']
- },
- hidden: true
- },
- {
- path: '/activityCenter/fission/activityData',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/fission/activityData'),
- meta: {
- title: '裂变礼包活动数据',
- keepAlive: false,
- permission: ['/activityCenter/fission/activityData']
- }
- },
- {
- path: '/activityCenter/fullGift/index',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/fullGift/Index'),
- meta: {
- title: '满就送活动',
- keepAlive: false,
- permission: ['/activityCenter/fullGift/index']
- },
- // 访问其他页面时激活该菜单(router-link-active)
- activePath: ['/activityCenter/fullGift/addGift', '/activityCenter/fullGift/lookGift']
- },
- {
- path: '/activityCenter/fullGift/addGift',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/fullGift/AddGift'),
- meta: {
- title: '新增满就送活动',
- keepAlive: false,
- permission: ['/activityCenter/fullGift/addGift']
- },
- hidden: true
- },
- {
- path: '/activityCenter/fullGift/lookGift',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/fullGift/LookGift'),
- meta: {
- title: '查看满就送活动详情',
- keepAlive: false,
- permission: ['/activityCenter/fullGift/lookGift']
- },
- hidden: true
- },
- // 满件送活动
- {
- path: '/activityCenter/fullCount/index',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/fullCount/Index'),
- meta: {
- title: '满件送活动',
- keepAlive: false,
- permission: ['/activityCenter/fullCount/index']
- },
- // 访问其他页面时激活该菜单(router-link-active)
- activePath: ['/activityCenter/fullCount/addCount', '/activityCenter/fullCount/lookCount']
- },
- {
- path: '/activityCenter/fullCount/addCount',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/fullCount/AddCount'),
- meta: {
- title: '新增满件送活动',
- keepAlive: false,
- permission: ['/activityCenter/fullCount/addCount']
- },
- hidden: true
- },
- {
- path: '/activityCenter/fullCount/lookCount',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/fullCount/LookCount'),
- meta: {
- title: '查看满件送活动',
- keepAlive: false,
- permission: ['/activityCenter/fullCount/lookCount']
- },
- hidden: true
- },
- {
- path: '/activityCenter/pieceFold/index',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/pieceFold/Index'),
- meta: {
- title: 'N件X折活动',
- keepAlive: false,
- permission: ['/activityCenter/pieceFold/index']
- },
- activePath: [
- '/activityCenter/pieceFold/create',
- '/activityCenter/pieceFold/edit',
- '/activityCenter/pieceFold/details'
- ]
- },
- {
- path: '/activityCenter/pieceFold/create',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/pieceFold/Create'),
- meta: {
- title: '新增N件X折活动',
- keepAlive: false,
- permission: ['/activityCenter/pieceFold/create']
- },
- hidden: true
- },
- {
- path: '/activityCenter/pieceFold/edit',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/pieceFold/Edit'),
- meta: {
- title: '编辑N件X折活动',
- keepAlive: false,
- permission: ['/activityCenter/pieceFold/edit']
- },
- hidden: true
- },
- {
- path: '/activityCenter/pieceFold/details',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/pieceFold/Details'),
- meta: {
- title: 'N件X折活动详情',
- keepAlive: false,
- permission: ['/activityCenter/pieceFold/details']
- },
- hidden: true
- },
- // 砍价活动列表
- {
- path: '/activityCenter/bargain/index',
- component: () => import('@/views/activityCenter/bargain/Index'),
- meta: {
- title: '砍价活动',
- keepAlive: false,
- permission: ['/activityCenter/bargain/index']
- },
- // 访问其他页面时激活该菜单(router-link-active)
- activePath: [
- '/activityCenter/bargain/create',
- '/activityCenter/bargain/details',
- '/activityCenter/bargain/edit'
- ]
- },
- // 新增砍价活动
- {
- path: '/activityCenter/bargain/create',
- component: () => import('@/views/activityCenter/bargain/Create'),
- meta: {
- title: '新增砍价活动',
- keepAlive: false,
- permission: ['/activityCenter/bargain/create']
- },
- hidden: true
- },
- // 砍价活动详情
- {
- path: '/activityCenter/bargain/details',
- component: () => import('@/views/activityCenter/bargain/Details'),
- meta: {
- title: '砍价活动详情',
- keepAlive: false,
- permission: ['/activityCenter/bargain/details']
- },
- hidden: true
- },
- // 编辑砍价活动
- {
- path: '/activityCenter/bargain/edit',
- component: () => import('@/views/activityCenter/bargain/Edit'),
- meta: {
- title: '编辑砍价活动',
- keepAlive: false,
- permission: ['/activityCenter/bargain/edit']
- },
- hidden: true
- },
- // 砍价组团数据
- {
- path: '/activityCenter/bargain/clusterData',
- component: () => import('@/views/activityCenter/bargain/ClusterData'),
- meta: {
- title: '砍价组团数据',
- keepAlive: false,
- permission: ['/activityCenter/bargain/clusterData']
- },
- hidden: true
- },
- // 拼团活动
- {
- path: '/activityCenter/collage/index',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/collage/index'),
- meta: {
- title: '拼团活动',
- keepAlive: false,
- permission: ['/activityCenter/collage/index']
- },
- // 访问其他页面时激活该菜单(router-link-active)
- activePath: [
- '/activityCenter/collage/create',
- '/activityCenter/collage/edit',
- '/activityCenter/collage/details',
- '/activityCenter/collage/clusterData',
- '/activityCenter/collage/orderList'
- ]
- },
- // 创建拼团活动
- {
- path: '/activityCenter/collage/create',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/collage/Create'),
- meta: {
- title: '新增拼团活动',
- keepAlive: false,
- permission: ['/activityCenter/collage/create']
- },
- hidden: true
- },
- // 编辑拼团活动
- {
- path: '/activityCenter/collage/edit',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/collage/Edit'),
- meta: {
- title: '编辑拼团活动',
- keepAlive: false,
- permission: ['/activityCenter/collage/edit']
- },
- hidden: true
- },
- // 拼团活动详情
- {
- path: '/activityCenter/collage/details',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/collage/Details'),
- meta: {
- title: '拼团活动详情',
- keepAlive: false,
- permission: ['/activityCenter/collage/details']
- },
- hidden: true
- },
- // 拼团活动记录
- {
- path: '/activityCenter/collage/clusterData',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/collage/ClusterData'),
- meta: {
- title: '拼团记录',
- keepAlive: false,
- permission: ['/activityCenter/collage/clusterData']
- },
- hidden: true
- },
- // 拼团活动订单
- {
- path: '/activityCenter/collage/orderList',
- component: () => import('@/views/activityCenter/collage/OrderList'),
- meta: {
- title: '拼团活动订单',
- keepAlive: false,
- permission: ['/activityCenter/collage/orderList']
- },
- hidden: true
- },
- // 拼团裂变
- {
- path: '/activityCenter/patchworkFission/index',
- component: () => import('@/views/activityCenter/patchworkFission/Index'),
- meta: {
- title: '拼团裂变',
- keepAlive: false,
- permission: ['/activityCenter/patchworkFission/index']
- },
- activePath: [
- '/activityCenter/patchworkFission/create',
- '/activityCenter/patchworkFission/details',
- '/activityCenter/patchworkFission/orderList'
- ]
- },
- // 创建拼团裂变
- {
- path: '/activityCenter/patchworkFission/create',
- component: () => import('@/views/activityCenter/patchworkFission/Create'),
- meta: {
- title: '新增拼团裂变',
- keepAlive: false,
- permission: ['/activityCenter/patchworkFission/create']
- },
- hidden: true
- },
- // 创建拼团裂变详情
- {
- path: '/activityCenter/patchworkFission/details',
- component: () => import('@/views/activityCenter/patchworkFission/Details'),
- meta: {
- title: '拼团裂变详情',
- keepAlive: false,
- permission: ['/activityCenter/patchworkFission/details']
- },
- hidden: true
- },
- // 创建拼团裂变订单列表页
- {
- path: '/activityCenter/patchworkFission/orderList',
- component: () => import('@/views/activityCenter/patchworkFission/OrderList'),
- meta: {
- title: '拼团裂变活动订单',
- keepAlive: false,
- permission: ['/activityCenter/patchworkFission/orderList']
- },
- hidden: true
- },
- // 拼团裂变订单列表页
- {
- path: '/activityCenter/patchworkFission/clusterData',
- component: () => import('@/views/activityCenter/patchworkFission/ClusterData'),
- meta: {
- title: '拼团裂变活动订单',
- keepAlive: false,
- permission: ['/activityCenter/patchworkFission/clusterData']
- },
- hidden: true
- },
- // 全场满件送活动
- {
- path: '/activityCenter/fullCountAll/index',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/fullCountAll/Index'),
- meta: {
- title: '全场满件赠',
- keepAlive: false,
- permission: ['/activityCenter/fullCountAll/index']
- },
- // 访问其他页面时激活该菜单(router-link-active)
- activePath: ['/activityCenter/fullCountAll/addCount', '/activityCenter/fullCountAll/lookCount']
- },
- {
- path: '/activityCenter/fullCountAll/addCount',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/fullCountAll/AddCount'),
- meta: {
- title: '新增全场满件送活动',
- keepAlive: false,
- permission: ['/activityCenter/fullCountAll/addCount']
- },
- hidden: true
- },
- {
- path: '/activityCenter/fullCountAll/lookCount',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/fullCountAll/LookCount'),
- meta: {
- title: '查看全场满件送活动',
- keepAlive: false,
- permission: ['/activityCenter/fullCountAll/lookCount']
- },
- hidden: true
- },
- {
- path: '/activityCenter/spike/index',
- component: () => import('@/views/activityCenter/spike/Index'),
- meta: {
- title: '限时秒杀',
- keepAlive: false,
- permission: ['/activityCenter/spike/index']
- },
- activePath: [
- '/activityCenter/spike/create',
- '/activityCenter/spike/detail',
- '/activityCenter/spike/activeGoods'
- ]
- },
- {
- path: '/activityCenter/spike/create',
- component: () => import('@/views/activityCenter/spike/Create'),
- meta: {
- title: '新增限时秒杀',
- keepAlive: false,
- permission: ['/activityCenter/spike/create']
- },
- hidden: true
- },
- {
- path: '/activityCenter/spike/detail',
- component: () => import('@/views/activityCenter/spike/Detail'),
- meta: {
- title: '查看限时秒杀详情',
- keepAlive: false,
- permission: ['/activityCenter/spike/detail']
- },
- hidden: true
- },
- {
- path: '/activityCenter/spike/activeGoods',
- component: () => import('@/views/activityCenter/spike/ActiveGoods'),
- meta: {
- title: '查看活动商品',
- keepAlive: false,
- permission: ['/activityCenter/spike/activeGoods']
- },
- hidden: true
- }
- ]
- },
- // 购物卡管理
- {
- path: '/riceCard',
- name: 'riceCard',
- component: RouteView,
- redirect: '/riceCard/index',
- meta: {
- title: '购物卡管理',
- icon: Icons.goods,
- permission: ['/riceCard']
- },
- children: [
- {
- path: '/riceCard/index',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/riceCard/Index'),
- meta: {
- title: '购物卡列表',
- keepAlive: false,
- permission: ['/riceCard/index']
- },
- // 访问其他页面时激活该菜单(router-link-active)
- activePath: [
- '/riceCard/cashCard',
- '/riceCard/cashDetail',
- '/riceCard/cashUpdate',
- '/riceCard/goodsChangeCard',
- '/riceCard/goodsChangeDetail',
- '/riceCard/entityCash',
- '/riceCard/entityCashDetail'
- ]
- },
- {
- path: '/riceCard/exchange',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/riceCard/Exchange'),
- meta: {
- title: '兑换购物卡列表',
- keepAlive: false,
- permission: ['/riceCard/exchange']
- },
- hidden: true
- },
- {
- path: '/riceCard/detail',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/riceCard/Detail'),
- meta: {
- title: '兑换明细',
- keepAlive: false,
- permission: ['/riceCard/detail']
- },
- hidden: true
- },
- {
- path: '/riceCard/cashCard',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/riceCard/CashCard'),
- meta: {
- title: '新增电子现金卡',
- keepAlive: false,
- permission: ['/riceCard/cashCard']
- },
- hidden: true
- },
- {
- path: '/riceCard/cashDetail',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/riceCard/CashDetail'),
- meta: {
- title: '电子现金卡详情',
- keepAlive: false,
- permission: ['/riceCard/cashDetail']
- },
- hidden: true
- },
- {
- path: '/riceCard/cashUpdate',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/riceCard/CashUpdate'),
- meta: {
- title: '编辑电子现金卡',
- keepAlive: false,
- permission: ['/riceCard/cashUpdate']
- },
- hidden: true
- },
- {
- path: '/riceCard/goodsChangeCard',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/riceCard/GoodsChangeCard'),
- meta: {
- title: '新增实体实物兑换卡',
- keepAlive: false,
- permission: ['/riceCard/goodsChangeCard']
- },
- hidden: true
- },
- {
- path: '/riceCard/goodsChangeDetail',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/riceCard/GoodsChangeDetail'),
- meta: {
- title: '查看实体实物兑换卡',
- keepAlive: false,
- permission: ['/riceCard/goodsChangeDetail']
- },
- hidden: true
- },
- {
- path: '/riceCard/entityCardList',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/riceCard/EntityCardList'),
- meta: {
- title: '实体购物卡列表',
- keepAlive: false,
- permission: ['/riceCard/entityCardList']
- },
- activePath: ['/riceCard/entityCardInfo']
- },
- {
- path: '/riceCard/entityCardInfo',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/riceCard/EntityCardInfo'),
- meta: {
- title: '实体购物卡明细表',
- keepAlive: false,
- permission: ['/riceCard/entityCardInfo']
- },
- hidden: true
- },
- {
- path: '/riceCard/entityCash',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/riceCard/EntityCash'),
- meta: {
- title: '新增实体现金卡',
- keepAlive: false,
- permission: ['/riceCard/entityCash']
- },
- hidden: true
- },
- {
- path: '/riceCard/entityCashDetail',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/riceCard/EntityCashDetail'),
- meta: {
- title: '实体现金卡详情',
- keepAlive: false,
- permission: ['/riceCard/entityCashDetail']
- },
- hidden: true
- }
- ]
- },
- // 购物卡订单管理
- {
- path: '/riceCardOrder',
- name: 'riceCardOrder',
- component: RouteView,
- redirect: '/riceCardOrder/index',
- meta: {
- title: '购物卡订单管理',
- icon: Icons.goods,
- permission: ['/riceCardOrder']
- },
- children: [
- {
- path: '/riceCardOrder/index',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/riceCardOrder/Index'),
- meta: {
- title: '购物卡订单列表',
- keepAlive: false,
- permission: ['/riceCardOrder/index']
- },
- // 访问其他页面时激活该菜单(router-link-active)
- activePath: ['/riceCardOrder/detail']
- },
- {
- path: '/riceCardOrder/detail',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/riceCardOrder/Detail'),
- meta: {
- title: '购物卡订单详情',
- keepAlive: false,
- permission: ['/riceCardOrder/detail']
- },
- hidden: true
- },
- {
- path: '/riceCardOrder/entitySend',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/riceCardOrder/EntitySend'),
- meta: {
- title: '实物兑换卡配送表',
- keepAlive: false,
- permission: ['/riceCardOrder/entitySend']
- }
- }
- ]
- },
- // 购物卡用户持有表
- {
- path: '/riceCardUser',
- name: 'riceCardUser',
- component: RouteView,
- redirect: '/riceCardUser/index',
- meta: {
- title: '购物卡用户持有表',
- icon: Icons.goods,
- permission: ['/riceCardUser']
- },
- children: [
- {
- path: '/riceCardUser/cash/index',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/riceCardUser/cash/Index'),
- meta: {
- title: '现金卡用户持有表',
- keepAlive: false,
- permission: ['/riceCardUser/cash/index']
- }
- },
- {
- path: '/riceCardUser/cash/detail',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/riceCardUser/cash/Detail'),
- meta: {
- title: '现金卡消费明细',
- keepAlive: false,
- permission: ['/riceCardUser/cash/detail']
- }
- },
- {
- path: '/riceCardUser/GoodsChange/index',
- component: () => import(/* webpackChunkName: "goods" */ '@/views//riceCardUser/GoodsChange/Index'),
- meta: {
- title: '实物兑换卡用户表',
- keepAlive: false,
- permission: ['/riceCardUser/GoodsChange/index']
- }
- }
- ]
- },
- // 订单管理
- {
- path: '/order/list/all',
- name: 'order',
- component: RouteView,
- redirect: '/order/list/all',
- meta: {
- title: '订单管理',
- icon: Icons.order,
- permission: ['/order']
- },
- children: [
- {
- path: '/order/list/all',
- component: () => import(/* webpackChunkName: "order" */ '@/views/order/Index'),
- meta: {
- title: '全部订单',
- keepAlive: false,
- permission: ['/order/list/all']
- },
- // 访问其他页面时激活该菜单(router-link-active)
- activePath: ['/order/detail']
- },
- {
- path: '/order/list/delivery',
- component: () => import(/* webpackChunkName: "order" */ '@/views/order/Delivery'),
- meta: {
- title: '待发货',
- keepAlive: false,
- permission: ['/order/list/delivery']
- }
- },
- {
- path: '/order/list/receipt',
- component: () => import(/* webpackChunkName: "order" */ '@/views/order/Receipt'),
- meta: {
- title: '已发货',
- keepAlive: false,
- permission: ['/order/list/receipt']
- }
- },
- // {
- // path: '/order/list/pay',
- // component: () => import( /* webpackChunkName: "order" */ '@/views/order/Index'),
- // meta: {
- // title: '待付款',
- // keepAlive: false,
- // permission: ['/order/list/all']
- // }
- // },
- // {
- // path: '/order/list/complete',
- // component: () => import( /* webpackChunkName: "order" */ '@/views/order/Index'),
- // meta: {
- // title: '已完成',
- // keepAlive: false,
- // permission: ['/order/list/all']
- // }
- // },
- // {
- // path: '/order/list/cancel',
- // component: () => import( /* webpackChunkName: "order" */ '@/views/order/Index'),
- // meta: {
- // title: '已取消',
- // keepAlive: false,
- // permission: ['/order/list/all']
- // }
- // },
- {
- path: '/order/detail',
- component: () => import(/* webpackChunkName: "order" */ '@/views/order/Detail'),
- meta: {
- title: '订单详情',
- keepAlive: false,
- permission: ['/order/detail']
- },
- hidden: true
- },
- {
- path: '/order/refund/index',
- component: () => import(/* webpackChunkName: "order" */ '@/views/order/refund/Index'),
- meta: {
- title: '售后订单',
- keepAlive: false,
- permission: ['/order/refund/index']
- },
- activePath: [
- '/order/refund/detail',
- '/order/refund/compensateOrder/create',
- '/order/refund/compensateOrder/detail',
- '/order/refund/compensateOrder/update'
- ]
- },
- {
- path: '/order/refund/detail',
- component: () => import(/* webpackChunkName: "order" */ '@/views/order/refund/Detail'),
- meta: {
- title: '售后单详情',
- keepAlive: false,
- permission: ['/order/refund/detail']
- },
- hidden: true
- },
- {
- path: '/order/refund/compensateOrder/create',
- component: () => import(/* webpackChunkName: "order" */ '@/views/order/refund/compensateOrder/Create'),
- meta: {
- title: '新增售后补偿单',
- keepAlive: false,
- permission: ['/order/refund/compensateOrder/create']
- },
- hidden: true
- },
- {
- path: '/order/refund/compensateOrder/detail',
- component: () => import(/* webpackChunkName: "order" */ '@/views/order/refund/compensateOrder/Detail'),
- meta: {
- title: '售后补偿单详情',
- keepAlive: false,
- permission: ['/order/refund/compensateOrder/detail']
- },
- hidden: true
- },
- {
- path: '/order/refund/compensateOrder/update',
- component: () => import(/* webpackChunkName: "order" */ '@/views/order/refund/compensateOrder/Update'),
- meta: {
- title: '编辑售后补偿单',
- keepAlive: false,
- permission: ['/order/refund/compensateOrder/update']
- },
- hidden: true
- },
- {
- path: '/order/remind',
- component: () => import(/* webpackChunkName: "order" */ '@/views/order/Remind'),
- meta: {
- title: '订单提醒',
- keepAlive: false,
- permission: ['/order/remind']
- }
- }
- ]
- },
- // 供应商管理
- {
- path: '/provider',
- name: 'provider',
- component: RouteView,
- redirect: '/provider/index',
- meta: {
- title: '供应商管理',
- icon: Icons.goods,
- permission: ['/provider']
- },
- children: [
- {
- path: '/provider/index',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/provider/Index'),
- meta: {
- title: '供应商列表',
- keepAlive: false,
- permission: ['/provider/index']
- },
- // 访问其他页面时激活该菜单(router-link-active)
- activePath: ['/provider/create', '/provider/update']
- },
- {
- path: '/provider/create',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/provider/Create'),
- meta: {
- title: '创建供应商',
- keepAlive: false,
- permission: ['/provider/create']
- },
- hidden: true
- },
- {
- path: '/provider/update',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/provider/Update'),
- meta: {
- title: '编辑供应商',
- keepAlive: false,
- permission: ['/provider/update']
- },
- hidden: true
- }
- ]
- },
- // 管理员
- {
- path: '/manage',
- name: 'manage',
- component: RouteView,
- redirect: '/manage/user/index',
- meta: {
- title: '系统设置',
- icon: Icons.manage,
- permission: ['/manage']
- },
- // hidden: true,
- children: [
- {
- path: '/manage/user/index',
- component: () => import(/* webpackChunkName: "manage" */ '@/views/manage/user/Index'),
- meta: {
- title: '管理员列表',
- keepAlive: false,
- permission: ['/manage/user/index']
- }
- },
- {
- path: '/manage/role/index',
- component: () => import(/* webpackChunkName: "manage" */ '@/views/manage/role/Index'),
- meta: {
- title: '角色管理',
- keepAlive: false,
- permission: ['/manage/role/index']
- }
- }
- ]
- },
- // 店铺管理
- {
- path: '/store',
- name: 'store',
- component: RouteView,
- redirect: '/store/setting',
- meta: {
- title: '店铺管理',
- icon: Icons.shop,
- permission: ['/store']
- },
- hidden: true,
- children: [
- {
- path: '/store/setting',
- component: () => import(/* webpackChunkName: "store" */ '@/views/store/Setting'),
- meta: {
- title: '店铺设置',
- keepAlive: false,
- permission: ['/store/setting']
- }
- },
- {
- path: '/store/address/index',
- component: () => import(/* webpackChunkName: "store" */ '@/views/store/address/Index'),
- meta: {
- title: '地址管理',
- keepAlive: false,
- permission: ['/store/address/index']
- }
- },
- {
- path: '/page',
- component: RouteView,
- redirect: '/page/index',
- meta: {
- title: '店铺页面',
- keepAlive: false,
- permission: ['/page']
- },
- children: [
- {
- path: '/page/index',
- component: () => import(/* webpackChunkName: "page" */ '@/views/page/Index'),
- meta: {
- title: '页面设计',
- keepAlive: false,
- permission: ['/page/index']
- },
- // 访问其他页面时激活该菜单(router-link-active)
- activePath: ['/page/create', '/page/update']
- },
- {
- path: '/page/create',
- component: () => import(/* webpackChunkName: "page" */ '@/views/page/Create'),
- meta: {
- title: '新增页面',
- keepAlive: false,
- permission: ['/page/create']
- },
- hidden: true
- },
- {
- path: '/page/update',
- component: () => import(/* webpackChunkName: "page" */ '@/views/page/Update'),
- meta: {
- title: '编辑页面',
- keepAlive: false,
- permission: ['/page/update']
- },
- hidden: true
- },
- {
- path: '/page/category',
- component: () => import(/* webpackChunkName: "page" */ '@/views/page/category/Index'),
- meta: {
- title: '分类模板',
- keepAlive: false,
- permission: ['/page/category']
- }
- }
- ]
- }
- ]
- },
- // 用户管理
- {
- path: '/user',
- name: 'user',
- component: RouteView,
- meta: {
- title: '用户管理',
- icon: Icons.user,
- permission: ['/user']
- },
- children: [
- {
- path: '/user/index',
- component: () => import(/* webpackChunkName: "user" */ '@/views/user/Index'),
- meta: {
- title: '用户列表',
- keepAlive: false,
- permission: ['/user/index']
- },
- // 访问其他页面时激活该菜单(router-link-active)
- activePath: ['/user/grade/index']
- },
- {
- path: '/user/grade/index',
- component: () => import(/* webpackChunkName: "user" */ '@/views/user/grade/Index'),
- meta: {
- title: '用户资料',
- keepAlive: false,
- permission: ['/user/grade/index']
- },
- hidden: true
- },
- {
- path: '/user/balance',
- component: RouteView,
- redirect: '/user/balance/index',
- meta: {
- title: '余额记录',
- keepAlive: false,
- permission: ['/user/balance']
- },
- hidden: true,
- children: [
- {
- path: '/user/recharge/index',
- component: () => import(/* webpackChunkName: "content" */ '@/views/user/recharge/Index'),
- meta: {
- title: '充值记录',
- keepAlive: false,
- permission: ['/user/recharge/index']
- }
- },
- {
- path: '/user/balance/index',
- component: () => import(/* webpackChunkName: "content" */ '@/views/user/balance/Index'),
- meta: {
- title: '余额明细',
- keepAlive: false,
- permission: ['/user/balance/index']
- }
- }
- ]
- }
- ]
- },
- // VIP会员中心
- {
- path: '/memberCenter',
- name: 'memberCenter',
- component: RouteView,
- meta: {
- title: 'VIP会员中心',
- icon: Icons.user,
- permission: ['/memberCenter']
- },
- children: [
- // 会员卡销售订单
- // {
- // path: '/memberCenter/saleOrder',
- // component: () => import('@/views/memberCenter/SaleOrder'),
- // meta: {
- // title: '会员卡销售订单',
- // keepAlive: false,
- // permission: ['/memberCenter/saleOrder']
- // }
- // },
- // 金稻会员列表
- {
- path: '/memberCenter/memberList',
- component: () => import('@/views/memberCenter/MemberList'),
- meta: {
- title: '金稻会员列表',
- keepAlive: false,
- permission: ['/memberCenter/memberList']
- }
- },
- // // 金米粒收支明细
- // {
- // path: '/memberCenter/kimmyDetailed',
- // component: () => import('@/views/memberCenter/KimmyDetailed'),
- // meta: {
- // title: '金米粒收支明细',
- // keepAlive: false,
- // permission: ['/memberCenter/kimmyDetailed']
- // },
- // hidden: true
- // },
- // // 金米粒手工扣减
- // {
- // path: '/memberCenter/kimmyDeduct/index',
- // component: () => import('@/views/memberCenter/kimmyDeduct/Index'),
- // meta: {
- // title: '金米粒手工扣减',
- // keepAlive: false,
- // permission: ['/memberCenter/kimmyDeduct/index']
- // },
- // // 访问其他页面时激活该菜单(router-link-active)
- // activePath: [
- // '/memberCenter/kimmyDeduct/create',
- // '/memberCenter/kimmyDeduct/edit',
- // '/memberCenter/kimmyDeduct/details'
- // ]
- // },
- // // 新增手工扣减单
- // {
- // path: '/memberCenter/kimmyDeduct/create',
- // component: () => import('@/views/memberCenter/kimmyDeduct/Create'),
- // meta: {
- // title: '新增手工扣减单',
- // keepAlive: false,
- // permission: ['/memberCenter/kimmyDeduct/create']
- // },
- // hidden: true
- // },
- // // 编辑手工扣减单
- // {
- // path: '/memberCenter/kimmyDeduct/edit',
- // component: () => import('@/views/memberCenter/kimmyDeduct/Edit'),
- // meta: {
- // title: '编辑手工扣减单',
- // keepAlive: false,
- // permission: ['/memberCenter/kimmyDeduct/edit']
- // },
- // hidden: true
- // },
- // // 手工扣减单详情
- // {
- // path: '/memberCenter/kimmyDeduct/details',
- // component: () => import('@/views/memberCenter/kimmyDeduct/Details'),
- // meta: {
- // title: '手工扣减单详情',
- // keepAlive: false,
- // permission: ['/memberCenter/kimmyDeduct/details']
- // },
- // hidden: true
- // },
- // // 会员卡
- // {
- // path: '/memberCenter/editMemberCard',
- // component: () => import('@/views/memberCenter/EditMemberCard'),
- // meta: {
- // title: '会员卡',
- // keepAlive: false,
- // permission: ['/memberCenter/editMemberCard']
- // }
- // },
- // // 金米粒抵扣限制
- // {
- // path: '/memberCenter/deductLimit',
- // component: () => import('@/views/memberCenter/DeductLimit'),
- // meta: {
- // title: '金米粒抵扣限制',
- // keepAlive: false,
- // permission: ['/memberCenter/deductLimit']
- // }
- // },
- // // 配置会员价商品
- // {
- // path: '/memberCenter/menberGoods/configList',
- // component: () => import('@/views/memberCenter/menberGoods/ConfigList'),
- // meta: {
- // title: '配置会员价商品',
- // keepAlive: false,
- // permission: ['/memberCenter/menberGoods/configList']
- // },
- // // 访问其他页面时激活该菜单(router-link-active)
- // activePath: [
- // '/memberCenter/menberGoods/create',
- // '/memberCenter/menberGoods/edit',
- // '/memberCenter/menberGoods/details'
- // ]
- // },
- // // 添加会员价商品
- // {
- // path: '/memberCenter/menberGoods/create',
- // component: () => import('@/views/memberCenter/menberGoods/Create'),
- // meta: {
- // title: '添加会员价商品',
- // keepAlive: false,
- // permission: ['/memberCenter/menberGoods/create']
- // },
- // hidden: true
- // },
- // // 编辑会员价商品
- // {
- // path: '/memberCenter/menberGoods/edit',
- // component: () => import('@/views/memberCenter/menberGoods/Edit'),
- // meta: {
- // title: '编辑会员价商品',
- // keepAlive: false,
- // permission: ['/memberCenter/menberGoods/edit']
- // },
- // hidden: true
- // },
- // // 会员价商品详情
- // {
- // path: '/memberCenter/menberGoods/details',
- // component: () => import('@/views/memberCenter/menberGoods/Details'),
- // meta: {
- // title: '会员价商品详情',
- // keepAlive: false,
- // permission: ['/memberCenter/menberGoods/details']
- // },
- // hidden: true
- // },
- // // 会员价商品审核
- // {
- // path: '/memberCenter/menberGoods/examineList',
- // component: () => import('@/views/memberCenter/menberGoods/ExamineList'),
- // meta: {
- // title: '会员价商品审核',
- // keepAlive: false,
- // permission: ['/memberCenter/menberGoods/examineList']
- // }
- // },
- // // 月度会员福利
- // {
- // path: '/memberCenter/monthlyWelfare/index',
- // component: () => import('@/views/memberCenter/monthlyWelfare/Index'),
- // meta: {
- // title: '月度会员福利',
- // keepAlive: false,
- // permission: ['/memberCenter/monthlyWelfare/index']
- // },
- // // 访问其他页面时激活该菜单(router-link-active)
- // activePath: [
- // '/memberCenter/monthlyWelfare/cooperate/create',
- // '/memberCenter/monthlyWelfare/cooperate/edit',
- // '/memberCenter/monthlyWelfare/cooperate/details',
- // '/memberCenter/monthlyWelfare/special/create',
- // '/memberCenter/monthlyWelfare/special/edit',
- // '/memberCenter/monthlyWelfare/special/details',
- // '/memberCenter/monthlyWelfare/receivingRecord',
- // '/memberCenter/monthlyWelfare/receivingDetails'
- // ]
- // },
- // // 新建会员福利(异业合作券)
- // {
- // path: '/memberCenter/monthlyWelfare/cooperate/create',
- // component: () => import('@/views/memberCenter/monthlyWelfare/cooperate/Create'),
- // meta: {
- // title: '新建会员福利(异业合作券)',
- // keepAlive: false,
- // permission: ['/memberCenter/monthlyWelfare/cooperate/create']
- // },
- // hidden: true
- // },
- // // 编辑会员福利(异业合作券)
- // {
- // path: '/memberCenter/monthlyWelfare/cooperate/edit',
- // component: () => import('@/views/memberCenter/monthlyWelfare/cooperate/Edit'),
- // meta: {
- // title: '编辑会员福利(异业合作券)',
- // keepAlive: false,
- // permission: ['/memberCenter/monthlyWelfare/cooperate/edit']
- // },
- // hidden: true
- // },
- // // 会员福利详情(异业合作券)
- // {
- // path: '/memberCenter/monthlyWelfare/cooperate/details',
- // component: () => import('@/views/memberCenter/monthlyWelfare/cooperate/Details'),
- // meta: {
- // title: '会员福利详情(异业合作券)',
- // keepAlive: false,
- // permission: ['/memberCenter/monthlyWelfare/cooperate/details']
- // },
- // hidden: true
- // },
- // // 新建会员福利(会员专享券)
- // {
- // path: '/memberCenter/monthlyWelfare/special/create',
- // component: () => import('@/views/memberCenter/monthlyWelfare/special/Create'),
- // meta: {
- // title: '新建会员福利(会员专享券)',
- // keepAlive: false,
- // permission: ['/memberCenter/monthlyWelfare/special/create']
- // },
- // hidden: true
- // },
- // // 编辑会员福利(会员专享券)
- // {
- // path: '/memberCenter/monthlyWelfare/special/edit',
- // component: () => import('@/views/memberCenter/monthlyWelfare/special/Edit'),
- // meta: {
- // title: '编辑会员福利(会员专享券)',
- // keepAlive: false,
- // permission: ['/memberCenter/monthlyWelfare/special/edit']
- // },
- // hidden: true
- // },
- // // 会员福利详情(会员专享券)
- // {
- // path: '/memberCenter/monthlyWelfare/special/details',
- // component: () => import('@/views/memberCenter/monthlyWelfare/special/Details'),
- // meta: {
- // title: '会员福利详情(会员专享券)',
- // keepAlive: false,
- // permission: ['/memberCenter/monthlyWelfare/special/details']
- // },
- // hidden: true
- // },
- // // 异业福利领取记录
- // {
- // path: '/memberCenter/monthlyWelfare/receivingRecord',
- // component: () => import('@/views/memberCenter/monthlyWelfare/ReceivingRecord'),
- // meta: {
- // title: '异业福利领取记录',
- // keepAlive: false,
- // permission: ['/memberCenter/monthlyWelfare/receivingRecord']
- // },
- // hidden: true
- // },
- // // 异业福利领取明细
- // {
- // path: '/memberCenter/monthlyWelfare/receivingDetails',
- // component: () => import('@/views/memberCenter/monthlyWelfare/ReceivingDetails'),
- // meta: {
- // title: '异业福利领取明细',
- // keepAlive: false,
- // permission: ['/memberCenter/monthlyWelfare/receivingDetails']
- // },
- // hidden: true
- // },
- // // 会员优惠券
- // {
- // path: '/memberCenter/coupon/index',
- // component: () => import('@/views/memberCenter/coupon/Index'),
- // meta: {
- // title: '会员优惠券',
- // keepAlive: false,
- // permission: ['/memberCenter/coupon/index']
- // },
- // activePath: [
- // '/memberCenter/coupon/create',
- // '/memberCenter/coupon/detail',
- // '/memberCenter/coupon/receivingRecord',
- // '/memberCenter/coupon/receivingDetails'
- // ]
- // },
- // // 新建会员券
- // {
- // path: '/memberCenter/coupon/create',
- // component: () => import('@/views/memberCenter/coupon/Create'),
- // meta: {
- // title: '新建会员券',
- // keepAlive: false,
- // permission: ['/memberCenter/coupon/create']
- // },
- // hidden: true
- // },
- // // 会员券详情
- // {
- // path: '/memberCenter/coupon/detail',
- // component: () => import('@/views/memberCenter/coupon/Detail'),
- // meta: {
- // title: '会员券详情',
- // keepAlive: false,
- // permission: ['/memberCenter/coupon/detail']
- // },
- // hidden: true
- // },
- // // 福利兑换码
- // // {
- // // path: '/memberCenter/different',
- // // component: () => import('@/views/memberCenter/Different'),
- // // meta: {
- // // title: '福利兑换码',
- // // keepAlive: false,
- // // permission: ['/memberCenter/different']
- // // },
- // // hidden: false
- // // },
- // // 福利兑换码
- {
- path: '/memberCenter/growthValue',
- component: () => import('@/views/memberCenter/GrowthValue'),
- meta: {
- title: '会员成长值',
- keepAlive: false,
- permission: ['/memberCenter/growthValue']
- },
- hidden: false
- },
- // 会员优惠券领取记录
- {
- path: '/memberCenter/coupon/receivingRecord',
- component: () => import('@/views/memberCenter/coupon/ReceivingRecord'),
- meta: {
- title: '会员优惠券领取记录',
- keepAlive: false,
- permission: ['/memberCenter/coupon/receivingRecord']
- },
- hidden: true
- },
- // 会员优惠券领取明细
- {
- path: '/memberCenter/coupon/receivingDetails',
- component: () => import('@/views/memberCenter/coupon/ReceivingDetails'),
- meta: {
- title: '会员优惠券领取明细',
- keepAlive: false,
- permission: ['/memberCenter/coupon/receivingDetails']
- },
- hidden: true
- }
- ]
- },
- // 门店管理
- {
- path: '/shops',
- name: 'shops',
- component: RouteView,
- redirect: '/shops/index',
- meta: {
- title: '门店管理',
- icon: Icons.statistics,
- permission: ['/shops']
- },
- children: [
- {
- path: '/shops/index',
- component: () => import(/* webpackChunkName: "user" */ '@/views/shops/Index'),
- meta: {
- title: '门店列表',
- keepAlive: false,
- permission: ['/shops/index']
- },
- // 访问其他页面时激活该菜单(router-link-active)
- activePath: ['/shops/create', '/shops/detail', '/shops/commission', '/shops/carry', '/shops/addGoods']
- },
- {
- path: '/shops/create',
- component: () => import(/* webpackChunkName: "user" */ '@/views/shops/Create'),
- meta: {
- title: '新增门店',
- keepAlive: false,
- permission: ['/shops/create']
- },
- hidden: true
- },
- {
- path: '/shops/detail',
- component: () => import(/* webpackChunkName: "user" */ '@/views/shops/Detail'),
- meta: {
- title: '门店详情',
- keepAlive: false,
- permission: ['/shops/detail']
- },
- hidden: true
- },
- {
- path: '/shops/commission',
- component: () => import(/* webpackChunkName: "user" */ '@/views/shops/commission'),
- meta: {
- title: '门店分佣配置',
- keepAlive: false,
- permission: ['/shops/commission']
- },
- hidden: true
- },
- {
- path: '/shops/carry',
- component: () => import(/* webpackChunkName: "user" */ '@/views/shops/Carry'),
- meta: {
- title: '门店自提',
- keepAlive: false,
- permission: ['/shops/carry']
- },
- hidden: true
- },
- {
- path: '/shops/addGoods',
- component: () => import(/* webpackChunkName: "user" */ '@/views/shops/AddGoods'),
- meta: {
- title: '添加在售商品',
- keepAlive: false,
- permission: ['/shops/addGoods']
- },
- hidden: true
- }
- ]
- },
- // 分销管理
- {
- path: '/commission/Setting',
- name: 'commission',
- component: RouteView,
- redirect: '/commission/Setting',
- meta: {
- title: '分销管理',
- icon: Icons.home,
- permission: ['/commission']
- },
- children: [
- {
- path: '/commission/Setting',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/commission/Setting'),
- meta: {
- title: '普通分佣配置',
- keepAlive: false,
- permission: ['/commission/Setting']
- }
- },
- {
- path: '/commission/applyList',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/commission/applyList'),
- meta: {
- title: '分销申请列表',
- keepAlive: false,
- permission: ['/commission/applyList']
- }
- },
- {
- path: '/commission/lowerRecommend',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/commission/LowerRecommend'),
- meta: {
- title: '下级推荐官',
- keepAlive: false,
- permission: ['/commission/lowerRecommend']
- },
- hidden: true
- }
- ]
- },
- // 营销中心
- {
- path: '/marketingCenter',
- name: 'marketingCenter',
- component: RouteView,
- redirect: '/marketingCenter/manage',
- meta: {
- title: '营销中心',
- icon: Icons.statistics,
- permission: ['/marketingCenter']
- },
- children: [
- {
- path: '/marketingCenter/index',
- component: () => import(/* webpackChunkName: "user" */ '@/views/marketingCenter/index'),
- meta: {
- title: '营销中心',
- keepAlive: false,
- permission: ['/marketingCenter/index']
- },
- hidden: true
- },
- {
- path: '/marketingCenter/addCoupon',
- name: 'addCoupon',
- component: () => import(/* webpackChunkName: "content" */ '@/views/marketingCenter/addCoupon'),
- meta: {
- title: '创建满减券',
- keepAlive: false,
- permission: ['/marketingCenter/addCoupon']
- },
- hidden: true
- },
- {
- path: '/marketingCenter/lookCououn',
- name: 'lookCououn',
- component: () => import(/* webpackChunkName: "content" */ '@/views/marketingCenter/lookCououn'),
- meta: {
- title: '查看满减券',
- keepAlive: false,
- permission: ['/marketingCenter/lookCououn']
- },
- hidden: true
- },
- {
- path: '/marketingCenter/manage',
- component: () => import(/* webpackChunkName: "content" */ '@/views/marketingCenter/manage'),
- meta: {
- title: '优惠券管理',
- keepAlive: false,
- permission: ['/marketingCenter/manage']
- },
- // 访问其他页面时激活该菜单(router-link-active)
- activePath: [
- '/marketingCenter/addCoupon',
- '/marketingCenter/lookCououn',
- '/marketingCenter/addDiscount',
- '/marketingCenter/lookDiscount'
- ]
- },
- {
- path: '/marketingCenter/changeCard',
- component: () => import(/* webpackChunkName: "content" */ '@/views/marketingCenter/changeCard'),
- meta: {
- title: '优惠券兑换码列表',
- keepAlive: false,
- permission: ['/marketingCenter/changeCard']
- },
- // 访问其他页面时激活该菜单(router-link-active)
- activePath: ['/marketingCenter/changeCardInfo']
- },
- {
- path: '/marketingCenter/changeCardInfo',
- component: () => import(/* webpackChunkName: "content" */ '@/views/marketingCenter/changeCardInfo'),
- meta: {
- title: '优惠券兑换码明细',
- keepAlive: false,
- permission: ['/marketingCenter/changeCardInfo']
- },
- hidden: true
- },
- {
- path: '/marketingCenter/statistical',
- component: () => import(/* webpackChunkName: "content" */ '@/views/marketingCenter/statistical'),
- meta: {
- title: '优惠券统计表',
- keepAlive: false,
- permission: ['/marketingCenter/statistical']
- },
- // 访问其他页面时激活该菜单(router-link-active)
- activePath: ['/marketingCenter/statisticalInfo']
- },
- {
- path: '/marketingCenter/statisticalInfo',
- component: () => import(/* webpackChunkName: "content" */ '@/views/marketingCenter/statisticalInfo'),
- meta: {
- title: '优惠券统计明细',
- keepAlive: false,
- permission: ['/marketingCenter/statisticalInfo']
- },
- hidden: true
- },
- {
- path: '/marketingCenter/addDiscount',
- component: () => import(/* webpackChunkName: "content" */ '@/views/marketingCenter/AddDiscount'),
- meta: {
- title: '新增折扣券',
- keepAlive: false,
- permission: ['/marketingCenter/addDiscount']
- },
- hidden: true
- },
- {
- path: '/marketingCenter/lookDiscount',
- component: () => import(/* webpackChunkName: "content" */ '@/views/marketingCenter/LookDiscount'),
- meta: {
- title: '查看折扣券',
- keepAlive: false,
- permission: ['/marketingCenter/lookDiscount']
- },
- hidden: true
- },
- // 发放优惠券
- {
- path: '/marketingCenter/grant/index',
- component: () => import('@/views/marketingCenter/grant/Index'),
- meta: {
- title: '发放优惠券',
- keepAlive: false,
- permission: ['/marketingCenter/grant/index']
- },
- activePath: ['/marketingCenter/grant/create', '/marketingCenter/grant/details']
- },
- // 新增发放
- {
- path: '/marketingCenter/grant/create',
- component: () => import('@/views/marketingCenter/grant/Create'),
- meta: {
- title: '新增发放',
- keepAlive: false,
- permission: ['/marketingCenter/grant/create']
- },
- hidden: true
- },
- // 发放优惠券详情
- {
- path: '/marketingCenter/grant/details',
- component: () => import('@/views/marketingCenter/grant/Details'),
- meta: {
- title: '发放优惠券详情',
- keepAlive: false,
- permission: ['/marketingCenter/grant/details']
- },
- hidden: true
- }
- ]
- },
- // 数据统计
- {
- path: '/statistics',
- name: 'statistics',
- component: () => import(/* webpackChunkName: "statistics" */ '@/views/statistics/Index'),
- meta: {
- title: '数据统计',
- keepAlive: true,
- icon: Icons.statistics,
- permission: ['/statistics']
- },
- hidden: true
- },
- // 客户端
- {
- path: '/client',
- name: 'client',
- component: RouteView,
- meta: {
- title: '客户端',
- keepAlive: true,
- icon: Icons.mpweixin,
- iconStyle: {
- fontSize: '17.2px',
- color: '#36b313'
- },
- permission: ['/client']
- },
- // hidden: true,
- children: [
- {
- path: '/client/wxapp',
- component: RouteView,
- redirect: '/client/wxapp/setting',
- meta: {
- title: '微信小程序',
- keepAlive: false,
- permission: ['/client/wxapp']
- },
- children: [
- {
- path: '/client/wxapp/setting',
- component: () => import(/* webpackChunkName: "mp" */ '@/views/client/wxapp/Setting'),
- meta: {
- title: '小程序设置',
- keepAlive: false,
- permission: ['/client/wxapp/setting']
- }
- }
- ]
- }
- ]
- },
- // 用户足迹
- {
- path: '/browse-records',
- name: 'browse-records',
- component: RouteView,
- redirect: '/browse-records/index',
- meta: {
- title: '用户足迹',
- icon: Icons.home,
- permission: ['/browse-records']
- },
- children: [
- {
- path: '/browse-records/index',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/browse-records/Index'),
- meta: {
- title: '用户足迹列表',
- keepAlive: false,
- permission: ['/browse-records/index']
- }
- }
- ]
- },
- // 财务管理
- {
- path: '/finance/withdrawalSet/withdrawalSet',
- name: 'finance',
- component: RouteView,
- redirect: '/finance/withdrawalSet/withdrawalSet',
- meta: {
- title: '财务管理',
- icon: Icons.goods,
- permission: ['/finance']
- },
- children: [
- {
- path: '/finance/index/index',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/finance/index/Index'),
- meta: {
- title: '结算列表',
- keepAlive: false,
- permission: ['/finance/index/index']
- },
- hidden: true
- },
- {
- path: '/finance/settlement/SupplierList',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/finance/settlement/SupplierList'),
- meta: {
- title: '供应商结算列表',
- keepAlive: false,
- permission: ['/finance/settlement/SupplierList']
- },
- // 访问其他页面时激活该菜单(router-link-active)
- activePath: ['/finance/settlement/SupplierDetail'],
- hidden: true
- },
- {
- path: '/finance/settlement/SupplierDetail',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/finance/settlement/SupplierDetail'),
- meta: {
- title: '供应商结算明细',
- keepAlive: false,
- permission: ['/finance/settlement/SupplierDetail']
- },
- hidden: true
- },
- {
- path: '/finance/settlement/cycle',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/finance/settlement/Cycle'),
- meta: {
- title: '供应商结算周期',
- keepAlive: false,
- permission: ['/finance/settlement/cycle']
- },
- hidden: true
- },
- {
- path: '/finance/cost/cost',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/finance/cost/cost'),
- meta: {
- title: '成本管理',
- keepAlive: false,
- permission: ['/finance/cost/cost']
- },
- hidden: true
- },
- {
- path: '/finance/withdrawalSet/withdrawalSet',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/finance/withdrawalSet/withdrawalSet'),
- meta: {
- title: '佣金提现设置',
- keepAlive: false,
- permission: ['/finance/withdrawalSet/withdrawalSet']
- }
- },
- {
- path: '/finance/withdraw/index',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/finance/withdraw/Index'),
- meta: {
- title: '提现列表',
- keepAlive: false,
- permission: ['/finance/withdraw/index']
- },
- // 访问其他页面时激活该菜单(router-link-active)
- activePath: ['/finance/withdraw/detail']
- },
- {
- path: '/finance/index/invoiceList',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/finance/index/invoiceList'),
- meta: {
- title: '发票申请列表',
- keepAlive: false,
- permission: ['/finance/index/invoiceList']
- }
- },
- {
- path: '/finance/withdraw/detail',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/finance/withdraw/Detail'),
- meta: {
- title: '提现详情',
- keepAlive: false,
- permission: ['/finance/withdraw/detail']
- },
- hidden: true
- },
- {
- path: '/finance/index/refundIndex',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/finance/index/refundIndex'),
- meta: {
- title: '普通退款单',
- keepAlive: false,
- permission: ['/finance/index/refundIndex']
- }
- },
- {
- path: '/finance/index/compensateOrderList',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/finance/index/CompensateOrderList'),
- meta: {
- title: '售后补偿单',
- keepAlive: false,
- permission: ['/finance/index/compensateOrderList']
- }
- },
- // 销售明细
- {
- path: '/finance/salesDetails/salesDetails',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/finance/salesDetails/SalesDetails'),
- meta: {
- title: '销售明细',
- keepAlive: false,
- permission: ['/finance/salesDetails/salesDetails']
- }
- },
- // 门店销售额及佣金(基本佣金)
- {
- path: '/finance/store/salesCommission/commissionList',
- component: () =>
- import(/* webpackChunkName: "goods" */ '@/views/finance/store/salesCommission/CommissionList'),
- meta: {
- title: '门店销售额及佣金',
- keepAlive: false,
- permission: ['/finance/store/salesCommission/commissionList']
- }
- // hidden: true
- },
- // 门店销售额及奖金(达量奖励金)
- {
- path: '/finance/store/salesCommission/bonusList',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/finance/store/salesCommission/BonusList'),
- meta: {
- title: '门店销售额及奖金',
- keepAlive: false,
- permission: ['/finance/store/salesCommission/bonusList']
- },
- hidden: true
- },
- // 门店个人基本佣金
- {
- path: '/finance/store/indCommission',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/finance/store/IndCommission'),
- meta: {
- title: '门店个人基本佣金',
- keepAlive: false,
- permission: ['/finance/store/indCommission']
- }
- },
- // 门店个人佣金明细
- {
- path: '/finance/store/indCommissionDetails',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/finance/store/IndCommissionDetails'),
- meta: {
- title: '门店个人佣金明细',
- keepAlive: false,
- permission: ['/finance/store/indCommissionDetails']
- }
- },
- // 门店个人奖金
- {
- path: '/finance/store/bountyList',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/finance/store/bountyList'),
- meta: {
- title: '门店个人奖金',
- keepAlive: false,
- permission: ['/finance/store/bountyList']
- }
- },
- // 门店个人奖金明细
- {
- path: '/finance/awardDetail/awardDetail',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/finance/awardDetail/awardDetail.vue'),
- meta: {
- title: '门店个人奖金明细',
- keepAlive: false,
- permission: ['/finance/awardDetail/awardDetail']
- }
- },
- // 推荐官业绩及佣金
- {
- path: '/finance/recommend/commissionList/commissionList',
- component: () =>
- import(/* webpackChunkName: "goods" */ '@/views/finance/recommend/commissionList/commissionList.vue'),
- meta: {
- title: '推荐官业绩及佣金',
- keepAlive: false,
- permission: ['/finance/recommend/commissionList/commissionList']
- }
- },
- // 推荐官业绩及奖金
- {
- path: '/finance/recommend/commissionList/bonusStatList',
- component: () =>
- import(/* webpackChunkName: "goods" */ '@/views/finance/recommend/commissionList/bonusStatList.vue'),
- meta: {
- title: '推荐官业绩及奖金',
- keepAlive: false,
- permission: ['/finance/recommend/commissionList/bonusStatList']
- },
- hidden: true
- },
- // 推荐官佣金明细
- {
- path: '/finance/recommend/commissionDetail',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/finance/recommend/commissionDetail.vue'),
- meta: {
- title: '推荐官佣金明细',
- keepAlive: false,
- permission: ['/finance/recommend/commissionDetail']
- }
- },
- // 推荐官奖金明细
- {
- path: '/finance/recommend/rewardDetail',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/finance/recommend/rewardDetail.vue'),
- meta: {
- title: '推荐官奖金明细',
- keepAlive: false,
- permission: ['/finance/recommend/rewardDetail']
- }
- }
- ]
- },
- // 数据中心
- {
- path: '/dataCenter',
- name: 'dataCenter',
- component: RouteView,
- redirect: '/dataCenter/business/trend',
- meta: {
- title: '数据中心',
- icon: Icons.goods,
- permission: ['/dataCenter']
- },
- children: [
- {
- path: '/dataCenter/business/trend',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/dataCenter/business/Trend'),
- meta: {
- title: '交易数据',
- keepAlive: false,
- permission: ['/dataCenter/business/trend']
- },
- // 访问其他页面时激活该菜单(router-link-active)
- activePath: [
- '/dataCenter/business/index',
- '/dataCenter/business/goods',
- '/dataCenter/business/channelData',
- '/dataCenter/business/refundGoods'
- ]
- },
- {
- path: '/dataCenter/business/index',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/dataCenter/business/Index'),
- meta: {
- title: '销售分析',
- keepAlive: false,
- permission: ['/dataCenter/business/index']
- },
- hidden: true
- },
- {
- path: '/dataCenter/business/goods',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/dataCenter/business/Goods'),
- meta: {
- title: '商品销量排名',
- keepAlive: false,
- permission: ['/dataCenter/business/goods']
- },
- hidden: true
- },
- // 渠道销售报表
- {
- path: '/dataCenter/business/channelData',
- component: () => import('@/views/dataCenter/business/ChannelData'),
- meta: {
- title: '渠道销售报表',
- keepAlive: false,
- permission: ['/dataCenter/business/channelData']
- },
- hidden: true
- },
- // 退款商品
- {
- path: '/dataCenter/business/refundGoods',
- component: () => import('@/views/dataCenter/business/RefundGoods'),
- meta: {
- title: '退款商品',
- keepAlive: false,
- permission: ['/dataCenter/business/refundGoods']
- },
- hidden: true
- },
- {
- path: '/dataCenter/store',
- component: () => import(/* webpackChunkName: "goods" */ '@/views/dataCenter/Store'),
- meta: {
- title: '门店销售概览',
- keepAlive: false,
- permission: ['/dataCenter/store']
- }
- },
- {
- path: '/dataCenter/flowOverview',
- component: () => import('@/views/dataCenter/FlowOverview'),
- meta: {
- title: '流量概览',
- keepAlive: false,
- permission: ['/dataCenter/flowOverview']
- }
- },
- {
- path: '/dataCenter/userUsageAnalysis/behavior',
- component: () => import('@/views/dataCenter/userUsageAnalysis/Behavior'),
- meta: {
- title: '用户使用分析',
- keepAlive: false,
- permission: ['/dataCenter/userUsageAnalysis/behavior']
- },
- // 访问其他页面时激活该菜单(router-link-active)
- activePath: ['/dataCenter/userUsageAnalysis/retained', '/dataCenter/userUsageAnalysis/page']
- },
- {
- path: '/dataCenter/userAnalysis/index',
- component: () => import('@/views/dataCenter/userAnalysis/Index'),
- meta: {
- title: '用户分析',
- keepAlive: false,
- permission: ['/dataCenter/userAnalysis/index']
- }
- },
- {
- path: '/dataCenter/userUsageAnalysis/retained',
- component: () => import('@/views/dataCenter/userUsageAnalysis/Retained'),
- meta: {
- title: '留存分析',
- keepAlive: false,
- permission: ['/dataCenter/userUsageAnalysis/retained']
- },
- hidden: true
- },
- {
- path: '/dataCenter/userUsageAnalysis/page',
- component: () => import('@/views/dataCenter/userUsageAnalysis/Page'),
- meta: {
- title: '页面分析',
- keepAlive: false,
- permission: ['/dataCenter/userUsageAnalysis/page']
- },
- hidden: true
- },
- // 年卡会员增长
- {
- path: '/dataCenter/memberIncrease',
- component: () => import('@/views/dataCenter/MemberIncrease'),
- meta: {
- title: '年卡会员增长',
- keepAlive: false,
- permission: ['/dataCenter/memberIncrease']
- }
- },
- // 推广渠道分析
- {
- path: '/dataCenter/channel/index',
- component: () => import('@/views/dataCenter/channel/Index'),
- meta: {
- title: '推广渠道分析',
- keepAlive: false,
- permission: ['/dataCenter/channel/index']
- },
- activePath: ['/dataCenter/channel/create', '/dataCenter/channel/update', '/dataCenter/channel/detail']
- },
- // 创建推广监控
- {
- path: '/dataCenter/channel/create',
- component: () => import('@/views/dataCenter/channel/Create'),
- meta: {
- title: '创建推广监控',
- keepAlive: false,
- permission: ['/dataCenter/channel/create']
- },
- hidden: true
- },
- // 编辑推广监控
- {
- path: '/dataCenter/channel/update',
- component: () => import('@/views/dataCenter/channel/Update'),
- meta: {
- title: '编辑推广监控',
- keepAlive: false,
- permission: ['/dataCenter/channel/update']
- },
- hidden: true
- },
- // 推广监控详情
- {
- path: '/dataCenter/channel/detail',
- component: () => import('@/views/dataCenter/channel/Detail'),
- meta: {
- title: '推广监控详情',
- keepAlive: false,
- permission: ['/dataCenter/channel/detail']
- },
- hidden: true
- },
- // 活动效果统计
- {
- path: '/dataCenter/activityData/index',
- component: () => import('@/views/dataCenter/activityData/index'),
- meta: {
- title: '活动效果统计',
- keepAlive: false,
- permission: ['/dataCenter/activityData/index']
- },
- activePath: [
- '/dataCenter/activityData/children/collageData',
- '/dataCenter/activityData/children/bargainData',
- '/dataCenter/activityData/children/pieceFoldData',
- '/dataCenter/activityData/children/fullCountData',
- '/dataCenter/activityData/children/fullGiftData',
- '/dataCenter/activityData/children/spike'
- ],
- redirect: '/dataCenter/activityData/children/collageData',
- children: [
- {
- path: '/dataCenter/activityData/children/collageData',
- name: 'collageData',
- component: () => import('@/views/dataCenter/activityData/children/collageData'),
- meta: {
- title: '拼团',
- keepAlive: false,
- permission: ['/dataCenter/activityData/children/collageData']
- },
- hidden: true
- },
- {
- path: '/dataCenter/activityData/children/bargainData',
- name: 'bargainData',
- component: () => import('@/views/dataCenter/activityData/children/bargainData'),
- meta: {
- title: '砍价',
- keepAlive: false,
- permission: ['/dataCenter/activityData/children/bargainData']
- },
- hidden: true
- },
- {
- path: '/dataCenter/activityData/children/pieceFoldData',
- name: 'pieceFoldData',
- component: () => import('@/views/dataCenter/activityData/children/pieceFoldData'),
- meta: {
- title: 'N件X折',
- keepAlive: false,
- permission: ['/dataCenter/activityData/children/pieceFoldData']
- },
- hidden: true
- },
- {
- path: '/dataCenter/activityData/children/fullCountData',
- name: 'fullCountData',
- component: () => import('@/views/dataCenter/activityData/children/fullCountData'),
- meta: {
- title: '满件送',
- keepAlive: false,
- permission: ['/dataCenter/activityData/children/fullCountData']
- },
- hidden: true
- },
- {
- path: '/dataCenter/activityData/children/fullGiftData',
- name: 'fullGiftData',
- component: () => import('@/views/dataCenter/activityData/children/fullGiftData'),
- meta: {
- title: '满就送',
- keepAlive: false,
- permission: ['/dataCenter/activityData/children/fullGiftData']
- },
- hidden: true
- },
- {
- path: '/dataCenter/activityData/children/spike',
- name: 'fullGiftData',
- component: () => import('@/views/dataCenter/activityData/children/spike'),
- meta: {
- title: '限时秒杀',
- keepAlive: false,
- permission: ['/dataCenter/activityData/children/spike']
- },
- hidden: true
- }
- ]
- },
- {
- path: '/dataCenter/omnichannel',
- component: () => import('@/views/dataCenter/Omnichannel'),
- meta: {
- title: '全渠道销售总览',
- keepAlive: false,
- permission: ['/dataCenter/omnichannel']
- }
- },
- {
- path: '/dataCenter/sales/peoper',
- component: () => import('@/views/dataCenter/sales/Peoper'),
- meta: {
- title: '推荐官销售概览',
- keepAlive: false,
- permission: ['/dataCenter/sales/peoper']
- },
- activePath: ['/dataCenter/sales/officerBase', '/dataCenter/sales/incentive', '/dataCenter/sales/rank']
- },
- {
- path: '/dataCenter/sales/officerBase',
- component: () => import('@/views/dataCenter/sales/OfficerBase'),
- meta: {
- title: '推荐官销售概览',
- keepAlive: false,
- permission: ['/dataCenter/sales/officerBase']
- },
- hidden: true
- },
- {
- path: '/dataCenter/sales/incentive',
- component: () => import('@/views/dataCenter/sales/Incentive'),
- meta: {
- title: '推荐官销售概览',
- keepAlive: false,
- permission: ['/dataCenter/sales/incentive']
- },
- hidden: true
- },
- {
- path: '/dataCenter/sales/rank',
- component: () => import('@/views/dataCenter/sales/Rank'),
- meta: {
- title: '推荐官销售概览',
- keepAlive: false,
- permission: ['/dataCenter/sales/rank']
- },
- hidden: true
- },
- // 商品浏览数据
- {
- path: '/dataCenter/goodsBrowse/browse',
- component: () => import('@/views/dataCenter/goodsBrowse/browse'),
- meta: {
- title: '商品浏览数据',
- keepAlive: false,
- permission: ['/dataCenter/goodsBrowse/browse']
- },
- activePath: ['/dataCenter/goodsBrowse/browse', '/dataCenter/goodsBrowse/sale'],
- hidden: false
- },
- // 商品销售数据
- {
- path: '/dataCenter/goodsBrowse/sale',
- component: () => import('@/views/dataCenter/goodsBrowse/sale'),
- meta: {
- title: '商品销售数据',
- keepAlive: false,
- permission: ['/dataCenter/goodsBrowse/sale']
- },
- hidden: true
- }
- ]
- },
- // 设置
- {
- path: '/setting/delivery/regionlimit',
- name: 'setting',
- component: RouteView,
- redirect: '/setting/delivery/regionlimit',
- meta: {
- title: '设置',
- icon: Icons.setting,
- permission: ['/setting']
- },
- // hidden: true,
- children: [
- {
- path: '/setting/trade',
- component: () => import(/* webpackChunkName: "setting" */ '@/views/setting/Trade'),
- meta: {
- title: '交易设置',
- keepAlive: false,
- permission: ['/setting/trade']
- },
- hidden: true
- },
- {
- path: '/setting/orderClose',
- component: () => import(/* webpackChunkName: "setting" */ '@/views/setting/OrderClose'),
- meta: {
- title: '未支付订单关闭',
- keepAlive: false,
- permission: ['/setting/orderClose']
- }
- },
- {
- path: '/setting/commissionSet',
- component: () => import(/* webpackChunkName: "setting" */ '@/views/setting/CommissionSet'),
- meta: {
- title: '售后及佣金结算',
- keepAlive: false,
- permission: ['/setting/commissionSet']
- }
- },
- {
- path: '/setting/storage',
- component: () => import(/* webpackChunkName: "setting" */ '@/views/setting/Storage'),
- meta: {
- title: '上传设置',
- keepAlive: false,
- permission: ['/setting/storage']
- },
- hidden: true
- },
- {
- path: '/setting/sms',
- component: () => import(/* webpackChunkName: "setting" */ '@/views/setting/Sms'),
- meta: {
- title: '短信通知',
- keepAlive: false,
- permission: ['/setting/sms']
- },
- hidden: true
- },
- {
- path: '/setting/point',
- component: () => import(/* webpackChunkName: "setting" */ '@/views/setting/Point'),
- meta: {
- title: '积分设置',
- keepAlive: false,
- permission: ['/setting/point']
- }
- },
- {
- path: '/setting/delivery',
- component: RouteView,
- redirect: '/setting/delivery/setting',
- meta: {
- title: '配送设置',
- keepAlive: false,
- permission: ['/setting/delivery']
- },
- children: [
- {
- path: '/setting/delivery/setting',
- component: () => import(/* webpackChunkName: "content" */ '@/views/setting/delivery/Setting'),
- meta: {
- title: '配送方式',
- keepAlive: false,
- permission: ['/setting/delivery/setting']
- },
- hidden: true
- },
- {
- path: '/setting/delivery/template/index',
- component: () => import(/* webpackChunkName: "content" */ '@/views/setting/delivery/template/Index'),
- meta: {
- title: '运费模板',
- keepAlive: false,
- permission: ['/setting/delivery/template/index']
- },
- // 访问其他页面时激活该菜单(router-link-active)
- activePath: ['/setting/delivery/template/update']
- },
- {
- path: '/setting/delivery/template/create',
- component: () => import(/* webpackChunkName: "content" */ '@/views/setting/delivery/template/Create'),
- meta: {
- title: '新增运费模板',
- keepAlive: false,
- permission: ['/setting/delivery/template/create']
- },
- hidden: true
- },
- {
- path: '/setting/delivery/template/update',
- component: () => import(/* webpackChunkName: "content" */ '@/views/setting/delivery/template/Update'),
- meta: {
- title: '编辑运费模板',
- keepAlive: false,
- permission: ['/setting/delivery/template/update']
- },
- hidden: true
- },
- {
- path: '/setting/delivery/express/index',
- component: () => import(/* webpackChunkName: "content" */ '@/views/setting/delivery/express/Index'),
- meta: {
- title: '物流公司',
- keepAlive: false,
- permission: ['/setting/delivery/express/index']
- }
- },
- {
- path: '/setting/delivery/regionlimit',
- component: () => import(/* webpackChunkName: "content" */ '@/views/setting/delivery/Regionlimit'),
- meta: {
- title: '地区限购',
- keepAlive: false,
- permission: ['/setting/delivery/regionlimit']
- }
- }
- ]
- },
- {
- path: '/setting/other',
- component: RouteView,
- redirect: '/setting/other/clear',
- meta: {
- title: '其他设置',
- keepAlive: false,
- permission: ['/setting/other']
- },
- hidden: true,
- children: [
- {
- path: '/setting/other/clear',
- component: () => import(/* webpackChunkName: "content" */ '@/views/setting/other/Clear'),
- meta: {
- title: '清理缓存',
- keepAlive: false,
- permission: ['/setting/other/clear']
- }
- }
- ]
- }
- ]
- }
- // 公明腊肠官网
- // {
- // path: '/website',
- // name: 'website',
- // component: RouteView,
- // redirect: '/website',
- // hidden: true,
- // meta: {
- // title: '公明腊肠官网',
- // icon: Icons.home,
- // permission: ['/website/BrandHonor']
- // },
- // children: [
- // {
- // path: '/website/BrandHonor',
- // component: () => import(/* webpackChunkName: "goods" */ '@/views/website/BrandHonor'),
- // meta: {
- // title: '品牌荣誉',
- // keepAlive: false,
- // permission: ['/website/BrandHonor']
- // }
- // },
- // {
- // path: '/website/news/index',
- // component: () => import(/* webpackChunkName: "goods" */ '@/views/website/news/index'),
- // meta: {
- // title: '新闻动态',
- // keepAlive: false,
- // permission: ['/website/news/index']
- // },
- // activePath: ['/website/news/addNews']
- // },
- // {
- // path: '/website/news/addNews',
- // component: () => import(/* webpackChunkName: "goods" */ '@/views/website/news/addNews'),
- // meta: {
- // title: '新增动态',
- // keepAlive: false,
- // permission: ['/website/news/addNews']
- // },
- // hidden: true
- // },
- // {
- // path: '/website/join',
- // component: () => import(/* webpackChunkName: "goods" */ '@/views/website/join'),
- // meta: {
- // title: '招商加盟',
- // keepAlive: false,
- // permission: ['/website/join']
- // }
- // },
- // {
- // path: '/website/otnerO',
- // component: () => import(/* webpackChunkName: "goods" */ '@/views/website/otnerO'),
- // meta: {
- // title: '其他配置',
- // keepAlive: false,
- // permission: ['/website/otnerO']
- // }
- // }
- // ]
- // }
- ]
- },
- // 更新账户信息
- {
- name: 'renew',
- path: '/manage',
- redirect: '/manage/renew',
- component: BasicLayout,
- hidden: true,
- meta: {
- title: '更新账户信息',
- keepAlive: false
- },
- children: [
- {
- path: 'renew',
- component: () => import(/* webpackChunkName: "manage" */ '@/views/manage/renew')
- }
- ]
- },
- {
- path: '*',
- redirect: '/404',
- hidden: true
- }
- ]
- /**
- * 基础路由
- * @type { *[] }
- */
- export const constantRouterMap = [
- // 用户登录页
- {
- path: '/passport',
- component: UserLayout,
- redirect: '/passport/login',
- hidden: true,
- children: [
- {
- path: 'login',
- name: 'login',
- component: () => import(/* webpackChunkName: "passport" */ '@/views/passport/Login')
- }
- ]
- },
- // 404页
- {
- path: '/404',
- component: () => import(/* webpackChunkName: "exception" */ '@/views/exception/404')
- }
- ]
|