From 3ca4592bda7835866119e3b8951d59147c10afa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E5=90=89=E6=AC=A2?= Date: Thu, 15 Mar 2018 11:20:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=AF=E5=8A=A8=E5=B9=BF=E5=91=8A=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/config.js | 5 ++- fangija-zsyf/main.html | 28 ++++++++++++++++ fangija-zsyf/start.html | 71 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 103 insertions(+), 1 deletion(-) create mode 100644 fangija-zsyf/start.html 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