Commit 95a7298a by 李嘉林

白名单

parent 48d77ffe
......@@ -20,7 +20,7 @@ export default {
// development: { mixid: "iLntd3", "shopid": 3814}, //道可测试2
// development: { mixid: "ssa", "shopid": 2342}, //五粮液uat
development: { mixid: "antgood", "shopid": 67},
production: { "mixid":"xhyxshop", "shopid": 1095 }, // 小工蚁新零售
// production: { "mixid":"xhyxshop", "shopid": 1095 }, // 小工蚁新零售
// production: { "mixid":"AntTechnology", "shopid": 1095 }, // 小工蚁新零售
// production: { "mixid":"qiyeCT", "shopid": 1045 }, // 道可
// production: { "mixid":"SWQ", "shopid": 1641 }, // 麦贝思
......@@ -32,7 +32,7 @@ export default {
// production: { "mixid":"RON", "shopid": 1503 }, // 荣恩
// production: { "mixid":"ant", "shopid": 6 }, // 小工蚁
// production: { "mixid":"MetaSense", "shopid": 1237 }, // 册为
// production: { "mixid":"5BkDRR", "shopid": 1316 }, // lost in echo订货
production: { "mixid":"5BkDRR", "shopid": 1316 }, // lost in echo订货
// production: { "mixid":"CYNZ", "shopid": 1609 }, // 晨语女装
xhyx_uat: { "mixid":"xhyxshop", "shopid": 1 },
xhyx_prod: { "mixid":"xhyxshop", "shopid": 1 },
......
......@@ -218,7 +218,10 @@ wx.onAppRoute(res => {
let whetherToForceLogin = mpApp.globalData.shopInfo && mpApp.globalData.shopInfo.whetherToForceLogin || 0
log.info("wx.onAppRoute", res, mpApp.globalData.shopInfo, whetherToForceLogin, wx.getStorageSync('sessionid'), res.path != "pages/login/main");
console.log(res,mpApp.globalData.shopInfo,whetherToForceLogin,wx.getStorageSync('sessionid'),res.path !="pages/login/main",'---------wx.onAppRoute')
if (whetherToForceLogin == 1 && !wx.getStorageSync('sessionid') && res.path !="pages/login/main") {
let notLoginPage = ['enterpriseCustomerRegistration'];
let notLoginPageFlag = notLoginPage.some(item => res.query.backpath && res.query.backpath.includes(item));
console.log('notLoginPageFlag', notLoginPageFlag);
if (whetherToForceLogin == 1 && !wx.getStorageSync('sessionid') && res.path !="pages/login/main" && !notLoginPageFlag) {
let backUrl = `/pages/home/main`;
const url = `/pages/login/main?back=${encodeURIComponent(
backUrl
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment