页面下拉事件onpulldownrefresh不触发
在page.json中设置enablePullDownRefresh属性
"enablePullDownRefresh":true
{
"path" : "pages/taskAllocation/myAllocation",
"style" : {
"navigationBarTitleText": "我的分配",
"navigationBarTextStyle": "white",
"enablePullDownRefresh":true
页面下拉监听即可触发
onPullDownRefresh() {
// console.log("onPullDownRefresh======1111=====");
this.pageNumber = 1;
this.hasMore = true;
this.getList();
uni.stopPullDownRefresh();
},