diff --git a/fangija-zsyf/config.js b/fangija-zsyf/config.js index 39a89b6..7016d75 100644 --- a/fangija-zsyf/config.js +++ b/fangija-zsyf/config.js @@ -1,2 +1,5 @@ /**服务端地址**/ -var BASE_PATH = "http://192.168.10.128:8084"; \ No newline at end of file +var BASE_PATH = "http://192.168.10.170:8084"; + +/**是否显示过启动页面**/ +var lauchFlag = false; \ No newline at end of file diff --git a/fangija-zsyf/main.html b/fangija-zsyf/main.html index 5c57c3d..7d36b1e 100644 --- a/fangija-zsyf/main.html +++ b/fangija-zsyf/main.html @@ -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 = {}; diff --git a/fangija-zsyf/start.html b/fangija-zsyf/start.html new file mode 100644 index 0000000..8361135 --- /dev/null +++ b/fangija-zsyf/start.html @@ -0,0 +1,71 @@ + + + + + + 掌上有房 + + + + + + + + + + + + + + +
+
+
+ 跳过 5 + + +
+
+
+ + + + + + + + + + + + \ No newline at end of file