Merge branch 'YOUFANGAPP1.1' of 192.168.0.27:dev0/youfang-app into xh-youfangApp1.1
This commit is contained in:
@@ -1,2 +1,5 @@
|
||||
/**服务端地址**/
|
||||
var BASE_PATH = "http://192.168.10.128:8084";
|
||||
var BASE_PATH = "http://192.168.10.170:8084";
|
||||
|
||||
/**是否显示过启动页面**/
|
||||
var lauchFlag = false;
|
||||
@@ -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 = {};
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>掌上有房</title>
|
||||
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
|
||||
<link rel="shortcut icon" href="/favicon.ico">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
|
||||
<link rel="stylesheet" href="css/sm.css">
|
||||
<link rel="stylesheet" type="text/css" href="css/mui.min.css"/>
|
||||
<link rel="stylesheet" href="css/main.css">
|
||||
<link rel="stylesheet" href="css/theme-blue.css">
|
||||
<script src="config.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="page-group">
|
||||
<div class="page page-current">
|
||||
<div class="content contentStart">
|
||||
<a class="time" onclick="skip()">跳过 <span id="time">5</span></a>
|
||||
<img src="images/start.png">
|
||||
<div class="content-block">
|
||||
<p><a onclick="clicked(BASE_PATH+'/fsh/form',true);" class="button button-big button-fill button-round theme" id="test_btn">立即测试<i class="mui-icon mui-icon-arrowright"></i></a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="js/zepto.js" charset="utf-8"></script>
|
||||
|
||||
<script>
|
||||
|
||||
/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
|
||||
Zepto = $
|
||||
$.config = {router: false}
|
||||
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" src="js/common.js" charset="utf-8"></script>
|
||||
<script src="js/mui.min.js"></script>
|
||||
|
||||
<script>
|
||||
mui.plusReady(function() {
|
||||
|
||||
});
|
||||
/* 5s倒计时后跳转页面 */
|
||||
function run(){
|
||||
var time = document.getElementById("time");
|
||||
if(time.innerHTML == 0){
|
||||
lauchFlag = true;
|
||||
plus.navigator.setFullscreen(false);
|
||||
plus.webview.currentWebview().close();
|
||||
return false;
|
||||
}
|
||||
time.innerHTML = time.innerHTML * 1 - 1;
|
||||
}
|
||||
window.setInterval("run();", 1000);
|
||||
|
||||
function skip() {
|
||||
lauchFlag = true;
|
||||
plus.navigator.setFullscreen(false);
|
||||
plus.webview.currentWebview().close();
|
||||
}
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user