|
@@ -107,24 +107,24 @@
|
|
|
}
|
|
|
// #ifdef MP-WEIXIN
|
|
|
if (!this.loding) {
|
|
|
- wx.getUserProfile({
|
|
|
- desc: '用于完善会员资料', // 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写
|
|
|
- success: res => {
|
|
|
- console.log(res, 'res');
|
|
|
- that.userInfo = res;
|
|
|
+ // wx.getUserProfile({
|
|
|
+ // desc: '用于完善会员资料', // 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写
|
|
|
+ // success: res => {
|
|
|
+ // console.log(res, 'res');
|
|
|
+ // that.userInfo = res;
|
|
|
that.loadMp();
|
|
|
- },
|
|
|
- fail: err => {
|
|
|
- console.log(err, 'err');
|
|
|
- that.loding = false;
|
|
|
- that.getLoginCode();
|
|
|
- uni.showToast({
|
|
|
- title: '您拒绝了请求,不能正常使用小程序',
|
|
|
- icon: 'error',
|
|
|
- duration: 2000
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
+ // },
|
|
|
+ // fail: err => {
|
|
|
+ // console.log(err, 'err');
|
|
|
+ // that.loding = false;
|
|
|
+ // that.getLoginCode();
|
|
|
+ // uni.showToast({
|
|
|
+ // title: '您拒绝了请求,不能正常使用小程序',
|
|
|
+ // icon: 'error',
|
|
|
+ // duration: 2000
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ // });
|
|
|
}
|
|
|
// #endif
|
|
|
},
|
|
@@ -168,9 +168,9 @@
|
|
|
});
|
|
|
wechatMpAuth({
|
|
|
code: obj.code,
|
|
|
- avatar: user.userInfo.avatarUrl,
|
|
|
- nickname: user.userInfo.nickName,
|
|
|
- gender: user.userInfo.gender,
|
|
|
+ avatar: '',
|
|
|
+ nickname:'',
|
|
|
+ gender: '',
|
|
|
// #ifndef MP
|
|
|
parent_uid: spread_spid,
|
|
|
// #endif
|