Commit a767c88a authored by hbcui1984's avatar hbcui1984

解决helll mui关于页面首次无法打开的bug

parent 4f0c435e
...@@ -139,6 +139,9 @@ ...@@ -139,6 +139,9 @@
if (subWebview == null) { if (subWebview == null) {
//获取共用父窗体 //获取共用父窗体
template = plus.webview.getWebviewById("default-main"); template = plus.webview.getWebviewById("default-main");
//通知列表界面,已经开始点击;
var list = plus.webview.currentWebview().children()[0];
mui.fire(list,'firstClick',{});
} }
if(template){ if(template){
subWebview = template.children()[0]; subWebview = template.children()[0];
......
...@@ -341,6 +341,12 @@ ...@@ -341,6 +341,12 @@
}); });
var templates = {}; var templates = {};
var firstClick = true; var firstClick = true;
window.addEventListener('firstClick',function () {
firstClick = false;
});
var getTemplate = function(name, header, content, loading) { var getTemplate = function(name, header, content, loading) {
var template = templates[name]; var template = templates[name];
if (!template) { if (!template) {
......
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