Browse Source

优化

master
zhaoyongnian 5 years ago
parent
commit
3914be4b0a
  1. 23
      subpages/home/pages/noticeNew/noticeNew.js

23
subpages/home/pages/noticeNew/noticeNew.js

@ -25,6 +25,12 @@ Page({
// 加载网格长管辖的网格列表
noticelist() {
let that = this
if(that.data.noticeCategory =='notice_navigation_hot'){
that.setData({
pageIndex:1
})
}
let params = {
pageIndex: that.data.pageIndex,
pageSize: that.data.pageSize,
@ -118,15 +124,18 @@ Page({
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
this.setData({
loadMoreVisible: true
})
if (this.data.loadMoreType === 'loading') {
console.log(this.data.noticeCategory)
if(this.data.noticeCategory !='notice_navigation_hot'){
this.setData({
pageIndex: this.data.pageIndex + 1,
pageSize: this.data.pageSize,
loadMoreVisible: true
})
this.noticelist();
if (this.data.loadMoreType === 'loading') {
this.setData({
pageIndex: this.data.pageIndex + 1,
pageSize: this.data.pageSize,
})
this.noticelist();
}
}
},

Loading…
Cancel
Save