积分明细

This commit is contained in:
liuye
2023-02-23 15:49:21 +08:00
parent 0cec708363
commit 714ffbb869

View File

@@ -4,7 +4,7 @@
<u-navbar title="积分明细" title-color="#FFF" title-width="300" title-size="26" :background="backgroundNavbar" back-icon-color="#fff"></u-navbar>
<div class="header-info">
<p>我的积分</p>
<h1>142</h1>
<h1>{{total}}</h1>
</div>
</div>
<div class="list">
@@ -35,11 +35,13 @@ export default {
},
current: 1,
pages: 2,
list: []
list: [],
total: ''
}
},
onLoad() {
this.getList()
this.getTotal()
},
methods: {
getList() {
@@ -50,6 +52,13 @@ export default {
this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records
}
})
},
getTotal() {
this.$instance.post(`/app/appwechatuserqujing/queryUserIntegral`).then(res => {
if (res.code == 0) {
this.total = res.data.integral || 0
}
})
}
},
onReachBottom() {