|
@@ -36,13 +36,14 @@ App({
|
|
|
},
|
|
|
globalData: {
|
|
|
userInfo: null,
|
|
|
+ noShow: false,
|
|
|
|
|
|
- base_url: "https://api.overseasdragon.com.cn",
|
|
|
- base_img_url: "https://smdd.overseasdragon.com.cn",
|
|
|
+ // base_url: "https://api.overseasdragon.com.cn",
|
|
|
+ // base_img_url: "https://smdd.overseasdragon.com.cn",
|
|
|
// base_img_url:"https://smdd.overseasdragon.com.cn",
|
|
|
// base_url: "https://member.overseasdragon.com.cn",
|
|
|
- bloc_code: "BAIXIONG",
|
|
|
- header: { 'content-type': 'application/json' },
|
|
|
+ // bloc_code: "BAIXIONG",
|
|
|
+ // header: { 'content-type': 'application/json' },
|
|
|
|
|
|
},
|
|
|
wxLogin:async function(data){
|
|
@@ -100,6 +101,7 @@ App({
|
|
|
}
|
|
|
},
|
|
|
isAuth: async function(){
|
|
|
+ let userInfo = wx.getStorageSync({key: 'userInfo'})
|
|
|
console.log(this.globalData.userInfo);
|
|
|
if (!this.globalData.userInfo){
|
|
|
console.log('您还没有授权');
|
|
@@ -107,12 +109,12 @@ App({
|
|
|
}
|
|
|
return true;
|
|
|
|
|
|
- const auth = await wxp.getSetting()
|
|
|
- console.log(auth);
|
|
|
- if (!auth.authSetting['scope.userInfo']){
|
|
|
- console.log('您还没有授权');
|
|
|
- return false
|
|
|
- }
|
|
|
- return true
|
|
|
+ // const auth = await wxp.getSetting()
|
|
|
+ // console.log(auth);
|
|
|
+ // if (!auth.authSetting['scope.userInfo']){
|
|
|
+ // console.log('您还没有授权');
|
|
|
+ // return false
|
|
|
+ // }
|
|
|
+ // return true
|
|
|
}
|
|
|
})
|