Commit 4f0c435e authored by hbcui1984's avatar hbcui1984

调整hello mui模板示例

parent fc45054d
......@@ -340,6 +340,7 @@
}
});
var templates = {};
var firstClick = true;
var getTemplate = function(name, header, content, loading) {
var template = templates[name];
if (!template) {
......@@ -367,9 +368,11 @@
}
});
subWebview.addEventListener('loaded', function() {
setTimeout(function() {
subWebview.show();
}, 50);
if(!firstClick){
setTimeout(function() {
subWebview.show();
}, 50);
}
});
subWebview.hide();
headerWebview.append(subWebview);
......@@ -457,6 +460,9 @@
(!reload) && contentWebview.show();
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