mui.init({
swipeBack: false,
statusBarBackground: '#f7f7f7',
gestureConfig: {
doubletap: true
},
//这里是干嘛用的?
subpages: [{
id: 'list',
url: 'index.html',
styles: {
top: '45px',
bottom: 0,
bounce: 'vertical'
}
}]
});

jing
- 发布:2015-10-19 23:39
- 更新:2017-04-22 20:46
- 阅读:3114
欢迎界面:guide.html 总是在index.html加载后才出现 如何解决?
分类:MUI

Float - 专注
看一下设置的页面入口文件是不是index.html (manifest.json)
选择性打开
//显示启动导航
mui.openWindow({
id:'guide',
url:'guide.html',
show:{
aniShow:'none'
},
waiting:{
autoShow:false
}
});

mui.plusReady(function() {
//读取本地存储,检查是否为首次启动
var showGuide = plus.storage.getItem("lauchFlag");
if(showGuide){
//有值,说明已经显示过了,无需显示;
//关闭splash页面;
plus.navigator.closeSplashscreen();
plus.navigator.setFullscreen(false);
//初始化模板
/*initTemplates(); */
//预加载
/*preload();*/
}else{
//显示启动导航
mui.openWindow({
id:'guide',
url:'pro/guide.html',
show:{
aniShow:'none'
},
waiting:{
autoShow:false
}
});
}
}
入口都对,第二次进入也是正确的,就是第一次进入app的时候会出现先显示index.html,然后突然显示欢迎页guide,html
jing (作者)
没有 最近没空搞 你呢? 怎么样了?
2015-11-09 22:52