Commit 54a54603 by Sweet Zhang

关注公众号的问题

parent 9a7de056
...@@ -258,17 +258,12 @@ ...@@ -258,17 +258,12 @@
this.isNeedOfficialAccountQrcode = true; this.isNeedOfficialAccountQrcode = true;
return false; return false;
}else{ }else{
if(!uni.getStorageSync('openId')){ this.isNeedOfficialAccountQrcode = false;
this.isNeedOfficialAccountQrcode = true;
}else{
this.isNeedOfficialAccountQrcode = false;
}
} }
if(dataHandling.getQueryString('openId')) { if(dataHandling.getQueryString('openId')) {
uni.setStorageSync('openId',dataHandling.getQueryString('openId')) uni.setStorageSync('openId',dataHandling.getQueryString('openId'))
}else if(!uni.getStorageSync('openId')){ }else if(!uni.getStorageSync('openId')){
api.getWxUserInfo({userApplyType:'1',businessNo:uni.getStorageSync('businessNo')}).then(res=>{ api.getWxUserInfo({userApplyType:'1',businessNo:uni.getStorageSync('businessNo')}).then(res=>{
console.log(res);
if(res['success']){ if(res['success']){
window.location.href = res.data.paymentForm.action; window.location.href = res.data.paymentForm.action;
} }
......
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