广场页分页优化

This commit is contained in:
linfeng 2022-11-11 11:27:00 +08:00
parent d7b8723479
commit b66f6961f1
2 changed files with 5 additions and 13 deletions

View File

@ -46,11 +46,6 @@
};
},
computed: {
msgCount() {
return this.$store.state.messegeNum
}
},
onShareAppMessage(res) {
return {
title: this.$c.miniappName,
@ -153,6 +148,3 @@
background-color: #F5F5F5;
}
</style>
<style lang="scss" scoped>
</style>

View File

@ -77,6 +77,7 @@
classId: 0,
page: 1,
userList: [],
loadStatus: 'nomore'
}
},
onLoad() {
@ -100,8 +101,7 @@
this.page = 1
this.pageList = []
this.getPostList()
}
if (this.pageCurrent == 1) {
}else if (this.pageCurrent == 1) {
this.userList = [];
this.getUserRanking();
}
@ -115,8 +115,9 @@
})
},
toSearch() {
uni.navigateTo({
url: '/pages/search/search'
uni.showToast({
icon:'none',
title:'暂无搜索'
})
},
pageTabChange(index) {
@ -131,7 +132,6 @@
},
getClassList() {
this.$H.get('topic/classList').then(res => {
console.log(res.result)
this.classList = this.classList.concat(res.result)
})
},