账户余额

This commit is contained in:
zzyuan 2025-05-28 14:13:57 +08:00
parent 50edbe9323
commit 3efdac97b1
3 changed files with 8 additions and 8 deletions

View File

@ -50,7 +50,7 @@
<view class="box-title">个人余额</view>
<view class="box-subtitle">
<text style="font-size: 24rpx;color: #333;margin-right: 6rpx;">¥</text>
<text style="font-size: 40rpx;font-weight: 700;color: #FF6816;">{{ (walletBal/100).toFixed(2) }}</text>
<text style="font-size: 40rpx;font-weight: 700;color: #FF6816;">{{ (accountAllBal/100).toFixed(2) }}</text>
<text style="font-size: 24rpx;color: #333;margin-left: 6rpx;"></text>
</view>
</view>
@ -119,7 +119,7 @@ export default {
'https://cdn.uviewui.com/uview/swiper/swiper2.png',
'https://cdn.uviewui.com/uview/swiper/swiper1.png'
],
walletBal: 0 ,//
accountAllBal: 0 ,//
messageNumber:0,//
showNotice:false,
noticeData:{},
@ -203,7 +203,7 @@ export default {
"userId": uni.getStorageSync('userId'),
}
const { data: res } = await getWalletBalanceAPI(param)
this.walletBal = res.accAllBal
this.accountAllBal = res.accountAllBal
// console.log(res, '--')
},
//

View File

@ -25,7 +25,7 @@
<view style="width: 100%;display: flex;height: 10vh;align-items: center;">
<view style="display: flex;align-items: center;width: 50%;height: 100%;justify-content: center;">
<text style="font-size: 40rpx;color: #333;margin-right: 6rpx;">¥</text>
<text style="font-size: 48rpx;font-weight: 700;color: #FF6816;">{{ (walletBal/100).toFixed(2) }}</text>
<text style="font-size: 48rpx;font-weight: 700;color: #FF6816;">{{ (accountAllBal/100).toFixed(2) }}</text>
<text style="font-size: 28rpx;color: #333;margin-left: 6rpx;"></text>
</view>
<view style="border: 1px solid #ccc;height: 60%;"></view>
@ -122,11 +122,11 @@
name: '查看头像',
val: 2
}],
walletBal: 0 ,//
accountAllBal: 0 ,//
}
},
onLoad() {
this.getWalletBalance()
// this.getWalletBalance()
},
methods: {
//
@ -135,7 +135,7 @@
"userId": uni.getStorageSync('userId'),
}
const { data: res } = await getWalletBalanceAPI(param)
this.walletBal = res.accAllBal
this.accountAllBal = res.accountAllBal
console.log(res, '余额信息--')
},

View File

@ -5,7 +5,7 @@
<view class="content">
<view class="top-cont">
<view>总余额()</view>
<view class="acc-bal">{{ (balanceInfo.accAllBal/100).toFixed(2) }}</view>
<view class="acc-bal">{{ (balanceInfo.accountAllBal/100).toFixed(2) }}</view>
<view class="money">
<view class="money-item">
<view>个人钱包</view>