Browse Source

优化

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

9
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,6 +124,8 @@ Page({
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
console.log(this.data.noticeCategory)
if(this.data.noticeCategory !='notice_navigation_hot'){
this.setData({
loadMoreVisible: true
})
@ -128,6 +136,7 @@ Page({
})
this.noticelist();
}
}
},
/**

Loading…
Cancel
Save