Commit a83b18f2 by 朱建香

0921

parent 55d4d48d
......@@ -104,23 +104,10 @@ function saveButtonTap(self){
uComponents.hideLoading(self);
uComponents.openAlert(self, Vue.t('editName.editNameSuccess'), {
text: Vue.t('btn.confirm'), callback: function () {
// iot.navigator.back();
iot.navigator.openWindow({
url: '../doorlockManage/',
id: 'doorlockManage'
});
//// console.log(window.opener);
// // 创建
// /*var evt = document.createEvent("HTMLEvents");
// // 初始化
// evt.initEvent("alert", false, false);*/
// console.log(evt);
// var opener = plus.webview.currentWebview().opener();
// var view = plus.webview.getWebviewById(opener.id);
// view.evalJS("alert()");
// window.parent.dispatchEvent(evt);
mui.fire();
var opener = plus.webview.currentWebview().opener();
var view = plus.webview.getWebviewById(opener.id);
view.reload();
iot.navigator.back();
}
});
},
......
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