// 禁止下拉刷新 isPullDown(isPull) { //获取当前 Webview 窗口对象 const pages = getCurrentPages(); const page = pages[pages.length - 1]; const currentWebview = page.$getAppWebview(); //根据状态值来切换禁用/开启下拉刷新 currentWebview.setStyle({ pullToRefresh: { support: isPull, // style: plus.os.name === 'Android' ? 'circle' : 'default', style: 'circle' } }); },
this.isPullDown(false)