index.js 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481
  1. /*
  2. * @Author: wenjie 1454560336@qq.com
  3. * @Date: 2024-03-05 11:36:07
  4. * @LastEditors: wenjie 1454560336@qq.com
  5. * @LastEditTime: 2024-08-18 15:45:41
  6. * @FilePath: \admin-manage\src\router\index.js
  7. * @Description:
  8. *
  9. * Copyright (c) 2024 by ${git_name_email}, All Rights Reserved.
  10. */
  11. import Vue from 'vue'
  12. import Router from 'vue-router'
  13. Vue.use(Router)
  14. /* Layout */
  15. import Layout from '@/layout'
  16. import operationLayout from '@/views/operationManage/index'
  17. /**
  18. * Note: sub-menu only appear when route children.length >= 1
  19. * Detail see: https://panjiachen.github.io/vue-element-admin-site/guide/essentials/router-and-nav.html
  20. *
  21. * hidden: true if set true, item will not show in the sidebar(default is false)
  22. * alwaysShow: true if set true, will always show the root menu
  23. * if not set alwaysShow, when item has more than one children route,
  24. * it will becomes nested mode, otherwise not show the root menu
  25. * redirect: noRedirect if set noRedirect will no redirect in the breadcrumb
  26. * name:'router-name' the name is used by <keep-alive> (must set!!!)
  27. * meta : {
  28. roles: ['admin','editor'] control the page roles (you can set multiple roles)
  29. title: 'title' the name show in sidebar and breadcrumb (recommend set)
  30. icon: 'svg-name'/'el-icon-x' the icon show in the sidebar
  31. breadcrumb: false if set false, the item will hidden in breadcrumb(default is true)
  32. activeMenu: '/example/list' if set path, the sidebar will highlight the path you set
  33. }
  34. */
  35. /**
  36. * constantRoutes
  37. * a base page that does not have permission requirements
  38. * all roles can be accessed
  39. */
  40. export let constantRoutes = [{
  41. path: '/login',
  42. component: () => import('@/views/login/index'),
  43. hidden: true
  44. },
  45. {
  46. path: '/404',
  47. component: () => import('@/views/404'),
  48. hidden: true
  49. },
  50. // {
  51. // id: 0,
  52. // path: '/statisticsManage',
  53. // component: Layout,
  54. // meta: { title: '中数❤移动', icon: 'icon-shouyefill' },
  55. // children: [
  56. // {
  57. // id: 1,
  58. // path: '/statisticsManage',
  59. // name: '/statisticsManage',
  60. // component: () => import('@/views/statisticsManage/index.vue'),
  61. // meta: { title: '中数❤移动', icon: '' },
  62. // },
  63. // ]
  64. // },
  65. {
  66. id: 0,
  67. path: '/',
  68. component: Layout,
  69. redirect: '/home',
  70. meta: {
  71. title: '首页',
  72. icon: 'icon-shouyefill'
  73. },
  74. children: [{
  75. id: 1,
  76. path: '/home',
  77. name: '/home',
  78. component: () => import('@/views/home/index.vue'),
  79. meta: {
  80. title: '首页',
  81. icon: ''
  82. },
  83. },
  84. {
  85. id: 1,
  86. path: '/updatePassword',
  87. name: '/updatePassword',
  88. component: () => import('@/views/updatePassword/index.vue'),
  89. meta: {
  90. title: '修改密码',
  91. icon: ''
  92. },
  93. },
  94. ]
  95. },
  96. // {
  97. // id: 36,
  98. // path: '/adminManage',
  99. // component: Layout,
  100. // meta: { title: '账号管理', icon: 'el-icon-user-solid' },
  101. // alwaysShow: true,
  102. // children: [
  103. // {
  104. // id: 37,
  105. // path: '/adminManage/adminList',
  106. // name: '/adminManage/adminList',
  107. // component: () => import('@/views/adminManage/adminList.vue'),
  108. // meta: { title: '账号列表', icon: '' },
  109. // },
  110. // {
  111. // id: 37,
  112. // path: '/adminManage/adminDetail',
  113. // name: '/adminManage/adminDetail',
  114. // hidden: true ,
  115. // component: () => import('@/views/adminManage/adminDetail.vue'),
  116. // meta: { title: '账号详情', icon: '',activeMenu:'/adminManage/adminList' },
  117. // },
  118. // {
  119. // id: 37,
  120. // path: '/adminManage/adminAdd',
  121. // name: '/adminManage/adminAdd',
  122. // hidden: true ,
  123. // component: () => import('@/views/adminManage/adminAdd.vue'),
  124. // meta: { title: '人员添加', icon: '',activeMenu:'/adminManage/adminList' },
  125. // },
  126. // ]
  127. // },
  128. {
  129. id: 0,
  130. path: '/operationManage/index',
  131. component: Layout,
  132. meta: {
  133. title: '运营管理',
  134. icon: 'el-icon-s-shop'
  135. },
  136. alwaysShow: true,
  137. children: [{
  138. id: 0,
  139. path: '/operationManage/shopManage/index',
  140. component: operationLayout,
  141. meta: {
  142. title: '商铺管理',
  143. icon: ''
  144. },
  145. alwaysShow: true,
  146. children: [
  147. {
  148. id: 1,
  149. path: '/operationManage/shopManage/shopType',
  150. name: '/operationManage/shopManage/shopType',
  151. component: () => import('@/views/operationManage/shopManage/shopType.vue'),
  152. hidden:true,
  153. meta: {
  154. title: '店铺类型',
  155. icon: ''
  156. },
  157. },{
  158. id: 1,
  159. path: '/operationManage/shopManage/index',
  160. name: '/operationManage/shopManage/index',
  161. component: () => import('@/views/operationManage/shopManage/index.vue'),
  162. meta: {
  163. title: '店铺列表',
  164. icon: ''
  165. },
  166. },
  167. {
  168. id: 1,
  169. path: '/operationManage/shopManage/shopAdd',
  170. name: '/operationManage/shopManage/shopAdd',
  171. component: () => import('@/views/operationManage/shopManage/shopAdd.vue'),
  172. meta: {
  173. title: '店铺添加'
  174. },
  175. },
  176. {
  177. id: 1,
  178. path: '/operationManage/shopManage/shopAdd1',
  179. name: '/operationManage/shopManage/shopAdd1',
  180. hidden: true,
  181. component: () => import('@/views/operationManage/shopManage/shopAdd1.vue'),
  182. meta: {
  183. title: '银联认证',
  184. activeMenu: '/operationManage/shopManage/index'
  185. },
  186. },
  187. {
  188. id: 1,
  189. path: '/operationManage/shopManage/shopAdd2',
  190. name: '/operationManage/shopManage/shopAdd2',
  191. hidden: true,
  192. component: () => import('@/views/operationManage/shopManage/shopAdd2.vue'),
  193. meta: {
  194. title: '银联认证',
  195. activeMenu: '/operationManage/shopManage/index'
  196. },
  197. },
  198. {
  199. id: 1,
  200. path: '/operationManage/shopManage/shopAdd3',
  201. name: '/operationManage/shopManage/shopAdd3',
  202. hidden: true,
  203. component: () => import('@/views/operationManage/shopManage/shopAdd3.vue'),
  204. meta: {
  205. title: '银联认证',
  206. activeMenu: '/operationManage/shopManage/index'
  207. },
  208. },
  209. {
  210. id: 1,
  211. path: '/operationManage/shopManage/shopAdd4',
  212. name: '/operationManage/shopManage/shopAdd4',
  213. hidden: true,
  214. component: () => import('@/views/operationManage/shopManage/shopAdd4.vue'),
  215. meta: {
  216. title: '银联认证',
  217. activeMenu: '/operationManage/shopManage/index'
  218. },
  219. }
  220. ]
  221. },
  222. // {
  223. // id: 0,
  224. // path: '/operationManage/shopAudit/index',
  225. // component: operationLayout,
  226. // meta: {
  227. // title: '店铺审核',
  228. // icon: ''
  229. // },
  230. // alwaysShow: true,
  231. // children: [{
  232. // id: 1,
  233. // path: '/operationManage/shopAudit/index',
  234. // name: '/operationManage/shopAudit/index',
  235. // component: () => import('@/views/operationManage/shopAudit/index.vue'),
  236. // meta: {
  237. // title: '审核列表',
  238. // icon: ''
  239. // },
  240. // },
  241. // {
  242. // id: 1,
  243. // path: '/operationManage/shopAudit/audit',
  244. // name: '/operationManage/shopAudit/audit',
  245. // hidden:true,
  246. // component: () => import('@/views/operationManage/shopAudit/audit.vue'),
  247. // meta: {
  248. // title: '店铺审核',
  249. // icon: '',
  250. // activeMenu: '/operationManage/shopAudit/index'
  251. // },
  252. // },
  253. // ]
  254. // },
  255. // {
  256. // id: 0,
  257. // path: '/operationManage/goodsTemplate/index',
  258. // component: operationLayout,
  259. // meta: {
  260. // title: '规格模板',
  261. // icon: ''
  262. // },
  263. // alwaysShow: true,
  264. // children: [{
  265. // id: 1,
  266. // path: '/operationManage/goodsTemplate/index',
  267. // name: '/operationManage/goodsTemplate/index',
  268. // component: () => import('@/views/operationManage/goodsTemplate/index.vue'),
  269. // meta: {
  270. // title: '商品规格',
  271. // icon: ''
  272. // },
  273. // },
  274. // {
  275. // id: 1,
  276. // path: '/operationManage/goodsTemplate/addGoodsTemplate',
  277. // name: '/operationManage/goodsTemplate/addGoodsTemplate',
  278. // hidden:true,
  279. // component: () => import('@/views/operationManage/goodsTemplate/addGoodsTemplate.vue'),
  280. // meta: {
  281. // title: '添加规格',
  282. // icon: '',
  283. // activeMenu: '/operationManage/goodsTemplate/index'
  284. // },
  285. // },
  286. // ]
  287. // },
  288. {
  289. id: 0,
  290. path: '/operationManage/goodsType/index',
  291. component: operationLayout,
  292. meta: {
  293. title: '商品分类',
  294. icon: ''
  295. },
  296. alwaysShow: true,
  297. children: [{
  298. id: 1,
  299. path: '/operationManage/goodsType/index',
  300. name: '/operationManage/goodsType/index',
  301. component: () => import('@/views/operationManage/goodsType/index.vue'),
  302. meta: {
  303. title: '分类列表',
  304. icon: ''
  305. },
  306. },
  307. {
  308. id: 1,
  309. path: '/operationManage/goodsType/addGoodsType',
  310. name: '/operationManage/goodsType/addGoodsType',
  311. hidden:true,
  312. component: () => import('@/views/operationManage/goodsType/addGoodsType.vue'),
  313. meta: {
  314. title: '添加分类',
  315. icon: '',
  316. activeMenu: '/operationManage/goodsType/index'
  317. },
  318. },
  319. ]
  320. },
  321. {
  322. id: 0,
  323. path: '/operationManage/goodsManage/index',
  324. component: operationLayout,
  325. meta: {
  326. title: '商品管理',
  327. icon: ''
  328. },
  329. alwaysShow: true,
  330. children: [{
  331. id: 1,
  332. path: '/operationManage/goodsManage/index',
  333. name: '/operationManage/goodsManage/index',
  334. component: () => import('@/views/operationManage/goodsManage/index.vue'),
  335. meta: {
  336. title: '商品列表',
  337. icon: ''
  338. },
  339. },
  340. {
  341. id: 1,
  342. path: '/operationManage/goodsManage/goodsDetail',
  343. name: '/operationManage/goodsManage/goodsDetail',
  344. hidden:true,
  345. component: () => import('@/views/operationManage/goodsManage/goodsDetail.vue'),
  346. meta: {
  347. title: '商品配置',
  348. icon: '',
  349. activeMenu: '/operationManage/goodsManage/index'
  350. },
  351. },
  352. {
  353. id: 1,
  354. path: '/operationManage/goodsManage/labelList',
  355. name: '/operationManage/goodsManage/labelList',
  356. component: () => import('@/views/operationManage/goodsManage/labelList.vue'),
  357. meta: {
  358. title: '标签列表',
  359. icon: ''
  360. },
  361. },
  362. {
  363. id: 1,
  364. path: '/operationManage/goodsManage/productLibrary',
  365. name: '/operationManage/goodsManage/productLibrary',
  366. component: () => import('@/views/operationManage/goodsManage/productLibrary.vue'),
  367. meta: {
  368. title: '产品库',
  369. icon: ''
  370. },
  371. },
  372. {
  373. id: 1,
  374. path: '/operationManage/goodsManage/homeGoodsSet',
  375. name: '/operationManage/goodsManage/homeGoodsSet',
  376. component: () => import('@/views/operationManage/goodsManage/homeGoodsSet.vue'),
  377. meta: {
  378. title: '首页设置',
  379. icon: ''
  380. },
  381. },
  382. ]
  383. },
  384. // {
  385. // id: 0,
  386. // path: '/operationManage/goodsAudit/index',
  387. // component: operationLayout,
  388. // meta: {
  389. // title: '商品审核',
  390. // icon: ''
  391. // },
  392. // alwaysShow: true,
  393. // children: [{
  394. // id: 1,
  395. // path: '/operationManage/goodsAudit/index',
  396. // name: '/operationManage/goodsAudit/index',
  397. // component: () => import('@/views/operationManage/goodsAudit/index.vue'),
  398. // meta: {
  399. // title: '审核列表',
  400. // icon: ''
  401. // },
  402. // },
  403. // {
  404. // id: 1,
  405. // path: '/operationManage/goodsAudit/auditGoods',
  406. // name: '/operationManage/goodsAudit/auditGoods',
  407. // hidden:true,
  408. // component: () => import('@/views/operationManage/goodsAudit/auditGoods.vue'),
  409. // meta: {
  410. // title: '商品审核',
  411. // icon: '',
  412. // activeMenu: '/operationManage/goodsAudit/index'
  413. // },
  414. // },
  415. // // {
  416. // // id: 1,
  417. // // path: '/operationManage/goodsAudit/auditDetail',
  418. // // name: '/operationManage/goodsAudit/auditDetail',
  419. // // component: () => import('@/views/operationManage/goodsAudit/auditDetail.vue'),
  420. // // meta: {
  421. // // title: '审核详情',
  422. // // icon: ''
  423. // // },
  424. // // },
  425. // ]
  426. // },
  427. {
  428. id: 0,
  429. path: '/operationManage/orderManage/index',
  430. component: operationLayout,
  431. meta: {
  432. title: '订单管理',
  433. icon: ''
  434. },
  435. alwaysShow: true,
  436. children: [{
  437. id: 1,
  438. path: '/operationManage/orderManage/index',
  439. name: '/operationManage/orderManage/index',
  440. component: () => import('@/views/operationManage/orderManage/index.vue'),
  441. meta: {
  442. title: '支付订单',
  443. icon: ''
  444. },
  445. },
  446. {
  447. id: 1,
  448. path: '/operationManage/orderManage/payDetail',
  449. name: '/operationManage/orderManage/payDetail',
  450. hidden:true,
  451. component: () => import('@/views/operationManage/orderManage/payDetail.vue'),
  452. meta: {
  453. title: '订单详情',
  454. icon: '',
  455. activeMenu: '/operationManage/orderManage/index'
  456. },
  457. },
  458. {
  459. id: 1,
  460. path: '/operationManage/orderManage/list',
  461. name: '/operationManage/orderManage/list',
  462. component: () => import('@/views/operationManage/orderManage/list.vue'),
  463. meta: {
  464. title: '商品订单',
  465. icon: ''
  466. },
  467. },
  468. {
  469. id: 1,
  470. path: '/operationManage/orderManage/orderDetail',
  471. name: '/operationManage/orderManage/orderDetail',
  472. hidden:true,
  473. component: () => import('@/views/operationManage/orderManage/orderDetail.vue'),
  474. meta: {
  475. title: '订单详情',
  476. icon: '',
  477. activeMenu: '/operationManage/orderManage/list'
  478. },
  479. },
  480. ]
  481. },
  482. {
  483. id: 0,
  484. path: '/operationManage/marketingManage/index',
  485. component: operationLayout,
  486. meta: {
  487. title: '营销管理',
  488. icon: ''
  489. },
  490. alwaysShow: true,
  491. children: [{
  492. id: 1,
  493. path: '/operationManage/marketingManage/index',
  494. name: '/operationManage/marketingManage/index',
  495. component: () => import('@/views/operationManage/marketingManage/index.vue'),
  496. meta: {
  497. title: '小桔活动',
  498. icon: ''
  499. },
  500. },
  501. {
  502. id: 0,
  503. path: '/operationManage/marketingManage/invitePromotion/index',
  504. component: operationLayout,
  505. meta: {
  506. title: '推广邀请规则',
  507. icon: ''
  508. },
  509. alwaysShow: true,
  510. children: [
  511. {
  512. id: 1,
  513. path: '/operationManage/marketingManage/invitePromotion/index',
  514. name: '/operationManage/marketingManage/invitePromotion/index',
  515. component: () => import('@/views/operationManage/marketingManage/invitePromotion/index.vue'),
  516. meta: {
  517. title: '规则管理',
  518. icon: ''
  519. },
  520. },
  521. {
  522. id: 1,
  523. path: '/operationManage/marketingManage/invitePromotion/add',
  524. name: '/operationManage/marketingManage/invitePromotion/add',
  525. component: () => import('@/views/operationManage/marketingManage/invitePromotion/add.vue'),
  526. meta: {
  527. title: '规则添加',
  528. icon: ''
  529. },
  530. }
  531. ]
  532. }
  533. ]
  534. },
  535. {
  536. id: 0,
  537. path: '/operationManage/comboManage/index',
  538. component: operationLayout,
  539. meta: {
  540. title: '套餐管理',
  541. icon: ''
  542. },
  543. alwaysShow: true,
  544. children: [{
  545. id: 1,
  546. path: '/operationManage/comboManage/index',
  547. name: '/operationManage/comboManage/index',
  548. component: () => import('@/views/operationManage/comboManage/index.vue'),
  549. meta: {
  550. title: '套餐列表',
  551. icon: ''
  552. },
  553. },
  554. // {
  555. // id: 1,
  556. // path: '/operationManage/comboManage/addCombo',
  557. // name: '/operationManage/comboManage/addCombo',
  558. // component: () => import('@/views/operationManage/comboManage/addCombo.vue'),
  559. // meta: {
  560. // title: '添加套餐',
  561. // icon: ''
  562. // },
  563. // },
  564. {
  565. id: 1,
  566. path: '/operationManage/comboManage/editCombo',
  567. name: '/operationManage/comboManage/editCombo',
  568. hidden:true,
  569. component: () => import('@/views/operationManage/comboManage/editCombo.vue'),
  570. meta: {
  571. title: '编辑套餐',
  572. icon: ''
  573. },
  574. },
  575. {
  576. id: 1,
  577. path: '/operationManage/equitiesManage/index',
  578. name: '/operationManage/equitiesManage/index',
  579. component: () => import('@/views/operationManage/equitiesManage/index.vue'),
  580. hidden:true,
  581. meta: {
  582. title: '权益列表',
  583. icon: '',
  584. activeMenu: '/operationManage/comboManage/index'
  585. },
  586. },
  587. {
  588. id: 1,
  589. path: '/operationManage/equitiesManage/addEquities',
  590. name: '/operationManage/equitiesManage/addEquities',
  591. hidden:true,
  592. component: () => import('@/views/operationManage/equitiesManage/addEquities.vue'),
  593. meta: {
  594. title: '添加权益',
  595. icon: '',
  596. activeMenu: '/operationManage/comboManage/index'
  597. },
  598. },
  599. ]
  600. },
  601. {
  602. id: 0,
  603. path: '/operationManage/financeManage/index',
  604. component: operationLayout,
  605. meta: {
  606. title: '财务管理',
  607. icon: ''
  608. },
  609. alwaysShow: true,
  610. children: [{
  611. id: 1,
  612. path: '/operationManage/financeManage/index',
  613. name: '/operationManage/financeManage/index',
  614. component: () => import('@/views/operationManage/financeManage/index.vue'),
  615. meta: {
  616. title: '分账列表',
  617. icon: ''
  618. },
  619. },
  620. {
  621. id: 1,
  622. path: '/operationManage/financeManage/withdraw',
  623. name: '/operationManage/financeManage/withdraw',
  624. component: () => import('@/views/operationManage/financeManage/withdraw.vue'),
  625. meta: {
  626. title: '账户余额',
  627. icon: ''
  628. },
  629. },
  630. ]
  631. },
  632. // {
  633. // id: 0,
  634. // path: '/operationManage/ticketManage/index',
  635. // component: operationLayout,
  636. // meta: {
  637. // title: '核销管理',
  638. // icon: ''
  639. // },
  640. // alwaysShow: true,
  641. // children: [{
  642. // id: 1,
  643. // path: '/operationManage/ticketManage/index',
  644. // name: '/operationManage/ticketManage/index',
  645. // component: () => import('@/views/operationManage/ticketManage/index.vue'),
  646. // meta: {
  647. // title: '核销列表',
  648. // icon: ''
  649. // },
  650. // }, ]
  651. // },
  652. {
  653. id: 0,
  654. path: '/operationManage/appMenuManage/index',
  655. component: operationLayout,
  656. meta: {
  657. title: '小程序菜单',
  658. icon: ''
  659. },
  660. alwaysShow: true,
  661. children: [{
  662. id: 1,
  663. path: '/operationManage/appMenuManage/index',
  664. name: '/operationManage/appMenuManage/index',
  665. component: () => import('@/views/operationManage/appMenuManage/index.vue'),
  666. meta: {
  667. title: '菜单列表',
  668. icon: ''
  669. },
  670. },
  671. {
  672. id: 1,
  673. path: '/operationManage/appMenuManage/addMenu',
  674. name: '/operationManage/appMenuManage/addMenu',
  675. hidden:true,
  676. component: () => import('@/views/operationManage/appMenuManage/addMenu.vue'),
  677. meta: {
  678. title: '添加菜单',
  679. icon: '',
  680. activeMenu: '/operationManage/appMenuManage/index'
  681. },
  682. },
  683. {
  684. id: 1,
  685. path: '/operationManage/appMenuManage/editMenu',
  686. name: '/operationManage/appMenuManage/editMenu',
  687. hidden:true,
  688. component: () => import('@/views/operationManage/appMenuManage/editMenu.vue'),
  689. meta: {
  690. title: '编辑菜单',
  691. icon: '',
  692. activeMenu: '/operationManage/appMenuManage/index'
  693. },
  694. },
  695. ]
  696. },
  697. {
  698. id: 0,
  699. path: '/operationManage/bannerManage/index',
  700. component: operationLayout,
  701. meta: {
  702. title: 'banner管理',
  703. icon: ''
  704. },
  705. alwaysShow: true,
  706. children: [{
  707. id: 1,
  708. path: '/operationManage/bannerManage/index',
  709. name: '/operationManage/bannerManage/index',
  710. component: () => import('@/views/operationManage/bannerManage/index.vue'),
  711. meta: {
  712. title: 'banner列表',
  713. icon: ''
  714. },
  715. },
  716. {
  717. id: 1,
  718. path: '/operationManage/bannerManage/addBanner',
  719. name: '/operationManage/bannerManage/addBanner',
  720. hidden:true,
  721. component: () => import('@/views/operationManage/bannerManage/addBanner.vue'),
  722. meta: {
  723. title: '添加banner',
  724. icon: '',
  725. activeMenu: '/operationManage/bannerManage/index'
  726. },
  727. },
  728. {
  729. id: 1,
  730. path: '/operationManage/bannerManage/editBanner',
  731. name: '/operationManage/bannerManage/editBanner',
  732. hidden:true,
  733. component: () => import('@/views/operationManage/bannerManage/editBanner.vue'),
  734. meta: {
  735. title: '编辑banner',
  736. icon: '',
  737. activeMenu: '/operationManage/bannerManage/index'
  738. },
  739. },
  740. ]
  741. },
  742. {
  743. id: 0,
  744. path: '/operationManage/advertisingManage/index',
  745. component: operationLayout,
  746. meta: {
  747. title: '广告位管理',
  748. icon: ''
  749. },
  750. alwaysShow: true,
  751. children: [{
  752. id: 1,
  753. path: '/operationManage/advertisingManage/index',
  754. name: '/operationManage/advertisingManage/index',
  755. component: () => import('@/views/operationManage/advertisingManage/index.vue'),
  756. meta: {
  757. title: '广告位列表',
  758. icon: ''
  759. },
  760. },
  761. {
  762. id: 1,
  763. path: '/operationManage/advertisingManage/addAdv',
  764. name: '/operationManage/advertisingManage/addAdv',
  765. hidden:true,
  766. component: () => import('@/views/operationManage/advertisingManage/addAdv.vue'),
  767. meta: {
  768. title: '添加广告位',
  769. icon: '',
  770. activeMenu: '/operationManage/advertisingManage/index'
  771. },
  772. },
  773. {
  774. id: 1,
  775. path: '/operationManage/advertisingManage/editAdv',
  776. name: '/operationManage/advertisingManage/editAdv',
  777. hidden:true,
  778. component: () => import('@/views/operationManage/advertisingManage/editAdv.vue'),
  779. meta: {
  780. title: '编辑广告位',
  781. icon: '',
  782. activeMenu: '/operationManage/advertisingManage/index'
  783. },
  784. },
  785. ]
  786. },
  787. {
  788. id: 0,
  789. path: '/operationManage/couponManage/index',
  790. component: operationLayout,
  791. meta: {
  792. title: '优惠券管理',
  793. icon: ''
  794. },
  795. alwaysShow: true,
  796. children: [{
  797. id: 1,
  798. path: '/operationManage/couponManage/index',
  799. name: '/operationManage/couponManage/index',
  800. component: () => import('@/views/operationManage/couponManage/index.vue'),
  801. meta: {
  802. title: '优惠券列表',
  803. icon: ''
  804. },
  805. },
  806. {
  807. id: 1,
  808. path: '/operationManage/couponManage/fullDiscountCoupon',
  809. name: '/operationManage/couponManage/fullDiscountCoupon',
  810. component: () => import('@/views/operationManage/couponManage/fullDiscountCoupon.vue'),
  811. hidden:true,
  812. meta: {
  813. title: '满减优惠券',
  814. icon: '',
  815. activeMenu: '/operationManage/couponManage/index'
  816. },
  817. },
  818. {
  819. id: 1,
  820. path: '/operationManage/couponManage/discountCoupon',
  821. name: '/operationManage/couponManage/discountCoupon',
  822. component: () => import('@/views/operationManage/couponManage/discountCoupon.vue'),
  823. hidden:true,
  824. meta: {
  825. title: '折扣优惠券',
  826. icon: '',
  827. activeMenu: '/operationManage/couponManage/index'
  828. },
  829. },
  830. {
  831. id: 1,
  832. path: '/operationManage/couponManage/refuelCoupon',
  833. name: '/operationManage/couponManage/refuelCoupon',
  834. component: () => import('@/views/operationManage/couponManage/refuelCoupon.vue'),
  835. hidden:true,
  836. meta: {
  837. title: '加油优惠券',
  838. icon: '',
  839. activeMenu: '/operationManage/couponManage/index'
  840. },
  841. },
  842. ]
  843. },
  844. {
  845. id: 0,
  846. path: '/operationManage/activityManage/index',
  847. component: operationLayout,
  848. meta: {
  849. title: '活动管理',
  850. icon: ''
  851. },
  852. alwaysShow: true,
  853. children: [{
  854. id: 1,
  855. path: '/operationManage/activityManage/index',
  856. name: '/operationManage/activityManage/index',
  857. component: () => import('@/views/operationManage/activityManage/index.vue'),
  858. meta: {
  859. title: '活动列表',
  860. icon: ''
  861. },
  862. },
  863. {
  864. id: 1,
  865. path: '/operationManage/activityManage/addActivity',
  866. name: '/operationManage/activityManage/addActivity',
  867. hidden:true,
  868. component: () => import('@/views/operationManage/activityManage/addActivity.vue'),
  869. meta: {
  870. title: '添加活动',
  871. icon: '',
  872. activeMenu: '/operationManage/activityManage/index'
  873. },
  874. },
  875. {
  876. id: 1,
  877. path: '/operationManage/activityManage/dataList',
  878. name: '/operationManage/activityManage/dataList',
  879. hidden:true,
  880. component: () => import('@/views/operationManage/activityManage/dataList.vue'),
  881. meta: {
  882. title: '报名详情',
  883. icon: '',
  884. activeMenu: '/operationManage/activityManage/index'
  885. },
  886. },
  887. ]
  888. },
  889. {
  890. id: 0,
  891. path: '/operationManage/templateManage/index',
  892. component: operationLayout,
  893. meta: {
  894. title: '数据采集模板',
  895. icon: ''
  896. },
  897. alwaysShow: true,
  898. children: [{
  899. id: 1,
  900. path: '/operationManage/templateManage/index',
  901. name: '/operationManage/templateManage/index',
  902. component: () => import('@/views/operationManage/templateManage/index.vue'),
  903. meta: {
  904. title: '模板列表',
  905. icon: ''
  906. },
  907. },
  908. {
  909. id: 1,
  910. path: '/operationManage/templateManage/addTemplate',
  911. name: '/operationManage/templateManage/addTemplate',
  912. hidden:true,
  913. component: () => import('@/views/operationManage/templateManage/addTemplate.vue'),
  914. meta: {
  915. title: '添加模板',
  916. icon: '',
  917. activeMenu: '/operationManage/templateManage/index'
  918. },
  919. },
  920. ]
  921. },
  922. // {
  923. // id: 0,
  924. // path: '/operationManage/noticeManage/index',
  925. // component: operationLayout,
  926. // meta: {
  927. // title: '通知管理',
  928. // icon: ''
  929. // },
  930. // alwaysShow: true,
  931. // children: [{
  932. // id: 1,
  933. // path: '/operationManage/noticeManage/index',
  934. // name: '/operationManage/noticeManage/index',
  935. // component: () => import('@/views/operationManage/noticeManage/index.vue'),
  936. // meta: {
  937. // title: '通知列表',
  938. // icon: ''
  939. // },
  940. // },
  941. // {
  942. // id: 1,
  943. // path: '/operationManage/noticeManage/addBanner',
  944. // name: '/operationManage/noticeManage/addBanner',
  945. // component: () => import('@/views/operationManage/noticeManage/addNotice.vue'),
  946. // meta: {
  947. // title: '添加通知',
  948. // icon: ''
  949. // },
  950. // },
  951. // {
  952. // id: 1,
  953. // path: '/operationManage/noticeManage/editBanner',
  954. // name: '/operationManage/noticeManage/editBanner',
  955. // component: () => import('@/views/operationManage/noticeManage/editNotice.vue'),
  956. // meta: {
  957. // title: '编辑通知',
  958. // icon: ''
  959. // },
  960. // },
  961. // ]
  962. // },
  963. ]
  964. },
  965. {
  966. id: 0,
  967. path: '/studyManage/index',
  968. component: Layout,
  969. meta: {
  970. title: '研学管理',
  971. icon: 'el-icon-s-shop'
  972. },
  973. alwaysShow: true,
  974. children: [
  975. {
  976. id: 0,
  977. path: '/studyManage/bannerManage/index',
  978. component: operationLayout,
  979. meta: {
  980. title: 'banner管理',
  981. icon: ''
  982. },
  983. alwaysShow: true,
  984. children: [
  985. {
  986. id: 1,
  987. path: '/studyManage/bannerManage/index',
  988. name: '/studyManage/bannerManage/index',
  989. component: () => import('@/views/studyManage/bannerManage/index.vue'),
  990. meta: {
  991. title: 'banner列表',
  992. icon: ''
  993. },
  994. },
  995. {
  996. id: 1,
  997. path: '/studyManage/bannerManage/addBanner',
  998. name: '/studyManage/bannerManage/addBanner',
  999. hidden:true,
  1000. component: () => import('@/views/studyManage/bannerManage/addBanner.vue'),
  1001. meta: {
  1002. title: '添加banner',
  1003. icon: '',
  1004. activeMenu: '/studyManage/bannerManage/index'
  1005. },
  1006. }
  1007. ]
  1008. },
  1009. {
  1010. id: 0,
  1011. path: '/studyManage/menuManage/index',
  1012. component: operationLayout,
  1013. meta: {
  1014. title: '栏目管理',
  1015. icon: ''
  1016. },
  1017. alwaysShow: true,
  1018. children: [
  1019. {
  1020. id: 1,
  1021. path: '/studyManage/menuManage/index',
  1022. name: '/studyManage/menuManage/index',
  1023. component: () => import('@/views/studyManage/menuManage/index.vue'),
  1024. meta: {
  1025. title: '栏目列表',
  1026. icon: ''
  1027. },
  1028. },
  1029. {
  1030. id: 1,
  1031. path: '/studyManage/menuManage/addMenu',
  1032. name: '/studyManage/menuManage/addMenu',
  1033. hidden:true,
  1034. component: () => import('@/views/studyManage/menuManage/addMenu.vue'),
  1035. meta: {
  1036. title: '添加栏目',
  1037. icon: '',
  1038. activeMenu: '/studyManage/menuManage/index'
  1039. },
  1040. }
  1041. ]
  1042. },
  1043. {
  1044. id: 0,
  1045. path: '/studyManage/courseManage/index',
  1046. component: operationLayout,
  1047. meta: {
  1048. title: '课程管理',
  1049. icon: ''
  1050. },
  1051. alwaysShow: true,
  1052. children: [
  1053. {
  1054. id: 1,
  1055. path: '/studyManage/courseManage/index',
  1056. name: '/studyManage/courseManage/index',
  1057. component: () => import('@/views/studyManage/courseManage/index.vue'),
  1058. meta: {
  1059. title: '课程列表',
  1060. icon: ''
  1061. },
  1062. },
  1063. {
  1064. id: 1,
  1065. path: '/studyManage/courseManage/addCourse',
  1066. name: '/studyManage/courseManage/addCourse',
  1067. hidden:true,
  1068. component: () => import('@/views/studyManage/courseManage/addCourse.vue'),
  1069. meta: {
  1070. title: '添加课程',
  1071. icon: '',
  1072. activeMenu: '/studyManage/courseManage/index'
  1073. },
  1074. }
  1075. ]
  1076. },
  1077. {
  1078. id: 0,
  1079. path: '/studyManage/tabManage/index',
  1080. component: operationLayout,
  1081. meta: {
  1082. title: '社区标签',
  1083. icon: ''
  1084. },
  1085. alwaysShow: true,
  1086. children: [
  1087. {
  1088. id: 1,
  1089. path: '/studyManage/tabManage/index',
  1090. name: '/studyManage/tabManage/index',
  1091. component: () => import('@/views/studyManage/tabManage/index.vue'),
  1092. meta: {
  1093. title: '标签列表',
  1094. icon: ''
  1095. },
  1096. },
  1097. ]
  1098. },
  1099. {
  1100. id: 0,
  1101. path: '/studyManage/communityManage/index',
  1102. component: operationLayout,
  1103. meta: {
  1104. title: '社区管理',
  1105. icon: ''
  1106. },
  1107. alwaysShow: true,
  1108. children: [
  1109. {
  1110. id: 1,
  1111. path: '/studyManage/communityManage/index',
  1112. name: '/studyManage/communityManage/index',
  1113. component: () => import('@/views/studyManage/communityManage/index.vue'),
  1114. meta: {
  1115. title: '文章列表',
  1116. icon: ''
  1117. },
  1118. },
  1119. {
  1120. id: 1,
  1121. path: '/studyManage/communityManage/addArticle',
  1122. name: '/studyManage/communityManage/addArticle',
  1123. hidden:true,
  1124. component: () => import('@/views/studyManage/communityManage/addArticle.vue'),
  1125. meta: {
  1126. title: '添加文章',
  1127. icon: '',
  1128. activeMenu: '/studyManage/communityManage/index'
  1129. },
  1130. }
  1131. ]
  1132. },
  1133. {
  1134. id: 0,
  1135. path: '/studyManage/questionBankManage/index',
  1136. component: operationLayout,
  1137. meta: {
  1138. title: '试题管理',
  1139. icon: ''
  1140. },
  1141. alwaysShow: true,
  1142. children: [
  1143. {
  1144. id: 1,
  1145. path: '/studyManage/questionBankManage/index',
  1146. name: '/studyManage/questionBankManage/index',
  1147. component: () => import('@/views/studyManage/questionBankManage/index.vue'),
  1148. meta: {
  1149. title: '题库列表',
  1150. icon: ''
  1151. },
  1152. },
  1153. {
  1154. id: 1,
  1155. path: '/studyManage/questionBankManage/editQuestions',
  1156. name: '/studyManage/questionBankManage/editQuestions',
  1157. hidden:true,
  1158. component: () => import('@/views/studyManage/questionBankManage/editQuestions.vue'),
  1159. meta: {
  1160. title: '编辑试卷',
  1161. icon: '',
  1162. activeMenu: '/studyManage/questionBankManage/index'
  1163. },
  1164. },
  1165. ]
  1166. },
  1167. {
  1168. id: 0,
  1169. path: '/studyManage/subscribeManage/index',
  1170. component: operationLayout,
  1171. meta: {
  1172. title: '预约管理',
  1173. icon: ''
  1174. },
  1175. alwaysShow: true,
  1176. children: [
  1177. {
  1178. id: 1,
  1179. path: '/studyManage/subscribeManage/index',
  1180. name: '/studyManage/subscribeManage/index',
  1181. component: () => import('@/views/studyManage/subscribeManage/index.vue'),
  1182. meta: {
  1183. title: '预约列表',
  1184. icon: ''
  1185. },
  1186. },
  1187. ]
  1188. },
  1189. ]
  1190. },
  1191. {
  1192. id: 0,
  1193. path: '/merchantManage/index',
  1194. component: Layout,
  1195. redirect: '/merchantManage/index',
  1196. meta: {
  1197. title: '商户管理',
  1198. icon: 'el-icon-s-shop'
  1199. },
  1200. children: [{
  1201. id: 1,
  1202. path: '/merchantManage/index',
  1203. name: '/merchantManage/index',
  1204. component: () => import('@/views/merchantManage/index.vue'),
  1205. meta: {
  1206. title: '商户列表',
  1207. icon: ''
  1208. },
  1209. },
  1210. {
  1211. id: 1,
  1212. path: '/merchantManage/shopDetail',
  1213. name: '/merchantManage/shopDetail',
  1214. component: () => import('@/views/merchantManage/shopDetail.vue'),
  1215. hidden:true,
  1216. meta: {
  1217. title: '商户详情',
  1218. icon: '',
  1219. activeMenu:'/merchantManage/index'
  1220. },
  1221. },
  1222. {
  1223. id: 1,
  1224. hidden:true,
  1225. path: '/merchantManage/addUser',
  1226. name: '/merchantManage/addUser',
  1227. component: () => import('@/views/merchantManage/addUser.vue'),
  1228. meta: {
  1229. title: '添加商户',
  1230. icon: ''
  1231. },
  1232. },
  1233. ]
  1234. },
  1235. // 用户管理
  1236. {
  1237. id: 0,
  1238. path: '/userManage/index',
  1239. component: Layout,
  1240. meta: {
  1241. title: '用户管理',
  1242. icon: 'el-icon-s-shop'
  1243. },
  1244. alwaysShow: true,
  1245. children:[
  1246. // {
  1247. // id: 0,
  1248. // path: '/userManage/agentManage',
  1249. // component: operationLayout,
  1250. // redirect: '/userManage/agentManage',
  1251. // meta: {
  1252. // title: '渠道商',
  1253. // icon: ''
  1254. // },
  1255. // children: [{
  1256. // id: 1,
  1257. // path: '/userManage/agentManage/index',
  1258. // name: '/userManage/agentManage/index',
  1259. // component: () => import('@/views/userManage/agentManage/index.vue'),
  1260. // meta: {
  1261. // title: '渠道商列表',
  1262. // icon: ''
  1263. // },
  1264. // },
  1265. // {
  1266. // id: 1,
  1267. // path: '/userManage/agentManage/addAgent',
  1268. // name: '/userManage/agentManage/addAgent',
  1269. // hidden:true,
  1270. // component: () => import('@/views/userManage/agentManage/addAgent.vue'),
  1271. // meta: {
  1272. // title: '添加渠道商',
  1273. // icon: ''
  1274. // },
  1275. // },
  1276. // {
  1277. // id: 1,
  1278. // path: '/userManage/agentManage/editAgent',
  1279. // name: '/userManage/agentManage/editAgent',
  1280. // hidden:true,
  1281. // component: () => import('@/views/userManage/agentManage/editAgent.vue'),
  1282. // meta: {
  1283. // title: '编辑渠道商',
  1284. // icon: ''
  1285. // },
  1286. // },
  1287. // ]
  1288. // },
  1289. {
  1290. id: 0,
  1291. path: '/userManage/memberManage',
  1292. component: operationLayout,
  1293. redirect: '/userManage/memberManage',
  1294. meta: {
  1295. title: '会员管理',
  1296. icon: ''
  1297. },
  1298. children: [{
  1299. id: 1,
  1300. path: '/userManage/memberManage/index',
  1301. name: '/userManage/memberManage/index',
  1302. component: () => import('@/views/userManage/memberManage/index.vue'),
  1303. meta: {
  1304. title: '会员列表',
  1305. icon: ''
  1306. },
  1307. },
  1308. // {
  1309. // id: 1,
  1310. // path: '/userManage/memberManage/memberDetail',
  1311. // name: '/userManage/memberManage/memberDetail',
  1312. // component: () => import('@/views/userManage/memberManage/memberDetail.vue'),
  1313. // meta: {
  1314. // title: '会员详情',
  1315. // icon: ''
  1316. // },
  1317. // },
  1318. ]
  1319. },
  1320. ]
  1321. },
  1322. {
  1323. id: 0,
  1324. path: '/setting/index',
  1325. component: Layout,
  1326. meta: {
  1327. title: '系统设置',
  1328. icon: 'el-icon-s-shop'
  1329. },
  1330. alwaysShow: true,
  1331. children:[
  1332. {
  1333. id: 0,
  1334. path: '/setting/rulesManage',
  1335. component: operationLayout,
  1336. meta: {
  1337. title: '分账规则',
  1338. icon: ''
  1339. },
  1340. children: [{
  1341. id: 1,
  1342. path: '/setting/rulesManage',
  1343. name: '/setting/rulesManage',
  1344. component: () => import('@/views//setting/rulesManage/index.vue'),
  1345. meta: {
  1346. title: '规则列表',
  1347. icon: ''
  1348. },
  1349. },
  1350. ]
  1351. },
  1352. {
  1353. id: 1,
  1354. path: '/setting/synchronization',
  1355. name: '/setting/synchronization',
  1356. component: () => import('@/views/setting/synchronization.vue'),
  1357. meta: {
  1358. title: '同步管理',
  1359. icon: ''
  1360. },
  1361. },
  1362. {
  1363. id: 1,
  1364. path: '/setting/cityList',
  1365. name: '/setting/cityList',
  1366. component: () => import('@/views/setting/cityList.vue'),
  1367. meta: {
  1368. title: '城市列表',
  1369. icon: ''
  1370. },
  1371. },
  1372. // {
  1373. // id: 0,
  1374. // path: '/setting/commissionManage',
  1375. // component: operationLayout,
  1376. // meta: {
  1377. // title: '渠道佣金',
  1378. // icon: ''
  1379. // },
  1380. // children: [{
  1381. // id: 1,
  1382. // path: '/setting/commissionManage',
  1383. // name: '/setting/commissionManage',
  1384. // component: () => import('@/views//setting/commissionManage/index.vue'),
  1385. // meta: {
  1386. // title: '渠道佣金',
  1387. // icon: ''
  1388. // },
  1389. // },
  1390. // ]
  1391. // },
  1392. {
  1393. id: 0,
  1394. path: '/setting/setting',
  1395. component: operationLayout,
  1396. meta: {
  1397. title: '账号设置',
  1398. icon: ''
  1399. },
  1400. children: [{
  1401. id: 1,
  1402. path: '/setting/setting',
  1403. name: '/setting/setting',
  1404. component: () => import('@/views//setting/setting.vue'),
  1405. meta: {
  1406. title: '账号设置',
  1407. icon: ''
  1408. },
  1409. },
  1410. ]
  1411. },
  1412. {
  1413. id: 0,
  1414. path: '/setting/base',
  1415. component: operationLayout,
  1416. meta: {
  1417. title: '通用设置',
  1418. icon: ''
  1419. },
  1420. children: [{
  1421. id: 0,
  1422. path: '/setting/base',
  1423. name: '/setting/base',
  1424. component: () => import('@/views/setting/base.vue'),
  1425. meta: {
  1426. title: '通用设置',
  1427. icon: ''
  1428. },
  1429. },
  1430. ]
  1431. }
  1432. ]
  1433. }
  1434. // 404 page must be placed at the end !!!
  1435. // { path: '*', redirect: '/404', hidden: true }
  1436. ]
  1437. export const asyncRouter = [
  1438. ]
  1439. const createRouter = () => new Router({
  1440. // mode: 'history', // require service support
  1441. scrollBehavior: () => ({
  1442. y: 0
  1443. }),
  1444. routes: constantRoutes
  1445. })
  1446. const router = createRouter()
  1447. // Detail see: https://github.com/vuejs/vue-router/issues/1234#issuecomment-357941465
  1448. export function resetRouter() {
  1449. const newRouter = createRouter()
  1450. router.matcher = newRouter.matcher // reset router
  1451. }
  1452. export default router