|
...
|
...
|
@@ -74,7 +74,7 @@ Page({ |
|
|
|
purePhoneNumber: data.phone,
|
|
|
|
})
|
|
|
|
this.getUserInfo()
|
|
|
|
this.getUserRechargeInfo(data.phone, '0')
|
|
|
|
this.getUserRechargeInfo(data.phone)
|
|
|
|
} else {
|
|
|
|
this.getUserInfo()
|
|
|
|
this.setData({
|
|
...
|
...
|
@@ -142,7 +142,7 @@ Page({ |
|
|
|
})
|
|
|
|
},
|
|
|
|
// 获取用户在商家的账户余额
|
|
|
|
getUserRechargeInfo(phone, type) {
|
|
|
|
getUserRechargeInfo(phone) {
|
|
|
|
App.Activity.GetRechargeBalanceByOpenid({
|
|
|
|
openid: getApp().openid,
|
|
|
|
phone,
|
|
...
|
...
|
@@ -156,7 +156,7 @@ Page({ |
|
|
|
myBalance: data.recharge_balance ? (data.recharge_balance * 1).toFixed(2) : '0.00',
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
if (type == '1') this.createInfoFun(phone)
|
|
|
|
this.createInfoFun(phone)
|
|
|
|
console.log('用户在商家没有账号');
|
|
|
|
this.setData({
|
|
|
|
myBalance: null,
|
|
...
|
...
|
@@ -535,7 +535,7 @@ Page({ |
|
|
|
})
|
|
|
|
this.getUserInfo()
|
|
|
|
this.bindUserPhoneFun(res.data.phone_info.purePhoneNumber)
|
|
|
|
this.getUserRechargeInfo(res.data.phone_info.purePhoneNumber, '1')
|
|
|
|
this.getUserRechargeInfo(res.data.phone_info.purePhoneNumber)
|
|
|
|
} else {
|
|
|
|
this.getUserInfo()
|
|
|
|
util.toast('手机号获取失败!', 'none')
|
...
|
...
|
|