Commit 2658e874 by 谢中龙

修改企业微信判断位置

parent 32c46fc2
......@@ -12,10 +12,12 @@ let isPlusVip = false
App({
onLaunch: function (e) {
console.log('onLaunch---',e);
// "navigationStyle": "custom"
// 默认 false
wx.setStorageSync('reLoginErr', false)
try {
this.isFromQiyeConsoleIn(e);
this.checkForUpdate();
let res = wx.getSystemInfoSync(); // 获取当前运行环境
config.pixelRate = res.windowWidth / 750;
......@@ -65,19 +67,21 @@ App({
// 新版本下载失败
})
},
onShow: function (options = {}) {
//判断是不是从企业微信控制台点击进来的
isFromQiyeConsoleIn(options){
console.log('场景值1 ========', options.scene)
let scene = wx.getLaunchOptionsSync().scene;
console.log('场景值2 ========',scene)
console.log('场景值2 ========', scene)
//判断是不是在企业微信中通过工作台打开的
if (options.scene == 1119 || scene == 1119){
if (options.scene == 1119 || scene == 1119) {
wx.redirectTo({
url: '/shoppingGuid/page/pages/welcomGuider/welcomGuider',
});
return ;
return;
}
},
onShow: function (options = {}) {
const baseUserInfo = wx.getStorageSync('_baseUserInfo')
// 获取当前会员是否是体验者
const { member } = baseUserInfo
......
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