/* * @Author: 小明丶 * @Date: 2019-08-13 18:10:18 * @LastEditors: 小明丶 * @LastEditTime: 2021-01-05 14:58:59 * @Description: */ const oldRouter = [ { path: '/main/productManagement', // 商户-产品管理 name: 'productManagement', component: function(resolve) { require(['../views/old/merchant/productManagement'], resolve); } }, { path: '/main/hb-product', // 花呗通道内产品管理 name: 'hb-product', component: function(resolve) { require(['../views/old/merchant/hb-product'], resolve); } }, ] export default [ ...oldRouter, // 用户中心 { path:"/", name:'login', component:()=>import("@/views/user/login.vue"), meta:{ isLogin:false } }, { path:"/user/reset-pwd", name:'reset-pwd', component:()=>import("@/views/user/reset-pwd.vue") }, { path:"/user/register", //商户注册 name:'register', component:()=>import("@/views/user/register.vue") }, { path:"/user/register-home", //登录页里面的 注册 name:'register-home', component:()=>import("@/views/user/register-home.vue"), meta:{ isLogin:false } }, { path:"/user/forgetpassword", //忘记密码 name:'forgetpassword', component:()=>import("@/views/user/forgetpassword.vue"), meta:{ isLogin:false } }, { path:"/main", component:()=>import("@/views/main/index.vue"), children:[ { path:"home", name:'home', component:()=>import("@/views/main/home.vue"), meta:{ powerId: 100001, } }, { path:"message", name:'message', component:()=>import("@/views/main/message.vue"), meta:{ powerId: 300000, } }, { path:"mine", name:'mine', component:()=>import("@/views/main/mine.vue"), meta:{ powerId: 200000, } }, { path:"approve", name:'approve', component:()=>import("@/views/main/approve.vue"), meta:{ powerId: 100003 } }, { path:"product", name:'product', component:()=>import("@/views/old/store/business-center.vue"), meta:{ powerId: 100006, } }, ] }, { path:"/mine/channel", name:'channel', component:()=>import("@/views/mine/channel/channel.vue") }, { path:"/mine/channel-detail", name:'channel-detail', component:()=>import("@/views/mine/channel/channel-detail.vue") }, { path:"/mine/channel-add", name:'channel-add', component:()=>import("@/views/mine/channel/channel-add.vue") }, { path:"/mine/toggle-identity", name:'toggle-identity', component:()=>import("@/views/mine/toggle-identity.vue") }, { path:"/mine/setting", name:'setting', component:()=>import("@/views/mine/setting/setting.vue") }, // { path:"/mine/setting/merchants-approval", //商户审批 name:'merchants-approval', component:()=>import("@/views/mine/setting/merchants-approval.vue") }, { path:"/product/wxScore-detail", name:'wxScore-detail', component:()=>import("@/views/product/wxScore-detail.vue") }, // 商户管理 { path:"/mine/mer-manager", name:'mer-manager', component:()=>import("@/views/mine/mer/mer-manager.vue") }, { path:"/mine/mer-info", name:'mer-info', component:()=>import("@/views/mine/mer/mer-info.vue") }, { path:"/mine/mer-photo-chose", name:'mer-info', component:()=>import("@/views/mine/mer/mer-photo-chose.vue") }, // 门店管理-路由 { path:"/mine/stores", name:'stores', component:()=>import("@/views/mine/stores/stores.vue") }, { path:"/mine/stores-add", name:'stores-add', component:()=>import("@/views/mine/stores/stores-add.vue") }, { path:"/mine/stores-detail", name:'stores-detail', component:()=>import("@/views/mine/stores/stores-detail.vue") }, { path:"/order/wxScore", name:'order-wxScore', component:()=>import("@/views/order/wxScore.vue") }, //和微分 { path:"/wx-pay-score", name:'store-wxPayScore', component:()=>import("@/views/old/store/wx-pay-score.vue") }, { path:"/wx-test-code", name:'wxTestCode', component:()=>import("@/views/old/store/wx-test-code.vue") }, { path:"/wx-getWxQRCode", name:'wx-getWxQRCode', component:()=>import("@/views/old/store/getWxQRCode.vue") }, { path:"/wx-scoreResult", name:'wx-scoreResult', component:()=>import("@/views/old/store/wx-score-result.vue") }, // 账号管理 - 路由 { path:"/mine/account", name:'account', component:()=>import("@/views/mine/account/account.vue") }, { path:"/mine/account-add", name:'account-add', component:()=>import("@/views/mine/account/account-add.vue") }, { path:"/template/list", name:'template_list', component:()=>import("@/views/template/list.vue") }, // 门店产品管理 { path:"/store/productManage", name:'store_productManage', component:()=>import("@/views/old/store/productManagement.vue") }, { path:"/template/detail", name:'template_detail', component:()=>import("@/views/template/detail.vue") }, { path:"/template/distribute", name:'template_distribute', component:()=>import("@/views/template/distribute.vue") }, //商户资料 { path:"/setting/mer-date", name:'mer-date', component:()=>import("@/views/mine/mer/mer-data.vue") }, { path:'/loginByWx', name:'login-by-wx', component:()=>import("@/views/user/loginByWx.vue"), // meta:{ // isLogin:false, // isOpenId:true // } }, ]