Commit a767c88a authored by hbcui1984's avatar hbcui1984

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

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