启动广告页
This commit is contained in:
@@ -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 = {};
|
||||
|
||||
Reference in New Issue
Block a user