router.config.js 19 KB

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