Commit 4f0c435e authored by hbcui1984's avatar hbcui1984

调整hello mui模板示例

parent fc45054d
...@@ -340,6 +340,7 @@ ...@@ -340,6 +340,7 @@
} }
}); });
var templates = {}; var templates = {};
var firstClick = true;
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) {
...@@ -367,9 +368,11 @@ ...@@ -367,9 +368,11 @@
} }
}); });
subWebview.addEventListener('loaded', function() { subWebview.addEventListener('loaded', function() {
setTimeout(function() { if(!firstClick){
subWebview.show(); setTimeout(function() {
}, 50); subWebview.show();
}, 50);
}
}); });
subWebview.hide(); subWebview.hide();
headerWebview.append(subWebview); headerWebview.append(subWebview);
...@@ -457,6 +460,9 @@ ...@@ -457,6 +460,9 @@
(!reload) && contentWebview.show(); (!reload) && contentWebview.show();
headerWebview.show('slide-in-right', 150); headerWebview.show('slide-in-right', 150);
if(firstClick){
firstClick = false;
}
} }
} }
}); });
......
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