|
@@ -13,7 +13,7 @@
|
|
|
<div class="time-box" @click="newShow = true">
|
|
<div class="time-box" @click="newShow = true">
|
|
|
<div class="text">{{ yearMonth ? yearMonth : '全部' }}</div>
|
|
<div class="text">{{ yearMonth ? yearMonth : '全部' }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="money1">共充值 ¥{{ count || 0 }}</div>
|
|
|
|
|
|
|
+ <div class="money1">共计 ¥{{ count || 0 }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
</van-sticky>
|
|
</van-sticky>
|
|
|
<template v-if="!empty">
|
|
<template v-if="!empty">
|
|
@@ -21,12 +21,12 @@
|
|
|
<div class="con1">
|
|
<div class="con1">
|
|
|
<img class="con-img" src="../native/mingxi_icon_chongzhi@3x.png" alt="" />
|
|
<img class="con-img" src="../native/mingxi_icon_chongzhi@3x.png" alt="" />
|
|
|
<div>
|
|
<div>
|
|
|
- <div class="text1">{{ item.name }}</div>
|
|
|
|
|
- <div class="text2">{{ item.payTime }}</div>
|
|
|
|
|
|
|
+ <div class="text1">{{ item.remark }}</div>
|
|
|
|
|
+ <div class="text2">{{ item.createdAt }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="money" :class="{ prim: item.amount > 0 }">
|
|
|
|
|
- {{ item.amount > 0 ? '+' : '' }}{{ item.amount }}
|
|
|
|
|
|
|
+ <div class="money" :class="{ prim: item.money > 0 }">
|
|
|
|
|
+ {{ item.money > 0 ? '+' : '' }}{{ item.money }}
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -99,15 +99,15 @@ export default {
|
|
|
.get('/api/mp/roomFeeRecord', query)
|
|
.get('/api/mp/roomFeeRecord', query)
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
wx.hideLoading();
|
|
wx.hideLoading();
|
|
|
- // console.log(res);
|
|
|
|
|
|
|
+ console.log(res);
|
|
|
this.list = res.content;
|
|
this.list = res.content;
|
|
|
this.empty = res.empty;
|
|
this.empty = res.empty;
|
|
|
let countArr = this.list.filter(item => {
|
|
let countArr = this.list.filter(item => {
|
|
|
- return item.amount > 0;
|
|
|
|
|
|
|
+ return item.money;
|
|
|
});
|
|
});
|
|
|
if (countArr.length > 0) {
|
|
if (countArr.length > 0) {
|
|
|
this.count = countArr.reduce((total, item) => {
|
|
this.count = countArr.reduce((total, item) => {
|
|
|
- return total + item.amount;
|
|
|
|
|
|
|
+ return total + item.money;
|
|
|
}, 0);
|
|
}, 0);
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|