| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686 |
- import Vue from 'vue'
- import Router from 'vue-router'
- import layout from '../views/layout/layout'
- const _import = require('./_import_' + process.env.NODE_ENV)
- if(Router.version >= '3.1.0'){
- const originalPush = Router.prototype.push
- Router.prototype.push = function push(location) {
- return originalPush.call(this, location).catch(err => err)
- }
- }
- Vue.use(Router)
- export const constantRouterMap = [
- {path: '/', redirect: '/login'},
- {path: '/login', component: _import('login/index'), name: 'login'},
- {path: '/login-by-backend', component: _import('login/login-by-backend'), name: 'login-by-backend'},
- {path: '/modify-password/:username', component: _import('login/modify-password'), name: 'modify-password'},
- // { path: '/authredirect', component: _import('login/authredirect'), hidden: true },
- // { path: '/404', component: _import('errorPage/404'), hidden: true },
- // { path: '/401', component: _import('errorPage/401'), hidden: true },
- {
- path: '/dashboard/index',
- component: layout,
- redirect: '/dashboard/index',
- children: [{
- path: '/dashboard/index',
- component: _import('dashboard/index'),
- name: 'dashboard_index',
- meta: {
- title: 'Dashboard',//控制台
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},//首页
- ],
- },
- }]
- },
- {
- path: '/dashboard/ba-index',
- component: layout,
- redirect: '/dashboard/ba-index',
- children: [{
- path: '/dashboard/ba-index',
- component: _import('dashboard/ba-index'),
- name: 'dashboard_ba_index',
- meta: {
- title: 'Dashboard',//控制台
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/ba-index'},//首页
- ],
- },
- }]
- },
- {
- path: '/shop',
- component: layout,
- redirect: '/shop/dec-order-list',
- children: [
- {
- path: '/shop/dec-order-list',
- component: _import('shop/dec-order-list'),
- name: 'shop_dec-order-list',
- meta: {
- title: 'Welcome Pack Listing',//报单列表
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},//首页
- {title: 'Shopping Mall', path: '/shop/dec-order-list'},//商城管理
- ],
- },
- },
- {
- path: '/shop/order-list',
- component: _import('shop/order-list'),
- name: 'shop_order-list',
- meta: {
- title: 'Order List',//订单列表
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},//首页
- {title: 'Shopping Mall', path: '/shop/dec-order-list'},//商城管理
- ],
- },
- },
- {
- path: '/shop/index',
- component: _import('shop/index'),
- name: 'shop_index',
- meta: {
- title: 'Products list',//商品列表
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},//首页
- {title: 'Shopping Mall', path: '/shop/dec-order-list'},//商城管理
- ],
- },
- },
- {
- path: '/shop/order-backing-out',
- component: _import('shop/order-backing-out'),
- name: 'shop_order-list',
- meta: {
- title: '订单退货',//订单退货
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},//首页
- {title: 'Shopping Mall', path: '/shop/dec-order-list'},//商城管理
- ],
- }
- },
- {
- path: '/shop/order',
- component: _import('shop/order'),
- name: 'shop_order',
- meta: {
- title: 'Products settlement',
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},//首页
- {title: 'Shopping Mall', path: '/shop/dec-order-list'}//商城管理
- ],
- },
- },
- {
- path: '/shop/goods-detail/:id',
- component: _import('shop/goods-detail'),
- name: 'shop_goods-detail',
- meta: {
- title: '商品详情',
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},
- {title: 'Shopping Mall', path: '/shop/dec-order-list'},
- ],
- },
- },
- {
- path: '/shop/ba-product-list',
- component: _import('shop/ba-product-list'),
- name: 'ba_product_list',
- meta: {
- title: 'Products list',//BA商品列表
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},//首页
- {title: 'Shopping Mall', path: '/shop/ba-product-list'},//商城管理
- ],
- },
- },
- {
- path: '/shop/ba-shopping-cart',
- component: _import('shop/ba-shopping-cart'),
- name: 'ba-shopping-cart',
- meta: {
- title: 'Products settlement', // 购物车
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},//首页
- {title: 'Shopping Mall', path: '/shop/ba-product-list'}//商城管理
- ],
- },
- },
- {
- path: '/shop/ba-order-list',
- component: _import('shop/ba-order-list'),
- name: 'ba_order_list',
- meta: {
- title: 'Order List', // BA订单列表
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},//首页
- {title: 'Shopping Mall', path: '/shop/ba-product-list'}//商城管理
- ],
- },
- },
- // {
- // path: '/shop/reconsume',
- // component: _import('shop/reconsume'),
- // name: 'shop_reconsume',
- // meta: {
- // title: '复消商品',
- // breadcrumb: [
- // {title: '首页', path: '/dashboard/index'},
- // {title: '商城管理', path: '/shop/dec-order-list'},
- // ],
- // },
- // },
- // {
- // path: '/shop/reconsume-order',
- // component: _import('shop/reconsume-order'),
- // name: 'reconsume-order',
- // meta: {
- // title: '复消商品结算',
- // breadcrumb: [
- // {title: '首页', path: '/dashboard/index'},
- // {title: '商城管理', path: '/shop/dec-order-list'}
- // ],
- // },
- // },
- ],
- },
- {
- path: '/user',
- component: layout,
- redirect: '/user/index',
- children: [
- {
- path: '/user/index',
- component: _import('user/index'),
- name: 'user_index',
- meta: {
- title: 'Personal info',//个人资料
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},//首页
- {title: 'Member management', path: '/user/index'},//会员管理
- ],
- },
- },
- {
- path: '/user/password',
- component: _import('user/password'),
- name: 'user_password',
- meta: {
- title: 'Reset Password',//重置密码
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},//首页
- {title: 'Member management', path: '/user/index'},//会员管理
- ],
- },
- },
- {
- path: '/user/id-card',
- component: _import('user/id-card'),
- name: 'user_id-card',
- meta: {
- title: '上传身份证',
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},
- {title: 'Member management', path: '/user/index'},
- ],
- },
- },
- {
- path: '/user/rec-user',
- component: _import('user/rec-user'),
- name: 'user_rec-user',
- meta: {
- title: '开拓会员列表',
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},
- {title: 'Member management', path: '/user/index'},
- ],
- },
- },
- {
- path: '/user/bind',
- component: _import('user/bind'),
- name: 'user_bind',
- meta: {
- title: '点位绑定列表',
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},
- {title: 'Member management', path: '/user/index'},
- ],
- },
- },
- {
- path: '/user/bind-edit/:id',
- component: _import('user/bind-edit'),
- name: 'user_bind-edit',
- meta: {
- title: '点位绑定编辑',
- highLight: '/user/bind',
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},
- {title: 'Member management', path: '/user/index'},
- {title: '点位绑定列表', path: '/user/bind'},
- ],
- },
- },
- {
- path: '/user/dec',
- component: _import('user/dec'),
- name: 'user_dec',
- meta: {
- title: 'Welcome Pack management',//报单管理
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},//首页
- {title: 'Member management', path: '/user/index'},//会员管理
- ],
- },
- },
- {
- path: '/user/upgrade',
- component: _import('user/upgrade'),
- name: 'user_upgrade',
- meta: {
- title: 'Upgrade management',//升级管理
- highLight: '/user/bind',
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},//首页
- {title: 'Member management', path: '/user/index'},//会员管理
- ],
- },
- },
- {
- path: '/user/ba-info',
- component: _import('user/ba-info'),
- name: 'ba-info',
- meta: {
- title: 'Personal Info',//个人资料
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},//首页
- {title: 'Member management', path: '/user/ba-info'},//会员管理
- ],
- },
- },
- {
- path: '/user/ba-password',
- component: _import('user/ba-password'),
- name: 'ba-password',
- meta: {
- title: 'Reset Password',//重置密码
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},//首页
- {title: 'Member management', path: '/user/ba-info'},//会员管理
- ],
- },
- },
- ]
- },
- {
- path: '/atlas',
- component: layout,
- redirect: '/atlas/network',
- children: [
- {
- path: '/atlas/network',
- component: _import('atlas/network'),
- name: 'atlas_network',
- meta: {
- title: 'Placement network',
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},
- {title: 'Network Chart', path: '/atlas/network'},
- ],
- },
- },
- ]
- },
- {
- path: '/bonus',
- component: layout,
- redirect: '/bonus/index',
- children: [
- {
- path: '/bonus/index',
- component: _import('bonus/index'),
- name: 'bonus_index',
- meta: {
- title: 'My account',//我的账户
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},//首页
- {title: 'Bonus management', path: '/bonus/index'},//奖金管理
- ],
- },
- },
- {
- path: '/bonus/new',
- component: _import('bonus/new'),
- name: 'bonus_new',
- meta: {
- title: '最新奖金',
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},
- {title: 'Bonus management', path: '/bonus/index'},
- ],
- },
- },
- {
- path: '/bonus/other',
- component: _import('bonus/other'),
- name: 'bonus_other',
- meta: {
- title: 'Previous bonus',//往期奖金
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},//Dashboard
- {title: 'Bonus management', path: '/bonus/index'},//奖金管理
- ],
- },
- },
- {
- path: '/bonus/historical-cumulative-bonus',
- component: _import('bonus/historical-cumulative-bonus'),
- name: 'historical-cumulative-bonus',
- meta: {
- title: 'Historical cumulative bonus',//往期历史奖金累积
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},//Dashboard
- {title: 'Bonus management', path: '/bonus/index'},//奖金管理
- ],
- },
- },
- {
- path: '/bonus/real-time-perf',
- component: _import('bonus/real-time-perf'),
- name: 'bonus_real-time-perf',
- meta: {
- title: '实时业绩',
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},
- {title: 'Bonus management', path: '/bonus/index'},
- ],
- },
- },
- {
- path: '/bonus/fc-point',
- component: _import('bonus/fc-point'),
- name: 'bonus_fc-point',
- meta: {
- title: '房产积分',
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},
- {title: 'Bonus management', path: '/bonus/index'},
- ],
- },
- },
- ]
- },
- {
- path: '/article',
- component: layout,
- redirect: '/article/list',
- children: [
- {
- path: '/article/list/:cid',
- component: _import('article/list'),
- name: 'article_list',
- meta: {
- title: 'Article List',
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},
- {title: 'Article Management', path: '/article/list'},
- ],
- },
- },
- {
- path: '/article/detail/:id',
- component: _import('article/detail'),
- name: 'article_detail',
- meta: {
- title: 'Article Detail',
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},
- {title: 'Article Management', path: '/article/list'},
- ],
- },
- },
- ]
- },
- {
- path: '/message',
- component: layout,
- redirect: '/message/list',
- children: [
- {
- path: '/message/list',
- component: _import('message/list'),
- name: 'message_list',
- meta: {
- title: '站内信列表',
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},
- {title: '站内信', path: '/message/list'},
- ],
- },
- },
- {
- path: '/message/detail/:id',
- component: _import('message/detail'),
- name: 'message_detail',
- meta: {
- title: '站内信详情',
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},
- {title: '站内信', path: '/message/list'},
- ],
- },
- },
- ]
- },
- {
- path: '/finance',
- component: layout,
- redirect: '/finance/withdraw',
- children: [
- {
- path: '/finance/reconsume-pool-flow',
- component: _import('finance/reconsume-pool-flow'),
- name: 'finance_reconsume-pool-flow',
- meta: {
- title: '会员复销池余额流水',
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},
- {title: 'Financial management', path: '/finance/withdraw'},
- ],
- },
- },
- {
- path: '/finance/withdraw',
- component: _import('finance/withdraw'),
- name: 'finance_withdraw',
- meta: {
- title: 'Withdrawal details',//提现明细
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},//首页
- {title: 'Financial management', path: '/finance/index'},//财务管理
- ],
- },
- },
- {
- path: '/finance/withdraw-add',
- component: _import('finance/withdraw-add'),
- name: 'finance_withdraw-add',
- meta: {
- title: 'Withdraw',//我要提现
- highLight: '/finance/withdraw',
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},//首页
- {title: 'Financial management', path: '/finance/index'},//财务管理
- {title: 'Withdrawal details', path: '/finance/withdraw'},//提现明细
- ],
- },
- },
- {
- path: '/finance/dec-list',
- component: _import('finance/dec-list'),
- name: 'finance_dec-list',
- meta: {
- title: '报单订货单列表',
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},
- {title: 'Financial management', path: '/finance/index'},
- ],
- },
- },
- {
- path: '/finance/transfer-list',
- component: _import('finance/transfer-list'),
- name: 'finance_transfer-list',
- meta: {
- title: 'Transfer',
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},
- {title: 'Financial management', path: '/finance/index'},
- ],
- },
- },
- {
- path: '/finance/transfer-add',
- component: _import('finance/transfer-add'),
- name: 'finance_transfer-add',
- meta: {
- title: 'Transfer',
- highLight: '/finance/transfer-list',
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},
- {title: 'Financial management', path: '/finance/index'},
- ],
- },
- },
- {
- path: '/finance/recharge',
- component: _import('finance/recharge'),
- name: 'finance_recharge',
- meta: {
- title: 'Recharge details', // 充值明细
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'}, // 首页
- {title: 'financial management', path: '/finance/index'}, // 财务管理
- ],
- },
- },
- {
- path: '/finance/recharge-add',
- component: _import('finance/recharge-add'),
- name: 'finance_recharge-add',
- meta: {
- title: 'Recharge', // 我要充值
- highLight: '/finance/recharge',
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'}, // 首页
- {title: 'financial management', path: '/finance/index'}, // 财务管理
- {title: 'Recharge details', path: '/finance/recharge'},
- ],
- },
- },
- ]
- },
- {
- path: '/config',
- component: layout,
- redirect: '/config/base',
- children: [
- {
- path: '/config/receive-address-list',
- component: _import('config/receive-address-list'),
- name: 'config_receive-address-list',
- meta: {
- title: 'Shipping Address',//收货地址管理
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},//首页
- {title: 'Setting', path: '/config/base'},//设置
- ],
- },
- },
- {
- path: '/config/receive-address-add',
- component: _import('config/receive-address-edit'),
- name: 'config_receive-address-add',
- meta: {
- title: 'Add shipping address',//添加收货地址
- highLight: '/config/receive-address-list',
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},//首页
- {title: 'Setting', path: '/config/base'},//设置
- {title: 'Shipping Address', path: '/config/receive-address-list'},//收货地址管理
- ],
- },
- },
- {
- path: '/config/receive-address-edit/:id',
- component: _import('config/receive-address-edit'),
- name: 'config_receive-address-edit',
- meta: {
- title: 'Edit address',
- highLight: '/config/receive-address-list',
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},//首页
- {title: 'Setting', path: '/config/base'},//设置
- {title: 'Shipping Address', path: '/config/receive-address-list'},//收货地址管理
- ],
- },
- },
- {
- path: '/config/ba-receive-address-list',
- component: _import('config/ba-receive-address-list'),
- name: 'ba-receive-address-list',
- meta: {
- title: 'Shipping Address',//收货地址管理
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},//首页
- {title: 'Setting', path: '/config/ba-receive-address-list'},//设置
- ],
- },
- },
- {
- path: '/config/ba-receive-address-add',
- component: _import('config/ba-receive-address-edit'),
- name: 'ba-receive-address-add',
- meta: {
- title: 'Add Shipping Address',//添加收货地址
- highLight: '/config/ba-receive-address-list',
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},//首页
- {title: 'Setting', path: '/config/ba-receive-address-list'},//设置
- {title: 'Shipping Address', path: '/config/ba-receive-address-list'},//收货地址管理
- ],
- },
- },
- {
- path: '/config/ba-receive-address-edit/:id',
- component: _import('config/ba-receive-address-edit'),
- name: 'ba-receive-address-edit',
- meta: {
- title: 'Edit Address',
- highLight: '/config/ba-receive-address-list',
- breadcrumb: [
- {title: 'Dashboard', path: '/dashboard/index'},//首页
- {title: 'Setting', path: '/config/ba-receive-address-list'},//设置
- {title: 'Shipping Address', path: '/config/ba-receive-address-list'},//收货地址管理
- ],
- },
- },
- ]
- },
- ]
- export default new Router({
- routes: constantRouterMap
- })
|