router.config.js 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667
  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. // 商户入驻路由
  12. {
  13. path: '/apply',
  14. component: '../layouts/BasicLayout',
  15. Routes: ['src/pages/CheckSettle'],
  16. routes: [
  17. // { path: '/apply', redirect: '/user/login' },
  18. //start
  19. //入驻
  20. {
  21. path: '/apply/settled',
  22. icon: 'usergroup-add',
  23. name: '',
  24. component: './settledManage/settled/index',
  25. },
  26. //入驻协议
  27. {
  28. path: '/apply/settled_protocol',
  29. icon: 'file-done',
  30. name: 'apply_protocol',
  31. component: './settledManage/protocol/index',
  32. },
  33. //店铺基本信息
  34. {
  35. path: '/apply/base_info',
  36. icon: 'trophy',
  37. name: 'apply_base_info',
  38. component: './settledManage/baseInfo/index',
  39. },
  40. //经营信息
  41. {
  42. path: '/apply/business_info',
  43. icon: 'dollar',
  44. name: 'apply_business_info',
  45. component: './settledManage/businessInfo/index',
  46. },
  47. //店铺开通
  48. {
  49. path: '/apply/open_up',
  50. icon: 'control',
  51. name: 'apply_open_up',
  52. component: './settledManage/openUp/open_up',
  53. },
  54. ],
  55. },
  56. //PC装修页面
  57. // {
  58. // path: '/diy/decorate_pc_home_to_edit',
  59. // component: '../layouts/UserLayout',
  60. // Routes: ['src/pages/CheckLogin'],
  61. // routes: [
  62. // { path: '/diy/decorate_pc_home_to_edit', component: './diy/pc_diy/edit_diy_page' },
  63. // // { path: '/diy/decorate_mhome', component: './diy/m_diy/m_diy_lists' },
  64. // ],
  65. // },
  66. // app
  67. {
  68. path: '/',
  69. component: '../layouts/BasicLayout',
  70. Routes: ['src/pages/CheckLogin'],
  71. routes: [
  72. { path: '/', redirect: '/basic/simple_stat' },
  73. //概况页
  74. {
  75. path: '/basic/simple_stat',
  76. icon: 'setting',
  77. name: 'basic_simple_stat',
  78. component: './basic/simple_stat',
  79. },
  80. //商品列表
  81. {
  82. path: '/goods/goods_list',
  83. icon: 'shopping',
  84. name: 'goods_goods_list',
  85. component: './goods/goods_list',
  86. },
  87. //发布商品
  88. {
  89. path: '/goods/goods_list_to_add',
  90. icon: '',
  91. name: '',
  92. component: './goods/add_goods',
  93. },
  94. //仓库中商品
  95. {
  96. path: '/goods/goods_storage_list',
  97. icon: 'project',
  98. name: 'goods_goods_storage_list',
  99. component: './goods/goods_storage_lists_title',
  100. },
  101. //仓库中商品_发布商品
  102. {
  103. path: '/goods/goods_storage_list_to_add',
  104. icon: '',
  105. name: '',
  106. component: './goods/add_goods',
  107. },
  108. //待审核商品
  109. {
  110. path: '/goods/goods_check_list',
  111. icon: 'audit',
  112. name: 'goods_goods_check_list',
  113. component: './goods/goods_check_lists_title',
  114. },
  115. //待审核商品_发布商品
  116. {
  117. path: '/goods/goods_check_list_to_add',
  118. icon: '',
  119. name: '',
  120. component: './goods/add_goods',
  121. },
  122. //关联版式
  123. {
  124. path: '/goods/related_template',
  125. icon: 'api',
  126. name: 'goods_related_template',
  127. component: './goods/related_template',
  128. },
  129. //编辑关联版式
  130. {
  131. path: '/goods/related_template_to_edit',
  132. name: '',
  133. component: './goods/edit_related_template',
  134. },
  135. //自定义属性组
  136. {
  137. path: '/goods/attribute_group',
  138. icon: 'layout',
  139. name: 'goods_attribute_group',
  140. component: './goods/attribute_group',
  141. },
  142. //自定义属性列表
  143. {
  144. path: '/goods/attribute_group_to_detail',
  145. name: '',
  146. component: './goods/attribute_list',
  147. },
  148. //运费模板
  149. {
  150. path: '/express/transport',
  151. icon: 'read',
  152. name: 'express_transport',
  153. component: './express/transport',
  154. },
  155. //新增运费模板
  156. {
  157. path: '/express/transport_to_add',
  158. icon: 'setting',
  159. name: '',
  160. component: './express/add_transport',
  161. },
  162. //免运费设置
  163. {
  164. path: '/express/setting',
  165. icon: 'schedule',
  166. name: 'express_setting',
  167. component: './express/setting',
  168. },
  169. //物流公司
  170. {
  171. path: '/express/express_list',
  172. icon: 'control',
  173. name: 'express_express_list',
  174. component: './express/express_list',
  175. },
  176. //订单列表
  177. {
  178. path: '/order/order_lists',
  179. icon: 'container',
  180. name: 'order_order_lists',
  181. component: './order/order_lists',
  182. },
  183. //拼团订单列表
  184. {
  185. path: '/order/spell_group_order_lists',
  186. icon: 'solution',
  187. name: 'spell_group__order_lists',
  188. component: './order/spell_group/order_lists',
  189. },
  190. //拼团订单详情
  191. {
  192. path: '/order/spell_group_order_detail',
  193. icon: '',
  194. name: '',
  195. component: './order/order_detail',
  196. },
  197. //订单详情
  198. {
  199. path: '/order/order_lists_to_detail',
  200. name: '',
  201. component: './order/order_detail',
  202. },
  203. //订单发货
  204. {
  205. path: '/order/order_deliver',
  206. icon: 'rocket',
  207. name: 'order_order_deliver',
  208. component: './order/order_deliver',
  209. },
  210. //评价管理
  211. {
  212. path: '/order/evaluation',
  213. icon: 'message',
  214. name: 'order_evaluation',
  215. component: './order/evaluation',
  216. },
  217. //地址管理
  218. {
  219. path: '/order/address_list',
  220. icon: 'environment',
  221. name: 'order_address_list',
  222. component: './order/address_list',
  223. },
  224. //优惠券
  225. {
  226. path: '/promotion/coupon_list',
  227. icon: 'red-envelope',
  228. name: 'promotion_coupon_list',
  229. component: './promotion/coupon/coupon_list',
  230. },
  231. //添加优惠券
  232. {
  233. path: '/promotion/coupon_list_to_add',
  234. icon: '',
  235. name: '',
  236. component: './promotion/coupon/add_coupon',
  237. },
  238. //优惠券详情
  239. {
  240. path: '/promotion/coupon_list_to_view',
  241. icon: '',
  242. name: '',
  243. component: './promotion/coupon/view_coupon',
  244. },
  245. //优惠券领取列表
  246. {
  247. path: '/promotion/coupon_list_to_receive_list',
  248. icon: '',
  249. name: '',
  250. component: './promotion/coupon/member_receive_lists',
  251. },
  252. // //满优惠
  253. // {
  254. // path: '/promotion/full_discount',
  255. // icon: 'gift',
  256. // name: 'promotion_full_discount',
  257. // component: './promotion/full/discount',
  258. // },
  259. //满减活动
  260. {
  261. path: '/promotion/full_acm',
  262. icon: 'fire',
  263. name: 'promotion_full_acm',
  264. component: './promotion/full/full_acm_list',
  265. },
  266. //发布满减活动
  267. {
  268. path: '/promotion/full_acm_to_add',
  269. icon: '',
  270. name: '',
  271. component: './promotion/full/add_full_acm',
  272. },
  273. //阶梯满减
  274. {
  275. path: '/promotion/full_asm',
  276. icon: 'gold',
  277. name: 'promotion_full_asm',
  278. component: './promotion/full/full_asm_list',
  279. },
  280. //发布阶梯满减活动
  281. {
  282. path: '/promotion/full_asm_to_add',
  283. icon: '',
  284. name: '',
  285. component: './promotion/full/add_full_asm',
  286. },
  287. //满N元折扣
  288. {
  289. path: '/promotion/full_ald',
  290. icon: 'money-collect',
  291. name: 'promotion_full_ald',
  292. component: './promotion/full/full_ald_list',
  293. },
  294. //发布满N元折扣活动
  295. {
  296. path: '/promotion/full_ald_to_add',
  297. icon: '',
  298. name: '',
  299. component: './promotion/full/add_full_ald',
  300. },
  301. //满N件折扣
  302. {
  303. path: '/promotion/full_nld',
  304. icon: 'medicine-box',
  305. name: 'promotion_full_nld',
  306. component: './promotion/full/full_nld_list',
  307. },
  308. //发布满N元折扣活动
  309. {
  310. path: '/promotion/full_nld_to_add',
  311. icon: '',
  312. name: '',
  313. component: './promotion/full/add_full_nld',
  314. },
  315. //秒杀活动
  316. {
  317. path: '/promotion/seckill',
  318. icon: 'thunderbolt',
  319. name: 'promotion_seckill',
  320. component: './promotion/seckill/list',
  321. },
  322. //参加秒杀活动
  323. {
  324. path: '/promotion/seckill_to_add',
  325. icon: '',
  326. name: '',
  327. component: './promotion/seckill/add_seckill',
  328. },
  329. //参加秒杀活动的商品列表
  330. {
  331. path: '/promotion/seckill_bind_goods',
  332. icon: '',
  333. name: '',
  334. component: './promotion/seckill/joined_goods_list',
  335. },
  336. //拼团活动列表
  337. {
  338. path: '/promotion/spell_group',
  339. icon: 'flag',
  340. name: 'promotion_spell_group',
  341. component: './promotion/spell_group/all_list',
  342. },
  343. //发布拼团活动
  344. {
  345. path: '/promotion/spell_group_to_add',
  346. icon: '',
  347. name: '',
  348. component: './promotion/spell_group/add_spell_group',
  349. },
  350. //拼团详情
  351. {
  352. path: '/promotion/spell_group_to_view',
  353. icon: '',
  354. name: '',
  355. component: './promotion/spell_group/view_spell_group',
  356. },
  357. //拼团的商品列表
  358. {
  359. path: '/promotion/spell_group_bind_goods',
  360. icon: '',
  361. name: '',
  362. component: './promotion/spell_group/joined_goods_list',
  363. },
  364. //拼团活动订单
  365. {
  366. path: '/promotion/spell_group_order',
  367. icon: '',
  368. name: '',
  369. component: './promotion/spell_group/order_lists',
  370. },
  371. //拼团活动订单详情
  372. {
  373. path: '/promotion/spell_group_order_to_detail',
  374. icon: '',
  375. name: '',
  376. component: './order/order_detail',
  377. },
  378. //拼团团队列表
  379. {
  380. path: '/promotion/spell_group_team_list',
  381. icon: '',
  382. name: '',
  383. component: './promotion/spell_group/team_list',
  384. },
  385. //阶梯团活动
  386. {
  387. path: '/promotion/ladder_group',
  388. icon: 'build',
  389. name: 'promotion_ladder_group',
  390. component: './promotion/ladder_group/all_list',
  391. },
  392. //参加阶梯团活动
  393. {
  394. path: '/promotion/ladder_group_to_add',
  395. icon: '',
  396. name: '',
  397. component: './promotion/ladder_group/add_ladder_group',
  398. },
  399. //阶梯团详情
  400. {
  401. path: '/promotion/ladder_group_to_view',
  402. icon: '',
  403. name: '',
  404. component: './promotion/ladder_group/view_ladder_group',
  405. },
  406. //阶梯团——团队列表
  407. {
  408. path: '/promotion/ladder_group_team_list',
  409. icon: '',
  410. name: '',
  411. component: './promotion/ladder_group/team_list',
  412. },
  413. //预售活动
  414. {
  415. path: '/promotion/presale',
  416. icon: 'gift',
  417. name: 'promotion_presale',
  418. component: './promotion/presale/list',
  419. },
  420. //预售查看详情
  421. {
  422. path: '/promotion/presale_to_view',
  423. icon: '',
  424. name: '',
  425. component: './promotion/presale/view_presale',
  426. },
  427. //预售的商品列表
  428. {
  429. path: '/promotion/presale_bind_goods',
  430. icon: '',
  431. name: '',
  432. component: './promotion/presale/joined_goods_list',
  433. },
  434. //新建预售活动
  435. {
  436. path: '/promotion/presale_to_add',
  437. icon: '',
  438. name: '',
  439. component: './promotion/presale/add_presale',
  440. },
  441. //店铺设置
  442. {
  443. path: '/store/setting',
  444. icon: 'shop',
  445. name: 'store_setting',
  446. component: './store/setting',
  447. },
  448. //店铺信息
  449. {
  450. path: '/store/info',
  451. icon: 'profile',
  452. name: 'store_info',
  453. component: './store/info',
  454. },
  455. // 店铺分类
  456. {
  457. path: '/store/category',
  458. icon: 'appstore',
  459. name: 'store_category',
  460. component: './store/category',
  461. },
  462. //品牌申请
  463. {
  464. path: '/store/brand_lists',
  465. icon: 'trademark',
  466. name: 'store_brand_lists',
  467. component: './store/brand_lists',
  468. },
  469. // 模板列表
  470. // {
  471. // path: '/diy/tpl_lists',
  472. // icon: 'home',
  473. // name: 'diy_tpl_lists',
  474. // component: './diy/pc_diy/tpl_lists',
  475. // },
  476. // 实例化模版
  477. // {
  478. // path: '/diy/instance_template_lists',
  479. // icon: 'profile',
  480. // name: 'diy_instance_template_lists',
  481. // component: './diy/pc_diy/instance_template_lists',
  482. // },
  483. // 新增/编辑模版
  484. {
  485. path: '/diy/instance_template_lists_to_edit',
  486. name: '',
  487. component: './diy/pc_diy/add_template',
  488. },
  489. // 店铺PC端首页装修
  490. // {
  491. // path: '/diy/decorate_pc_home',
  492. // icon: 'desktop',
  493. // name: 'diy_decorate_pc_home',
  494. // component: './diy/pc_diy/diy_lists',
  495. // },
  496. // 店铺移动端首页装修
  497. {
  498. path: '/diy/decorate_mhome',
  499. icon: 'mobile',
  500. name: 'diy_decorate_mhome',
  501. component: './diy/m_diy/m_diy_lists',
  502. },
  503. // 店铺移动端装修页面
  504. {
  505. path: '/diy/decorate_mhome_to_edit',
  506. name: '',
  507. component: './diy/m_diy/edit_m_diy_page',
  508. },
  509. // 消息接收设置
  510. {
  511. path: '/store/msg_setting',
  512. icon: 'setting',
  513. name: 'store_msg_setting',
  514. component: './store/msg_setting',
  515. },
  516. // 消息接收设置
  517. {
  518. path: '/store/msg_lists',
  519. icon: 'bell',
  520. name: 'store_msg_lists',
  521. component: './store/msg_lists',
  522. },
  523. //售后管理——仅退款
  524. {
  525. path: '/service/refund_lists',
  526. icon: 'transaction',
  527. name: 'service_refund_lists',
  528. component: './service/refund_lists',
  529. },
  530. //售后管理——退货退款
  531. {
  532. path: '/service/return_lists',
  533. icon: 'export',
  534. name: 'service_return_lists',
  535. component: './service/return_lists',
  536. },
  537. //售后管理——仅退款——退款详情
  538. {
  539. path: '/service/refund_lists_to_detail',
  540. name: '',
  541. component: './service/detail',
  542. },
  543. //售后管理——退货退款——退款详情
  544. {
  545. path: '/service/return_lists_to_detail',
  546. name: '',
  547. component: './service/detail',
  548. },
  549. //账号——权限阻
  550. {
  551. path: '/account/group',
  552. icon: 'trademark',
  553. name: 'account_group',
  554. component: './account/group',
  555. },
  556. //账号——子账号管理
  557. {
  558. path: '/account/member',
  559. icon: 'contacts',
  560. name: 'account_member',
  561. component: './account/member',
  562. },
  563. //结算——结算账号
  564. {
  565. path: '/bill/account',
  566. icon: 'property-safety',
  567. name: 'bill_account',
  568. component: './bill/account_lists',
  569. },
  570. //结算——结算账单
  571. {
  572. path: '/bill/lists',
  573. icon: 'transaction',
  574. name: 'bill_list',
  575. component: './bill/lists',
  576. },
  577. //结算——结算账单详情
  578. {
  579. path: '/bill/lists_to_detail',
  580. icon: 'transaction',
  581. name: '',
  582. component: './bill/detail',
  583. },
  584. //积分商城——发布商品
  585. {
  586. path: '/point/goods_list_to_add',
  587. icon: 'export',
  588. name: '',
  589. component: './point/goods/add_goods',
  590. },
  591. //积分商城——商品列表
  592. {
  593. path: '/point/goods_list',
  594. icon: 'shopping',
  595. name: 'point_goods_list',
  596. component: './point/goods/goods_list',
  597. },
  598. //积分商城——导入商城商品
  599. {
  600. path: '/point/goods_list_to_import',
  601. icon: '',
  602. name: '',
  603. component: './point/goods/select_mall_goods',
  604. },
  605. //积分商城——订单管理
  606. {
  607. path: '/point/order_list',
  608. icon: 'profile',
  609. name: 'point_order_list',
  610. component: './point/order/order_lists',
  611. },
  612. //积分商城——订单详情
  613. {
  614. path: '/point/order_list_to_detail',
  615. name: '',
  616. component: './point/order/order_detail',
  617. },
  618. //积分商城——结算管理
  619. {
  620. path: '/point/bill_list',
  621. icon: 'pay-circle',
  622. name: 'point_bill_list',
  623. component: './point/bill/lists',
  624. },
  625. //积分商城——结算详情
  626. {
  627. path: '/point/bill_list_to_detail',
  628. name: '',
  629. component: './point/bill/detail',
  630. },
  631. //直播装修
  632. {
  633. path: '/live/decorate_live',
  634. icon: 'mobile',
  635. name: 'live_decorate_live',
  636. component: './live/live_diy/live_diy_lists',
  637. },
  638. //直播商品
  639. {
  640. path: '/live/goods_live',
  641. icon: 'mobile',
  642. name: 'live_goods_live',
  643. component: './live/live_goods/live_diy_lists',
  644. },
  645. //直播商品添加
  646. {
  647. path: '/live/goods_live_edit',
  648. component: './live/live_goods/live_edit_goods_lists',
  649. },
  650. //直播商品添加列表
  651. {
  652. path: '/live/room_goods_edit',
  653. component: './live/live_diy/live_room_goods_edit',
  654. },
  655. //直播商品绑定列表
  656. {
  657. path: '/live/room_goods_relation',
  658. component: './live/live_diy/live_room_goods_relation',
  659. },
  660. {
  661. component: '404',
  662. },
  663. ],
  664. },
  665. ];