router.config.js 101 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878
  1. // eslint-disable-next-line
  2. import { UserLayout, BasicLayout, BlankLayout } from '@/layouts'
  3. import * as Icons from '@/core/icons'
  4. import { tree } from '@/api/region'
  5. const RouteView = {
  6. name: 'RouteView',
  7. render: (h) => h('router-view')
  8. }
  9. /**
  10. * 路由配置说明:
  11. * 建议:sider menu 请不要超过三级菜单,若超过三级菜单,则应该设计为顶部主菜单 配合左侧次级菜单
  12. // {
  13. // redirect: noredirect, //重定向
  14. // name: 'router-name', //路由名称
  15. // hidden: true, //可以在菜单中不展示这个路由,包括子路由。效果可以查看 other 下的路由配置。
  16. // meta: {
  17. // title: 'title', //菜单项名称
  18. // icon: 'a-icon', //菜单项图标
  19. // keepAlive: true, //缓存页面
  20. // permission:[string] //用来配置这个路由的权限,如果配置了将会验证当前用户的权限,并决定是否展示 *(默认情况下)
  21. // }
  22. // }
  23. **/
  24. export const asyncRouterMap = [
  25. {
  26. path: '/',
  27. name: 'root',
  28. component: BasicLayout,
  29. children: [
  30. // 后台首页
  31. {
  32. path: '/index',
  33. name: 'index',
  34. component: () => import(/* webpackChunkName: "index" */ '@/views/index/Index'),
  35. meta: {
  36. title: '工作台',
  37. keepAlive: true,
  38. icon: Icons.home,
  39. permission: ['/index']
  40. }
  41. // hidden: true
  42. },
  43. {
  44. path: '/canvas',
  45. name: 'canvas',
  46. component: RouteView,
  47. redirect: '/canvas/index',
  48. hidden: true,
  49. meta: {
  50. title: 'canvas',
  51. icon: Icons.home,
  52. permission: ['/canvas']
  53. },
  54. children: [
  55. {
  56. path: '/canvas/index',
  57. name: 'index',
  58. component: () => import(/* webpackChunkName: "index" */ '@/views/canvas/Index'),
  59. meta: {
  60. title: 'index',
  61. keepAlive: true,
  62. icon: Icons.home,
  63. permission: ['/canvas/index']
  64. }
  65. },
  66. {
  67. path: '/canvas/test',
  68. name: 'test',
  69. component: () => import(/* webpackChunkName: "index" */ '@/views/canvas/Test'),
  70. meta: {
  71. title: 'test',
  72. keepAlive: true,
  73. icon: Icons.home,
  74. permission: ['/canvas/test']
  75. }
  76. }
  77. ]
  78. },
  79. // 首页配置
  80. {
  81. path: '/home',
  82. name: 'home',
  83. component: RouteView,
  84. redirect: '/home/ad/index',
  85. meta: {
  86. title: '首页配置',
  87. icon: Icons.home,
  88. permission: ['/home']
  89. },
  90. children: [
  91. {
  92. path: '/home/ad/index',
  93. component: () => import(/* webpackChunkName: "goods" */ '@/views/home/ad/Index'),
  94. meta: {
  95. title: '广告位列表',
  96. keepAlive: false,
  97. permission: ['/home/ad/index']
  98. },
  99. // 访问其他页面时激活该菜单(router-link-active)
  100. activePath: ['/home/ad/create', '/home/ad/update']
  101. },
  102. {
  103. path: '/home/ad/create',
  104. component: () => import(/* webpackChunkName: "goods" */ '@/views/home/ad/Create'),
  105. meta: {
  106. title: '新增广告位',
  107. keepAlive: false,
  108. permission: ['/home/ad/create']
  109. },
  110. hidden: true
  111. },
  112. {
  113. path: '/home/ad/update',
  114. component: () => import(/* webpackChunkName: "goods" */ '@/views/home/ad/Update'),
  115. meta: {
  116. title: '编辑广告位',
  117. keepAlive: false,
  118. permission: ['/home/ad/update']
  119. },
  120. hidden: true
  121. },
  122. {
  123. path: '/home/custom-blocks/index',
  124. component: () => import(/* webpackChunkName: "goods" */ '@/views/home/custom-blocks/Index'),
  125. meta: {
  126. title: '首页版块配置',
  127. keepAlive: false,
  128. permission: ['/home/custom-blocks/index']
  129. },
  130. hidden: true
  131. },
  132. {
  133. path: '/home/custom-block-goods/index',
  134. component: () => import(/* webpackChunkName: "goods" */ '@/views/home/custom-block-goods/Index'),
  135. meta: {
  136. title: '首页商品列表',
  137. keepAlive: false,
  138. permission: ['/home/custom-block-goods/index']
  139. }
  140. },
  141. {
  142. path: '/home/brand',
  143. component: () => import(/* webpackChunkName: "goods" */ '@/views/home/Brand'),
  144. meta: {
  145. title: '探秘',
  146. keepAlive: false,
  147. permission: ['/home/brand']
  148. }
  149. },
  150. {
  151. path: '/home/experience',
  152. component: () => import(/* webpackChunkName: "goods" */ '@/views/home/Experience'),
  153. meta: {
  154. title: '体验',
  155. keepAlive: false,
  156. permission: ['/home/experience']
  157. }
  158. },
  159. {
  160. path: '/home/video',
  161. component: () => import(/* webpackChunkName: "goods" */ '@/views/home/Video'),
  162. meta: {
  163. title: '首页视频',
  164. keepAlive: false,
  165. permission: ['/home/video']
  166. }
  167. },
  168. {
  169. path: '/home/use',
  170. component: () => import(/* webpackChunkName: "goods" */ '@/views/home/Use'),
  171. meta: {
  172. title: '当前启用',
  173. keepAlive: false,
  174. permission: ['/home/use']
  175. }
  176. },
  177. {
  178. path: '/home/activity',
  179. component: () => import(/* webpackChunkName: "goods" */ '@/views/home/Activity'),
  180. meta: {
  181. title: '活动版首页',
  182. keepAlive: false,
  183. permission: ['/home/activity']
  184. }
  185. }
  186. ]
  187. },
  188. // 商品管理
  189. {
  190. path: '/goods',
  191. name: 'goods',
  192. component: RouteView,
  193. redirect: '/goods/index',
  194. meta: {
  195. title: '商品管理',
  196. icon: Icons.goods,
  197. permission: ['/goods']
  198. },
  199. children: [
  200. {
  201. path: '/goods/index',
  202. component: () => import(/* webpackChunkName: "goods" */ '@/views/goods/Index'),
  203. meta: {
  204. title: '商品列表',
  205. keepAlive: false,
  206. permission: ['/goods/index']
  207. },
  208. // 访问其他页面时激活该菜单(router-link-active)
  209. activePath: ['/goods/create', '/goods/update']
  210. },
  211. {
  212. path: '/goods/create',
  213. component: () => import(/* webpackChunkName: "goods" */ '@/views/goods/Create'),
  214. meta: {
  215. title: '创建商品',
  216. keepAlive: false,
  217. permission: ['/goods/create']
  218. },
  219. hidden: true
  220. },
  221. {
  222. path: '/goods/update',
  223. component: () => import(/* webpackChunkName: "goods" */ '@/views/goods/Update'),
  224. meta: {
  225. title: '编辑商品',
  226. keepAlive: false,
  227. permission: ['/goods/update']
  228. },
  229. hidden: true
  230. },
  231. {
  232. path: '/goods/category/index',
  233. component: () => import(/* webpackChunkName: "goods" */ '@/views/goods/category/Index'),
  234. meta: {
  235. title: '商品分类',
  236. keepAlive: false,
  237. permission: ['/goods/category/index']
  238. }
  239. },
  240. // {
  241. // path: '/goods/spec-template/index',
  242. // component: () => import(/* webpackChunkName: "goods" */ '@/views/goods/service/Index'),
  243. // meta: { title: '规格模板', keepAlive: false, permission: ['/goods/spec-template/index'] }
  244. // },
  245. {
  246. path: '/goods/service/index',
  247. component: () => import(/* webpackChunkName: "goods" */ '@/views/goods/service/Index'),
  248. meta: {
  249. title: '服务承诺',
  250. keepAlive: false,
  251. permission: ['/goods/service/index']
  252. },
  253. hidden: true
  254. },
  255. {
  256. path: '/goods/comment/index',
  257. component: () => import(/* webpackChunkName: "goods" */ '@/views/goods/comment/Index'),
  258. meta: {
  259. title: '评价管理',
  260. keepAlive: false,
  261. permission: ['/goods/comment/index']
  262. }
  263. }
  264. ]
  265. },
  266. // 活动中心
  267. {
  268. path: '/activityCenter',
  269. name: 'activityCenter',
  270. component: RouteView,
  271. redirect: '/activityCenter/fission/index',
  272. meta: {
  273. title: '活动中心',
  274. icon: Icons.goods,
  275. permission: ['/activityCenter']
  276. },
  277. children: [
  278. {
  279. path: '/activityCenter/fission/index',
  280. component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/fission/Index'),
  281. meta: {
  282. title: '裂变券礼包活动',
  283. keepAlive: false,
  284. permission: ['/activityCenter/fission/index']
  285. },
  286. // 访问其他页面时激活该菜单(router-link-active)
  287. activePath: ['/activityCenter/fission/create', '/activityCenter/fission/lookFission']
  288. },
  289. {
  290. path: '/activityCenter/fission/create',
  291. component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/fission/Create'),
  292. meta: {
  293. title: '新增裂变券礼包',
  294. keepAlive: false,
  295. permission: ['/activityCenter/fission/create']
  296. },
  297. hidden: true
  298. },
  299. {
  300. path: '/activityCenter/fission/lookFission',
  301. component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/fission/LookFission'),
  302. meta: {
  303. title: '查看裂变券礼包详情',
  304. keepAlive: false,
  305. permission: ['/activityCenter/fission/lookFission']
  306. },
  307. hidden: true
  308. },
  309. {
  310. path: '/activityCenter/fission/activityData',
  311. component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/fission/activityData'),
  312. meta: {
  313. title: '裂变礼包活动数据',
  314. keepAlive: false,
  315. permission: ['/activityCenter/fission/activityData']
  316. }
  317. },
  318. {
  319. path: '/activityCenter/fullGift/index',
  320. component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/fullGift/Index'),
  321. meta: {
  322. title: '满就送活动',
  323. keepAlive: false,
  324. permission: ['/activityCenter/fullGift/index']
  325. },
  326. // 访问其他页面时激活该菜单(router-link-active)
  327. activePath: ['/activityCenter/fullGift/addGift', '/activityCenter/fullGift/lookGift']
  328. },
  329. {
  330. path: '/activityCenter/fullGift/addGift',
  331. component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/fullGift/AddGift'),
  332. meta: {
  333. title: '新增满就送活动',
  334. keepAlive: false,
  335. permission: ['/activityCenter/fullGift/addGift']
  336. },
  337. hidden: true
  338. },
  339. {
  340. path: '/activityCenter/fullGift/lookGift',
  341. component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/fullGift/LookGift'),
  342. meta: {
  343. title: '查看满就送活动详情',
  344. keepAlive: false,
  345. permission: ['/activityCenter/fullGift/lookGift']
  346. },
  347. hidden: true
  348. },
  349. // 满件送活动
  350. {
  351. path: '/activityCenter/fullCount/index',
  352. component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/fullCount/Index'),
  353. meta: {
  354. title: '满件送活动',
  355. keepAlive: false,
  356. permission: ['/activityCenter/fullCount/index']
  357. },
  358. // 访问其他页面时激活该菜单(router-link-active)
  359. activePath: ['/activityCenter/fullCount/addCount', '/activityCenter/fullCount/lookCount']
  360. },
  361. {
  362. path: '/activityCenter/fullCount/addCount',
  363. component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/fullCount/AddCount'),
  364. meta: {
  365. title: '新增满件送活动',
  366. keepAlive: false,
  367. permission: ['/activityCenter/fullCount/addCount']
  368. },
  369. hidden: true
  370. },
  371. {
  372. path: '/activityCenter/fullCount/lookCount',
  373. component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/fullCount/LookCount'),
  374. meta: {
  375. title: '查看满件送活动',
  376. keepAlive: false,
  377. permission: ['/activityCenter/fullCount/lookCount']
  378. },
  379. hidden: true
  380. },
  381. {
  382. path: '/activityCenter/pieceFold/index',
  383. component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/pieceFold/Index'),
  384. meta: {
  385. title: 'N件X折活动',
  386. keepAlive: false,
  387. permission: ['/activityCenter/pieceFold/index']
  388. },
  389. activePath: [
  390. '/activityCenter/pieceFold/create',
  391. '/activityCenter/pieceFold/edit',
  392. '/activityCenter/pieceFold/details'
  393. ]
  394. },
  395. {
  396. path: '/activityCenter/pieceFold/create',
  397. component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/pieceFold/Create'),
  398. meta: {
  399. title: '新增N件X折活动',
  400. keepAlive: false,
  401. permission: ['/activityCenter/pieceFold/create']
  402. },
  403. hidden: true
  404. },
  405. {
  406. path: '/activityCenter/pieceFold/edit',
  407. component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/pieceFold/Edit'),
  408. meta: {
  409. title: '编辑N件X折活动',
  410. keepAlive: false,
  411. permission: ['/activityCenter/pieceFold/edit']
  412. },
  413. hidden: true
  414. },
  415. {
  416. path: '/activityCenter/pieceFold/details',
  417. component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/pieceFold/Details'),
  418. meta: {
  419. title: 'N件X折活动详情',
  420. keepAlive: false,
  421. permission: ['/activityCenter/pieceFold/details']
  422. },
  423. hidden: true
  424. },
  425. // 砍价活动列表
  426. {
  427. path: '/activityCenter/bargain/index',
  428. component: () => import('@/views/activityCenter/bargain/Index'),
  429. meta: {
  430. title: '砍价活动',
  431. keepAlive: false,
  432. permission: ['/activityCenter/bargain/index']
  433. },
  434. // 访问其他页面时激活该菜单(router-link-active)
  435. activePath: [
  436. '/activityCenter/bargain/create',
  437. '/activityCenter/bargain/details',
  438. '/activityCenter/bargain/edit'
  439. ]
  440. },
  441. // 新增砍价活动
  442. {
  443. path: '/activityCenter/bargain/create',
  444. component: () => import('@/views/activityCenter/bargain/Create'),
  445. meta: {
  446. title: '新增砍价活动',
  447. keepAlive: false,
  448. permission: ['/activityCenter/bargain/create']
  449. },
  450. hidden: true
  451. },
  452. // 砍价活动详情
  453. {
  454. path: '/activityCenter/bargain/details',
  455. component: () => import('@/views/activityCenter/bargain/Details'),
  456. meta: {
  457. title: '砍价活动详情',
  458. keepAlive: false,
  459. permission: ['/activityCenter/bargain/details']
  460. },
  461. hidden: true
  462. },
  463. // 编辑砍价活动
  464. {
  465. path: '/activityCenter/bargain/edit',
  466. component: () => import('@/views/activityCenter/bargain/Edit'),
  467. meta: {
  468. title: '编辑砍价活动',
  469. keepAlive: false,
  470. permission: ['/activityCenter/bargain/edit']
  471. },
  472. hidden: true
  473. },
  474. // 砍价组团数据
  475. {
  476. path: '/activityCenter/bargain/clusterData',
  477. component: () => import('@/views/activityCenter/bargain/ClusterData'),
  478. meta: {
  479. title: '砍价组团数据',
  480. keepAlive: false,
  481. permission: ['/activityCenter/bargain/clusterData']
  482. },
  483. hidden: true
  484. },
  485. // 拼团活动
  486. {
  487. path: '/activityCenter/collage/index',
  488. component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/collage/index'),
  489. meta: {
  490. title: '拼团活动',
  491. keepAlive: false,
  492. permission: ['/activityCenter/collage/index']
  493. },
  494. // 访问其他页面时激活该菜单(router-link-active)
  495. activePath: [
  496. '/activityCenter/collage/create',
  497. '/activityCenter/collage/edit',
  498. '/activityCenter/collage/details',
  499. '/activityCenter/collage/clusterData',
  500. '/activityCenter/collage/orderList'
  501. ]
  502. },
  503. // 创建拼团活动
  504. {
  505. path: '/activityCenter/collage/create',
  506. component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/collage/Create'),
  507. meta: {
  508. title: '新增拼团活动',
  509. keepAlive: false,
  510. permission: ['/activityCenter/collage/create']
  511. },
  512. hidden: true
  513. },
  514. // 编辑拼团活动
  515. {
  516. path: '/activityCenter/collage/edit',
  517. component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/collage/Edit'),
  518. meta: {
  519. title: '编辑拼团活动',
  520. keepAlive: false,
  521. permission: ['/activityCenter/collage/edit']
  522. },
  523. hidden: true
  524. },
  525. // 拼团活动详情
  526. {
  527. path: '/activityCenter/collage/details',
  528. component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/collage/Details'),
  529. meta: {
  530. title: '拼团活动详情',
  531. keepAlive: false,
  532. permission: ['/activityCenter/collage/details']
  533. },
  534. hidden: true
  535. },
  536. // 拼团活动记录
  537. {
  538. path: '/activityCenter/collage/clusterData',
  539. component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/collage/ClusterData'),
  540. meta: {
  541. title: '拼团记录',
  542. keepAlive: false,
  543. permission: ['/activityCenter/collage/clusterData']
  544. },
  545. hidden: true
  546. },
  547. // 拼团活动订单
  548. {
  549. path: '/activityCenter/collage/orderList',
  550. component: () => import('@/views/activityCenter/collage/OrderList'),
  551. meta: {
  552. title: '拼团活动订单',
  553. keepAlive: false,
  554. permission: ['/activityCenter/collage/orderList']
  555. },
  556. hidden: true
  557. },
  558. // 拼团裂变
  559. {
  560. path: '/activityCenter/patchworkFission/index',
  561. component: () => import('@/views/activityCenter/patchworkFission/Index'),
  562. meta: {
  563. title: '拼团裂变',
  564. keepAlive: false,
  565. permission: ['/activityCenter/patchworkFission/index']
  566. },
  567. activePath: [
  568. '/activityCenter/patchworkFission/create',
  569. '/activityCenter/patchworkFission/details',
  570. '/activityCenter/patchworkFission/orderList'
  571. ]
  572. },
  573. // 创建拼团裂变
  574. {
  575. path: '/activityCenter/patchworkFission/create',
  576. component: () => import('@/views/activityCenter/patchworkFission/Create'),
  577. meta: {
  578. title: '新增拼团裂变',
  579. keepAlive: false,
  580. permission: ['/activityCenter/patchworkFission/create']
  581. },
  582. hidden: true
  583. },
  584. // 创建拼团裂变详情
  585. {
  586. path: '/activityCenter/patchworkFission/details',
  587. component: () => import('@/views/activityCenter/patchworkFission/Details'),
  588. meta: {
  589. title: '拼团裂变详情',
  590. keepAlive: false,
  591. permission: ['/activityCenter/patchworkFission/details']
  592. },
  593. hidden: true
  594. },
  595. // 创建拼团裂变订单列表页
  596. {
  597. path: '/activityCenter/patchworkFission/orderList',
  598. component: () => import('@/views/activityCenter/patchworkFission/OrderList'),
  599. meta: {
  600. title: '拼团裂变活动订单',
  601. keepAlive: false,
  602. permission: ['/activityCenter/patchworkFission/orderList']
  603. },
  604. hidden: true
  605. },
  606. // 拼团裂变订单列表页
  607. {
  608. path: '/activityCenter/patchworkFission/clusterData',
  609. component: () => import('@/views/activityCenter/patchworkFission/ClusterData'),
  610. meta: {
  611. title: '拼团裂变活动订单',
  612. keepAlive: false,
  613. permission: ['/activityCenter/patchworkFission/clusterData']
  614. },
  615. hidden: true
  616. },
  617. // 全场满件送活动
  618. {
  619. path: '/activityCenter/fullCountAll/index',
  620. component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/fullCountAll/Index'),
  621. meta: {
  622. title: '全场满件赠',
  623. keepAlive: false,
  624. permission: ['/activityCenter/fullCountAll/index']
  625. },
  626. // 访问其他页面时激活该菜单(router-link-active)
  627. activePath: ['/activityCenter/fullCountAll/addCount', '/activityCenter/fullCountAll/lookCount']
  628. },
  629. {
  630. path: '/activityCenter/fullCountAll/addCount',
  631. component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/fullCountAll/AddCount'),
  632. meta: {
  633. title: '新增全场满件送活动',
  634. keepAlive: false,
  635. permission: ['/activityCenter/fullCountAll/addCount']
  636. },
  637. hidden: true
  638. },
  639. {
  640. path: '/activityCenter/fullCountAll/lookCount',
  641. component: () => import(/* webpackChunkName: "goods" */ '@/views/activityCenter/fullCountAll/LookCount'),
  642. meta: {
  643. title: '查看全场满件送活动',
  644. keepAlive: false,
  645. permission: ['/activityCenter/fullCountAll/lookCount']
  646. },
  647. hidden: true
  648. },
  649. {
  650. path: '/activityCenter/spike/index',
  651. component: () => import('@/views/activityCenter/spike/Index'),
  652. meta: {
  653. title: '限时秒杀',
  654. keepAlive: false,
  655. permission: ['/activityCenter/spike/index']
  656. },
  657. activePath: [
  658. '/activityCenter/spike/create',
  659. '/activityCenter/spike/detail',
  660. '/activityCenter/spike/activeGoods'
  661. ]
  662. },
  663. {
  664. path: '/activityCenter/spike/create',
  665. component: () => import('@/views/activityCenter/spike/Create'),
  666. meta: {
  667. title: '新增限时秒杀',
  668. keepAlive: false,
  669. permission: ['/activityCenter/spike/create']
  670. },
  671. hidden: true
  672. },
  673. {
  674. path: '/activityCenter/spike/detail',
  675. component: () => import('@/views/activityCenter/spike/Detail'),
  676. meta: {
  677. title: '查看限时秒杀详情',
  678. keepAlive: false,
  679. permission: ['/activityCenter/spike/detail']
  680. },
  681. hidden: true
  682. },
  683. {
  684. path: '/activityCenter/spike/activeGoods',
  685. component: () => import('@/views/activityCenter/spike/ActiveGoods'),
  686. meta: {
  687. title: '查看活动商品',
  688. keepAlive: false,
  689. permission: ['/activityCenter/spike/activeGoods']
  690. },
  691. hidden: true
  692. }
  693. ]
  694. },
  695. // 购物卡管理
  696. {
  697. path: '/riceCard',
  698. name: 'riceCard',
  699. component: RouteView,
  700. redirect: '/riceCard/index',
  701. meta: {
  702. title: '购物卡管理',
  703. icon: Icons.goods,
  704. permission: ['/riceCard']
  705. },
  706. children: [
  707. {
  708. path: '/riceCard/index',
  709. component: () => import(/* webpackChunkName: "goods" */ '@/views/riceCard/Index'),
  710. meta: {
  711. title: '购物卡列表',
  712. keepAlive: false,
  713. permission: ['/riceCard/index']
  714. },
  715. // 访问其他页面时激活该菜单(router-link-active)
  716. activePath: [
  717. '/riceCard/cashCard',
  718. '/riceCard/cashDetail',
  719. '/riceCard/cashUpdate',
  720. '/riceCard/goodsChangeCard',
  721. '/riceCard/goodsChangeDetail',
  722. '/riceCard/entityCash',
  723. '/riceCard/entityCashDetail'
  724. ]
  725. },
  726. {
  727. path: '/riceCard/exchange',
  728. component: () => import(/* webpackChunkName: "goods" */ '@/views/riceCard/Exchange'),
  729. meta: {
  730. title: '兑换购物卡列表',
  731. keepAlive: false,
  732. permission: ['/riceCard/exchange']
  733. },
  734. hidden: true
  735. },
  736. {
  737. path: '/riceCard/detail',
  738. component: () => import(/* webpackChunkName: "goods" */ '@/views/riceCard/Detail'),
  739. meta: {
  740. title: '兑换明细',
  741. keepAlive: false,
  742. permission: ['/riceCard/detail']
  743. },
  744. hidden: true
  745. },
  746. {
  747. path: '/riceCard/cashCard',
  748. component: () => import(/* webpackChunkName: "goods" */ '@/views/riceCard/CashCard'),
  749. meta: {
  750. title: '新增电子现金卡',
  751. keepAlive: false,
  752. permission: ['/riceCard/cashCard']
  753. },
  754. hidden: true
  755. },
  756. {
  757. path: '/riceCard/cashDetail',
  758. component: () => import(/* webpackChunkName: "goods" */ '@/views/riceCard/CashDetail'),
  759. meta: {
  760. title: '电子现金卡详情',
  761. keepAlive: false,
  762. permission: ['/riceCard/cashDetail']
  763. },
  764. hidden: true
  765. },
  766. {
  767. path: '/riceCard/cashUpdate',
  768. component: () => import(/* webpackChunkName: "goods" */ '@/views/riceCard/CashUpdate'),
  769. meta: {
  770. title: '编辑电子现金卡',
  771. keepAlive: false,
  772. permission: ['/riceCard/cashUpdate']
  773. },
  774. hidden: true
  775. },
  776. {
  777. path: '/riceCard/goodsChangeCard',
  778. component: () => import(/* webpackChunkName: "goods" */ '@/views/riceCard/GoodsChangeCard'),
  779. meta: {
  780. title: '新增实体实物兑换卡',
  781. keepAlive: false,
  782. permission: ['/riceCard/goodsChangeCard']
  783. },
  784. hidden: true
  785. },
  786. {
  787. path: '/riceCard/goodsChangeDetail',
  788. component: () => import(/* webpackChunkName: "goods" */ '@/views/riceCard/GoodsChangeDetail'),
  789. meta: {
  790. title: '查看实体实物兑换卡',
  791. keepAlive: false,
  792. permission: ['/riceCard/goodsChangeDetail']
  793. },
  794. hidden: true
  795. },
  796. {
  797. path: '/riceCard/entityCardList',
  798. component: () => import(/* webpackChunkName: "goods" */ '@/views/riceCard/EntityCardList'),
  799. meta: {
  800. title: '实体购物卡列表',
  801. keepAlive: false,
  802. permission: ['/riceCard/entityCardList']
  803. },
  804. activePath: ['/riceCard/entityCardInfo']
  805. },
  806. {
  807. path: '/riceCard/entityCardInfo',
  808. component: () => import(/* webpackChunkName: "goods" */ '@/views/riceCard/EntityCardInfo'),
  809. meta: {
  810. title: '实体购物卡明细表',
  811. keepAlive: false,
  812. permission: ['/riceCard/entityCardInfo']
  813. },
  814. hidden: true
  815. },
  816. {
  817. path: '/riceCard/entityCash',
  818. component: () => import(/* webpackChunkName: "goods" */ '@/views/riceCard/EntityCash'),
  819. meta: {
  820. title: '新增实体现金卡',
  821. keepAlive: false,
  822. permission: ['/riceCard/entityCash']
  823. },
  824. hidden: true
  825. },
  826. {
  827. path: '/riceCard/entityCashDetail',
  828. component: () => import(/* webpackChunkName: "goods" */ '@/views/riceCard/EntityCashDetail'),
  829. meta: {
  830. title: '实体现金卡详情',
  831. keepAlive: false,
  832. permission: ['/riceCard/entityCashDetail']
  833. },
  834. hidden: true
  835. }
  836. ]
  837. },
  838. // 购物卡订单管理
  839. {
  840. path: '/riceCardOrder',
  841. name: 'riceCardOrder',
  842. component: RouteView,
  843. redirect: '/riceCardOrder/index',
  844. meta: {
  845. title: '购物卡订单管理',
  846. icon: Icons.goods,
  847. permission: ['/riceCardOrder']
  848. },
  849. children: [
  850. {
  851. path: '/riceCardOrder/index',
  852. component: () => import(/* webpackChunkName: "goods" */ '@/views/riceCardOrder/Index'),
  853. meta: {
  854. title: '购物卡订单列表',
  855. keepAlive: false,
  856. permission: ['/riceCardOrder/index']
  857. },
  858. // 访问其他页面时激活该菜单(router-link-active)
  859. activePath: ['/riceCardOrder/detail']
  860. },
  861. {
  862. path: '/riceCardOrder/detail',
  863. component: () => import(/* webpackChunkName: "goods" */ '@/views/riceCardOrder/Detail'),
  864. meta: {
  865. title: '购物卡订单详情',
  866. keepAlive: false,
  867. permission: ['/riceCardOrder/detail']
  868. },
  869. hidden: true
  870. },
  871. {
  872. path: '/riceCardOrder/entitySend',
  873. component: () => import(/* webpackChunkName: "goods" */ '@/views/riceCardOrder/EntitySend'),
  874. meta: {
  875. title: '实物兑换卡配送表',
  876. keepAlive: false,
  877. permission: ['/riceCardOrder/entitySend']
  878. }
  879. }
  880. ]
  881. },
  882. // 购物卡用户持有表
  883. {
  884. path: '/riceCardUser',
  885. name: 'riceCardUser',
  886. component: RouteView,
  887. redirect: '/riceCardUser/index',
  888. meta: {
  889. title: '购物卡用户持有表',
  890. icon: Icons.goods,
  891. permission: ['/riceCardUser']
  892. },
  893. children: [
  894. {
  895. path: '/riceCardUser/cash/index',
  896. component: () => import(/* webpackChunkName: "goods" */ '@/views/riceCardUser/cash/Index'),
  897. meta: {
  898. title: '现金卡用户持有表',
  899. keepAlive: false,
  900. permission: ['/riceCardUser/cash/index']
  901. }
  902. },
  903. {
  904. path: '/riceCardUser/cash/detail',
  905. component: () => import(/* webpackChunkName: "goods" */ '@/views/riceCardUser/cash/Detail'),
  906. meta: {
  907. title: '现金卡消费明细',
  908. keepAlive: false,
  909. permission: ['/riceCardUser/cash/detail']
  910. }
  911. },
  912. {
  913. path: '/riceCardUser/GoodsChange/index',
  914. component: () => import(/* webpackChunkName: "goods" */ '@/views//riceCardUser/GoodsChange/Index'),
  915. meta: {
  916. title: '实物兑换卡用户表',
  917. keepAlive: false,
  918. permission: ['/riceCardUser/GoodsChange/index']
  919. }
  920. }
  921. ]
  922. },
  923. // 订单管理
  924. {
  925. path: '/order/list/all',
  926. name: 'order',
  927. component: RouteView,
  928. redirect: '/order/list/all',
  929. meta: {
  930. title: '订单管理',
  931. icon: Icons.order,
  932. permission: ['/order']
  933. },
  934. children: [
  935. {
  936. path: '/order/list/all',
  937. component: () => import(/* webpackChunkName: "order" */ '@/views/order/Index'),
  938. meta: {
  939. title: '全部订单',
  940. keepAlive: false,
  941. permission: ['/order/list/all']
  942. },
  943. // 访问其他页面时激活该菜单(router-link-active)
  944. activePath: ['/order/detail']
  945. },
  946. {
  947. path: '/order/list/delivery',
  948. component: () => import(/* webpackChunkName: "order" */ '@/views/order/Delivery'),
  949. meta: {
  950. title: '待发货',
  951. keepAlive: false,
  952. permission: ['/order/list/delivery']
  953. }
  954. },
  955. {
  956. path: '/order/list/receipt',
  957. component: () => import(/* webpackChunkName: "order" */ '@/views/order/Receipt'),
  958. meta: {
  959. title: '已发货',
  960. keepAlive: false,
  961. permission: ['/order/list/receipt']
  962. }
  963. },
  964. // {
  965. // path: '/order/list/pay',
  966. // component: () => import( /* webpackChunkName: "order" */ '@/views/order/Index'),
  967. // meta: {
  968. // title: '待付款',
  969. // keepAlive: false,
  970. // permission: ['/order/list/all']
  971. // }
  972. // },
  973. // {
  974. // path: '/order/list/complete',
  975. // component: () => import( /* webpackChunkName: "order" */ '@/views/order/Index'),
  976. // meta: {
  977. // title: '已完成',
  978. // keepAlive: false,
  979. // permission: ['/order/list/all']
  980. // }
  981. // },
  982. // {
  983. // path: '/order/list/cancel',
  984. // component: () => import( /* webpackChunkName: "order" */ '@/views/order/Index'),
  985. // meta: {
  986. // title: '已取消',
  987. // keepAlive: false,
  988. // permission: ['/order/list/all']
  989. // }
  990. // },
  991. {
  992. path: '/order/detail',
  993. component: () => import(/* webpackChunkName: "order" */ '@/views/order/Detail'),
  994. meta: {
  995. title: '订单详情',
  996. keepAlive: false,
  997. permission: ['/order/detail']
  998. },
  999. hidden: true
  1000. },
  1001. {
  1002. path: '/order/refund/index',
  1003. component: () => import(/* webpackChunkName: "order" */ '@/views/order/refund/Index'),
  1004. meta: {
  1005. title: '售后订单',
  1006. keepAlive: false,
  1007. permission: ['/order/refund/index']
  1008. },
  1009. activePath: [
  1010. '/order/refund/detail',
  1011. '/order/refund/compensateOrder/create',
  1012. '/order/refund/compensateOrder/detail',
  1013. '/order/refund/compensateOrder/update'
  1014. ]
  1015. },
  1016. {
  1017. path: '/order/refund/detail',
  1018. component: () => import(/* webpackChunkName: "order" */ '@/views/order/refund/Detail'),
  1019. meta: {
  1020. title: '售后单详情',
  1021. keepAlive: false,
  1022. permission: ['/order/refund/detail']
  1023. },
  1024. hidden: true
  1025. },
  1026. {
  1027. path: '/order/refund/compensateOrder/create',
  1028. component: () => import(/* webpackChunkName: "order" */ '@/views/order/refund/compensateOrder/Create'),
  1029. meta: {
  1030. title: '新增售后补偿单',
  1031. keepAlive: false,
  1032. permission: ['/order/refund/compensateOrder/create']
  1033. },
  1034. hidden: true
  1035. },
  1036. {
  1037. path: '/order/refund/compensateOrder/detail',
  1038. component: () => import(/* webpackChunkName: "order" */ '@/views/order/refund/compensateOrder/Detail'),
  1039. meta: {
  1040. title: '售后补偿单详情',
  1041. keepAlive: false,
  1042. permission: ['/order/refund/compensateOrder/detail']
  1043. },
  1044. hidden: true
  1045. },
  1046. {
  1047. path: '/order/refund/compensateOrder/update',
  1048. component: () => import(/* webpackChunkName: "order" */ '@/views/order/refund/compensateOrder/Update'),
  1049. meta: {
  1050. title: '编辑售后补偿单',
  1051. keepAlive: false,
  1052. permission: ['/order/refund/compensateOrder/update']
  1053. },
  1054. hidden: true
  1055. },
  1056. {
  1057. path: '/order/remind',
  1058. component: () => import(/* webpackChunkName: "order" */ '@/views/order/Remind'),
  1059. meta: {
  1060. title: '订单提醒',
  1061. keepAlive: false,
  1062. permission: ['/order/remind']
  1063. }
  1064. }
  1065. ]
  1066. },
  1067. // 供应商管理
  1068. {
  1069. path: '/provider',
  1070. name: 'provider',
  1071. component: RouteView,
  1072. redirect: '/provider/index',
  1073. meta: {
  1074. title: '供应商管理',
  1075. icon: Icons.goods,
  1076. permission: ['/provider']
  1077. },
  1078. children: [
  1079. {
  1080. path: '/provider/index',
  1081. component: () => import(/* webpackChunkName: "goods" */ '@/views/provider/Index'),
  1082. meta: {
  1083. title: '供应商列表',
  1084. keepAlive: false,
  1085. permission: ['/provider/index']
  1086. },
  1087. // 访问其他页面时激活该菜单(router-link-active)
  1088. activePath: ['/provider/create', '/provider/update']
  1089. },
  1090. {
  1091. path: '/provider/create',
  1092. component: () => import(/* webpackChunkName: "goods" */ '@/views/provider/Create'),
  1093. meta: {
  1094. title: '创建供应商',
  1095. keepAlive: false,
  1096. permission: ['/provider/create']
  1097. },
  1098. hidden: true
  1099. },
  1100. {
  1101. path: '/provider/update',
  1102. component: () => import(/* webpackChunkName: "goods" */ '@/views/provider/Update'),
  1103. meta: {
  1104. title: '编辑供应商',
  1105. keepAlive: false,
  1106. permission: ['/provider/update']
  1107. },
  1108. hidden: true
  1109. }
  1110. ]
  1111. },
  1112. // 管理员
  1113. {
  1114. path: '/manage',
  1115. name: 'manage',
  1116. component: RouteView,
  1117. redirect: '/manage/user/index',
  1118. meta: {
  1119. title: '系统设置',
  1120. icon: Icons.manage,
  1121. permission: ['/manage']
  1122. },
  1123. // hidden: true,
  1124. children: [
  1125. {
  1126. path: '/manage/user/index',
  1127. component: () => import(/* webpackChunkName: "manage" */ '@/views/manage/user/Index'),
  1128. meta: {
  1129. title: '管理员列表',
  1130. keepAlive: false,
  1131. permission: ['/manage/user/index']
  1132. }
  1133. },
  1134. {
  1135. path: '/manage/role/index',
  1136. component: () => import(/* webpackChunkName: "manage" */ '@/views/manage/role/Index'),
  1137. meta: {
  1138. title: '角色管理',
  1139. keepAlive: false,
  1140. permission: ['/manage/role/index']
  1141. }
  1142. }
  1143. ]
  1144. },
  1145. // 店铺管理
  1146. {
  1147. path: '/store',
  1148. name: 'store',
  1149. component: RouteView,
  1150. redirect: '/store/setting',
  1151. meta: {
  1152. title: '店铺管理',
  1153. icon: Icons.shop,
  1154. permission: ['/store']
  1155. },
  1156. hidden: true,
  1157. children: [
  1158. {
  1159. path: '/store/setting',
  1160. component: () => import(/* webpackChunkName: "store" */ '@/views/store/Setting'),
  1161. meta: {
  1162. title: '店铺设置',
  1163. keepAlive: false,
  1164. permission: ['/store/setting']
  1165. }
  1166. },
  1167. {
  1168. path: '/store/address/index',
  1169. component: () => import(/* webpackChunkName: "store" */ '@/views/store/address/Index'),
  1170. meta: {
  1171. title: '地址管理',
  1172. keepAlive: false,
  1173. permission: ['/store/address/index']
  1174. }
  1175. },
  1176. {
  1177. path: '/page',
  1178. component: RouteView,
  1179. redirect: '/page/index',
  1180. meta: {
  1181. title: '店铺页面',
  1182. keepAlive: false,
  1183. permission: ['/page']
  1184. },
  1185. children: [
  1186. {
  1187. path: '/page/index',
  1188. component: () => import(/* webpackChunkName: "page" */ '@/views/page/Index'),
  1189. meta: {
  1190. title: '页面设计',
  1191. keepAlive: false,
  1192. permission: ['/page/index']
  1193. },
  1194. // 访问其他页面时激活该菜单(router-link-active)
  1195. activePath: ['/page/create', '/page/update']
  1196. },
  1197. {
  1198. path: '/page/create',
  1199. component: () => import(/* webpackChunkName: "page" */ '@/views/page/Create'),
  1200. meta: {
  1201. title: '新增页面',
  1202. keepAlive: false,
  1203. permission: ['/page/create']
  1204. },
  1205. hidden: true
  1206. },
  1207. {
  1208. path: '/page/update',
  1209. component: () => import(/* webpackChunkName: "page" */ '@/views/page/Update'),
  1210. meta: {
  1211. title: '编辑页面',
  1212. keepAlive: false,
  1213. permission: ['/page/update']
  1214. },
  1215. hidden: true
  1216. },
  1217. {
  1218. path: '/page/category',
  1219. component: () => import(/* webpackChunkName: "page" */ '@/views/page/category/Index'),
  1220. meta: {
  1221. title: '分类模板',
  1222. keepAlive: false,
  1223. permission: ['/page/category']
  1224. }
  1225. }
  1226. ]
  1227. }
  1228. ]
  1229. },
  1230. // 用户管理
  1231. {
  1232. path: '/user',
  1233. name: 'user',
  1234. component: RouteView,
  1235. meta: {
  1236. title: '用户管理',
  1237. icon: Icons.user,
  1238. permission: ['/user']
  1239. },
  1240. children: [
  1241. {
  1242. path: '/user/index',
  1243. component: () => import(/* webpackChunkName: "user" */ '@/views/user/Index'),
  1244. meta: {
  1245. title: '用户列表',
  1246. keepAlive: false,
  1247. permission: ['/user/index']
  1248. },
  1249. // 访问其他页面时激活该菜单(router-link-active)
  1250. activePath: ['/user/grade/index']
  1251. },
  1252. {
  1253. path: '/user/grade/index',
  1254. component: () => import(/* webpackChunkName: "user" */ '@/views/user/grade/Index'),
  1255. meta: {
  1256. title: '用户资料',
  1257. keepAlive: false,
  1258. permission: ['/user/grade/index']
  1259. },
  1260. hidden: true
  1261. },
  1262. {
  1263. path: '/user/balance',
  1264. component: RouteView,
  1265. redirect: '/user/balance/index',
  1266. meta: {
  1267. title: '余额记录',
  1268. keepAlive: false,
  1269. permission: ['/user/balance']
  1270. },
  1271. hidden: true,
  1272. children: [
  1273. {
  1274. path: '/user/recharge/index',
  1275. component: () => import(/* webpackChunkName: "content" */ '@/views/user/recharge/Index'),
  1276. meta: {
  1277. title: '充值记录',
  1278. keepAlive: false,
  1279. permission: ['/user/recharge/index']
  1280. }
  1281. },
  1282. {
  1283. path: '/user/balance/index',
  1284. component: () => import(/* webpackChunkName: "content" */ '@/views/user/balance/Index'),
  1285. meta: {
  1286. title: '余额明细',
  1287. keepAlive: false,
  1288. permission: ['/user/balance/index']
  1289. }
  1290. }
  1291. ]
  1292. }
  1293. ]
  1294. },
  1295. // VIP会员中心
  1296. {
  1297. path: '/memberCenter',
  1298. name: 'memberCenter',
  1299. component: RouteView,
  1300. meta: {
  1301. title: 'VIP会员中心',
  1302. icon: Icons.user,
  1303. permission: ['/memberCenter']
  1304. },
  1305. children: [
  1306. // 会员卡销售订单
  1307. // {
  1308. // path: '/memberCenter/saleOrder',
  1309. // component: () => import('@/views/memberCenter/SaleOrder'),
  1310. // meta: {
  1311. // title: '会员卡销售订单',
  1312. // keepAlive: false,
  1313. // permission: ['/memberCenter/saleOrder']
  1314. // }
  1315. // },
  1316. // 金稻会员列表
  1317. {
  1318. path: '/memberCenter/memberList',
  1319. component: () => import('@/views/memberCenter/MemberList'),
  1320. meta: {
  1321. title: '金稻会员列表',
  1322. keepAlive: false,
  1323. permission: ['/memberCenter/memberList']
  1324. }
  1325. },
  1326. // // 金米粒收支明细
  1327. // {
  1328. // path: '/memberCenter/kimmyDetailed',
  1329. // component: () => import('@/views/memberCenter/KimmyDetailed'),
  1330. // meta: {
  1331. // title: '金米粒收支明细',
  1332. // keepAlive: false,
  1333. // permission: ['/memberCenter/kimmyDetailed']
  1334. // },
  1335. // hidden: true
  1336. // },
  1337. // // 金米粒手工扣减
  1338. // {
  1339. // path: '/memberCenter/kimmyDeduct/index',
  1340. // component: () => import('@/views/memberCenter/kimmyDeduct/Index'),
  1341. // meta: {
  1342. // title: '金米粒手工扣减',
  1343. // keepAlive: false,
  1344. // permission: ['/memberCenter/kimmyDeduct/index']
  1345. // },
  1346. // // 访问其他页面时激活该菜单(router-link-active)
  1347. // activePath: [
  1348. // '/memberCenter/kimmyDeduct/create',
  1349. // '/memberCenter/kimmyDeduct/edit',
  1350. // '/memberCenter/kimmyDeduct/details'
  1351. // ]
  1352. // },
  1353. // // 新增手工扣减单
  1354. // {
  1355. // path: '/memberCenter/kimmyDeduct/create',
  1356. // component: () => import('@/views/memberCenter/kimmyDeduct/Create'),
  1357. // meta: {
  1358. // title: '新增手工扣减单',
  1359. // keepAlive: false,
  1360. // permission: ['/memberCenter/kimmyDeduct/create']
  1361. // },
  1362. // hidden: true
  1363. // },
  1364. // // 编辑手工扣减单
  1365. // {
  1366. // path: '/memberCenter/kimmyDeduct/edit',
  1367. // component: () => import('@/views/memberCenter/kimmyDeduct/Edit'),
  1368. // meta: {
  1369. // title: '编辑手工扣减单',
  1370. // keepAlive: false,
  1371. // permission: ['/memberCenter/kimmyDeduct/edit']
  1372. // },
  1373. // hidden: true
  1374. // },
  1375. // // 手工扣减单详情
  1376. // {
  1377. // path: '/memberCenter/kimmyDeduct/details',
  1378. // component: () => import('@/views/memberCenter/kimmyDeduct/Details'),
  1379. // meta: {
  1380. // title: '手工扣减单详情',
  1381. // keepAlive: false,
  1382. // permission: ['/memberCenter/kimmyDeduct/details']
  1383. // },
  1384. // hidden: true
  1385. // },
  1386. // // 会员卡
  1387. // {
  1388. // path: '/memberCenter/editMemberCard',
  1389. // component: () => import('@/views/memberCenter/EditMemberCard'),
  1390. // meta: {
  1391. // title: '会员卡',
  1392. // keepAlive: false,
  1393. // permission: ['/memberCenter/editMemberCard']
  1394. // }
  1395. // },
  1396. // // 金米粒抵扣限制
  1397. // {
  1398. // path: '/memberCenter/deductLimit',
  1399. // component: () => import('@/views/memberCenter/DeductLimit'),
  1400. // meta: {
  1401. // title: '金米粒抵扣限制',
  1402. // keepAlive: false,
  1403. // permission: ['/memberCenter/deductLimit']
  1404. // }
  1405. // },
  1406. // // 配置会员价商品
  1407. // {
  1408. // path: '/memberCenter/menberGoods/configList',
  1409. // component: () => import('@/views/memberCenter/menberGoods/ConfigList'),
  1410. // meta: {
  1411. // title: '配置会员价商品',
  1412. // keepAlive: false,
  1413. // permission: ['/memberCenter/menberGoods/configList']
  1414. // },
  1415. // // 访问其他页面时激活该菜单(router-link-active)
  1416. // activePath: [
  1417. // '/memberCenter/menberGoods/create',
  1418. // '/memberCenter/menberGoods/edit',
  1419. // '/memberCenter/menberGoods/details'
  1420. // ]
  1421. // },
  1422. // // 添加会员价商品
  1423. // {
  1424. // path: '/memberCenter/menberGoods/create',
  1425. // component: () => import('@/views/memberCenter/menberGoods/Create'),
  1426. // meta: {
  1427. // title: '添加会员价商品',
  1428. // keepAlive: false,
  1429. // permission: ['/memberCenter/menberGoods/create']
  1430. // },
  1431. // hidden: true
  1432. // },
  1433. // // 编辑会员价商品
  1434. // {
  1435. // path: '/memberCenter/menberGoods/edit',
  1436. // component: () => import('@/views/memberCenter/menberGoods/Edit'),
  1437. // meta: {
  1438. // title: '编辑会员价商品',
  1439. // keepAlive: false,
  1440. // permission: ['/memberCenter/menberGoods/edit']
  1441. // },
  1442. // hidden: true
  1443. // },
  1444. // // 会员价商品详情
  1445. // {
  1446. // path: '/memberCenter/menberGoods/details',
  1447. // component: () => import('@/views/memberCenter/menberGoods/Details'),
  1448. // meta: {
  1449. // title: '会员价商品详情',
  1450. // keepAlive: false,
  1451. // permission: ['/memberCenter/menberGoods/details']
  1452. // },
  1453. // hidden: true
  1454. // },
  1455. // // 会员价商品审核
  1456. // {
  1457. // path: '/memberCenter/menberGoods/examineList',
  1458. // component: () => import('@/views/memberCenter/menberGoods/ExamineList'),
  1459. // meta: {
  1460. // title: '会员价商品审核',
  1461. // keepAlive: false,
  1462. // permission: ['/memberCenter/menberGoods/examineList']
  1463. // }
  1464. // },
  1465. // // 月度会员福利
  1466. // {
  1467. // path: '/memberCenter/monthlyWelfare/index',
  1468. // component: () => import('@/views/memberCenter/monthlyWelfare/Index'),
  1469. // meta: {
  1470. // title: '月度会员福利',
  1471. // keepAlive: false,
  1472. // permission: ['/memberCenter/monthlyWelfare/index']
  1473. // },
  1474. // // 访问其他页面时激活该菜单(router-link-active)
  1475. // activePath: [
  1476. // '/memberCenter/monthlyWelfare/cooperate/create',
  1477. // '/memberCenter/monthlyWelfare/cooperate/edit',
  1478. // '/memberCenter/monthlyWelfare/cooperate/details',
  1479. // '/memberCenter/monthlyWelfare/special/create',
  1480. // '/memberCenter/monthlyWelfare/special/edit',
  1481. // '/memberCenter/monthlyWelfare/special/details',
  1482. // '/memberCenter/monthlyWelfare/receivingRecord',
  1483. // '/memberCenter/monthlyWelfare/receivingDetails'
  1484. // ]
  1485. // },
  1486. // // 新建会员福利(异业合作券)
  1487. // {
  1488. // path: '/memberCenter/monthlyWelfare/cooperate/create',
  1489. // component: () => import('@/views/memberCenter/monthlyWelfare/cooperate/Create'),
  1490. // meta: {
  1491. // title: '新建会员福利(异业合作券)',
  1492. // keepAlive: false,
  1493. // permission: ['/memberCenter/monthlyWelfare/cooperate/create']
  1494. // },
  1495. // hidden: true
  1496. // },
  1497. // // 编辑会员福利(异业合作券)
  1498. // {
  1499. // path: '/memberCenter/monthlyWelfare/cooperate/edit',
  1500. // component: () => import('@/views/memberCenter/monthlyWelfare/cooperate/Edit'),
  1501. // meta: {
  1502. // title: '编辑会员福利(异业合作券)',
  1503. // keepAlive: false,
  1504. // permission: ['/memberCenter/monthlyWelfare/cooperate/edit']
  1505. // },
  1506. // hidden: true
  1507. // },
  1508. // // 会员福利详情(异业合作券)
  1509. // {
  1510. // path: '/memberCenter/monthlyWelfare/cooperate/details',
  1511. // component: () => import('@/views/memberCenter/monthlyWelfare/cooperate/Details'),
  1512. // meta: {
  1513. // title: '会员福利详情(异业合作券)',
  1514. // keepAlive: false,
  1515. // permission: ['/memberCenter/monthlyWelfare/cooperate/details']
  1516. // },
  1517. // hidden: true
  1518. // },
  1519. // // 新建会员福利(会员专享券)
  1520. // {
  1521. // path: '/memberCenter/monthlyWelfare/special/create',
  1522. // component: () => import('@/views/memberCenter/monthlyWelfare/special/Create'),
  1523. // meta: {
  1524. // title: '新建会员福利(会员专享券)',
  1525. // keepAlive: false,
  1526. // permission: ['/memberCenter/monthlyWelfare/special/create']
  1527. // },
  1528. // hidden: true
  1529. // },
  1530. // // 编辑会员福利(会员专享券)
  1531. // {
  1532. // path: '/memberCenter/monthlyWelfare/special/edit',
  1533. // component: () => import('@/views/memberCenter/monthlyWelfare/special/Edit'),
  1534. // meta: {
  1535. // title: '编辑会员福利(会员专享券)',
  1536. // keepAlive: false,
  1537. // permission: ['/memberCenter/monthlyWelfare/special/edit']
  1538. // },
  1539. // hidden: true
  1540. // },
  1541. // // 会员福利详情(会员专享券)
  1542. // {
  1543. // path: '/memberCenter/monthlyWelfare/special/details',
  1544. // component: () => import('@/views/memberCenter/monthlyWelfare/special/Details'),
  1545. // meta: {
  1546. // title: '会员福利详情(会员专享券)',
  1547. // keepAlive: false,
  1548. // permission: ['/memberCenter/monthlyWelfare/special/details']
  1549. // },
  1550. // hidden: true
  1551. // },
  1552. // // 异业福利领取记录
  1553. // {
  1554. // path: '/memberCenter/monthlyWelfare/receivingRecord',
  1555. // component: () => import('@/views/memberCenter/monthlyWelfare/ReceivingRecord'),
  1556. // meta: {
  1557. // title: '异业福利领取记录',
  1558. // keepAlive: false,
  1559. // permission: ['/memberCenter/monthlyWelfare/receivingRecord']
  1560. // },
  1561. // hidden: true
  1562. // },
  1563. // // 异业福利领取明细
  1564. // {
  1565. // path: '/memberCenter/monthlyWelfare/receivingDetails',
  1566. // component: () => import('@/views/memberCenter/monthlyWelfare/ReceivingDetails'),
  1567. // meta: {
  1568. // title: '异业福利领取明细',
  1569. // keepAlive: false,
  1570. // permission: ['/memberCenter/monthlyWelfare/receivingDetails']
  1571. // },
  1572. // hidden: true
  1573. // },
  1574. // // 会员优惠券
  1575. // {
  1576. // path: '/memberCenter/coupon/index',
  1577. // component: () => import('@/views/memberCenter/coupon/Index'),
  1578. // meta: {
  1579. // title: '会员优惠券',
  1580. // keepAlive: false,
  1581. // permission: ['/memberCenter/coupon/index']
  1582. // },
  1583. // activePath: [
  1584. // '/memberCenter/coupon/create',
  1585. // '/memberCenter/coupon/detail',
  1586. // '/memberCenter/coupon/receivingRecord',
  1587. // '/memberCenter/coupon/receivingDetails'
  1588. // ]
  1589. // },
  1590. // // 新建会员券
  1591. // {
  1592. // path: '/memberCenter/coupon/create',
  1593. // component: () => import('@/views/memberCenter/coupon/Create'),
  1594. // meta: {
  1595. // title: '新建会员券',
  1596. // keepAlive: false,
  1597. // permission: ['/memberCenter/coupon/create']
  1598. // },
  1599. // hidden: true
  1600. // },
  1601. // // 会员券详情
  1602. // {
  1603. // path: '/memberCenter/coupon/detail',
  1604. // component: () => import('@/views/memberCenter/coupon/Detail'),
  1605. // meta: {
  1606. // title: '会员券详情',
  1607. // keepAlive: false,
  1608. // permission: ['/memberCenter/coupon/detail']
  1609. // },
  1610. // hidden: true
  1611. // },
  1612. // // 福利兑换码
  1613. // // {
  1614. // // path: '/memberCenter/different',
  1615. // // component: () => import('@/views/memberCenter/Different'),
  1616. // // meta: {
  1617. // // title: '福利兑换码',
  1618. // // keepAlive: false,
  1619. // // permission: ['/memberCenter/different']
  1620. // // },
  1621. // // hidden: false
  1622. // // },
  1623. // // 福利兑换码
  1624. {
  1625. path: '/memberCenter/growthValue',
  1626. component: () => import('@/views/memberCenter/GrowthValue'),
  1627. meta: {
  1628. title: '会员成长值',
  1629. keepAlive: false,
  1630. permission: ['/memberCenter/growthValue']
  1631. },
  1632. hidden: false
  1633. },
  1634. // 会员优惠券领取记录
  1635. {
  1636. path: '/memberCenter/coupon/receivingRecord',
  1637. component: () => import('@/views/memberCenter/coupon/ReceivingRecord'),
  1638. meta: {
  1639. title: '会员优惠券领取记录',
  1640. keepAlive: false,
  1641. permission: ['/memberCenter/coupon/receivingRecord']
  1642. },
  1643. hidden: true
  1644. },
  1645. // 会员优惠券领取明细
  1646. {
  1647. path: '/memberCenter/coupon/receivingDetails',
  1648. component: () => import('@/views/memberCenter/coupon/ReceivingDetails'),
  1649. meta: {
  1650. title: '会员优惠券领取明细',
  1651. keepAlive: false,
  1652. permission: ['/memberCenter/coupon/receivingDetails']
  1653. },
  1654. hidden: true
  1655. }
  1656. ]
  1657. },
  1658. // 门店管理
  1659. {
  1660. path: '/shops',
  1661. name: 'shops',
  1662. component: RouteView,
  1663. redirect: '/shops/index',
  1664. meta: {
  1665. title: '门店管理',
  1666. icon: Icons.statistics,
  1667. permission: ['/shops']
  1668. },
  1669. children: [
  1670. {
  1671. path: '/shops/index',
  1672. component: () => import(/* webpackChunkName: "user" */ '@/views/shops/Index'),
  1673. meta: {
  1674. title: '门店列表',
  1675. keepAlive: false,
  1676. permission: ['/shops/index']
  1677. },
  1678. // 访问其他页面时激活该菜单(router-link-active)
  1679. activePath: ['/shops/create', '/shops/detail', '/shops/commission', '/shops/carry', '/shops/addGoods']
  1680. },
  1681. {
  1682. path: '/shops/create',
  1683. component: () => import(/* webpackChunkName: "user" */ '@/views/shops/Create'),
  1684. meta: {
  1685. title: '新增门店',
  1686. keepAlive: false,
  1687. permission: ['/shops/create']
  1688. },
  1689. hidden: true
  1690. },
  1691. {
  1692. path: '/shops/detail',
  1693. component: () => import(/* webpackChunkName: "user" */ '@/views/shops/Detail'),
  1694. meta: {
  1695. title: '门店详情',
  1696. keepAlive: false,
  1697. permission: ['/shops/detail']
  1698. },
  1699. hidden: true
  1700. },
  1701. {
  1702. path: '/shops/commission',
  1703. component: () => import(/* webpackChunkName: "user" */ '@/views/shops/commission'),
  1704. meta: {
  1705. title: '门店分佣配置',
  1706. keepAlive: false,
  1707. permission: ['/shops/commission']
  1708. },
  1709. hidden: true
  1710. },
  1711. {
  1712. path: '/shops/carry',
  1713. component: () => import(/* webpackChunkName: "user" */ '@/views/shops/Carry'),
  1714. meta: {
  1715. title: '门店自提',
  1716. keepAlive: false,
  1717. permission: ['/shops/carry']
  1718. },
  1719. hidden: true
  1720. },
  1721. {
  1722. path: '/shops/addGoods',
  1723. component: () => import(/* webpackChunkName: "user" */ '@/views/shops/AddGoods'),
  1724. meta: {
  1725. title: '添加在售商品',
  1726. keepAlive: false,
  1727. permission: ['/shops/addGoods']
  1728. },
  1729. hidden: true
  1730. }
  1731. ]
  1732. },
  1733. // 分销管理
  1734. {
  1735. path: '/commission/Setting',
  1736. name: 'commission',
  1737. component: RouteView,
  1738. redirect: '/commission/Setting',
  1739. meta: {
  1740. title: '分销管理',
  1741. icon: Icons.home,
  1742. permission: ['/commission']
  1743. },
  1744. children: [
  1745. {
  1746. path: '/commission/Setting',
  1747. component: () => import(/* webpackChunkName: "goods" */ '@/views/commission/Setting'),
  1748. meta: {
  1749. title: '普通分佣配置',
  1750. keepAlive: false,
  1751. permission: ['/commission/Setting']
  1752. }
  1753. },
  1754. {
  1755. path: '/commission/applyList',
  1756. component: () => import(/* webpackChunkName: "goods" */ '@/views/commission/applyList'),
  1757. meta: {
  1758. title: '分销申请列表',
  1759. keepAlive: false,
  1760. permission: ['/commission/applyList']
  1761. }
  1762. },
  1763. {
  1764. path: '/commission/lowerRecommend',
  1765. component: () => import(/* webpackChunkName: "goods" */ '@/views/commission/LowerRecommend'),
  1766. meta: {
  1767. title: '下级推荐官',
  1768. keepAlive: false,
  1769. permission: ['/commission/lowerRecommend']
  1770. },
  1771. hidden: true
  1772. }
  1773. ]
  1774. },
  1775. // 营销中心
  1776. {
  1777. path: '/marketingCenter',
  1778. name: 'marketingCenter',
  1779. component: RouteView,
  1780. redirect: '/marketingCenter/manage',
  1781. meta: {
  1782. title: '营销中心',
  1783. icon: Icons.statistics,
  1784. permission: ['/marketingCenter']
  1785. },
  1786. children: [
  1787. {
  1788. path: '/marketingCenter/index',
  1789. component: () => import(/* webpackChunkName: "user" */ '@/views/marketingCenter/index'),
  1790. meta: {
  1791. title: '营销中心',
  1792. keepAlive: false,
  1793. permission: ['/marketingCenter/index']
  1794. },
  1795. hidden: true
  1796. },
  1797. {
  1798. path: '/marketingCenter/addCoupon',
  1799. name: 'addCoupon',
  1800. component: () => import(/* webpackChunkName: "content" */ '@/views/marketingCenter/addCoupon'),
  1801. meta: {
  1802. title: '创建满减券',
  1803. keepAlive: false,
  1804. permission: ['/marketingCenter/addCoupon']
  1805. },
  1806. hidden: true
  1807. },
  1808. {
  1809. path: '/marketingCenter/lookCououn',
  1810. name: 'lookCououn',
  1811. component: () => import(/* webpackChunkName: "content" */ '@/views/marketingCenter/lookCououn'),
  1812. meta: {
  1813. title: '查看满减券',
  1814. keepAlive: false,
  1815. permission: ['/marketingCenter/lookCououn']
  1816. },
  1817. hidden: true
  1818. },
  1819. {
  1820. path: '/marketingCenter/manage',
  1821. component: () => import(/* webpackChunkName: "content" */ '@/views/marketingCenter/manage'),
  1822. meta: {
  1823. title: '优惠券管理',
  1824. keepAlive: false,
  1825. permission: ['/marketingCenter/manage']
  1826. },
  1827. // 访问其他页面时激活该菜单(router-link-active)
  1828. activePath: [
  1829. '/marketingCenter/addCoupon',
  1830. '/marketingCenter/lookCououn',
  1831. '/marketingCenter/addDiscount',
  1832. '/marketingCenter/lookDiscount'
  1833. ]
  1834. },
  1835. {
  1836. path: '/marketingCenter/changeCard',
  1837. component: () => import(/* webpackChunkName: "content" */ '@/views/marketingCenter/changeCard'),
  1838. meta: {
  1839. title: '优惠券兑换码列表',
  1840. keepAlive: false,
  1841. permission: ['/marketingCenter/changeCard']
  1842. },
  1843. // 访问其他页面时激活该菜单(router-link-active)
  1844. activePath: ['/marketingCenter/changeCardInfo']
  1845. },
  1846. {
  1847. path: '/marketingCenter/changeCardInfo',
  1848. component: () => import(/* webpackChunkName: "content" */ '@/views/marketingCenter/changeCardInfo'),
  1849. meta: {
  1850. title: '优惠券兑换码明细',
  1851. keepAlive: false,
  1852. permission: ['/marketingCenter/changeCardInfo']
  1853. },
  1854. hidden: true
  1855. },
  1856. {
  1857. path: '/marketingCenter/statistical',
  1858. component: () => import(/* webpackChunkName: "content" */ '@/views/marketingCenter/statistical'),
  1859. meta: {
  1860. title: '优惠券统计表',
  1861. keepAlive: false,
  1862. permission: ['/marketingCenter/statistical']
  1863. },
  1864. // 访问其他页面时激活该菜单(router-link-active)
  1865. activePath: ['/marketingCenter/statisticalInfo']
  1866. },
  1867. {
  1868. path: '/marketingCenter/statisticalInfo',
  1869. component: () => import(/* webpackChunkName: "content" */ '@/views/marketingCenter/statisticalInfo'),
  1870. meta: {
  1871. title: '优惠券统计明细',
  1872. keepAlive: false,
  1873. permission: ['/marketingCenter/statisticalInfo']
  1874. },
  1875. hidden: true
  1876. },
  1877. {
  1878. path: '/marketingCenter/addDiscount',
  1879. component: () => import(/* webpackChunkName: "content" */ '@/views/marketingCenter/AddDiscount'),
  1880. meta: {
  1881. title: '新增折扣券',
  1882. keepAlive: false,
  1883. permission: ['/marketingCenter/addDiscount']
  1884. },
  1885. hidden: true
  1886. },
  1887. {
  1888. path: '/marketingCenter/lookDiscount',
  1889. component: () => import(/* webpackChunkName: "content" */ '@/views/marketingCenter/LookDiscount'),
  1890. meta: {
  1891. title: '查看折扣券',
  1892. keepAlive: false,
  1893. permission: ['/marketingCenter/lookDiscount']
  1894. },
  1895. hidden: true
  1896. },
  1897. // 发放优惠券
  1898. {
  1899. path: '/marketingCenter/grant/index',
  1900. component: () => import('@/views/marketingCenter/grant/Index'),
  1901. meta: {
  1902. title: '发放优惠券',
  1903. keepAlive: false,
  1904. permission: ['/marketingCenter/grant/index']
  1905. },
  1906. activePath: ['/marketingCenter/grant/create', '/marketingCenter/grant/details']
  1907. },
  1908. // 新增发放
  1909. {
  1910. path: '/marketingCenter/grant/create',
  1911. component: () => import('@/views/marketingCenter/grant/Create'),
  1912. meta: {
  1913. title: '新增发放',
  1914. keepAlive: false,
  1915. permission: ['/marketingCenter/grant/create']
  1916. },
  1917. hidden: true
  1918. },
  1919. // 发放优惠券详情
  1920. {
  1921. path: '/marketingCenter/grant/details',
  1922. component: () => import('@/views/marketingCenter/grant/Details'),
  1923. meta: {
  1924. title: '发放优惠券详情',
  1925. keepAlive: false,
  1926. permission: ['/marketingCenter/grant/details']
  1927. },
  1928. hidden: true
  1929. }
  1930. ]
  1931. },
  1932. // 数据统计
  1933. {
  1934. path: '/statistics',
  1935. name: 'statistics',
  1936. component: () => import(/* webpackChunkName: "statistics" */ '@/views/statistics/Index'),
  1937. meta: {
  1938. title: '数据统计',
  1939. keepAlive: true,
  1940. icon: Icons.statistics,
  1941. permission: ['/statistics']
  1942. },
  1943. hidden: true
  1944. },
  1945. // 客户端
  1946. {
  1947. path: '/client',
  1948. name: 'client',
  1949. component: RouteView,
  1950. meta: {
  1951. title: '客户端',
  1952. keepAlive: true,
  1953. icon: Icons.mpweixin,
  1954. iconStyle: {
  1955. fontSize: '17.2px',
  1956. color: '#36b313'
  1957. },
  1958. permission: ['/client']
  1959. },
  1960. // hidden: true,
  1961. children: [
  1962. {
  1963. path: '/client/wxapp',
  1964. component: RouteView,
  1965. redirect: '/client/wxapp/setting',
  1966. meta: {
  1967. title: '微信小程序',
  1968. keepAlive: false,
  1969. permission: ['/client/wxapp']
  1970. },
  1971. children: [
  1972. {
  1973. path: '/client/wxapp/setting',
  1974. component: () => import(/* webpackChunkName: "mp" */ '@/views/client/wxapp/Setting'),
  1975. meta: {
  1976. title: '小程序设置',
  1977. keepAlive: false,
  1978. permission: ['/client/wxapp/setting']
  1979. }
  1980. }
  1981. ]
  1982. }
  1983. ]
  1984. },
  1985. // 用户足迹
  1986. {
  1987. path: '/browse-records',
  1988. name: 'browse-records',
  1989. component: RouteView,
  1990. redirect: '/browse-records/index',
  1991. meta: {
  1992. title: '用户足迹',
  1993. icon: Icons.home,
  1994. permission: ['/browse-records']
  1995. },
  1996. children: [
  1997. {
  1998. path: '/browse-records/index',
  1999. component: () => import(/* webpackChunkName: "goods" */ '@/views/browse-records/Index'),
  2000. meta: {
  2001. title: '用户足迹列表',
  2002. keepAlive: false,
  2003. permission: ['/browse-records/index']
  2004. }
  2005. }
  2006. ]
  2007. },
  2008. // 财务管理
  2009. {
  2010. path: '/finance/withdrawalSet/withdrawalSet',
  2011. name: 'finance',
  2012. component: RouteView,
  2013. redirect: '/finance/withdrawalSet/withdrawalSet',
  2014. meta: {
  2015. title: '财务管理',
  2016. icon: Icons.goods,
  2017. permission: ['/finance']
  2018. },
  2019. children: [
  2020. {
  2021. path: '/finance/index/index',
  2022. component: () => import(/* webpackChunkName: "goods" */ '@/views/finance/index/Index'),
  2023. meta: {
  2024. title: '结算列表',
  2025. keepAlive: false,
  2026. permission: ['/finance/index/index']
  2027. },
  2028. hidden: true
  2029. },
  2030. {
  2031. path: '/finance/settlement/SupplierList',
  2032. component: () => import(/* webpackChunkName: "goods" */ '@/views/finance/settlement/SupplierList'),
  2033. meta: {
  2034. title: '供应商结算列表',
  2035. keepAlive: false,
  2036. permission: ['/finance/settlement/SupplierList']
  2037. },
  2038. // 访问其他页面时激活该菜单(router-link-active)
  2039. activePath: ['/finance/settlement/SupplierDetail'],
  2040. hidden: true
  2041. },
  2042. {
  2043. path: '/finance/settlement/SupplierDetail',
  2044. component: () => import(/* webpackChunkName: "goods" */ '@/views/finance/settlement/SupplierDetail'),
  2045. meta: {
  2046. title: '供应商结算明细',
  2047. keepAlive: false,
  2048. permission: ['/finance/settlement/SupplierDetail']
  2049. },
  2050. hidden: true
  2051. },
  2052. {
  2053. path: '/finance/settlement/cycle',
  2054. component: () => import(/* webpackChunkName: "goods" */ '@/views/finance/settlement/Cycle'),
  2055. meta: {
  2056. title: '供应商结算周期',
  2057. keepAlive: false,
  2058. permission: ['/finance/settlement/cycle']
  2059. },
  2060. hidden: true
  2061. },
  2062. {
  2063. path: '/finance/cost/cost',
  2064. component: () => import(/* webpackChunkName: "goods" */ '@/views/finance/cost/cost'),
  2065. meta: {
  2066. title: '成本管理',
  2067. keepAlive: false,
  2068. permission: ['/finance/cost/cost']
  2069. },
  2070. hidden: true
  2071. },
  2072. {
  2073. path: '/finance/withdrawalSet/withdrawalSet',
  2074. component: () => import(/* webpackChunkName: "goods" */ '@/views/finance/withdrawalSet/withdrawalSet'),
  2075. meta: {
  2076. title: '佣金提现设置',
  2077. keepAlive: false,
  2078. permission: ['/finance/withdrawalSet/withdrawalSet']
  2079. }
  2080. },
  2081. {
  2082. path: '/finance/withdraw/index',
  2083. component: () => import(/* webpackChunkName: "goods" */ '@/views/finance/withdraw/Index'),
  2084. meta: {
  2085. title: '提现列表',
  2086. keepAlive: false,
  2087. permission: ['/finance/withdraw/index']
  2088. },
  2089. // 访问其他页面时激活该菜单(router-link-active)
  2090. activePath: ['/finance/withdraw/detail']
  2091. },
  2092. {
  2093. path: '/finance/index/invoiceList',
  2094. component: () => import(/* webpackChunkName: "goods" */ '@/views/finance/index/invoiceList'),
  2095. meta: {
  2096. title: '发票申请列表',
  2097. keepAlive: false,
  2098. permission: ['/finance/index/invoiceList']
  2099. }
  2100. },
  2101. {
  2102. path: '/finance/withdraw/detail',
  2103. component: () => import(/* webpackChunkName: "goods" */ '@/views/finance/withdraw/Detail'),
  2104. meta: {
  2105. title: '提现详情',
  2106. keepAlive: false,
  2107. permission: ['/finance/withdraw/detail']
  2108. },
  2109. hidden: true
  2110. },
  2111. {
  2112. path: '/finance/index/refundIndex',
  2113. component: () => import(/* webpackChunkName: "goods" */ '@/views/finance/index/refundIndex'),
  2114. meta: {
  2115. title: '普通退款单',
  2116. keepAlive: false,
  2117. permission: ['/finance/index/refundIndex']
  2118. }
  2119. },
  2120. {
  2121. path: '/finance/index/compensateOrderList',
  2122. component: () => import(/* webpackChunkName: "goods" */ '@/views/finance/index/CompensateOrderList'),
  2123. meta: {
  2124. title: '售后补偿单',
  2125. keepAlive: false,
  2126. permission: ['/finance/index/compensateOrderList']
  2127. }
  2128. },
  2129. // 销售明细
  2130. {
  2131. path: '/finance/salesDetails/salesDetails',
  2132. component: () => import(/* webpackChunkName: "goods" */ '@/views/finance/salesDetails/SalesDetails'),
  2133. meta: {
  2134. title: '销售明细',
  2135. keepAlive: false,
  2136. permission: ['/finance/salesDetails/salesDetails']
  2137. }
  2138. },
  2139. // 门店销售额及佣金(基本佣金)
  2140. {
  2141. path: '/finance/store/salesCommission/commissionList',
  2142. component: () =>
  2143. import(/* webpackChunkName: "goods" */ '@/views/finance/store/salesCommission/CommissionList'),
  2144. meta: {
  2145. title: '门店销售额及佣金',
  2146. keepAlive: false,
  2147. permission: ['/finance/store/salesCommission/commissionList']
  2148. }
  2149. // hidden: true
  2150. },
  2151. // 门店销售额及奖金(达量奖励金)
  2152. {
  2153. path: '/finance/store/salesCommission/bonusList',
  2154. component: () => import(/* webpackChunkName: "goods" */ '@/views/finance/store/salesCommission/BonusList'),
  2155. meta: {
  2156. title: '门店销售额及奖金',
  2157. keepAlive: false,
  2158. permission: ['/finance/store/salesCommission/bonusList']
  2159. },
  2160. hidden: true
  2161. },
  2162. // 门店个人基本佣金
  2163. {
  2164. path: '/finance/store/indCommission',
  2165. component: () => import(/* webpackChunkName: "goods" */ '@/views/finance/store/IndCommission'),
  2166. meta: {
  2167. title: '门店个人基本佣金',
  2168. keepAlive: false,
  2169. permission: ['/finance/store/indCommission']
  2170. }
  2171. },
  2172. // 门店个人佣金明细
  2173. {
  2174. path: '/finance/store/indCommissionDetails',
  2175. component: () => import(/* webpackChunkName: "goods" */ '@/views/finance/store/IndCommissionDetails'),
  2176. meta: {
  2177. title: '门店个人佣金明细',
  2178. keepAlive: false,
  2179. permission: ['/finance/store/indCommissionDetails']
  2180. }
  2181. },
  2182. // 门店个人奖金
  2183. {
  2184. path: '/finance/store/bountyList',
  2185. component: () => import(/* webpackChunkName: "goods" */ '@/views/finance/store/bountyList'),
  2186. meta: {
  2187. title: '门店个人奖金',
  2188. keepAlive: false,
  2189. permission: ['/finance/store/bountyList']
  2190. }
  2191. },
  2192. // 门店个人奖金明细
  2193. {
  2194. path: '/finance/awardDetail/awardDetail',
  2195. component: () => import(/* webpackChunkName: "goods" */ '@/views/finance/awardDetail/awardDetail.vue'),
  2196. meta: {
  2197. title: '门店个人奖金明细',
  2198. keepAlive: false,
  2199. permission: ['/finance/awardDetail/awardDetail']
  2200. }
  2201. },
  2202. // 推荐官业绩及佣金
  2203. {
  2204. path: '/finance/recommend/commissionList/commissionList',
  2205. component: () =>
  2206. import(/* webpackChunkName: "goods" */ '@/views/finance/recommend/commissionList/commissionList.vue'),
  2207. meta: {
  2208. title: '推荐官业绩及佣金',
  2209. keepAlive: false,
  2210. permission: ['/finance/recommend/commissionList/commissionList']
  2211. }
  2212. },
  2213. // 推荐官业绩及奖金
  2214. {
  2215. path: '/finance/recommend/commissionList/bonusStatList',
  2216. component: () =>
  2217. import(/* webpackChunkName: "goods" */ '@/views/finance/recommend/commissionList/bonusStatList.vue'),
  2218. meta: {
  2219. title: '推荐官业绩及奖金',
  2220. keepAlive: false,
  2221. permission: ['/finance/recommend/commissionList/bonusStatList']
  2222. },
  2223. hidden: true
  2224. },
  2225. // 推荐官佣金明细
  2226. {
  2227. path: '/finance/recommend/commissionDetail',
  2228. component: () => import(/* webpackChunkName: "goods" */ '@/views/finance/recommend/commissionDetail.vue'),
  2229. meta: {
  2230. title: '推荐官佣金明细',
  2231. keepAlive: false,
  2232. permission: ['/finance/recommend/commissionDetail']
  2233. }
  2234. },
  2235. // 推荐官奖金明细
  2236. {
  2237. path: '/finance/recommend/rewardDetail',
  2238. component: () => import(/* webpackChunkName: "goods" */ '@/views/finance/recommend/rewardDetail.vue'),
  2239. meta: {
  2240. title: '推荐官奖金明细',
  2241. keepAlive: false,
  2242. permission: ['/finance/recommend/rewardDetail']
  2243. }
  2244. }
  2245. ]
  2246. },
  2247. // 数据中心
  2248. {
  2249. path: '/dataCenter',
  2250. name: 'dataCenter',
  2251. component: RouteView,
  2252. redirect: '/dataCenter/business/trend',
  2253. meta: {
  2254. title: '数据中心',
  2255. icon: Icons.goods,
  2256. permission: ['/dataCenter']
  2257. },
  2258. children: [
  2259. {
  2260. path: '/dataCenter/business/trend',
  2261. component: () => import(/* webpackChunkName: "goods" */ '@/views/dataCenter/business/Trend'),
  2262. meta: {
  2263. title: '交易数据',
  2264. keepAlive: false,
  2265. permission: ['/dataCenter/business/trend']
  2266. },
  2267. // 访问其他页面时激活该菜单(router-link-active)
  2268. activePath: [
  2269. '/dataCenter/business/index',
  2270. '/dataCenter/business/goods',
  2271. '/dataCenter/business/channelData',
  2272. '/dataCenter/business/refundGoods'
  2273. ]
  2274. },
  2275. {
  2276. path: '/dataCenter/business/index',
  2277. component: () => import(/* webpackChunkName: "goods" */ '@/views/dataCenter/business/Index'),
  2278. meta: {
  2279. title: '销售分析',
  2280. keepAlive: false,
  2281. permission: ['/dataCenter/business/index']
  2282. },
  2283. hidden: true
  2284. },
  2285. {
  2286. path: '/dataCenter/business/goods',
  2287. component: () => import(/* webpackChunkName: "goods" */ '@/views/dataCenter/business/Goods'),
  2288. meta: {
  2289. title: '商品销量排名',
  2290. keepAlive: false,
  2291. permission: ['/dataCenter/business/goods']
  2292. },
  2293. hidden: true
  2294. },
  2295. // 渠道销售报表
  2296. {
  2297. path: '/dataCenter/business/channelData',
  2298. component: () => import('@/views/dataCenter/business/ChannelData'),
  2299. meta: {
  2300. title: '渠道销售报表',
  2301. keepAlive: false,
  2302. permission: ['/dataCenter/business/channelData']
  2303. },
  2304. hidden: true
  2305. },
  2306. // 退款商品
  2307. {
  2308. path: '/dataCenter/business/refundGoods',
  2309. component: () => import('@/views/dataCenter/business/RefundGoods'),
  2310. meta: {
  2311. title: '退款商品',
  2312. keepAlive: false,
  2313. permission: ['/dataCenter/business/refundGoods']
  2314. },
  2315. hidden: true
  2316. },
  2317. {
  2318. path: '/dataCenter/store',
  2319. component: () => import(/* webpackChunkName: "goods" */ '@/views/dataCenter/Store'),
  2320. meta: {
  2321. title: '门店销售概览',
  2322. keepAlive: false,
  2323. permission: ['/dataCenter/store']
  2324. }
  2325. },
  2326. {
  2327. path: '/dataCenter/flowOverview',
  2328. component: () => import('@/views/dataCenter/FlowOverview'),
  2329. meta: {
  2330. title: '流量概览',
  2331. keepAlive: false,
  2332. permission: ['/dataCenter/flowOverview']
  2333. }
  2334. },
  2335. {
  2336. path: '/dataCenter/userUsageAnalysis/behavior',
  2337. component: () => import('@/views/dataCenter/userUsageAnalysis/Behavior'),
  2338. meta: {
  2339. title: '用户使用分析',
  2340. keepAlive: false,
  2341. permission: ['/dataCenter/userUsageAnalysis/behavior']
  2342. },
  2343. // 访问其他页面时激活该菜单(router-link-active)
  2344. activePath: ['/dataCenter/userUsageAnalysis/retained', '/dataCenter/userUsageAnalysis/page']
  2345. },
  2346. {
  2347. path: '/dataCenter/userAnalysis/index',
  2348. component: () => import('@/views/dataCenter/userAnalysis/Index'),
  2349. meta: {
  2350. title: '用户分析',
  2351. keepAlive: false,
  2352. permission: ['/dataCenter/userAnalysis/index']
  2353. }
  2354. },
  2355. {
  2356. path: '/dataCenter/userUsageAnalysis/retained',
  2357. component: () => import('@/views/dataCenter/userUsageAnalysis/Retained'),
  2358. meta: {
  2359. title: '留存分析',
  2360. keepAlive: false,
  2361. permission: ['/dataCenter/userUsageAnalysis/retained']
  2362. },
  2363. hidden: true
  2364. },
  2365. {
  2366. path: '/dataCenter/userUsageAnalysis/page',
  2367. component: () => import('@/views/dataCenter/userUsageAnalysis/Page'),
  2368. meta: {
  2369. title: '页面分析',
  2370. keepAlive: false,
  2371. permission: ['/dataCenter/userUsageAnalysis/page']
  2372. },
  2373. hidden: true
  2374. },
  2375. // 年卡会员增长
  2376. {
  2377. path: '/dataCenter/memberIncrease',
  2378. component: () => import('@/views/dataCenter/MemberIncrease'),
  2379. meta: {
  2380. title: '年卡会员增长',
  2381. keepAlive: false,
  2382. permission: ['/dataCenter/memberIncrease']
  2383. }
  2384. },
  2385. // 推广渠道分析
  2386. {
  2387. path: '/dataCenter/channel/index',
  2388. component: () => import('@/views/dataCenter/channel/Index'),
  2389. meta: {
  2390. title: '推广渠道分析',
  2391. keepAlive: false,
  2392. permission: ['/dataCenter/channel/index']
  2393. },
  2394. activePath: ['/dataCenter/channel/create', '/dataCenter/channel/update', '/dataCenter/channel/detail']
  2395. },
  2396. // 创建推广监控
  2397. {
  2398. path: '/dataCenter/channel/create',
  2399. component: () => import('@/views/dataCenter/channel/Create'),
  2400. meta: {
  2401. title: '创建推广监控',
  2402. keepAlive: false,
  2403. permission: ['/dataCenter/channel/create']
  2404. },
  2405. hidden: true
  2406. },
  2407. // 编辑推广监控
  2408. {
  2409. path: '/dataCenter/channel/update',
  2410. component: () => import('@/views/dataCenter/channel/Update'),
  2411. meta: {
  2412. title: '编辑推广监控',
  2413. keepAlive: false,
  2414. permission: ['/dataCenter/channel/update']
  2415. },
  2416. hidden: true
  2417. },
  2418. // 推广监控详情
  2419. {
  2420. path: '/dataCenter/channel/detail',
  2421. component: () => import('@/views/dataCenter/channel/Detail'),
  2422. meta: {
  2423. title: '推广监控详情',
  2424. keepAlive: false,
  2425. permission: ['/dataCenter/channel/detail']
  2426. },
  2427. hidden: true
  2428. },
  2429. // 活动效果统计
  2430. {
  2431. path: '/dataCenter/activityData/index',
  2432. component: () => import('@/views/dataCenter/activityData/index'),
  2433. meta: {
  2434. title: '活动效果统计',
  2435. keepAlive: false,
  2436. permission: ['/dataCenter/activityData/index']
  2437. },
  2438. activePath: [
  2439. '/dataCenter/activityData/children/collageData',
  2440. '/dataCenter/activityData/children/bargainData',
  2441. '/dataCenter/activityData/children/pieceFoldData',
  2442. '/dataCenter/activityData/children/fullCountData',
  2443. '/dataCenter/activityData/children/fullGiftData',
  2444. '/dataCenter/activityData/children/spike'
  2445. ],
  2446. redirect: '/dataCenter/activityData/children/collageData',
  2447. children: [
  2448. {
  2449. path: '/dataCenter/activityData/children/collageData',
  2450. name: 'collageData',
  2451. component: () => import('@/views/dataCenter/activityData/children/collageData'),
  2452. meta: {
  2453. title: '拼团',
  2454. keepAlive: false,
  2455. permission: ['/dataCenter/activityData/children/collageData']
  2456. },
  2457. hidden: true
  2458. },
  2459. {
  2460. path: '/dataCenter/activityData/children/bargainData',
  2461. name: 'bargainData',
  2462. component: () => import('@/views/dataCenter/activityData/children/bargainData'),
  2463. meta: {
  2464. title: '砍价',
  2465. keepAlive: false,
  2466. permission: ['/dataCenter/activityData/children/bargainData']
  2467. },
  2468. hidden: true
  2469. },
  2470. {
  2471. path: '/dataCenter/activityData/children/pieceFoldData',
  2472. name: 'pieceFoldData',
  2473. component: () => import('@/views/dataCenter/activityData/children/pieceFoldData'),
  2474. meta: {
  2475. title: 'N件X折',
  2476. keepAlive: false,
  2477. permission: ['/dataCenter/activityData/children/pieceFoldData']
  2478. },
  2479. hidden: true
  2480. },
  2481. {
  2482. path: '/dataCenter/activityData/children/fullCountData',
  2483. name: 'fullCountData',
  2484. component: () => import('@/views/dataCenter/activityData/children/fullCountData'),
  2485. meta: {
  2486. title: '满件送',
  2487. keepAlive: false,
  2488. permission: ['/dataCenter/activityData/children/fullCountData']
  2489. },
  2490. hidden: true
  2491. },
  2492. {
  2493. path: '/dataCenter/activityData/children/fullGiftData',
  2494. name: 'fullGiftData',
  2495. component: () => import('@/views/dataCenter/activityData/children/fullGiftData'),
  2496. meta: {
  2497. title: '满就送',
  2498. keepAlive: false,
  2499. permission: ['/dataCenter/activityData/children/fullGiftData']
  2500. },
  2501. hidden: true
  2502. },
  2503. {
  2504. path: '/dataCenter/activityData/children/spike',
  2505. name: 'fullGiftData',
  2506. component: () => import('@/views/dataCenter/activityData/children/spike'),
  2507. meta: {
  2508. title: '限时秒杀',
  2509. keepAlive: false,
  2510. permission: ['/dataCenter/activityData/children/spike']
  2511. },
  2512. hidden: true
  2513. }
  2514. ]
  2515. },
  2516. {
  2517. path: '/dataCenter/omnichannel',
  2518. component: () => import('@/views/dataCenter/Omnichannel'),
  2519. meta: {
  2520. title: '全渠道销售总览',
  2521. keepAlive: false,
  2522. permission: ['/dataCenter/omnichannel']
  2523. }
  2524. },
  2525. {
  2526. path: '/dataCenter/sales/peoper',
  2527. component: () => import('@/views/dataCenter/sales/Peoper'),
  2528. meta: {
  2529. title: '推荐官销售概览',
  2530. keepAlive: false,
  2531. permission: ['/dataCenter/sales/peoper']
  2532. },
  2533. activePath: ['/dataCenter/sales/officerBase', '/dataCenter/sales/incentive', '/dataCenter/sales/rank']
  2534. },
  2535. {
  2536. path: '/dataCenter/sales/officerBase',
  2537. component: () => import('@/views/dataCenter/sales/OfficerBase'),
  2538. meta: {
  2539. title: '推荐官销售概览',
  2540. keepAlive: false,
  2541. permission: ['/dataCenter/sales/officerBase']
  2542. },
  2543. hidden: true
  2544. },
  2545. {
  2546. path: '/dataCenter/sales/incentive',
  2547. component: () => import('@/views/dataCenter/sales/Incentive'),
  2548. meta: {
  2549. title: '推荐官销售概览',
  2550. keepAlive: false,
  2551. permission: ['/dataCenter/sales/incentive']
  2552. },
  2553. hidden: true
  2554. },
  2555. {
  2556. path: '/dataCenter/sales/rank',
  2557. component: () => import('@/views/dataCenter/sales/Rank'),
  2558. meta: {
  2559. title: '推荐官销售概览',
  2560. keepAlive: false,
  2561. permission: ['/dataCenter/sales/rank']
  2562. },
  2563. hidden: true
  2564. },
  2565. // 商品浏览数据
  2566. {
  2567. path: '/dataCenter/goodsBrowse/browse',
  2568. component: () => import('@/views/dataCenter/goodsBrowse/browse'),
  2569. meta: {
  2570. title: '商品浏览数据',
  2571. keepAlive: false,
  2572. permission: ['/dataCenter/goodsBrowse/browse']
  2573. },
  2574. activePath: ['/dataCenter/goodsBrowse/browse', '/dataCenter/goodsBrowse/sale'],
  2575. hidden: false
  2576. },
  2577. // 商品销售数据
  2578. {
  2579. path: '/dataCenter/goodsBrowse/sale',
  2580. component: () => import('@/views/dataCenter/goodsBrowse/sale'),
  2581. meta: {
  2582. title: '商品销售数据',
  2583. keepAlive: false,
  2584. permission: ['/dataCenter/goodsBrowse/sale']
  2585. },
  2586. hidden: true
  2587. }
  2588. ]
  2589. },
  2590. // 设置
  2591. {
  2592. path: '/setting/delivery/regionlimit',
  2593. name: 'setting',
  2594. component: RouteView,
  2595. redirect: '/setting/delivery/regionlimit',
  2596. meta: {
  2597. title: '设置',
  2598. icon: Icons.setting,
  2599. permission: ['/setting']
  2600. },
  2601. // hidden: true,
  2602. children: [
  2603. {
  2604. path: '/setting/trade',
  2605. component: () => import(/* webpackChunkName: "setting" */ '@/views/setting/Trade'),
  2606. meta: {
  2607. title: '交易设置',
  2608. keepAlive: false,
  2609. permission: ['/setting/trade']
  2610. },
  2611. hidden: true
  2612. },
  2613. {
  2614. path: '/setting/orderClose',
  2615. component: () => import(/* webpackChunkName: "setting" */ '@/views/setting/OrderClose'),
  2616. meta: {
  2617. title: '未支付订单关闭',
  2618. keepAlive: false,
  2619. permission: ['/setting/orderClose']
  2620. }
  2621. },
  2622. {
  2623. path: '/setting/commissionSet',
  2624. component: () => import(/* webpackChunkName: "setting" */ '@/views/setting/CommissionSet'),
  2625. meta: {
  2626. title: '售后及佣金结算',
  2627. keepAlive: false,
  2628. permission: ['/setting/commissionSet']
  2629. }
  2630. },
  2631. {
  2632. path: '/setting/storage',
  2633. component: () => import(/* webpackChunkName: "setting" */ '@/views/setting/Storage'),
  2634. meta: {
  2635. title: '上传设置',
  2636. keepAlive: false,
  2637. permission: ['/setting/storage']
  2638. },
  2639. hidden: true
  2640. },
  2641. {
  2642. path: '/setting/sms',
  2643. component: () => import(/* webpackChunkName: "setting" */ '@/views/setting/Sms'),
  2644. meta: {
  2645. title: '短信通知',
  2646. keepAlive: false,
  2647. permission: ['/setting/sms']
  2648. },
  2649. hidden: true
  2650. },
  2651. {
  2652. path: '/setting/point',
  2653. component: () => import(/* webpackChunkName: "setting" */ '@/views/setting/Point'),
  2654. meta: {
  2655. title: '积分设置',
  2656. keepAlive: false,
  2657. permission: ['/setting/point']
  2658. }
  2659. },
  2660. {
  2661. path: '/setting/delivery',
  2662. component: RouteView,
  2663. redirect: '/setting/delivery/setting',
  2664. meta: {
  2665. title: '配送设置',
  2666. keepAlive: false,
  2667. permission: ['/setting/delivery']
  2668. },
  2669. children: [
  2670. {
  2671. path: '/setting/delivery/setting',
  2672. component: () => import(/* webpackChunkName: "content" */ '@/views/setting/delivery/Setting'),
  2673. meta: {
  2674. title: '配送方式',
  2675. keepAlive: false,
  2676. permission: ['/setting/delivery/setting']
  2677. },
  2678. hidden: true
  2679. },
  2680. {
  2681. path: '/setting/delivery/template/index',
  2682. component: () => import(/* webpackChunkName: "content" */ '@/views/setting/delivery/template/Index'),
  2683. meta: {
  2684. title: '运费模板',
  2685. keepAlive: false,
  2686. permission: ['/setting/delivery/template/index']
  2687. },
  2688. // 访问其他页面时激活该菜单(router-link-active)
  2689. activePath: ['/setting/delivery/template/update']
  2690. },
  2691. {
  2692. path: '/setting/delivery/template/create',
  2693. component: () => import(/* webpackChunkName: "content" */ '@/views/setting/delivery/template/Create'),
  2694. meta: {
  2695. title: '新增运费模板',
  2696. keepAlive: false,
  2697. permission: ['/setting/delivery/template/create']
  2698. },
  2699. hidden: true
  2700. },
  2701. {
  2702. path: '/setting/delivery/template/update',
  2703. component: () => import(/* webpackChunkName: "content" */ '@/views/setting/delivery/template/Update'),
  2704. meta: {
  2705. title: '编辑运费模板',
  2706. keepAlive: false,
  2707. permission: ['/setting/delivery/template/update']
  2708. },
  2709. hidden: true
  2710. },
  2711. {
  2712. path: '/setting/delivery/express/index',
  2713. component: () => import(/* webpackChunkName: "content" */ '@/views/setting/delivery/express/Index'),
  2714. meta: {
  2715. title: '物流公司',
  2716. keepAlive: false,
  2717. permission: ['/setting/delivery/express/index']
  2718. }
  2719. },
  2720. {
  2721. path: '/setting/delivery/regionlimit',
  2722. component: () => import(/* webpackChunkName: "content" */ '@/views/setting/delivery/Regionlimit'),
  2723. meta: {
  2724. title: '地区限购',
  2725. keepAlive: false,
  2726. permission: ['/setting/delivery/regionlimit']
  2727. }
  2728. }
  2729. ]
  2730. },
  2731. {
  2732. path: '/setting/other',
  2733. component: RouteView,
  2734. redirect: '/setting/other/clear',
  2735. meta: {
  2736. title: '其他设置',
  2737. keepAlive: false,
  2738. permission: ['/setting/other']
  2739. },
  2740. hidden: true,
  2741. children: [
  2742. {
  2743. path: '/setting/other/clear',
  2744. component: () => import(/* webpackChunkName: "content" */ '@/views/setting/other/Clear'),
  2745. meta: {
  2746. title: '清理缓存',
  2747. keepAlive: false,
  2748. permission: ['/setting/other/clear']
  2749. }
  2750. }
  2751. ]
  2752. }
  2753. ]
  2754. }
  2755. // 公明腊肠官网
  2756. // {
  2757. // path: '/website',
  2758. // name: 'website',
  2759. // component: RouteView,
  2760. // redirect: '/website',
  2761. // hidden: true,
  2762. // meta: {
  2763. // title: '公明腊肠官网',
  2764. // icon: Icons.home,
  2765. // permission: ['/website/BrandHonor']
  2766. // },
  2767. // children: [
  2768. // {
  2769. // path: '/website/BrandHonor',
  2770. // component: () => import(/* webpackChunkName: "goods" */ '@/views/website/BrandHonor'),
  2771. // meta: {
  2772. // title: '品牌荣誉',
  2773. // keepAlive: false,
  2774. // permission: ['/website/BrandHonor']
  2775. // }
  2776. // },
  2777. // {
  2778. // path: '/website/news/index',
  2779. // component: () => import(/* webpackChunkName: "goods" */ '@/views/website/news/index'),
  2780. // meta: {
  2781. // title: '新闻动态',
  2782. // keepAlive: false,
  2783. // permission: ['/website/news/index']
  2784. // },
  2785. // activePath: ['/website/news/addNews']
  2786. // },
  2787. // {
  2788. // path: '/website/news/addNews',
  2789. // component: () => import(/* webpackChunkName: "goods" */ '@/views/website/news/addNews'),
  2790. // meta: {
  2791. // title: '新增动态',
  2792. // keepAlive: false,
  2793. // permission: ['/website/news/addNews']
  2794. // },
  2795. // hidden: true
  2796. // },
  2797. // {
  2798. // path: '/website/join',
  2799. // component: () => import(/* webpackChunkName: "goods" */ '@/views/website/join'),
  2800. // meta: {
  2801. // title: '招商加盟',
  2802. // keepAlive: false,
  2803. // permission: ['/website/join']
  2804. // }
  2805. // },
  2806. // {
  2807. // path: '/website/otnerO',
  2808. // component: () => import(/* webpackChunkName: "goods" */ '@/views/website/otnerO'),
  2809. // meta: {
  2810. // title: '其他配置',
  2811. // keepAlive: false,
  2812. // permission: ['/website/otnerO']
  2813. // }
  2814. // }
  2815. // ]
  2816. // }
  2817. ]
  2818. },
  2819. // 更新账户信息
  2820. {
  2821. name: 'renew',
  2822. path: '/manage',
  2823. redirect: '/manage/renew',
  2824. component: BasicLayout,
  2825. hidden: true,
  2826. meta: {
  2827. title: '更新账户信息',
  2828. keepAlive: false
  2829. },
  2830. children: [
  2831. {
  2832. path: 'renew',
  2833. component: () => import(/* webpackChunkName: "manage" */ '@/views/manage/renew')
  2834. }
  2835. ]
  2836. },
  2837. {
  2838. path: '*',
  2839. redirect: '/404',
  2840. hidden: true
  2841. }
  2842. ]
  2843. /**
  2844. * 基础路由
  2845. * @type { *[] }
  2846. */
  2847. export const constantRouterMap = [
  2848. // 用户登录页
  2849. {
  2850. path: '/passport',
  2851. component: UserLayout,
  2852. redirect: '/passport/login',
  2853. hidden: true,
  2854. children: [
  2855. {
  2856. path: 'login',
  2857. name: 'login',
  2858. component: () => import(/* webpackChunkName: "passport" */ '@/views/passport/Login')
  2859. }
  2860. ]
  2861. },
  2862. // 404页
  2863. {
  2864. path: '/404',
  2865. component: () => import(/* webpackChunkName: "exception" */ '@/views/exception/404')
  2866. }
  2867. ]