广场页分页优化
This commit is contained in:
parent
d7b8723479
commit
b66f6961f1
@ -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>
|
||||
|
@ -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)
|
||||
})
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user