router.config.js 16 KB

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