广场页分页优化
This commit is contained in:
parent
d7b8723479
commit
b66f6961f1
@ -46,11 +46,6 @@
|
|||||||
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
|
||||||
msgCount() {
|
|
||||||
return this.$store.state.messegeNum
|
|
||||||
}
|
|
||||||
},
|
|
||||||
onShareAppMessage(res) {
|
onShareAppMessage(res) {
|
||||||
return {
|
return {
|
||||||
title: this.$c.miniappName,
|
title: this.$c.miniappName,
|
||||||
@ -153,6 +148,3 @@
|
|||||||
background-color: #F5F5F5;
|
background-color: #F5F5F5;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<style lang="scss" scoped>
|
|
||||||
|
|
||||||
</style>
|
|
||||||
|
@ -77,6 +77,7 @@
|
|||||||
classId: 0,
|
classId: 0,
|
||||||
page: 1,
|
page: 1,
|
||||||
userList: [],
|
userList: [],
|
||||||
|
loadStatus: 'nomore'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
@ -100,8 +101,7 @@
|
|||||||
this.page = 1
|
this.page = 1
|
||||||
this.pageList = []
|
this.pageList = []
|
||||||
this.getPostList()
|
this.getPostList()
|
||||||
}
|
}else if (this.pageCurrent == 1) {
|
||||||
if (this.pageCurrent == 1) {
|
|
||||||
this.userList = [];
|
this.userList = [];
|
||||||
this.getUserRanking();
|
this.getUserRanking();
|
||||||
}
|
}
|
||||||
@ -115,8 +115,9 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
toSearch() {
|
toSearch() {
|
||||||
uni.navigateTo({
|
uni.showToast({
|
||||||
url: '/pages/search/search'
|
icon:'none',
|
||||||
|
title:'暂无搜索'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
pageTabChange(index) {
|
pageTabChange(index) {
|
||||||
@ -131,7 +132,6 @@
|
|||||||
},
|
},
|
||||||
getClassList() {
|
getClassList() {
|
||||||
this.$H.get('topic/classList').then(res => {
|
this.$H.get('topic/classList').then(res => {
|
||||||
console.log(res.result)
|
|
||||||
this.classList = this.classList.concat(res.result)
|
this.classList = this.classList.concat(res.result)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user