Commit 701389c3 authored by hbcui1984's avatar hbcui1984

解决iOS平台下拉刷新“敲击顶部、回到顶部”无效的问题

parent 2558f811
...@@ -85,7 +85,11 @@ ...@@ -85,7 +85,11 @@
if(contentWebview==null){ if(contentWebview==null){
contentWebview = plus.webview.currentWebview().children()[0]; contentWebview = plus.webview.currentWebview().children()[0];
} }
contentWebview.evalJS('mui.scrollTo(0, 100)'); if(mui.os.ios){
contentWebview.evalJS("mui('#pullrefresh').pullRefresh().scrollTo(0,0,100)");
}else{
contentWebview.evalJS('mui.scrollTo(0, 100)');
}
}); });
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment