document.getElementById("mobile").addEventListener("tap", function() {
mui.openWindow({
url: "../ucenter/mobile.html",
id: "mobile",
show: {
autoShow: true, //页面loaded事件发生后自动显示,默认为true
},
waiting: {
autoShow: true, //自动显示等待框,默认为true
title: '正在加载...', //等待对话框上显示的提示内容
}
})
});
[LOG] : [{"__view_array__":[],"__IDENTITY__":"NWindow","__uuid__":"HBuilder","__callbacks__":{},"__callback_id__":"plus21524112309865","id":"HBuilder"},{"__view_array__":[],"__IDENTITY__":"NWindow","__uuid__":"NWindow61524112309321","__callbacks__":{},"__callback_id__":"plus41524112309952","id":"mobile"}]
点击按钮后可以进入,mobile页面也产生,但就是在原页面上一直显示waiting的转圈,不跳转。。。但有的时候又可以跳转。。请问这是什么原因
3 个回复
Tomcheunng
请问解决了吗?
阿鱼 - .net 开发
俺也遇到这样的问题,总以为是服务器,返回数据没有执行。
l***@163.com
问题解决了吗?我也是这样
if (cur_report_time && cur_report_time != last_report_time) {
clearInterval(interval);
interval = null;
console.log('上报成功');
console.log("interval:" +interval);
const closePage = plus.webview.getWebviewById('wait_page');
plus.webview.close(closePage);
mui.openWindow({
id: 'success_page',
url: './success.html',
extras: {
"param": to_wait_page_param,
"close_page_id": mui.currentWebview.id,
},
});
setTimeout(function() {
const closePage = plus.webview.getWebviewById('wait_page');
plus.webview.close(closePage);
}, 300);
} else {
if (count == 0) {
console.log('5秒耗尽');
clearInterval(interval);
interval = null;
console.log(interval);