Showing
1 changed file
with
4 additions
and
4 deletions
| @@ -74,7 +74,7 @@ Page({ | @@ -74,7 +74,7 @@ Page({ | ||
| 74 | purePhoneNumber: data.phone, | 74 | purePhoneNumber: data.phone, |
| 75 | }) | 75 | }) |
| 76 | this.getUserInfo() | 76 | this.getUserInfo() |
| 77 | - this.getUserRechargeInfo(data.phone, '0') | 77 | + this.getUserRechargeInfo(data.phone) |
| 78 | } else { | 78 | } else { |
| 79 | this.getUserInfo() | 79 | this.getUserInfo() |
| 80 | this.setData({ | 80 | this.setData({ |
| @@ -142,7 +142,7 @@ Page({ | @@ -142,7 +142,7 @@ Page({ | ||
| 142 | }) | 142 | }) |
| 143 | }, | 143 | }, |
| 144 | // 获取用户在商家的账户余额 | 144 | // 获取用户在商家的账户余额 |
| 145 | - getUserRechargeInfo(phone, type) { | 145 | + getUserRechargeInfo(phone) { |
| 146 | App.Activity.GetRechargeBalanceByOpenid({ | 146 | App.Activity.GetRechargeBalanceByOpenid({ |
| 147 | openid: getApp().openid, | 147 | openid: getApp().openid, |
| 148 | phone, | 148 | phone, |
| @@ -156,7 +156,7 @@ Page({ | @@ -156,7 +156,7 @@ Page({ | ||
| 156 | myBalance: data.recharge_balance ? (data.recharge_balance * 1).toFixed(2) : '0.00', | 156 | myBalance: data.recharge_balance ? (data.recharge_balance * 1).toFixed(2) : '0.00', |
| 157 | }) | 157 | }) |
| 158 | } else { | 158 | } else { |
| 159 | - if (type == '1') this.createInfoFun(phone) | 159 | + this.createInfoFun(phone) |
| 160 | console.log('用户在商家没有账号'); | 160 | console.log('用户在商家没有账号'); |
| 161 | this.setData({ | 161 | this.setData({ |
| 162 | myBalance: null, | 162 | myBalance: null, |
| @@ -535,7 +535,7 @@ Page({ | @@ -535,7 +535,7 @@ Page({ | ||
| 535 | }) | 535 | }) |
| 536 | this.getUserInfo() | 536 | this.getUserInfo() |
| 537 | this.bindUserPhoneFun(res.data.phone_info.purePhoneNumber) | 537 | this.bindUserPhoneFun(res.data.phone_info.purePhoneNumber) |
| 538 | - this.getUserRechargeInfo(res.data.phone_info.purePhoneNumber, '1') | 538 | + this.getUserRechargeInfo(res.data.phone_info.purePhoneNumber) |
| 539 | } else { | 539 | } else { |
| 540 | this.getUserInfo() | 540 | this.getUserInfo() |
| 541 | util.toast('手机号获取失败!', 'none') | 541 | util.toast('手机号获取失败!', 'none') |
-
Please register or login to post a comment