zhangwei
2024-09-03 376ac09a54e8c95190d06bf39f295c890829c103
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'
                  }
               }
            }
         });