Commit a3c96783 authored by hbcui1984's avatar hbcui1984

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

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