统计数量
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<AiCard>
|
||||
<template #custom>
|
||||
<div class="left">
|
||||
<span class="nums"> 2 </span>
|
||||
<span class="nums"> {{ num }} </span>
|
||||
<span class="hint">全部活动</span>
|
||||
</div>
|
||||
|
||||
@@ -71,7 +71,11 @@ export default {
|
||||
current: 1,
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
computed: {
|
||||
num() {
|
||||
return this.data.filter((item) => item.v1).reduce((counts, item) => (counts += item.v1 * 1), 0)
|
||||
},
|
||||
},
|
||||
watch: {},
|
||||
onLoad() {
|
||||
this.$dict.load('marriageType', 'modeType').then(() => {
|
||||
@@ -88,9 +92,6 @@ export default {
|
||||
this.$http.post('/app/appmarriagefuneralinfo/queryDataStatistics').then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.data = res.data
|
||||
this.data.map((e, i) => {
|
||||
console.log(e.v1, i)
|
||||
})
|
||||
|
||||
uni.hideLoading()
|
||||
}
|
||||
@@ -130,6 +131,10 @@ export default {
|
||||
})
|
||||
},
|
||||
},
|
||||
onReachBottom() {
|
||||
this.current = this.current + 1
|
||||
this.getList()
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user