xiuli.gao 6 years ago
parent
commit
2b1a694db4
3 changed files with 13 additions and 10 deletions
  1. 2 2
      fund_h5_01/css/fund_h5_api.css
  2. 3 2
      fund_h5_01/fund_h5_api.html
  3. 8 6
      fund_h5_01/js/fund_h5_api.js

+ 2 - 2
fund_h5_01/css/fund_h5_api.css

518
 	margin-right: 0.1rem;
518
 	margin-right: 0.1rem;
519
 	text-align: center;
519
 	text-align: center;
520
 	line-height: 0.18rem;
520
 	line-height: 0.18rem;
521
-}
521
+}*/
522
 .loan_recommendation .data{
522
 .loan_recommendation .data{
523
 	font-size: 0.12rem;
523
 	font-size: 0.12rem;
524
 	line-height: 0.16rem;
524
 	line-height: 0.16rem;
535
 	background-size:100% ;
535
 	background-size:100% ;
536
 	margin-right: 0.05rem;
536
 	margin-right: 0.05rem;
537
 	vertical-align: middle;
537
 	vertical-align: middle;
538
-}*/
538
+}
539
 .loan_recommendation{
539
 .loan_recommendation{
540
 	padding-top: 0.1rem;
540
 	padding-top: 0.1rem;
541
 }
541
 }

+ 3 - 2
fund_h5_01/fund_h5_api.html

6
     <title>公积金查询</title>
6
     <title>公积金查询</title>
7
     <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
7
     <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
8
     <link rel="stylesheet" href="./css/reset.css">
8
     <link rel="stylesheet" href="./css/reset.css">
9
-    <link rel="stylesheet" href="./css/fund_h5_api.css?v=15">
9
+    <link rel="stylesheet" href="./css/fund_h5_api.css?v=16">
10
     <link rel="stylesheet" href="./css/swiper-3.4.2.min.css"/>
10
     <link rel="stylesheet" href="./css/swiper-3.4.2.min.css"/>
11
     <script src="./js/jquery.min.js"></script>
11
     <script src="./js/jquery.min.js"></script>
12
     <script src="./js/swiper-3.4.2.min.js"></script>
12
     <script src="./js/swiper-3.4.2.min.js"></script>
68
         	<div class="mySwiper">
68
         	<div class="mySwiper">
69
         		<img src="img/banner@3x.png" />
69
         		<img src="img/banner@3x.png" />
70
         	</div>
70
         	</div>
71
+        	<div class="data"><icon></icon>数据加密 | 官网直连 | 保险承诺</div>
71
         </div>
72
         </div>
72
         
73
         
73
         
74
         
107
     </div>
108
     </div>
108
     <script src="./js/auto_size.js"></script>
109
     <script src="./js/auto_size.js"></script>
109
     <script src="./js/tips.js?v=2"></script>
110
     <script src="./js/tips.js?v=2"></script>
110
-    <script src="./js/fund_h5_api.js?v=21"></script>
111
+    <script src="./js/fund_h5_api.js?v=22"></script>
111
 </body>
112
 </body>
112
 
113
 
113
 </html>
114
 </html>

+ 8 - 6
fund_h5_01/js/fund_h5_api.js

243
         contentType: 'application/json;charset=utf-8',
243
         contentType: 'application/json;charset=utf-8',
244
         success: function(data) {
244
         success: function(data) {
245
         	cityInfo = data;
245
         	cityInfo = data;
246
-        	console.log(data)
247
             return renderLoginInfo(data);
246
             return renderLoginInfo(data);
248
         },
247
         },
249
         error: function(err) {
248
         error: function(err) {
485
     });
484
     });
486
 
485
 
487
     posting.done(function(task) {
486
     posting.done(function(task) {
487
+    	console.log(task+"000")
488
         tid = task.tid;
488
         tid = task.tid;
489
         $("#tid").val(task.tid); // for next submit
489
         $("#tid").val(task.tid); // for next submit
490
         window.sessionStorage.tid = tid;
490
         window.sessionStorage.tid = tid;
590
 
590
 
591
     getting.done(function(task) {
591
     getting.done(function(task) {
592
         if (task.status === 'done') {
592
         if (task.status === 'done') {
593
+        	console.log("成功")
593
             process.stop(100);
594
             process.stop(100);
594
             $("#tid").val('');
595
             $("#tid").val('');
595
             showLoading(false);
596
             showLoading(false);
624
         }
625
         }
625
 
626
 
626
         if (task.status == "suspended") {
627
         if (task.status == "suspended") {
628
+        	console.log("填写有误")
627
             process.stop(0);
629
             process.stop(0);
628
             showLoading(false);
630
             showLoading(false);
629
             enableCommitButton(false);
631
             enableCommitButton(false);
630
-
632
+			
631
             switch (task.need) {
633
             switch (task.need) {
632
                 case 'changeLoginType': // 无记录,请尝试切换登录类型
634
                 case 'changeLoginType': // 无记录,请尝试切换登录类型
633
                 case 'regionOrLogintype': // 请选择地区信息 | 请选择登录类型 | 请选择补充地区信息 | 该地区不支持公积金 | 发送的fundId或loginTypeId错误 
635
                 case 'regionOrLogintype': // 请选择地区信息 | 请选择登录类型 | 请选择补充地区信息 | 该地区不支持公积金 | 发送的fundId或loginTypeId错误 
675
  */
677
  */
676
 function redirectToFailedReturnUrl(tid, result, failCode, reason) {
678
 function redirectToFailedReturnUrl(tid, result, failCode, reason) {
677
     if (returnUrl.indexOf('?') < 0) {
679
     if (returnUrl.indexOf('?') < 0) {
678
-        returnUrl += "?result=" + result + "&tid=" + tid + "&token=" + token + "&failCode=" + failCode + "&reason=" + reason;
680
+        returnUrl += "?result=" + result + "&tid=" + tid + "&token=" + token + "&failCode=" + failCode + "&reason=" + reason + "&city=" + qs.name;
679
     } else {
681
     } else {
680
-        returnUrl += "&result=" + result + "&tid=" + tid + "&token=" + token + "&failCode=" + failCode + "&reason=" + reason;
682
+        returnUrl += "&result=" + result + "&tid=" + tid + "&token=" + token + "&failCode=" + failCode + "&reason=" + reason + "&city=" + qs.name;
681
     }
683
     }
682
 
684
 
683
     window.sessionStorage.clear();
685
     window.sessionStorage.clear();
689
  */
691
  */
690
 function redirectToSucsessReturnUrl(tid, result) {
692
 function redirectToSucsessReturnUrl(tid, result) {
691
     if (returnUrl.indexOf('?') < 0) {
693
     if (returnUrl.indexOf('?') < 0) {
692
-        returnUrl += "?result=" + result + "&tid=" + tid + "&token=" + token;
694
+        returnUrl += "?result=" + result + "&tid=" + tid + "&token=" + token + "&city=" + qs.name;
693
     } else {
695
     } else {
694
-        returnUrl += "&result=" + result + "&tid=" + tid + "&token=" + token;
696
+        returnUrl += "&result=" + result + "&tid=" + tid + "&token=" + token + "&city=" + qs.name;
695
     }
697
     }
696
 
698
 
697
     window.sessionStorage.clear();
699
     window.sessionStorage.clear();