修复物业公积金显示错误的问题
This commit is contained in:
parent
62ddc43aa2
commit
af606e5727
@ -10,7 +10,7 @@
|
|||||||
<view class="container_body" :style="{ paddingTop: top + 'px' }">
|
<view class="container_body" :style="{ paddingTop: top + 'px' }">
|
||||||
<view class="title">物业公积金</view>
|
<view class="title">物业公积金</view>
|
||||||
<view class="title_bottom">
|
<view class="title_bottom">
|
||||||
<view>¥{{ moeny }}</view>
|
<view>¥{{ getTotal(list.owners) }}</view>
|
||||||
<u-icon
|
<u-icon
|
||||||
name="info-circle"
|
name="info-circle"
|
||||||
size="30rpx"
|
size="30rpx"
|
||||||
@ -155,6 +155,10 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
// 计算总金额
|
||||||
|
getTotal(owners) {
|
||||||
|
return owners.reduce((total, owner) => total + owner.property_fund_balance, 0).toFixed(2);
|
||||||
|
},
|
||||||
headerConfirmClick(item) {
|
headerConfirmClick(item) {
|
||||||
this.defaultName = {
|
this.defaultName = {
|
||||||
...item,
|
...item,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user