//下拉刷新
function loadDownData() {
console.log(1);
var param = {
projectId: vm.params.projectId
};
materSvc.GetMaterialList(param, function(data) {
vm.MaterialList = data;
mui('#refreshContainer').pullRefresh().endPulldown();
});
}
mui.plusReady(function() {
_selfView = plus.webview.currentWebview()
main();
vm.$set(vm.params, 'projectId', _selfView.projectId);
vm.$set(vm.params, 'projTypeId', _selfView.projTypeId);
vm.getMaterList();
var pullRefreshOptions = {
down: {
height: 51,
auto: false,
callback: loadDownData
}
};
console.log(JSON.stringify(pullRefreshOptions));
mui("#refreshContainer").pullRefresh(pullRefreshOptions);
});
飞翔的猪i
- 发布:2017-12-15 18:56
- 更新:2017-12-15 19:59
- 阅读:1406
1 个回复
n***@gmail.com
我试过这样执行你的代码,是可以打印出1的。或许你应该排查一下你的其他逻辑是否正确