diff --git a/fangija-zsyf/css/common.css b/fangija-zsyf/css/common.css index 120945b..051df71 100644 --- a/fangija-zsyf/css/common.css +++ b/fangija-zsyf/css/common.css @@ -30,7 +30,7 @@ header { font-size: 17px; text-align: center; line-height: 44px; - background: #D74B28; + background: #FFF; /*background: -webkit-linear-gradient(top,rgba(215,75,40,1),rgba(215,75,40,0.8));*/ z-index: 9999; /*border-bottom: 1px solid rgba(215,75,40,0.8);*/ diff --git a/fangija-zsyf/css/main.css b/fangija-zsyf/css/main.css index 1f022ed..c5e791b 100644 --- a/fangija-zsyf/css/main.css +++ b/fangija-zsyf/css/main.css @@ -1296,9 +1296,7 @@ input[type=range]::-webkit-slider-thumb { .contentStart{background:#F18D00;} .contentStart .time{width:65px;height:30px;line-height:1.6rem;text-align:center;font-size:0.7rem;color:#fff;background:rgba(0,0,0,0.3);border-radius:1.25rem;display:block;position:absolute;top:0.75rem;right:0.75rem;z-index:4;} .contentStart #time{font-size:0.7rem;vertical-align:middle;} -.contentStart .startImg01{width:50%;position:absolute;top:30%;left:50%;margin-left:-25%;z-index:3;} -.contentStart .startImg02{width:100%;position:absolute;bottom:0;z-index:2;} -.contentStart .startImg03{width:100%;position:absolute;top:0;z-index:1;} +.contentStart .startImg{width:100%;} /* 引导页 */ .swiper-container{width:100%;height:100%;background:#fff;z-index:10000;} diff --git a/fangija-zsyf/images/startImg.png b/fangija-zsyf/images/startImg.png new file mode 100644 index 0000000..bbf1a7c Binary files /dev/null and b/fangija-zsyf/images/startImg.png differ diff --git a/fangija-zsyf/main.html b/fangija-zsyf/main.html index 004bdf9..05e57f7 100644 --- a/fangija-zsyf/main.html +++ b/fangija-zsyf/main.html @@ -88,6 +88,7 @@ plus.navigator.setFullscreen(false); } else { + loadStartPage(); //显示启动导航 mui.openWindow({ id: 'guide', @@ -103,34 +104,6 @@ } }); } - // 加载菜单信息,控制是否显示贷款菜单 - $.ajax({ - type: "GET", - url:BASE_PATH+"/rest/version/info", - dataType:'json', - async : false, - success: function(data) { - if(data.status){ - //存入localStorage Boolean类型变成String - localStorage.setItem("showLoanMenu", data.data.showLoanMenu); - }else{ - localStorage.setItem("showLoanMenu", false); - } - }, - error: function(XMLHttpRequest, textStatus, errorThrown) { - localStorage.setItem("showLoanMenu", false); - if(plus.webview.getWebviewById('error.html')==null){ - clicked('error.html',true,false,{},{},function(){ - window.location.reload(); - }) - }else{ - $(".loadingBg").hide(); - plus.nativeUI.closeWaiting(); - plus.webview.getWebviewById("error.html").show(); - } - } - }) - var self = plus.webview.currentWebview(); for (var i = 0; i < 4; i++) { var temp = {}; @@ -184,6 +157,43 @@ } }); + // 加载启动页信息 + function loadStartPage() { + $.ajax({ + type: "GET", + url:BASE_PATH+"/rest/page/startPage", + dataType:'json', + async : false, + success: function(resData) { + if (resData.status) { + var data = resData.data; + if (data.imgUrl != null) { + localStorage.setItem("startPageImgUrl", data.imgUrl); + } + if (data.url != null) { + localStorage.setItem("startPageClickUrl", data.url); + } + //存入localStorage Boolean类型变成String + //加载菜单信息,控制是否显示贷款菜单 + localStorage.setItem("showLoanMenu", data.showLoanMenu); + } else { + localStorage.setItem("showLoanMenu", false); + } + }, + error: function(XMLHttpRequest, textStatus, errorThrown) { + localStorage.setItem("showLoanMenu", false); + if(plus.webview.getWebviewById('error.html')==null){ + clicked('error.html',true,false,{},{},function(){ + window.location.reload(); + }) + }else{ + $(".loadingBg").hide(); + plus.nativeUI.closeWaiting(); + plus.webview.getWebviewById("error.html").show(); + } + } + }) + }
- +diff --git a/fangija-zsyf/start.html b/fangija-zsyf/start.html index 776f27b..9880d39 100644 --- a/fangija-zsyf/start.html +++ b/fangija-zsyf/start.html @@ -3,7 +3,7 @@
-
+
@@ -13,18 +13,15 @@ -
diff --git a/fangija-zsyf/views/webview_embed.html b/fangija-zsyf/views/webview_embed.html new file mode 100644 index 0000000..acf89b6 --- /dev/null +++ b/fangija-zsyf/views/webview_embed.html @@ -0,0 +1,98 @@ + + +
+ + + + +
+ + + + + +
+ +