router.config.js 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721
  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/email',
  78. name: 'email',
  79. component: './sysset/notice_set/email',
  80. },
  81. //消息模板
  82. {
  83. path: '/sysset_notice_set/msg_tpl',
  84. name: 'msg_tpl',
  85. component: './sysset/notice_set/msg_tpl',
  86. },
  87. ],
  88. },
  89. // 系统配置—三方账号
  90. {
  91. path: '/sysset_acount',
  92. icon: 'usergroup-add',
  93. name: 'acount',
  94. routes: [
  95. //授权配置
  96. {
  97. path: '/sysset_acount/union_login',
  98. name: 'union_login',
  99. component: './sysset/acount/union_login',
  100. },
  101. ],
  102. },
  103. //系统配置—权限管理
  104. {
  105. path: '/sysset_authority',
  106. icon: 'security-scan',
  107. name: 'authority',
  108. routes: [
  109. //权限组
  110. {
  111. path: '/sysset_authority/authority_group',
  112. name: 'authority_group',
  113. component: './sysset/authority/group',
  114. },
  115. //操作员管理
  116. {
  117. path: '/sysset_authority/authority_member',
  118. name: 'authority_member',
  119. component: './sysset/authority/member',
  120. },
  121. //操作日志
  122. {
  123. path: '/sysset_authority/operate_log',
  124. name: 'operate_log',
  125. component: './sysset/authority/operate_log',
  126. },
  127. ],
  128. },
  129. //系统配置-协议管理
  130. {
  131. path: '/sysset_agreement',
  132. icon: 'reconciliation',
  133. name: 'agreement',
  134. routes: [
  135. //协议管理
  136. {
  137. path: '/sysset_agreement/lists',
  138. name: 'lists',
  139. component: './sysset/agreement/lists',
  140. },
  141. //编辑协议
  142. {
  143. path: '/sysset_agreement/lists_to_edit',
  144. name: '',
  145. component: './sysset/agreement/edit',
  146. },
  147. ],
  148. },
  149. //系统配置—物流管理
  150. {
  151. path: '/sysset_express',
  152. icon: 'car',
  153. name: 'express',
  154. routes: [
  155. //物流公司
  156. {
  157. path: '/sysset_express/express_lists',
  158. name: 'express_lists',
  159. component: './sysset/express/express_lists',
  160. },
  161. //物流配置
  162. {
  163. path: '/sysset_express/express',
  164. name: 'express',
  165. component: './sysset/express/express',
  166. },
  167. ],
  168. },
  169. // 会员管理
  170. {
  171. path: '/manage_member',
  172. name: 'member',
  173. icon: 'usergroup-add',
  174. routes: [
  175. //会员列表
  176. {
  177. path: '/manage_member/lists',
  178. name: 'lists',
  179. component: './manage/member/lists',
  180. },
  181. //会员详情
  182. {
  183. path: '/manage_member/lists_to_detail',
  184. name: '',
  185. component: './manage/member/detail',
  186. },
  187. //充值管理
  188. {
  189. path: '/manage_member/recharge',
  190. name: 'recharge',
  191. component: './manage/member/recharge',
  192. },
  193. //资金明细
  194. {
  195. path: '/manage_member/balance_log',
  196. name: 'balance_log',
  197. component: './manage/member/balance_log',
  198. },
  199. //积分设置
  200. {
  201. path: '/manage_member/point_setting',
  202. name: 'point_setting',
  203. component: './manage/member/point_set',
  204. },
  205. ],
  206. },
  207. // 商品管理
  208. {
  209. path: '/manage_product',
  210. icon: 'appstore',
  211. name: 'product',
  212. routes: [
  213. //商品设置
  214. {
  215. path: '/manage_product/goods_setting',
  216. name: 'goods_setting',
  217. component: './manage/product/goods_setting',
  218. },
  219. //商品列表
  220. {
  221. path: '/manage_product/goods_list',
  222. name: 'goods_list',
  223. component: './manage/product/goods_list',
  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: '/point_m_diy',
  613. icon: 'home',
  614. name: 'point_m_diy',
  615. routes: [
  616. //积分商城——首页装修
  617. {
  618. path: '/point_m_diy/home',
  619. name: 'home',
  620. component: './point/mdiy/home',
  621. },
  622. // 装修页面
  623. {
  624. path: '/point_m_diy/home_to_edit',
  625. name: '',
  626. component: './point/mdiy/edit_diy_page',
  627. },
  628. ]
  629. },
  630. // 积分商城
  631. {
  632. path: '/point_setting',
  633. icon: 'star',
  634. name: 'point_setting',
  635. routes: [
  636. //积分商城——积分设置
  637. {
  638. path: '/point_setting/index',
  639. name: 'index',
  640. component: './point/setting',
  641. },
  642. ]
  643. },
  644. {
  645. path: '/point_label',
  646. icon: 'tag',
  647. name: 'point_label',
  648. routes: [
  649. //积分商城——标签管理
  650. {
  651. path: '/point_label/index',
  652. name: 'index',
  653. component: './point/label',
  654. },
  655. ]
  656. },
  657. {
  658. path: '/point_goods',
  659. icon: 'shopping',
  660. name: 'point_goods',
  661. routes: [
  662. //积分商城——商品管理
  663. {
  664. path: '/point_goods/list',
  665. name: 'list',
  666. component: './point/goods/goods_list',
  667. },
  668. ]
  669. },
  670. {
  671. path: '/point_order',
  672. icon: 'profile',
  673. name: 'point_order',
  674. routes: [
  675. //积分商城——订单管理
  676. {
  677. path: '/point_order/list',
  678. name: 'list',
  679. component: './point/order/order_lists',
  680. },
  681. //积分商城——订单详情
  682. {
  683. path: '/point_order/list_to_detail',
  684. name: '',
  685. component: './point/order/order_detail',
  686. },
  687. ]
  688. },
  689. {
  690. path: '/point_bill',
  691. icon: 'pay-circle',
  692. name: 'point_bill',
  693. routes: [
  694. //积分商城——结算管理
  695. {
  696. path: '/point_bill/list',
  697. name: 'list',
  698. component: './point/bill/lists',
  699. },
  700. //积分商城——结算详情
  701. {
  702. path: '/point_bill/list_to_detail',
  703. name: '',
  704. component: './point/bill/detail',
  705. },
  706. ]
  707. },
  708. {
  709. component: '404',
  710. },
  711. ],
  712. },
  713. ];