| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546 |
- 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: '控制台',
- breadcrumb: [
- {title: '首页', path: '/dashboard/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: '报单列表',
- breadcrumb: [
- {title: '首页', path: '/dashboard/index'},
- {title: '商城管理', path: '/shop/dec-order-list'},
- ],
- },
- },
- {
- path: '/shop/order-list',
- component: _import('shop/order-list'),
- name: 'shop_order-list',
- meta: {
- title: '订单列表',
- breadcrumb: [
- {title: '首页', path: '/dashboard/index'},
- {title: '商城管理', path: '/shop/dec-order-list'},
- ],
- },
- },
- {
- path: '/shop/index',
- component: _import('shop/index'),
- name: 'shop_index',
- meta: {
- title: '商品列表',
- breadcrumb: [
- {title: '首页', path: '/dashboard/index'},
- {title: '商城管理', path: '/shop/dec-order-list'},
- ],
- },
- },
- {
- path: '/shop/order',
- component: _import('shop/order'),
- name: 'shop_order',
- meta: {
- title: '商品结算',
- breadcrumb: [
- {title: '首页', path: '/dashboard/index'},
- {title: '商城管理', path: '/shop/dec-order-list'}
- ],
- },
- },
- {
- path: '/shop/goods-detail/:id',
- component: _import('shop/goods-detail'),
- name: 'shop_goods-detail',
- meta: {
- title: '商品详情',
- breadcrumb: [
- {title: '首页', path: '/dashboard/index'},
- {title: '商城管理', path: '/shop/dec-order-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: '个人资料',
- breadcrumb: [
- {title: '首页', path: '/dashboard/index'},
- {title: '会员管理', path: '/user/index'},
- ],
- },
- },
- {
- path: '/user/password',
- component: _import('user/password'),
- name: 'user_password',
- meta: {
- title: '重置密码',
- breadcrumb: [
- {title: '首页', path: '/dashboard/index'},
- {title: '会员管理', path: '/user/index'},
- ],
- },
- },
- {
- path: '/user/id-card',
- component: _import('user/id-card'),
- name: 'user_id-card',
- meta: {
- title: '上传身份证',
- breadcrumb: [
- {title: '首页', path: '/dashboard/index'},
- {title: '会员管理', path: '/user/index'},
- ],
- },
- },
- {
- path: '/user/rec-user',
- component: _import('user/rec-user'),
- name: 'user_rec-user',
- meta: {
- title: '开拓会员列表',
- breadcrumb: [
- {title: '首页', path: '/dashboard/index'},
- {title: '会员管理', path: '/user/index'},
- ],
- },
- },
- {
- path: '/user/bind',
- component: _import('user/bind'),
- name: 'user_bind',
- meta: {
- title: '点位绑定列表',
- breadcrumb: [
- {title: '首页', path: '/dashboard/index'},
- {title: '会员管理', path: '/user/index'},
- ],
- },
- },
- {
- path: '/user/bind-edit/:id',
- component: _import('user/bind-edit'),
- name: 'user_bind-edit',
- meta: {
- title: '点位绑定编辑',
- highLight: '/user/bind',
- breadcrumb: [
- {title: '首页', path: '/dashboard/index'},
- {title: '会员管理', path: '/user/index'},
- {title: '点位绑定列表', path: '/user/bind'},
- ],
- },
- },
- {
- path: '/user/dec',
- component: _import('user/dec'),
- name: 'user_dec',
- meta: {
- title: '报单管理',
- breadcrumb: [
- {title: '首页', path: '/dashboard/index'},
- {title: '会员管理', path: '/user/index'},
- ],
- },
- },
- ]
- },
- {
- path: '/atlas',
- component: layout,
- redirect: '/atlas/network',
- children: [
- {
- path: '/atlas/network',
- component: _import('atlas/network'),
- name: 'atlas_network',
- meta: {
- title: '安置网络',
- breadcrumb: [
- {title: '首页', path: '/dashboard/index'},
- {title: '网络图谱', path: '/atlas/network'},
- ],
- },
- },
- ]
- },
- {
- path: '/bonus',
- component: layout,
- redirect: '/bonus/index',
- children: [
- {
- path: '/bonus/index',
- component: _import('bonus/index'),
- name: 'bonus_index',
- meta: {
- title: '我的账户',
- breadcrumb: [
- {title: '首页', path: '/dashboard/index'},
- {title: '奖金管理', path: '/bonus/index'},
- ],
- },
- },
- {
- path: '/bonus/new',
- component: _import('bonus/new'),
- name: 'bonus_new',
- meta: {
- title: '最新奖金',
- breadcrumb: [
- {title: '首页', path: '/dashboard/index'},
- {title: '奖金管理', path: '/bonus/index'},
- ],
- },
- },
- {
- path: '/bonus/other',
- component: _import('bonus/other'),
- name: 'bonus_other',
- meta: {
- title: '往期奖金',
- breadcrumb: [
- {title: '首页', path: '/dashboard/index'},
- {title: '奖金管理', path: '/bonus/index'},
- ],
- },
- },
- {
- path: '/bonus/real-time-perf',
- component: _import('bonus/real-time-perf'),
- name: 'bonus_real-time-perf',
- meta: {
- title: '实时业绩',
- breadcrumb: [
- {title: '首页', path: '/dashboard/index'},
- {title: '奖金管理', path: '/bonus/index'},
- ],
- },
- },
- {
- path: '/bonus/fc-point',
- component: _import('bonus/fc-point'),
- name: 'bonus_fc-point',
- meta: {
- title: '房产积分',
- breadcrumb: [
- {title: '首页', path: '/dashboard/index'},
- {title: '奖金管理', path: '/bonus/index'},
- ],
- },
- },
- {
- path: '/bonus/teams',
- component: _import('bonus/teams'),
- name: 'bonus_teams',
- meta: {
- title: '团队查询',
- breadcrumb: [
- {title: '首页', path: '/dashboard/index'},
- {title: '奖金管理', path: '/bonus/index'},
- ],
- },
- },
- ]
- },
- {
- path: '/article',
- component: layout,
- redirect: '/article/list',
- children: [
- {
- path: '/article/list/:cid',
- component: _import('article/list'),
- name: 'article_list',
- meta: {
- title: '文章列表',
- breadcrumb: [
- {title: '首页', path: '/dashboard/index'},
- {title: '文章管理', path: '/article/list'},
- ],
- },
- },
- {
- path: '/article/detail/:id',
- component: _import('article/detail'),
- name: 'article_detail',
- meta: {
- title: '文章详情',
- breadcrumb: [
- {title: '首页', path: '/dashboard/index'},
- {title: '文章管理', 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: '首页', path: '/dashboard/index'},
- {title: '站内信', path: '/message/list'},
- ],
- },
- },
- {
- path: '/message/detail/:id',
- component: _import('message/detail'),
- name: 'message_detail',
- meta: {
- title: '站内信详情',
- breadcrumb: [
- {title: '首页', 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: '首页', path: '/dashboard/index'},
- {title: '财务管理', path: '/finance/withdraw'},
- ],
- },
- },
- {
- path: '/finance/withdraw',
- component: _import('finance/withdraw'),
- name: 'finance_withdraw',
- meta: {
- title: '提现明细',
- breadcrumb: [
- {title: '首页', path: '/dashboard/index'},
- {title: '财务管理', path: '/finance/index'},
- ],
- },
- },
- {
- path: '/finance/withdraw-add',
- component: _import('finance/withdraw-add'),
- name: 'finance_withdraw-add',
- meta: {
- title: '我要提现',
- highLight: '/finance/withdraw',
- breadcrumb: [
- {title: '首页', path: '/dashboard/index'},
- {title: '财务管理', path: '/finance/index'},
- {title: '提现明细', path: '/finance/withdraw'},
- ],
- },
- },
- {
- path: '/finance/dec-list',
- component: _import('finance/dec-list'),
- name: 'finance_dec-list',
- meta: {
- title: '报单订货单列表',
- breadcrumb: [
- {title: '首页', path: '/dashboard/index'},
- {title: '财务管理', path: '/finance/index'},
- ],
- },
- },
- {
- path: '/finance/transfer-list',
- component: _import('finance/transfer-list'),
- name: 'finance_transfer-list',
- meta: {
- title: '转账记录',
- breadcrumb: [
- {title: '首页', path: '/dashboard/index'},
- {title: '财务管理', path: '/finance/index'},
- ],
- },
- },
- {
- path: '/finance/transfer-add',
- component: _import('finance/transfer-add'),
- name: 'finance_transfer-add',
- meta: {
- title: '我要转账',
- highLight: '/finance/transfer-list',
- breadcrumb: [
- {title: '首页', path: '/dashboard/index'},
- {title: '财务管理', path: '/finance/index'},
- {title: '转账记录', path: '/finance/transfer-list'},
- ],
- },
- },
- {
- path: '/finance/recharge',
- component: _import('finance/recharge'),
- name: 'finance_recharge',
- meta: {
- title: '充值明细',
- breadcrumb: [
- {title: '首页', path: '/dashboard/index'},
- {title: '财务管理', path: '/finance/index'},
- ],
- },
- },
- {
- path: '/finance/recharge-add',
- component: _import('finance/recharge-add'),
- name: 'finance_recharge-add',
- meta: {
- title: '我要充值',
- highLight: '/finance/recharge',
- breadcrumb: [
- {title: '首页', path: '/dashboard/index'},
- {title: '财务管理', path: '/finance/index'},
- {title: '提现明细', path: '/finance/withdraw'},
- ],
- },
- },
- ]
- },
- {
- 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: '收货地址管理',
- breadcrumb: [
- {title: '首页', path: '/dashboard/index'},
- {title: '设置', path: '/config/base'},
- ],
- },
- },
- {
- path: '/config/receive-address-add',
- component: _import('config/receive-address-edit'),
- name: 'config_receive-address-add',
- meta: {
- title: '添加收货地址',
- highLight: '/config/receive-address-list',
- breadcrumb: [
- {title: '首页', path: '/dashboard/index'},
- {title: '设置', path: '/config/base'},
- {title: '收货地址管理', path: '/config/receive-address-list'},
- ],
- },
- },
- {
- path: '/config/receive-address-edit/:id',
- component: _import('config/receive-address-edit'),
- name: 'config_receive-address-edit',
- meta: {
- title: '编辑收货地址',
- highLight: '/config/receive-address-list',
- breadcrumb: [
- {title: '首页', path: '/dashboard/index'},
- {title: '设置', path: '/config/base'},
- {title: '收货地址管理', path: '/config/receive-address-list'},
- ],
- },
- },
- ]
- },
- ]
- export default new Router({
- routes: constantRouterMap
- })
|