| | |
| | | </view> |
| | | <view class="right"> |
| | | <up-button type="warning" size="small" shape="circle" @click="goMoney" |
| | | :text="identity=='enterprise'?'充值':'提现'"></up-button> |
| | | :text="identity=='enterprise'?'':'提现'"></up-button> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | success: function(res) { |
| | | that.identity = res.data |
| | | if (res.data == 'worker') { |
| | | that.balance = that.$common.moneySub(that.userInfo.userWorker.tiXianZonge, that |
| | | .userInfo.userWorker.yiTiXianJine) |
| | | if (that.userInfo.userWorker) { |
| | | that.balance = that.$common.moneySub(that.userInfo.userWorker.tiXianZonge, that.userInfo.userWorker.yiTiXianJine) |
| | | } |
| | | } else { |
| | | console.log(that.identity, that.userInfo.userWorker.tiXianZonge, |
| | | 'userInfo.userWorker.tiXianZonge'); |
| | | that.balance = that.userInfo.userCompany.chongZhiYue ? that.userInfo.userCompany |
| | | .chongZhiYue : '0.00' |
| | | if (that.userInfo.userCompany) { |
| | | that.balance = that.userInfo.userCompany.chongZhiYue ? that.userInfo.userCompany.chongZhiYue : '0.00' |
| | | } |
| | | } |
| | | } |
| | | }); |
| | |
| | | }, |
| | | goMoney() { |
| | | if (this.identity == 'enterprise') { |
| | | uni.navigateTo({ |
| | | url: '/pages/wallet/withdrawal' |
| | | }) |
| | | // uni.navigateTo({ |
| | | // url: '/pages/wallet/withdrawal' |
| | | // }) |
| | | } else { |
| | | uni.navigateTo({ |
| | | url: '/pages/wallet/recharge' |