Commit a3c96783 authored by hbcui1984's avatar hbcui1984

取消hello mui主页面模板预加载的时延

parent 6cc2217a
...@@ -139,8 +139,8 @@ ...@@ -139,8 +139,8 @@
if (subWebview == null) { if (subWebview == null) {
//获取共用父窗体 //获取共用父窗体
template = plus.webview.getWebviewById("default-main"); template = plus.webview.getWebviewById("default-main");
if(template){
subWebview = template.children()[0]; subWebview = template.children()[0];
}
subWebview.loadURL('examples/info.html'); subWebview.loadURL('examples/info.html');
//修改共用父模板的标题 //修改共用父模板的标题
mui.fire(template, 'updateHeader', { mui.fire(template, 'updateHeader', {
...@@ -148,6 +148,8 @@ ...@@ -148,6 +148,8 @@
showMenu: false showMenu: false
}); });
template.show('slide-in-right', 150); template.show('slide-in-right', 150);
}
}
}); });
//首页返回键处理 //首页返回键处理
......
...@@ -397,13 +397,10 @@ ...@@ -397,13 +397,10 @@
}; };
mui.plusReady(function() { mui.plusReady(function() {
//关闭splash页面;
plus.navigator.closeSplashscreen();
//初始化模板 //初始化模板
//延迟加载的原因:;
setTimeout(function () {
initTemplates(); //预加载所有模板 initTemplates(); //预加载所有模板
},300); //关闭splash页面;
plus.navigator.closeSplashscreen();
}); });
//主列表点击事件 //主列表点击事件
......
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