积分明细
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
<u-navbar title="积分明细" title-color="#FFF" title-width="300" title-size="26" :background="backgroundNavbar" back-icon-color="#fff"></u-navbar>
|
<u-navbar title="积分明细" title-color="#FFF" title-width="300" title-size="26" :background="backgroundNavbar" back-icon-color="#fff"></u-navbar>
|
||||||
<div class="header-info">
|
<div class="header-info">
|
||||||
<p>我的积分</p>
|
<p>我的积分</p>
|
||||||
<h1>142</h1>
|
<h1>{{total}}</h1>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="list">
|
<div class="list">
|
||||||
@@ -35,11 +35,13 @@ export default {
|
|||||||
},
|
},
|
||||||
current: 1,
|
current: 1,
|
||||||
pages: 2,
|
pages: 2,
|
||||||
list: []
|
list: [],
|
||||||
|
total: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
this.getList()
|
this.getList()
|
||||||
|
this.getTotal()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getList() {
|
getList() {
|
||||||
@@ -50,6 +52,13 @@ export default {
|
|||||||
this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records
|
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() {
|
onReachBottom() {
|
||||||
|
|||||||
Reference in New Issue
Block a user