|
@@ -81,6 +81,27 @@ Page({
|
|
|
success(res1) {
|
|
|
log.info('[充值]', '[服务端微信充值]', '[响应]', res1.data);
|
|
|
console.log(res1);
|
|
|
+ if(res1.data.errCodeDes==2 && res1.data.bindingPhone==0 ){
|
|
|
+ wx.hideLoading();
|
|
|
+ wx.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: '您未绑定手机号,请重新登录后自动刷新绑定信息',
|
|
|
+ confirmText: '去登录',
|
|
|
+ showCancel:false,
|
|
|
+ confirmColor:'#00aadd',
|
|
|
+ success: function (res1) {
|
|
|
+ if (res1.confirm) {
|
|
|
+ wx.removeStorageSync('userInfo');
|
|
|
+ wx.removeStorageSync('isLogin');
|
|
|
+ let url = '/pages/login/phone_login/phone_login';
|
|
|
+ wx.redirectTo({
|
|
|
+ url
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
log.info('[充值]', '[微信支付]', '[请求]', {
|
|
|
timeStamp: res1.data.timeStamp,
|
|
|
nonceStr: res1.data.nonceStr,
|