router.config.js 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752
  1. export default [
  2. // user
  3. {
  4. path: '/user',
  5. component: '../layouts/UserLayout',
  6. routes: [
  7. { path: '/user', redirect: '/user/login' },
  8. { path: '/user/login', component: './User/Login' },
  9. ],
  10. },
  11. // app
  12. {
  13. path: '/',
  14. component: '../layouts/BasicLayout',
  15. Routes: ['src/pages/CheckLogin'],
  16. routes: [
  17. { path: '/', redirect: '/sysset_home/basic' },
  18. //系统配置—首页管理
  19. {
  20. path: '/sysset_home',
  21. icon: 'home',
  22. name: 'home',
  23. routes: [
  24. //概况页
  25. {
  26. path: '/sysset_home/basic',
  27. name: 'basic',
  28. component: './sysset/home/basic',
  29. }],
  30. },
  31. //系统配置—基本配置
  32. {
  33. path: '/sysset_setting',
  34. icon: 'setting',
  35. name: 'setting',
  36. routes: [
  37. //站点配置
  38. {
  39. path: '/sysset_setting/site_info',
  40. name: 'site_info',
  41. component: './sysset/base/site_info',
  42. },
  43. //图片配置
  44. {
  45. path: '/sysset_setting/pic_set',
  46. name: 'pic_set',
  47. component: './sysset/base/pic_set',
  48. },
  49. //支付配置
  50. {
  51. path: '/sysset_setting/payment',
  52. name: 'payment',
  53. component: './sysset/base/payment',
  54. },
  55. //运营配置
  56. {
  57. path: '/sysset_setting/order',
  58. name: 'order',
  59. component: './sysset/base/order',
  60. },
  61. ],
  62. },
  63. //系统配置—通知管理
  64. {
  65. path: '/sysset_notice_set',
  66. icon: 'bell',
  67. name: 'notice_set',
  68. routes: [
  69. //短信配置
  70. {
  71. path: '/sysset_notice_set/sms',
  72. name: 'sms',
  73. component: './sysset/notice_set/sms',
  74. },
  75. //消息模板
  76. {
  77. path: '/sysset_notice_set/msg_tpl',
  78. name: 'msg_tpl',
  79. component: './sysset/notice_set/msg_tpl',
  80. },
  81. ],
  82. },
  83. // 系统配置—三方账号
  84. {
  85. path: '/sysset_acount',
  86. icon: 'usergroup-add',
  87. name: 'acount',
  88. routes: [
  89. //授权配置
  90. {
  91. path: '/sysset_acount/union_login',
  92. name: 'union_login',
  93. component: './sysset/acount/union_login',
  94. },
  95. ],
  96. },
  97. //系统配置—权限管理
  98. {
  99. path: '/sysset_authority',
  100. icon: 'security-scan',
  101. name: 'authority',
  102. routes: [
  103. //权限组
  104. {
  105. path: '/sysset_authority/authority_group',
  106. name: 'authority_group',
  107. component: './sysset/authority/group',
  108. },
  109. //操作员管理
  110. {
  111. path: '/sysset_authority/authority_member',
  112. name: 'authority_member',
  113. component: './sysset/authority/member',
  114. },
  115. //操作日志
  116. {
  117. path: '/sysset_authority/operate_log',
  118. name: 'operate_log',
  119. component: './sysset/authority/operate_log',
  120. },
  121. ],
  122. },
  123. //系统配置-协议管理
  124. {
  125. path: '/sysset_agreement',
  126. icon: 'reconciliation',
  127. name: 'agreement',
  128. routes: [
  129. //协议管理
  130. {
  131. path: '/sysset_agreement/lists',
  132. name: 'lists',
  133. component: './sysset/agreement/lists',
  134. },
  135. //编辑协议
  136. {
  137. path: '/sysset_agreement/lists_to_edit',
  138. name: '',
  139. component: './sysset/agreement/edit',
  140. },
  141. ],
  142. },
  143. //系统配置—物流管理
  144. {
  145. path: '/sysset_express',
  146. icon: 'car',
  147. name: 'express',
  148. routes: [
  149. //物流公司
  150. {
  151. path: '/sysset_express/express_lists',
  152. name: 'express_lists',
  153. component: './sysset/express/express_lists',
  154. },
  155. //物流配置
  156. {
  157. path: '/sysset_express/express',
  158. name: 'express',
  159. component: './sysset/express/express',
  160. },
  161. ],
  162. },
  163. // 会员管理
  164. {
  165. path: '/manage_member',
  166. name: 'member',
  167. icon: 'usergroup-add',
  168. routes: [
  169. //会员列表
  170. {
  171. path: '/manage_member/lists',
  172. name: 'lists',
  173. component: './manage/member/lists',
  174. },
  175. //会员详情
  176. {
  177. path: '/manage_member/lists_to_detail',
  178. name: '',
  179. component: './manage/member/detail',
  180. },
  181. //充值管理
  182. {
  183. path: '/manage_member/recharge',
  184. name: 'recharge',
  185. component: './manage/member/recharge',
  186. },
  187. //资金明细
  188. {
  189. path: '/manage_member/balance_log',
  190. name: 'balance_log',
  191. component: './manage/member/balance_log',
  192. },
  193. //积分设置
  194. {
  195. path: '/manage_member/point_setting',
  196. name: 'point_setting',
  197. component: './manage/member/point_set',
  198. },
  199. ],
  200. },
  201. // 商品管理
  202. {
  203. path: '/manage_product',
  204. icon: 'appstore',
  205. name: 'product',
  206. routes: [
  207. //商品设置
  208. {
  209. path: '/manage_product/goods_setting',
  210. name: 'goods_setting',
  211. component: './manage/product/goods_setting',
  212. },
  213. //商品列表
  214. {
  215. path: '/manage_product/goods_list',
  216. name: 'goods_list',
  217. component: './manage/product/goods_list',
  218. },
  219. //待审核商品_发布商品
  220. {
  221. path: '/manage_product/goods_check_list_to_add',
  222. name: '',
  223. component: './manage/goods/add_goods',
  224. },
  225. //分类管理
  226. {
  227. path: '/manage_product/cate_lists',
  228. name: 'cate_lists',
  229. component: './manage/product/cate_lists',
  230. },
  231. //品牌列表
  232. {
  233. path: '/manage_product/brand',
  234. name: 'brand',
  235. component: './manage/product/brand',
  236. },
  237. //属性管理
  238. {
  239. path: '/manage_product/search_attr',
  240. name: 'search_attr',
  241. component: './manage/product/search_attr',
  242. },
  243. //商品标签
  244. {
  245. path: '/manage_product/goods_label',
  246. name: 'goods_label',
  247. component: './manage/product/goods_label',
  248. },
  249. ],
  250. },
  251. // 首页装修
  252. {
  253. path: '/decorate_mhome',
  254. icon: 'mobile',
  255. name: 'decorate_mobile_home',
  256. routes: [
  257. // 首页装修
  258. {
  259. path: '/decorate_mhome/lists',
  260. name: 'lists',
  261. component: './mdecorate/lists',
  262. },
  263. // 装修页面
  264. {
  265. path: '/decorate_mhome/lists_to_diy',
  266. name: '',
  267. component: './mdecorate/edit_diy_page',
  268. },
  269. ],
  270. },
  271. // 专题装修
  272. {
  273. path: '/decorate_mtopic',
  274. icon: 'layout',
  275. name: 'decorate_mobile_topic',
  276. routes: [
  277. // 专题装修
  278. {
  279. path: '/decorate_mtopic/topic_lists',
  280. name: 'topic_lists',
  281. component: './mdecorate/topic_lists',
  282. },
  283. // 装修页面
  284. {
  285. path: '/decorate_mtopic/topic_lists_to_diy',
  286. name: '',
  287. component: './mdecorate/edit_diy_page',
  288. },
  289. ],
  290. },
  291. // 分类图片
  292. {
  293. path: '/decorate_mcat',
  294. icon: 'file-image',
  295. name: 'decorate_mobile_cat_img',
  296. routes: [
  297. // 分类图片
  298. {
  299. path: '/decorate_mcat/list',
  300. name: 'lists',
  301. component: './mdecorate/mcat',
  302. },
  303. ],
  304. },
  305. // 发现装修
  306. {
  307. path: '/decorate_information',
  308. icon: 'deployment-unit',
  309. name: 'decorate_mobile_information',
  310. routes: [
  311. // 发现首页
  312. {
  313. path: '/decorate_information/information',
  314. name: 'information',
  315. component: './mdecorate/information',
  316. },
  317. ],
  318. },
  319. // 店铺管理
  320. {
  321. path: '/manage_store',
  322. icon: 'shop',
  323. name: 'store',
  324. routes: [
  325. //自营店铺
  326. {
  327. path: '/manage_store/own_list',
  328. name: 'own_list',
  329. component: './manage/store/own_list',
  330. },
  331. //入驻店铺
  332. {
  333. path: '/manage_store/settle_store_list',
  334. name: 'settle_store_list',
  335. component: './manage/store/settle_store_list',
  336. },
  337. //入驻审核店铺详情
  338. {
  339. path: '/manage_store/settle_store_list_apply_detail',
  340. name: '',
  341. component: './manage/store/apply_store_detail',
  342. },
  343. //店铺入驻信息详情
  344. {
  345. path: '/manage_store/settle_store_list_view',
  346. name: '',
  347. component: './manage/store/settled_store_detail',
  348. },
  349. //编辑店铺入驻信息
  350. {
  351. path: '/manage_store/settle_store_list_to_edit',
  352. name: '',
  353. component: './manage/store/edit_settled_store',
  354. },
  355. //店铺等级
  356. {
  357. path: '/manage_store/grade_list',
  358. name: 'grade_list',
  359. component: './manage/store/grade_list',
  360. },
  361. ],
  362. },
  363. // 订单管理
  364. {
  365. path: '/manage_order',
  366. icon: 'form',
  367. name: 'order',
  368. routes: [
  369. //订单列表
  370. {
  371. path: '/manage_order/order_lists',
  372. name: 'order_lists',
  373. component: './manage/order/order_lists',
  374. },
  375. //订单详情
  376. {
  377. path: '/manage_order/order_lists_to_detail',
  378. name: '',
  379. component: './manage/order/order_detail',
  380. },
  381. //售后管理 pc 和 app 暂时禁用
  382. // {
  383. // path: '/manage_order/aftersales_lists',
  384. // name: 'aftersales_lists',
  385. // component: './manage/order/aftersales_lists',
  386. // },
  387. {
  388. path: '/manage_order/service',
  389. name: 'service',
  390. component: './manage/order/service',
  391. },
  392. //评价管理
  393. {
  394. path: '/manage_order/evaluation',
  395. name: 'evaluation',
  396. component: './manage/order/evaluation',
  397. },
  398. //售后原因
  399. {
  400. path: '/manage_order/salereson_lists',
  401. name: 'salereson_lists',
  402. component: './manage/order/salereson_lists',
  403. },
  404. ],
  405. },
  406. // 促销活动
  407. {
  408. path: '/bussset_promotion',
  409. icon: 'tag',
  410. name: 'promotion',
  411. routes: [
  412. //优惠券
  413. {
  414. path: '/bussset_promotion/coupon',
  415. name: 'coupon',
  416. component: './bussset/promotion/coupon/home',
  417. },
  418. //新建优惠券
  419. {
  420. path: '/bussset_promotion/coupon_to_add',
  421. name: '',
  422. component: './bussset/promotion/coupon/add_coupon',
  423. },
  424. //平台优惠券——查看优惠券
  425. {
  426. path: '/bussset_promotion/coupon_to_view',
  427. name: '',
  428. component: './bussset/promotion/coupon/view_coupon',
  429. },
  430. //平台优惠券——优惠券领取列表
  431. {
  432. path: '/bussset_promotion/coupon_to_receive_list',
  433. name: '',
  434. component: './bussset/promotion/coupon/member_receive_lists',
  435. },
  436. //店铺优惠券
  437. {
  438. path: '/bussset_promotion/store_coupon',
  439. name: 'store_coupon',
  440. component: './bussset/promotion/coupon/store_coupon',
  441. },
  442. //店铺优惠券——查看优惠券
  443. {
  444. path: '/bussset_promotion/store_coupon_to_view',
  445. name: '',
  446. component: './bussset/promotion/coupon/view_coupon',
  447. },
  448. //店铺优惠券——优惠券领取列表
  449. {
  450. path: '/bussset_promotion/store_coupon_to_receive_list',
  451. name: '',
  452. component: './bussset/promotion/coupon/member_receive_lists',
  453. },
  454. //满优惠列表
  455. {
  456. path: '/bussset_promotion/full_discount',
  457. name: 'full_discount',
  458. component: './bussset/promotion/full/discount',
  459. },
  460. //秒杀活动
  461. {
  462. path: '/bussset_promotion/seckill',
  463. name: 'seckill',
  464. component: './bussset/promotion/seckill/lists',
  465. },
  466. //秒杀活动详情——秒杀活动场次
  467. {
  468. path: '/bussset_promotion/seckill_detail',
  469. name: '',
  470. component: './bussset/promotion/seckill/detail',
  471. },
  472. //秒杀活动商品
  473. {
  474. path: '/bussset_promotion/seckill_goods_list',
  475. name: '',
  476. component: './bussset/promotion/seckill/seckill_goods_lists',
  477. },
  478. //拼团活动
  479. {
  480. path: '/bussset_promotion/spell_group',
  481. name: 'spell_group',
  482. component: './bussset/promotion/spell_group/lists',
  483. },
  484. //拼团活动——查看详情
  485. {
  486. path: '/bussset_promotion/spell_group_to_view',
  487. name: '',
  488. component: './bussset/promotion/spell_group/view_spell_group',
  489. },
  490. //拼团活动商品
  491. {
  492. path: '/bussset_promotion/spell_group_bind_goods',
  493. name: '',
  494. component: './bussset/promotion/spell_group/joined_goods_list',
  495. },
  496. //拼团活动订单
  497. {
  498. path: '/bussset_promotion/spell_group_order',
  499. name: '',
  500. component: './bussset/promotion/spell_group/order_lists',
  501. },
  502. //拼团活动订单详情
  503. {
  504. path: '/bussset_promotion/spell_group_order_to_detail',
  505. name: '',
  506. component: './manage/order/order_detail',
  507. },
  508. //拼团团队列表
  509. {
  510. path: '/bussset_promotion/spell_group_team_list',
  511. name: '',
  512. component: './bussset/promotion/spell_group/team_list',
  513. },
  514. //阶梯团活动
  515. {
  516. path: '/bussset_promotion/ladder_group',
  517. name: 'ladder_group',
  518. component: './bussset/promotion/ladder_group/lists',
  519. },
  520. //阶梯团活动——查看详情
  521. {
  522. path: '/bussset_promotion/ladder_group_to_view',
  523. name: '',
  524. component: './bussset/promotion/ladder_group/view_ladder_group',
  525. },
  526. //阶梯团活动——团队列表
  527. {
  528. path: '/bussset_promotion/ladder_group_team_list',
  529. name: '',
  530. component: './bussset/promotion/ladder_group/team_list',
  531. },
  532. //预售活动
  533. {
  534. path: '/bussset_promotion/presale',
  535. name: 'presale',
  536. component: './bussset/promotion/presale/lists',
  537. },
  538. //预售详情
  539. {
  540. path: '/bussset_promotion/presale_to_view',
  541. name: '',
  542. component: './bussset/promotion/presale/view_presale',
  543. },
  544. //预售活动商品
  545. {
  546. path: '/bussset_promotion/presale_goods_list',
  547. name: '',
  548. component: './bussset/promotion/presale/presale_goods_lists',
  549. },
  550. ],
  551. },
  552. // 签到管理
  553. {
  554. path: '/bussset_sign',
  555. icon: 'schedule',
  556. name: 'sign',
  557. routes: [
  558. //签到活动列表
  559. {
  560. path: '/bussset_sign/list',
  561. name: 'list',
  562. component: './bussset/sign/list',
  563. },
  564. //新建签到活动
  565. {
  566. path: '/bussset_sign/list_to_add',
  567. name: '',
  568. component: './bussset/sign/add',
  569. },
  570. //签到统计列表
  571. {
  572. path: '/bussset_sign/stat',
  573. name: 'stat',
  574. component: './bussset/sign/stat',
  575. },
  576. //会员签到统计详情
  577. {
  578. path: '/bussset_sign/stat_to_member_detail',
  579. name: '',
  580. component: './bussset/sign/member_stat_detail',
  581. },
  582. //活动签到详情
  583. {
  584. path: '/bussset_sign/stat_to_activity_detail',
  585. name: '',
  586. component: './bussset/sign/activity_stat_detail',
  587. },
  588. ]
  589. },
  590. // 结算管理
  591. {
  592. path: '/bussset_bill',
  593. icon: 'pay-circle',
  594. name: 'bill',
  595. routes: [
  596. //结算账单
  597. {
  598. path: '/bussset_bill/lists',
  599. name: 'lists',
  600. component: './bussset/bill/lists',
  601. },
  602. //结算账单详情
  603. {
  604. path: '/bussset_bill/lists_to_detail',
  605. name: '',
  606. component: './bussset/bill/detail',
  607. },
  608. ],
  609. },
  610. // 直播
  611. {
  612. path: '/bussset_live',
  613. icon: 'pay-circle',
  614. name: 'live',
  615. routes: [
  616. //直播设置
  617. {
  618. path: '/bussset_live/setting',
  619. name: 'setting',
  620. component: './bussset/live/setting',
  621. },
  622. //标签管理
  623. {
  624. path: '/bussset_live/live_label',
  625. name: 'label',
  626. component: './bussset/live/setting',
  627. },
  628. //主播管理
  629. {
  630. path: '/bussset_live/author_lists',
  631. name: 'author_lists',
  632. component: './bussset/live/setting',
  633. },
  634. //直播管理
  635. {
  636. path: '/bussset_live/live_manage',
  637. name: 'live_manage',
  638. component: './bussset/live/setting',
  639. },
  640. ],
  641. },
  642. // 积分商城
  643. {
  644. path: '/point_m_diy',
  645. icon: 'home',
  646. name: 'point_m_diy',
  647. routes: [
  648. //积分商城——首页装修
  649. {
  650. path: '/point_m_diy/home',
  651. name: 'home',
  652. component: './point/mdiy/home',
  653. },
  654. // 装修页面
  655. {
  656. path: '/point_m_diy/home_to_edit',
  657. name: '',
  658. component: './point/mdiy/edit_diy_page',
  659. },
  660. ]
  661. },
  662. // 积分商城
  663. {
  664. path: '/point_setting',
  665. icon: 'star',
  666. name: 'point_setting',
  667. routes: [
  668. //积分商城——积分设置
  669. {
  670. path: '/point_setting/index',
  671. name: 'index',
  672. component: './point/setting',
  673. },
  674. ]
  675. },
  676. {
  677. path: '/point_label',
  678. icon: 'tag',
  679. name: 'point_label',
  680. routes: [
  681. //积分商城——标签管理
  682. {
  683. path: '/point_label/index',
  684. name: 'index',
  685. component: './point/label',
  686. },
  687. ]
  688. },
  689. {
  690. path: '/point_goods',
  691. icon: 'shopping',
  692. name: 'point_goods',
  693. routes: [
  694. //积分商城——商品管理
  695. {
  696. path: '/point_goods/list',
  697. name: 'list',
  698. component: './point/goods/goods_list',
  699. },
  700. ]
  701. },
  702. {
  703. path: '/point_order',
  704. icon: 'profile',
  705. name: 'point_order',
  706. routes: [
  707. //积分商城——订单管理
  708. {
  709. path: '/point_order/list',
  710. name: 'list',
  711. component: './point/order/order_lists',
  712. },
  713. //积分商城——订单详情
  714. {
  715. path: '/point_order/list_to_detail',
  716. name: '',
  717. component: './point/order/order_detail',
  718. },
  719. ]
  720. },
  721. {
  722. path: '/point_bill',
  723. icon: 'pay-circle',
  724. name: 'point_bill',
  725. routes: [
  726. //积分商城——结算管理
  727. {
  728. path: '/point_bill/list',
  729. name: 'list',
  730. component: './point/bill/lists',
  731. },
  732. //积分商城——结算详情
  733. {
  734. path: '/point_bill/list_to_detail',
  735. name: '',
  736. component: './point/bill/detail',
  737. },
  738. ]
  739. },
  740. {
  741. component: '404',
  742. },
  743. ],
  744. },
  745. ];