From 376ac09a54e8c95190d06bf39f295c890829c103 Mon Sep 17 00:00:00 2001 From: zhangwei <1504152376@qq.com> Date: 星期二, 03 九月 2024 15:43:25 +0800 Subject: [PATCH] 查看工人详情 --- src/pages/wallet/index.vue | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pages/wallet/index.vue b/src/pages/wallet/index.vue index 968d9c2..8cac2d7 100644 --- a/src/pages/wallet/index.vue +++ b/src/pages/wallet/index.vue @@ -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' + } } } }); -- Gitblit v1.9.1