调整为app版本
This commit is contained in:
54
pages.json
54
pages.json
@@ -2,14 +2,12 @@
|
|||||||
"pages": [{
|
"pages": [{
|
||||||
"path": "pages/index/index",
|
"path": "pages/index/index",
|
||||||
"name": "Index",
|
"name": "Index",
|
||||||
"aliasPath": "/",
|
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "发现能量"
|
"navigationBarTitleText": "发现能量"
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
"path": "pages/found/index",
|
"path": "pages/found/index",
|
||||||
"name": "Found",
|
"name": "Found",
|
||||||
"aliasPath": "/found",
|
|
||||||
"auth": true,
|
"auth": true,
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "发现更多"
|
"navigationBarTitleText": "发现更多"
|
||||||
@@ -17,7 +15,6 @@
|
|||||||
}, {
|
}, {
|
||||||
"path": "pages/user/index",
|
"path": "pages/user/index",
|
||||||
"name": "User",
|
"name": "User",
|
||||||
"aliasPath": "/user",
|
|
||||||
"auth": true,
|
"auth": true,
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "节点中心"
|
"navigationBarTitleText": "节点中心"
|
||||||
@@ -25,7 +22,6 @@
|
|||||||
}, {
|
}, {
|
||||||
"path": "pages/user/code",
|
"path": "pages/user/code",
|
||||||
"name": "userCode",
|
"name": "userCode",
|
||||||
"aliasPath": "/user/code",
|
|
||||||
"auth": false,
|
"auth": false,
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "邀请好友"
|
"navigationBarTitleText": "邀请好友"
|
||||||
@@ -33,7 +29,6 @@
|
|||||||
}, {
|
}, {
|
||||||
"path": "pages/user/help",
|
"path": "pages/user/help",
|
||||||
"name": "userHelp",
|
"name": "userHelp",
|
||||||
"aliasPath": "/user/help",
|
|
||||||
"auth": true,
|
"auth": true,
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "帮助中心"
|
"navigationBarTitleText": "帮助中心"
|
||||||
@@ -41,7 +36,6 @@
|
|||||||
}, {
|
}, {
|
||||||
"path": "pages/user/partner",
|
"path": "pages/user/partner",
|
||||||
"name": "userPartner",
|
"name": "userPartner",
|
||||||
"aliasPath": "/user/partner",
|
|
||||||
"auth": true,
|
"auth": true,
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "我的伙伴"
|
"navigationBarTitleText": "我的伙伴"
|
||||||
@@ -49,7 +43,6 @@
|
|||||||
}, {
|
}, {
|
||||||
"path": "pages/user/clause",
|
"path": "pages/user/clause",
|
||||||
"name": "userClause",
|
"name": "userClause",
|
||||||
"aliasPath": "/user/clause",
|
|
||||||
"auth": true,
|
"auth": true,
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "服务条款"
|
"navigationBarTitleText": "服务条款"
|
||||||
@@ -57,7 +50,6 @@
|
|||||||
}, {
|
}, {
|
||||||
"path": "pages/user/followOfficial",
|
"path": "pages/user/followOfficial",
|
||||||
"name": "Official",
|
"name": "Official",
|
||||||
"aliasPath": "/user/followOfficial",
|
|
||||||
"auth": true,
|
"auth": true,
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "关注公众号"
|
"navigationBarTitleText": "关注公众号"
|
||||||
@@ -65,28 +57,24 @@
|
|||||||
}, {
|
}, {
|
||||||
"path": "pages/vip/vip",
|
"path": "pages/vip/vip",
|
||||||
"name": "vipIndex",
|
"name": "vipIndex",
|
||||||
"aliasPath": "/vip",
|
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "开通节点"
|
"navigationBarTitleText": "开通节点"
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
"path": "pages/vip/agree",
|
"path": "pages/vip/agree",
|
||||||
"name": "vipAgree",
|
"name": "vipAgree",
|
||||||
"aliasPath": "/vip/agree",
|
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "用户协议"
|
"navigationBarTitleText": "用户协议"
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
"path": "pages/vip/examine",
|
"path": "pages/vip/examine",
|
||||||
"name": "Examine",
|
"name": "Examine",
|
||||||
"aliasPath": "/vip/examine",
|
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "提交成功"
|
"navigationBarTitleText": "提交成功"
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
"path": "pages/setting/setting",
|
"path": "pages/setting/setting",
|
||||||
"name": "setting",
|
"name": "setting",
|
||||||
"aliasPath": "/setting",
|
|
||||||
"auth": true,
|
"auth": true,
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "设置中心"
|
"navigationBarTitleText": "设置中心"
|
||||||
@@ -94,84 +82,72 @@
|
|||||||
}, {
|
}, {
|
||||||
"path": "pages/goods/management",
|
"path": "pages/goods/management",
|
||||||
"name": "goodsManagement",
|
"name": "goodsManagement",
|
||||||
"aliasPath": "/goods/management",
|
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "商品权证管理"
|
"navigationBarTitleText": "商品权证管理"
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
"path": "pages/goods/addClassify",
|
"path": "pages/goods/addClassify",
|
||||||
"name": "goodsaddClassify",
|
"name": "goodsaddClassify",
|
||||||
"aliasPath": "/goods/add-classify",
|
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "发布商品类目"
|
"navigationBarTitleText": "发布商品类目"
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
"path": "pages/goods/add",
|
"path": "pages/goods/add",
|
||||||
"name": "goodsAdd",
|
"name": "goodsAdd",
|
||||||
"aliasPath": "/goods/add",
|
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "商品权证创建"
|
"navigationBarTitleText": "商品权证创建"
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
"path": "pages/goods/goodsAuth",
|
"path": "pages/goods/goodsAuth",
|
||||||
"name": "goodsAddAuth",
|
"name": "goodsAddAuth",
|
||||||
"aliasPath": "/goods/goods-auth",
|
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "商品权证认证"
|
"navigationBarTitleText": "商品权证认证"
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
"path": "pages/coupons/management",
|
"path": "pages/coupons/management",
|
||||||
"name": "couponsManagement",
|
"name": "couponsManagement",
|
||||||
"aliasPath": "/coupons/management",
|
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "创建优惠券"
|
"navigationBarTitleText": "创建优惠券"
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
"path": "pages/coupons/add",
|
"path": "pages/coupons/add",
|
||||||
"name": "couponsAdd",
|
"name": "couponsAdd",
|
||||||
"aliasPath": "/coupons/add",
|
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "创建优惠券"
|
"navigationBarTitleText": "创建优惠券"
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
"path": "pages/coupons/magDetails",
|
"path": "pages/coupons/magDetails",
|
||||||
"name": "couponsDetails",
|
"name": "couponsDetails",
|
||||||
"aliasPath": "/coupons/mag-details",
|
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "优惠券详情"
|
"navigationBarTitleText": "优惠券详情"
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
"path": "pages/coupons/selectGoods",
|
"path": "pages/coupons/selectGoods",
|
||||||
"name": "couponsSelectGoods",
|
"name": "couponsSelectGoods",
|
||||||
"aliasPath": "/coupons/select-goods",
|
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "关联产品"
|
"navigationBarTitleText": "关联产品"
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
"path": "pages/login/login",
|
"path": "pages/login/login",
|
||||||
"name": "Login",
|
"name": "Login",
|
||||||
"aliasPath": "/login",
|
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "登录"
|
"navigationBarTitleText": "登录"
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
"path": "pages/login/guide",
|
"path": "pages/login/guide",
|
||||||
"name": "loginGuide",
|
"name": "loginGuide",
|
||||||
"aliasPath": "/login/guide",
|
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "引导页"
|
"navigationBarTitleText": "引导页"
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
"path": "pages/login/agreement",
|
"path": "pages/login/agreement",
|
||||||
"name": "agreement",
|
"name": "agreement",
|
||||||
"aliasPath": "/login/agreement",
|
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "用户隐藏协议"
|
"navigationBarTitleText": "用户隐藏协议"
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
"path": "pages/certification/personal",
|
"path": "pages/certification/personal",
|
||||||
"name": "Personal",
|
"name": "Personal",
|
||||||
"aliasPath": "/personal",
|
|
||||||
"auth": true,
|
"auth": true,
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "个人认证"
|
"navigationBarTitleText": "个人认证"
|
||||||
@@ -179,7 +155,6 @@
|
|||||||
}, {
|
}, {
|
||||||
"path": "pages/setting/aboutUs",
|
"path": "pages/setting/aboutUs",
|
||||||
"name": "aboutUs",
|
"name": "aboutUs",
|
||||||
"aliasPath": "/setting/about-us",
|
|
||||||
"auth": true,
|
"auth": true,
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "关于我们"
|
"navigationBarTitleText": "关于我们"
|
||||||
@@ -187,7 +162,6 @@
|
|||||||
}, {
|
}, {
|
||||||
"path": "pages/company/approve",
|
"path": "pages/company/approve",
|
||||||
"name": "companyApprove",
|
"name": "companyApprove",
|
||||||
"aliasPath": "/company/approve",
|
|
||||||
"auth": true,
|
"auth": true,
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "企业认证"
|
"navigationBarTitleText": "企业认证"
|
||||||
@@ -195,7 +169,6 @@
|
|||||||
}, {
|
}, {
|
||||||
"path": "pages/news/index",
|
"path": "pages/news/index",
|
||||||
"name": "news",
|
"name": "news",
|
||||||
"aliasPath": "/news/index",
|
|
||||||
"auth": true,
|
"auth": true,
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "消息中心"
|
"navigationBarTitleText": "消息中心"
|
||||||
@@ -203,7 +176,6 @@
|
|||||||
}, {
|
}, {
|
||||||
"path": "pages/news/detail",
|
"path": "pages/news/detail",
|
||||||
"name": "newsDetail",
|
"name": "newsDetail",
|
||||||
"aliasPath": "/news/detail",
|
|
||||||
"auth": true,
|
"auth": true,
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "消息列表"
|
"navigationBarTitleText": "消息列表"
|
||||||
@@ -211,7 +183,6 @@
|
|||||||
}, {
|
}, {
|
||||||
"path": "pages/wallet/property",
|
"path": "pages/wallet/property",
|
||||||
"name": "walletProperty",
|
"name": "walletProperty",
|
||||||
"aliasPath": "/wallet/property",
|
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "能量钱包",
|
"navigationBarTitleText": "能量钱包",
|
||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": false,
|
||||||
@@ -220,7 +191,6 @@
|
|||||||
}, {
|
}, {
|
||||||
"path": "pages/wallet/extract",
|
"path": "pages/wallet/extract",
|
||||||
"name": "Extract",
|
"name": "Extract",
|
||||||
"aliasPath": "/wallet/extract",
|
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "提现能量",
|
"navigationBarTitleText": "提现能量",
|
||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": false,
|
||||||
@@ -230,7 +200,6 @@
|
|||||||
}, {
|
}, {
|
||||||
"path": "pages/verification/index",
|
"path": "pages/verification/index",
|
||||||
"name": "verificationIndex",
|
"name": "verificationIndex",
|
||||||
"aliasPath": "/verification/index",
|
|
||||||
"auth": true,
|
"auth": true,
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "扫码核销"
|
"navigationBarTitleText": "扫码核销"
|
||||||
@@ -238,7 +207,6 @@
|
|||||||
}, {
|
}, {
|
||||||
"path": "pages/verification/history",
|
"path": "pages/verification/history",
|
||||||
"name": "verificationHistory",
|
"name": "verificationHistory",
|
||||||
"aliasPath": "/verification/history",
|
|
||||||
"auth": true,
|
"auth": true,
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "核销记录"
|
"navigationBarTitleText": "核销记录"
|
||||||
@@ -246,7 +214,6 @@
|
|||||||
}, {
|
}, {
|
||||||
"path": "pages/shop/lists",
|
"path": "pages/shop/lists",
|
||||||
"name": "shopLists",
|
"name": "shopLists",
|
||||||
"aliasPath": "/shop/lists",
|
|
||||||
"auth": true,
|
"auth": true,
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "部门/门店"
|
"navigationBarTitleText": "部门/门店"
|
||||||
@@ -254,7 +221,6 @@
|
|||||||
}, {
|
}, {
|
||||||
"path": "pages/shop/create",
|
"path": "pages/shop/create",
|
||||||
"name": "shopCreate",
|
"name": "shopCreate",
|
||||||
"aliasPath": "/shop/create",
|
|
||||||
"auth": true,
|
"auth": true,
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "创建部门/门店"
|
"navigationBarTitleText": "创建部门/门店"
|
||||||
@@ -262,7 +228,6 @@
|
|||||||
}, {
|
}, {
|
||||||
"path": "pages/employees/list",
|
"path": "pages/employees/list",
|
||||||
"name": "employeesList",
|
"name": "employeesList",
|
||||||
"aliasPath": "/employees/list",
|
|
||||||
"auth": true,
|
"auth": true,
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "员工管理"
|
"navigationBarTitleText": "员工管理"
|
||||||
@@ -270,7 +235,6 @@
|
|||||||
}, {
|
}, {
|
||||||
"path": "pages/employees/add",
|
"path": "pages/employees/add",
|
||||||
"name": "employeesAdd",
|
"name": "employeesAdd",
|
||||||
"aliasPath": "/employees/add",
|
|
||||||
"auth": true,
|
"auth": true,
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "添加员工"
|
"navigationBarTitleText": "添加员工"
|
||||||
@@ -278,7 +242,6 @@
|
|||||||
}, {
|
}, {
|
||||||
"path": "pages/instrument/Spread",
|
"path": "pages/instrument/Spread",
|
||||||
"name": "instrumentSpread",
|
"name": "instrumentSpread",
|
||||||
"aliasPath": "/instrument/spread",
|
|
||||||
"auth": true,
|
"auth": true,
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "营销推广码"
|
"navigationBarTitleText": "营销推广码"
|
||||||
@@ -286,7 +249,6 @@
|
|||||||
}, {
|
}, {
|
||||||
"path": "pages/instrument/basics",
|
"path": "pages/instrument/basics",
|
||||||
"name": "instrumentBasics",
|
"name": "instrumentBasics",
|
||||||
"aliasPath": "/instrument/basics",
|
|
||||||
"auth": true,
|
"auth": true,
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "基础信息"
|
"navigationBarTitleText": "基础信息"
|
||||||
@@ -294,7 +256,6 @@
|
|||||||
}, {
|
}, {
|
||||||
"path": "pages/wallet/fragment",
|
"path": "pages/wallet/fragment",
|
||||||
"name": "Fragment",
|
"name": "Fragment",
|
||||||
"aliasPath": "/wallet/fragment",
|
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "能量碎片记录",
|
"navigationBarTitleText": "能量碎片记录",
|
||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": false,
|
||||||
@@ -310,8 +271,7 @@
|
|||||||
"navigationBarBackgroundColor": "#774ffd",
|
"navigationBarBackgroundColor": "#774ffd",
|
||||||
"navigationBarTextStyle": "white"
|
"navigationBarTextStyle": "white"
|
||||||
},
|
},
|
||||||
"name": "addBank",
|
"name": "addBank"
|
||||||
"aliasPath": "/wallet/add-bank"
|
|
||||||
}, {
|
}, {
|
||||||
"path": "pages/wallet/bankList",
|
"path": "pages/wallet/bankList",
|
||||||
"style": {
|
"style": {
|
||||||
@@ -320,8 +280,7 @@
|
|||||||
"navigationBarBackgroundColor": "#774ffd",
|
"navigationBarBackgroundColor": "#774ffd",
|
||||||
"navigationBarTextStyle": "white"
|
"navigationBarTextStyle": "white"
|
||||||
},
|
},
|
||||||
"name": "bankList",
|
"name": "bankList"
|
||||||
"aliasPath": "/wallet/bank/list"
|
|
||||||
}, {
|
}, {
|
||||||
"path": "pages/wallet/withdrawList",
|
"path": "pages/wallet/withdrawList",
|
||||||
"style": {
|
"style": {
|
||||||
@@ -330,20 +289,17 @@
|
|||||||
"navigationBarBackgroundColor": "#774ffd",
|
"navigationBarBackgroundColor": "#774ffd",
|
||||||
"navigationBarTextStyle": "white"
|
"navigationBarTextStyle": "white"
|
||||||
},
|
},
|
||||||
"name": "withdrawList",
|
"name": "withdrawList"
|
||||||
"aliasPath": "/wallet/withdraw/list"
|
|
||||||
}, {
|
}, {
|
||||||
"path" : "pages/wxAuth/wxAuth",
|
"path" : "pages/wxAuth/wxAuth",
|
||||||
"name" : "wxAuth",
|
"name" : "wxAuth"
|
||||||
"aliasPath": "/wechat-auth"
|
|
||||||
},{
|
},{
|
||||||
"path" : "pages/clearOpen/clearOpen",
|
"path" : "pages/clearOpen/clearOpen",
|
||||||
"style" : {
|
"style" : {
|
||||||
"navigationBarTitleText": "提现记录",
|
"navigationBarTitleText": "提现记录",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
},
|
},
|
||||||
"name": "clearOpen",
|
"name": "clearOpen"
|
||||||
"aliasPath": "/inside/clear-open"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"globalStyle": {
|
"globalStyle": {
|
||||||
|
|||||||
@@ -68,11 +68,10 @@
|
|||||||
parent_id : this.parentId
|
parent_id : this.parentId
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.$store.commit('setToken', res.token_type + ' ' + res.access_token)
|
this.$store.commit('setToken', res.token_type + ' ' + res.access_token)
|
||||||
|
|
||||||
if(this.$Route.toName){
|
if(this.$Route.toName){
|
||||||
this.$Router.back()
|
this.$Router.back()
|
||||||
}else{
|
}else{
|
||||||
this.$Router.replace({name: 'Index'})
|
this.$Router.replaceAll({name: 'Index'})
|
||||||
}
|
}
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|||||||
@@ -282,7 +282,7 @@
|
|||||||
},
|
},
|
||||||
loginOut() {
|
loginOut() {
|
||||||
this.$store.commit('setToken', '')
|
this.$store.commit('setToken', '')
|
||||||
this.$Router.push({name: 'Index'})
|
this.$Router.replaceAll({name: 'Index'})
|
||||||
},
|
},
|
||||||
// 上传头像
|
// 上传头像
|
||||||
updImgs(type) {
|
updImgs(type) {
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
<image class="customerClose" src="/static/user/user-customer-close.png" mode="aspectFill" @click="custEject"></image>
|
<image class="customerClose" src="/static/user/user-customer-close.png" mode="aspectFill" @click="custEject"></image>
|
||||||
</view>
|
</view>
|
||||||
<!-- 专属客服弹出 end -->
|
<!-- 专属客服弹出 end -->
|
||||||
|
|
||||||
<!-- 消息列表弹出 start -->
|
<!-- 消息列表弹出 start -->
|
||||||
<view class="newBack" v-if="newState"></view>
|
<view class="newBack" v-if="newState"></view>
|
||||||
<view class="newCont" v-if="newState">
|
<view class="newCont" v-if="newState">
|
||||||
@@ -644,6 +643,7 @@ export default {
|
|||||||
height: 334px;
|
height: 334px;
|
||||||
// user工具
|
// user工具
|
||||||
.user-tool {
|
.user-tool {
|
||||||
|
padding-top: 200rpx;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
.user-tool-name {
|
.user-tool-name {
|
||||||
|
|||||||
@@ -23,16 +23,12 @@ const router = createRouter({
|
|||||||
// 全局路由前置守卫
|
// 全局路由前置守卫
|
||||||
router.beforeEach((to, from, next) => {
|
router.beforeEach((to, from, next) => {
|
||||||
const token = store.getters.getToken || uni.getStorageSync('token')
|
const token = store.getters.getToken || uni.getStorageSync('token')
|
||||||
// 检查是否需要微信授权
|
|
||||||
if(store.getters.getCode === '' && to.name != 'wxAuth'){
|
|
||||||
next({
|
|
||||||
name: 'wxAuth'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
// 检查是否需要登录
|
// 检查是否需要登录
|
||||||
if(to.auth && token === ''){
|
if(to.auth && token === ''){
|
||||||
next({
|
next({
|
||||||
name: 'Login',
|
name: 'Login',
|
||||||
|
NAVTYPE: 'push',
|
||||||
params: {
|
params: {
|
||||||
toName: to.name
|
toName: to.name
|
||||||
}
|
}
|
||||||
|
|||||||
8
unpackage/dist/dev/app-plus/app-service.js
vendored
8
unpackage/dist/dev/app-plus/app-service.js
vendored
File diff suppressed because one or more lines are too long
2
unpackage/dist/dev/app-plus/app-view.js
vendored
2
unpackage/dist/dev/app-plus/app-view.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user