index.js 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761
  1. import Vue from 'vue'
  2. import Router from 'vue-router'
  3. import layout from '../views/layout/layout'
  4. const _import = require('./_import_' + process.env.NODE_ENV)
  5. if (Router.version >= '3.1.0') {
  6. const originalPush = Router.prototype.push
  7. Router.prototype.push = function push (location) {
  8. return originalPush.call(this, location).catch(err => err)
  9. }
  10. }
  11. Vue.use(Router)
  12. export const constantRouterMap = [
  13. {path: '/', redirect: '/login'},
  14. {path: '/login', component: _import('login/index'), name: 'login'},
  15. {path: '/login-by-backend', component: _import('login/login-by-backend'), name: 'login-by-backend'},
  16. {path: '/modify-password/:username', component: _import('login/modify-password'), name: 'modify-password'},
  17. // { path: '/authredirect', component: _import('login/authredirect'), hidden: true },
  18. // { path: '/404', component: _import('errorPage/404'), hidden: true },
  19. // { path: '/401', component: _import('errorPage/401'), hidden: true },
  20. {
  21. path: '/dashboard/index',
  22. component: layout,
  23. redirect: '/dashboard/index',
  24. children: [{
  25. path: '/dashboard/index',
  26. component: _import('dashboard/index'),
  27. name: 'dashboard_index',
  28. meta: {
  29. title: 'Dashboard', // 控制台
  30. breadcrumb: [
  31. {title: 'Dashboard', path: '/dashboard/index'} // 首页
  32. ]
  33. }
  34. },
  35. {
  36. path: '/dashboard/ba-index',
  37. component: _import('dashboard/ba-index'),
  38. name: 'dashboard_ba_index',
  39. meta: {
  40. title: 'Dashboard', // 控制台
  41. breadcrumb: [
  42. {title: 'Dashboard', path: '/dashboard/ba-index'} // 首页
  43. ]
  44. }
  45. },
  46. ]
  47. },
  48. {
  49. path: '/shop',
  50. component: layout,
  51. redirect: '/shop/dec-order-list',
  52. children: [
  53. {
  54. path: '/shop/dec-order-list',
  55. component: _import('shop/dec-order-list'),
  56. name: 'shop_dec-order-list',
  57. meta: {
  58. title: 'Welcome Pack Listing', // 报单列表
  59. breadcrumb: [
  60. {title: 'Dashboard', path: '/dashboard/index'}, // 首页
  61. {title: 'Shopping Mall', path: '/shop/dec-order-list'} // 商城管理
  62. ]
  63. }
  64. },
  65. {
  66. path: '/shop/order-list',
  67. component: _import('shop/order-list'),
  68. name: 'shop_order-list',
  69. meta: {
  70. title: 'Order List', // 订单列表
  71. breadcrumb: [
  72. {title: 'Dashboard', path: '/dashboard/index'}, // 首页
  73. {title: 'Shopping Mall', path: '/shop/dec-order-list'} // 商城管理
  74. ]
  75. }
  76. },
  77. {
  78. path: '/shop/index',
  79. component: _import('shop/index'),
  80. name: 'shop_index',
  81. meta: {
  82. title: 'Products list', // 商品列表
  83. breadcrumb: [
  84. {title: 'Dashboard', path: '/dashboard/index'}, // 首页
  85. {title: 'Shopping Mall', path: '/shop/dec-order-list'} // 商城管理
  86. ]
  87. }
  88. },
  89. {
  90. path: '/shop/order-backing-out',
  91. component: _import('shop/order-backing-out'),
  92. name: 'shop_order-list',
  93. meta: {
  94. title: '订单退货', // 订单退货
  95. breadcrumb: [
  96. {title: 'Dashboard', path: '/dashboard/index'}, // 首页
  97. {title: 'Shopping Mall', path: '/shop/dec-order-list'} // 商城管理
  98. ]
  99. }
  100. },
  101. {
  102. path: '/shop/order',
  103. component: _import('shop/order'),
  104. name: 'shop_order',
  105. meta: {
  106. title: 'Products settlement',
  107. breadcrumb: [
  108. {title: 'Dashboard', path: '/dashboard/index'}, // 首页
  109. {title: 'Shopping Mall', path: '/shop/dec-order-list'}// 商城管理
  110. ]
  111. }
  112. },
  113. {
  114. path: '/shop/goods-detail/:id',
  115. component: _import('shop/goods-detail'),
  116. name: 'shop_goods-detail',
  117. meta: {
  118. title: '商品详情',
  119. breadcrumb: [
  120. {title: 'Dashboard', path: '/dashboard/index'},
  121. {title: 'Shopping Mall', path: '/shop/dec-order-list'}
  122. ]
  123. }
  124. },
  125. {
  126. path: '/shop/ba-product-list',
  127. component: _import('shop/ba-product-list'),
  128. name: 'ba_product_list',
  129. meta: {
  130. title: 'Products list', // BA商品列表
  131. breadcrumb: [
  132. {title: 'Dashboard', path: '/dashboard/index'}, // 首页
  133. {title: 'Shopping Mall', path: '/shop/ba-order-list'} // 商城管理
  134. ]
  135. }
  136. },
  137. {
  138. path: '/shop/ba-shopping-cart',
  139. component: _import('shop/ba-shopping-cart'),
  140. name: 'ba-shopping-cart',
  141. meta: {
  142. title: 'Products settlement', // 购物车
  143. breadcrumb: [
  144. {title: 'Dashboard', path: '/dashboard/index'}, // 首页
  145. {title: 'Shopping Mall', path: '/shop/ba-shopping-cart'}// 商城管理
  146. ]
  147. }
  148. },
  149. {
  150. path: '/shop/ba-order-list',
  151. component: _import('shop/ba-order-list'),
  152. name: 'ba_order_list',
  153. meta: {
  154. title: 'Order List', // BA订单列表
  155. breadcrumb: [
  156. {title: 'Dashboard', path: '/dashboard/index'}, // 首页
  157. {title: 'Shopping Mall', path: '/shop/ba-order-list'}// 商城管理
  158. ]
  159. }
  160. },
  161. {
  162. path: '/shop/ba-dec-order-list',
  163. component: _import('shop/ba-dec-order-list'),
  164. name: 'shop_ba-dec-order-list',
  165. meta: {
  166. title: 'Welcome Listing', // BA报单列表
  167. breadcrumb: [
  168. {title: 'Dashboard', path: '/dashboard/index'}, // 首页
  169. {title: 'Shopping Mall', path: '/shop/dec-order-list'} // 商城管理
  170. ]
  171. }
  172. }
  173. // {
  174. // path: '/shop/reconsume',
  175. // component: _import('shop/reconsume'),
  176. // name: 'shop_reconsume',
  177. // meta: {
  178. // title: '复消商品',
  179. // breadcrumb: [
  180. // {title: '首页', path: '/dashboard/index'},
  181. // {title: '商城管理', path: '/shop/dec-order-list'},
  182. // ],
  183. // },
  184. // },
  185. // {
  186. // path: '/shop/reconsume-order',
  187. // component: _import('shop/reconsume-order'),
  188. // name: 'reconsume-order',
  189. // meta: {
  190. // title: '复消商品结算',
  191. // breadcrumb: [
  192. // {title: '首页', path: '/dashboard/index'},
  193. // {title: '商城管理', path: '/shop/dec-order-list'}
  194. // ],
  195. // },
  196. // },
  197. ]
  198. },
  199. {
  200. path: '/user',
  201. component: layout,
  202. redirect: '/user/index',
  203. children: [
  204. {
  205. path: '/user/index',
  206. component: _import('user/index'),
  207. name: 'user_index',
  208. meta: {
  209. title: 'Personal info', // 个人资料
  210. breadcrumb: [
  211. {title: 'Dashboard', path: '/dashboard/index'}, // 首页
  212. {title: 'Member management', path: '/user/index'} // 会员管理
  213. ]
  214. }
  215. },
  216. {
  217. path: '/user/password',
  218. component: _import('user/password'),
  219. name: 'user_password',
  220. meta: {
  221. title: 'Reset Password', // 重置密码
  222. breadcrumb: [
  223. {title: 'Dashboard', path: '/dashboard/index'}, // 首页
  224. {title: 'Member management', path: '/user/index'} // 会员管理
  225. ]
  226. }
  227. },
  228. {
  229. path: '/user/id-card',
  230. component: _import('user/id-card'),
  231. name: 'user_id-card',
  232. meta: {
  233. title: '上传身份证',
  234. breadcrumb: [
  235. {title: 'Dashboard', path: '/dashboard/index'},
  236. {title: 'Member management', path: '/user/index'}
  237. ]
  238. }
  239. },
  240. {
  241. path: '/user/rec-user',
  242. component: _import('user/rec-user'),
  243. name: 'user_rec-user',
  244. meta: {
  245. title: '开拓会员列表',
  246. breadcrumb: [
  247. {title: 'Dashboard', path: '/dashboard/index'},
  248. {title: 'Member management', path: '/user/index'}
  249. ]
  250. }
  251. },
  252. {
  253. path: '/user/bind',
  254. component: _import('user/bind'),
  255. name: 'user_bind',
  256. meta: {
  257. title: '点位绑定列表',
  258. breadcrumb: [
  259. {title: 'Dashboard', path: '/dashboard/index'},
  260. {title: 'Member management', path: '/user/index'}
  261. ]
  262. }
  263. },
  264. {
  265. path: '/user/bind-edit/:id',
  266. component: _import('user/bind-edit'),
  267. name: 'user_bind-edit',
  268. meta: {
  269. title: '点位绑定编辑',
  270. highLight: '/user/bind',
  271. breadcrumb: [
  272. {title: 'Dashboard', path: '/dashboard/index'},
  273. {title: 'Member management', path: '/user/index'},
  274. {title: '点位绑定列表', path: '/user/bind'}
  275. ]
  276. }
  277. },
  278. {
  279. path: '/user/dec',
  280. component: _import('user/dec'),
  281. name: 'user_dec',
  282. meta: {
  283. title: 'Welcome Pack management', // 报单管理
  284. breadcrumb: [
  285. {title: 'Dashboard', path: '/dashboard/index'}, // 首页
  286. {title: 'Member management', path: '/user/index'} // 会员管理
  287. ]
  288. }
  289. },
  290. {
  291. path: '/user/upgrade',
  292. component: _import('user/upgrade'),
  293. name: 'user_upgrade',
  294. meta: {
  295. title: 'Upgrade management', // 升级管理
  296. highLight: '/user/bind',
  297. breadcrumb: [
  298. {title: 'Dashboard', path: '/dashboard/index'}, // 首页
  299. {title: 'Member management', path: '/user/index'} // 会员管理
  300. ]
  301. }
  302. },
  303. {
  304. path: '/user/ba-dec',
  305. component: _import('user/ba-dec'),
  306. name: 'user_ba-dec',
  307. meta: {
  308. title: 'Welcome BA', // 个人资料
  309. breadcrumb: [
  310. {title: 'Dashboard', path: '/dashboard/index'}, // 首页
  311. {title: 'Member management', path: '/user/index'} // 会员管理
  312. ]
  313. }
  314. },
  315. {
  316. path: '/user/ba-info',
  317. component: _import('user/ba-info'),
  318. name: 'ba-info',
  319. meta: {
  320. title: 'Personal info', // 个人资料
  321. breadcrumb: [
  322. {title: 'Dashboard', path: '/dashboard/index'}, // 首页
  323. {title: 'Member management', path: '/user/index'} // 会员管理
  324. ]
  325. }
  326. },
  327. {
  328. path: '/user/ba-password',
  329. component: _import('user/ba-password'),
  330. name: 'ba-password',
  331. meta: {
  332. title: 'Reset Password', // 重置密码
  333. breadcrumb: [
  334. {title: 'Dashboard', path: '/dashboard/index'}, // 首页
  335. {title: 'Member management', path: '/user/index'} // 会员管理
  336. ]
  337. }
  338. }
  339. ]
  340. },
  341. {
  342. path: '/atlas',
  343. component: layout,
  344. redirect: '/atlas/network',
  345. children: [
  346. {
  347. path: '/atlas/network',
  348. component: _import('atlas/network'),
  349. name: 'atlas_network',
  350. meta: {
  351. title: 'Placement network',
  352. breadcrumb: [
  353. {title: 'Dashboard', path: '/dashboard/index'},
  354. {title: 'Network Chart', path: '/atlas/network'}
  355. ]
  356. }
  357. }
  358. ]
  359. },
  360. {
  361. path: '/atlas',
  362. component: layout,
  363. redirect: '/atlas/network',
  364. children: [
  365. {
  366. path: '/atlas/network',
  367. component: _import('atlas/network'),
  368. name: 'atlas_network',
  369. meta: {
  370. title: 'Placement network',
  371. breadcrumb: [
  372. {title: 'Dashboard', path: '/dashboard/index'},
  373. {title: 'Network Chart', path: '/atlas/network'},
  374. ]
  375. }
  376. },
  377. {
  378. path: '/atlas/relation',
  379. component: _import('atlas/relation'),
  380. name: 'atlas_relation',
  381. meta: {
  382. title: 'Sponsor network',
  383. breadcrumb: [
  384. {title: 'Dashboard', path: '/dashboard/index'},
  385. {title: 'Sponsor Chart', path: '/atlas/relation'}
  386. ]
  387. }
  388. },
  389. {
  390. path: '/atlas/brand-ambassador-list',
  391. component: _import('atlas/brand-ambassador-list'),
  392. name: 'brand-ambassador-list',
  393. meta: {
  394. title: 'Brand Ambassador List',
  395. breadcrumb: [
  396. {title: 'Dashboard', path: '/dashboard/index'},
  397. {title: 'Brand Ambassador List', path: '/atlas/brand-ambassador-list'}
  398. ]
  399. }
  400. }
  401. ]
  402. },
  403. {
  404. path: '/bonus',
  405. component: layout,
  406. redirect: '/bonus/index',
  407. children: [
  408. {
  409. path: '/bonus/index',
  410. component: _import('bonus/index'),
  411. name: 'bonus_index',
  412. meta: {
  413. title: 'My account', // 我的账户
  414. breadcrumb: [
  415. {title: 'Dashboard', path: '/dashboard/index'}, // 首页
  416. {title: 'Bonus management', path: '/bonus/index'} // 奖金管理
  417. ]
  418. }
  419. },
  420. {
  421. path: '/bonus/new',
  422. component: _import('bonus/new'),
  423. name: 'bonus_new',
  424. meta: {
  425. title: '最新奖金',
  426. breadcrumb: [
  427. {title: 'Dashboard', path: '/dashboard/index'},
  428. {title: 'Bonus management', path: '/bonus/index'}
  429. ]
  430. }
  431. },
  432. {
  433. path: '/bonus/other',
  434. component: _import('bonus/other'),
  435. name: 'bonus_other',
  436. meta: {
  437. title: 'Previous bonus', // 往期奖金
  438. breadcrumb: [
  439. {title: 'Dashboard', path: '/dashboard/index'}, // Dashboard
  440. {title: 'Bonus management', path: '/bonus/index'} // 奖金管理
  441. ]
  442. }
  443. },
  444. {
  445. path: '/bonus/historical-cumulative-bonus',
  446. component: _import('bonus/historical-cumulative-bonus'),
  447. name: 'historical-cumulative-bonus',
  448. meta: {
  449. title: 'Historical cumulative bonus', // 往期历史奖金累积
  450. breadcrumb: [
  451. {title: 'Dashboard', path: '/dashboard/index'}, // Dashboard
  452. {title: 'Bonus management', path: '/bonus/index'} // 奖金管理
  453. ]
  454. }
  455. },
  456. {
  457. path: '/bonus/real-time-perf',
  458. component: _import('bonus/real-time-perf'),
  459. name: 'bonus_real-time-perf',
  460. meta: {
  461. title: '实时业绩',
  462. breadcrumb: [
  463. {title: 'Dashboard', path: '/dashboard/index'},
  464. {title: 'Bonus management', path: '/bonus/index'}
  465. ]
  466. }
  467. },
  468. {
  469. path: '/bonus/fc-point',
  470. component: _import('bonus/fc-point'),
  471. name: 'bonus_fc-point',
  472. meta: {
  473. title: '房产积分',
  474. breadcrumb: [
  475. {title: 'Dashboard', path: '/dashboard/index'},
  476. {title: 'Bonus management', path: '/bonus/index'}
  477. ]
  478. }
  479. },
  480. {
  481. path: '/bonus/teams',
  482. component: _import('bonus/teams'),
  483. name: 'bonus_teams',
  484. meta: {
  485. title: 'Team inquiry', // 团队查询
  486. breadcrumb: [
  487. {title: 'Dashboard', path: '/dashboard/index'},
  488. {title: 'Bonus management', path: '/bonus/index'},
  489. ],
  490. },
  491. },
  492. ]
  493. },
  494. {
  495. path: '/article',
  496. component: layout,
  497. redirect: '/article/list',
  498. children: [
  499. {
  500. path: '/article/list/:cid',
  501. component: _import('article/list'),
  502. name: 'article_list',
  503. meta: {
  504. title: 'Article List',
  505. breadcrumb: [
  506. {title: 'Dashboard', path: '/dashboard/index'},
  507. {title: 'Article Management', path: '/article/list'}
  508. ]
  509. }
  510. },
  511. {
  512. path: '/article/detail/:id',
  513. component: _import('article/detail'),
  514. name: 'article_detail',
  515. meta: {
  516. title: 'Article Detail',
  517. breadcrumb: [
  518. {title: 'Dashboard', path: '/dashboard/index'},
  519. {title: 'Article Management', path: '/article/list'}
  520. ]
  521. }
  522. }
  523. ]
  524. },
  525. {
  526. path: '/message',
  527. component: layout,
  528. redirect: '/message/list',
  529. children: [
  530. {
  531. path: '/message/list',
  532. component: _import('message/list'),
  533. name: 'message_list',
  534. meta: {
  535. title: '站内信列表',
  536. breadcrumb: [
  537. {title: 'Dashboard', path: '/dashboard/index'},
  538. {title: '站内信', path: '/message/list'}
  539. ]
  540. }
  541. },
  542. {
  543. path: '/message/detail/:id',
  544. component: _import('message/detail'),
  545. name: 'message_detail',
  546. meta: {
  547. title: '站内信详情',
  548. breadcrumb: [
  549. {title: 'Dashboard', path: '/dashboard/index'},
  550. {title: '站内信', path: '/message/list'}
  551. ]
  552. }
  553. }
  554. ]
  555. },
  556. {
  557. path: '/finance',
  558. component: layout,
  559. redirect: '/finance/withdraw',
  560. children: [
  561. {
  562. path: '/finance/reconsume-pool-flow',
  563. component: _import('finance/reconsume-pool-flow'),
  564. name: 'finance_reconsume-pool-flow',
  565. meta: {
  566. title: '会员复销池余额流水',
  567. breadcrumb: [
  568. {title: 'Dashboard', path: '/dashboard/index'},
  569. {title: 'Financial management', path: '/finance/withdraw'}
  570. ]
  571. }
  572. },
  573. {
  574. path: '/finance/withdraw',
  575. component: _import('finance/withdraw'),
  576. name: 'finance_withdraw',
  577. meta: {
  578. title: 'Withdrawal details', // 提现明细
  579. breadcrumb: [
  580. {title: 'Dashboard', path: '/dashboard/index'}, // 首页
  581. {title: 'Financial management', path: '/finance/index'} // 财务管理
  582. ]
  583. }
  584. },
  585. {
  586. path: '/finance/withdraw-add',
  587. component: _import('finance/withdraw-add'),
  588. name: 'finance_withdraw-add',
  589. meta: {
  590. title: 'Withdraw', // 我要提现
  591. highLight: '/finance/withdraw',
  592. breadcrumb: [
  593. {title: 'Dashboard', path: '/dashboard/index'}, // 首页
  594. {title: 'Financial management', path: '/finance/index'}, // 财务管理
  595. {title: 'Withdrawal details', path: '/finance/withdraw'} // 提现明细
  596. ]
  597. }
  598. },
  599. {
  600. path: '/finance/dec-list',
  601. component: _import('finance/dec-list'),
  602. name: 'finance_dec-list',
  603. meta: {
  604. title: '报单订货单列表',
  605. breadcrumb: [
  606. {title: 'Dashboard', path: '/dashboard/index'},
  607. {title: 'Financial management', path: '/finance/index'}
  608. ]
  609. }
  610. },
  611. {
  612. path: '/finance/transfer-list',
  613. component: _import('finance/transfer-list'),
  614. name: 'finance_transfer-list',
  615. meta: {
  616. title: 'Transfer',
  617. breadcrumb: [
  618. {title: 'Dashboard', path: '/dashboard/index'},
  619. {title: 'Financial management', path: '/finance/index'}
  620. ]
  621. }
  622. },
  623. {
  624. path: '/finance/transfer-add',
  625. component: _import('finance/transfer-add'),
  626. name: 'finance_transfer-add',
  627. meta: {
  628. title: 'Transfer',
  629. highLight: '/finance/transfer-list',
  630. breadcrumb: [
  631. {title: 'Dashboard', path: '/dashboard/index'},
  632. {title: 'Financial management', path: '/finance/index'}
  633. ]
  634. }
  635. },
  636. {
  637. path: '/finance/recharge',
  638. component: _import('finance/recharge'),
  639. name: 'finance_recharge',
  640. meta: {
  641. title: 'Recharge details', // 充值明细
  642. breadcrumb: [
  643. {title: 'Dashboard', path: '/dashboard/index'}, // 首页
  644. {title: 'financial management', path: '/finance/index'} // 财务管理
  645. ]
  646. }
  647. },
  648. {
  649. path: '/finance/recharge-add',
  650. component: _import('finance/recharge-add'),
  651. name: 'finance_recharge-add',
  652. meta: {
  653. title: 'Recharge', // 我要充值
  654. highLight: '/finance/recharge',
  655. breadcrumb: [
  656. {title: 'Dashboard', path: '/dashboard/index'}, // 首页
  657. {title: 'financial management', path: '/finance/index'}, // 财务管理
  658. {title: 'Recharge details', path: '/finance/recharge'}
  659. ]
  660. }
  661. }
  662. ]
  663. },
  664. {
  665. path: '/config',
  666. component: layout,
  667. redirect: '/config/base',
  668. children: [
  669. {
  670. path: '/config/receive-address-list',
  671. component: _import('config/receive-address-list'),
  672. name: 'config_receive-address-list',
  673. meta: {
  674. title: 'Shipping Address', // 收货地址管理
  675. breadcrumb: [
  676. {title: 'Dashboard', path: '/dashboard/index'}, // 首页
  677. {title: 'Setting', path: '/config/base'} // 设置
  678. ]
  679. }
  680. },
  681. {
  682. path: '/config/receive-address-add',
  683. component: _import('config/receive-address-edit'),
  684. name: 'config_receive-address-add',
  685. meta: {
  686. title: 'Add shipping address', // 添加收货地址
  687. highLight: '/config/receive-address-list',
  688. breadcrumb: [
  689. {title: 'Dashboard', path: '/dashboard/index'}, // 首页
  690. {title: 'Setting', path: '/config/base'}, // 设置
  691. {title: 'Shipping Address', path: '/config/receive-address-list'} // 收货地址管理
  692. ]
  693. }
  694. },
  695. {
  696. path: '/config/receive-address-edit/:id',
  697. component: _import('config/receive-address-edit'),
  698. name: 'config_receive-address-edit',
  699. meta: {
  700. title: 'Edit address',
  701. highLight: '/config/receive-address-list',
  702. breadcrumb: [
  703. {title: 'Dashboard', path: '/dashboard/index'}, // 首页
  704. {title: 'Setting', path: '/config/base'}, // 设置
  705. {title: 'Shipping Address', path: '/config/receive-address-list'} // 收货地址管理
  706. ]
  707. }
  708. },
  709. {
  710. path: '/config/ba-receive-address-list',
  711. component: _import('config/ba-receive-address-list'),
  712. name: 'ba-receive-address-list',
  713. meta: {
  714. title: 'Shipping Address', // 收货地址管理
  715. breadcrumb: [
  716. {title: 'Dashboard', path: '/dashboard/index'}, // 首页
  717. {title: 'Setting', path: '/config/base'} // 设置
  718. ]
  719. }
  720. },
  721. {
  722. path: '/config/ba-receive-address-add',
  723. component: _import('config/ba-receive-address-edit'),
  724. name: 'ba-receive-address-add',
  725. meta: {
  726. title: 'Add Shipping Address', // 添加收货地址
  727. highLight: '/config/ba-receive-address-list',
  728. breadcrumb: [
  729. {title: 'Dashboard', path: '/dashboard/index'}, // 首页
  730. {title: 'Setting', path: '/config/base'}, // 设置
  731. {title: 'Shipping Address', path: '/config/ba-receive-address-list'} // 收货地址管理
  732. ]
  733. }
  734. },
  735. {
  736. path: '/config/ba-receive-address-edit/:id',
  737. component: _import('config/ba-receive-address-edit'),
  738. name: 'ba-receive-address-edit',
  739. meta: {
  740. title: 'Edit Address',
  741. highLight: '/config/ba-receive-address-list',
  742. breadcrumb: [
  743. {title: 'Dashboard', path: '/dashboard/index'}, // 首页
  744. {title: 'Setting', path: '/config/base'}, // 设置
  745. {title: 'Shipping Address', path: '/config/ba-receive-address-list'} // 收货地址管理
  746. ]
  747. }
  748. }
  749. ]
  750. }
  751. ]
  752. export default new Router({
  753. routes: constantRouterMap
  754. })