From 0c9b00f333f9baaffa9140fd1808a26e0af8416b Mon Sep 17 00:00:00 2001 From: zhangwei <1504152376@qq.com> Date: 星期四, 05 九月 2024 17:19:07 +0800 Subject: [PATCH] 一些错误更改 --- src/pages/wallet/index.vue | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/pages/wallet/index.vue b/src/pages/wallet/index.vue index 968d9c2..86b197e 100644 --- a/src/pages/wallet/index.vue +++ b/src/pages/wallet/index.vue @@ -11,7 +11,7 @@ </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> @@ -65,13 +65,13 @@ 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' + } } } }); @@ -95,9 +95,9 @@ }, goMoney() { if (this.identity == 'enterprise') { - uni.navigateTo({ - url: '/pages/wallet/withdrawal' - }) + // uni.navigateTo({ + // url: '/pages/wallet/withdrawal' + // }) } else { uni.navigateTo({ url: '/pages/wallet/recharge' -- Gitblit v1.9.1