账户余额
This commit is contained in:
parent
50edbe9323
commit
3efdac97b1
|
|
@ -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, '余额信息--')
|
||||
},
|
||||
//通知消息数量
|
||||
|
|
|
|||
|
|
@ -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, '余额信息--')
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue