Merge branch 'master' of http://git.kingsome.cn/yuyongdong/UAW
This commit is contained in:
commit
7f9ac8c78f
@ -363,6 +363,9 @@ export default {
|
||||
|
||||
// 计算我的助力分页
|
||||
boostingCurrentPageItems() {
|
||||
if(this.myRecordsList.length == 0){
|
||||
return this.myRecordsList
|
||||
}
|
||||
let start = (this.boostingCurrentPage - 1) * this.boostingPageSize;
|
||||
let end = start + this.boostingPageSize;
|
||||
return this.myRecordsList.slice(start, end)
|
||||
@ -509,7 +512,11 @@ export default {
|
||||
// 我的助力记录
|
||||
async getMyHistoricalLog() {
|
||||
let res = await this.$axios.post(process.env.VUE_APP_API_URL+'/api/user/enhance/list', {},{headers: { Authorization: `Bearer ${this.token}` }})
|
||||
if(res.data.errcode == 0){
|
||||
this.myRecordsList = res.data.data
|
||||
}else{
|
||||
console.log('[getMyHistoricalLog error]',res)
|
||||
}
|
||||
},
|
||||
// 我的助力记录
|
||||
onBoostingChangePage(val) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user