启动广告页

This commit is contained in:
尹吉欢
2018-03-15 11:20:56 +08:00
parent 1bb3cda7ac
commit 3ca4592bda
3 changed files with 103 additions and 1 deletions
+28
View File
@@ -44,6 +44,34 @@
//创建子页面,首个选项卡页面显示,其它均隐藏;
mui.plusReady(function() {
//检查是否为首次启动
var showGuide = lauchFlag;
//仅支持竖屏显示
plus.screen.lockOrientation("portrait-primary");
if(showGuide) {
//有值,说明已经显示过了,无需显示;
//关闭splash页面;
plus.navigator.closeSplashscreen();
plus.navigator.setFullscreen(false);
} else {
//显示启动导航
mui.openWindow({
id: 'guide',
url: 'start.html',
styles: {
popGesture: "none"
},
show: {
aniShow: 'none'
},
waiting: {
autoShow: false
}
});
}
var self = plus.webview.currentWebview();
for (var i = 0; i < 4; i++) {
var temp = {};