接口数据获取成功后调用mui.init,上下拉没反应
onMuiRefresh: function () {
const obj = this;
mui.init({
pullRefresh: {
container: '#pullrefresh',
auto: false,
down: {
callback: pulldownRefresh
},
up: {
contentrefresh: '正在加载...',
contentnomore:'没有更多数据了',
callback: pullupRefresh,
}
}
});
mui('.mui-scroll-wrapper').scroll({
deceleration: 0.0005
});
function pulldownRefresh() {
obj.Refresh();
}
/**
* 上拉加载具体业务实现
*/
function pullupRefresh() {
obj.loadMore();
}
}