xiuli.gao 6 years ago
parent
commit
c7fbc0f8f2

+ 3 - 3
fund_h5/css/typeChoice.css

@@ -83,13 +83,13 @@ nav p {
83 83
 	width:2.08rem;
84 84
 	height: 0.34rem;
85 85
 	border-radius: 0.17rem;
86
-	background: #5D7DFF;
87 86
 	margin: auto;
88 87
 	margin-top: 0.71rem;
89 88
 	color: #FFFFFF;
90 89
 	font-size: 0.15rem;
91 90
 	line-height: 0.34rem;
92 91
 	text-align: center;
93
-	box-shadow: 0 0 6px 0 rgba(93, 125, 255, 0.7);
94
-    -webkit-box-shadow: 0 0 6px 0 rgba(93, 125, 255, 0.7);
92
+	background: #ccc;
93
+	/*box-shadow: 0 0 6px 0 rgba(93, 125, 255, 0.7);
94
+    -webkit-box-shadow: 0 0 6px 0 rgba(93, 125, 255, 0.7);*/
95 95
 }

+ 2 - 2
fund_h5/fund_h5_api.html

@@ -8,10 +8,11 @@
8 8
     <link rel="stylesheet" href="./css/reset.css">
9 9
     <link rel="stylesheet" href="./css/fund_h5_api.css">
10 10
     <script src="./js/jquery.min.js"></script>
11
+    <script type="text/javascript" src="kuxuan/api-url.js"></script>
11 12
     <script type="text/javascript">
12 13
 		$.ajax({
13 14
 			type:"post",
14
-			url:"https://api.security.726p.com/api/token/getToken?token=fb24519c1e37ebbf807c3e9102f01ed0",
15
+			url:"/api/token/getToken?token=fb24519c1e37ebbf807c3e9102f01ed0",
15 16
 			success: function (res){
16 17
 				console.log(res)
17 18
 			},
@@ -21,7 +22,6 @@
21 22
 		});
22 23
 	</script>
23 24
     <script src="./js/common.js"></script>
24
-    <script type="text/javascript" src="kuxuan/api-url.js"></script>
25 25
 </head>
26 26
 
27 27
 <body>

File diff suppressed because it is too large
+ 9110 - 5
fund_h5/js/jquery.min.js


File diff suppressed because it is too large
+ 6 - 0
fund_h5/js/jquery.min000.js


+ 55 - 7
fund_h5/js/typeChoice.js

@@ -2,19 +2,24 @@ var name = '';
2 2
 var regionCode = '';
3 3
 var token = '';
4 4
 $().ready(function() {
5
-	$(".typeListRight").css('background','#D7D7D7')
6
-					   .find('.disc').css('background','#FFFFFF');
7
-	$(".typeListRight").eq(0).css('background','#5D7DFF')
8
-					   .find('.disc').css('background','#5D7DFF');
9 5
    var qs = parseQueryString(window.location.href);
10 6
    console.log(qs)
11 7
    name = qs.name;
12 8
    regionCode = qs.code;
13 9
    token = qs.token;
10
+   cituInfoData();
14 11
    goBack();
15
-   selectionTypes();
16 12
 })
17
-
13
+//初始
14
+function init () {
15
+	$(".typeListRight").css('background','#D7D7D7')
16
+					   .find('.disc').css('background','#FFFFFF');
17
+	$(".typeListRight").eq(0).css('background','#5D7DFF')
18
+					   .find('.disc').css('background','#5D7DFF');
19
+					   
20
+    $(".nextStep").css({'background':'#5D7DFF','box-shadow':' 0 0 6px 0 rgba(93, 125, 255, 0.7)','-webkit-box-shadow':' 0 0 6px 0 rgba(93, 125, 255, 0.7)'});
21
+	$(".nextStep").removeAttr('disabled');
22
+}
18 23
 //点击进行公积金类型选择
19 24
 function selectionTypes () {
20 25
 	$(".typeListRight").click(function () {
@@ -29,4 +34,47 @@ function goBack () {
29 34
 	$("nav i").click(function () {
30 35
 		history.go(-1)
31 36
 	})
32
-}
37
+}
38
+
39
+//公积金类型数据
40
+function cituInfoData () {
41
+	console.log(name)
42
+	$.ajax({
43
+		type:"POST",
44
+		url: "/api/city/info",
45
+		headers:{
46
+			'token': '5dac206be8b1f5736285fc03a08adb3c'
47
+		},
48
+		data:{
49
+			'region': name
50
+		},
51
+		success: function (res) {
52
+			console.log(res)
53
+			if(res.errno == 0 && res.rst.data){
54
+				var list = res.rst.data.list;
55
+				var html = '';
56
+				if(list.length > 0){
57
+					for(var i = 0 ; i < list.length ; i++){
58
+						html += `<div class="typeList">
59
+									<div class="typeListLeft">
60
+										<h4>${list[i].region}</h4>
61
+										<p>${list[i].parent_region}</p>
62
+									</div>
63
+									<div class="typeListRight">
64
+										<div class="hollowCircle">
65
+											<div class="disc"></div>
66
+										</div>
67
+									</div>
68
+								</div>`
69
+					}
70
+					$(".list").html(html);
71
+					init();
72
+					selectionTypes();
73
+				}
74
+			}else{
75
+					$(".nextStep").css({'background':'#CCCCCC','box-shadow':'none'});
76
+					$(".nextStep").attr('disabled','disabled');
77
+				}
78
+		}
79
+	});
80
+}

+ 2 - 0
fund_h5/kuxuan/api-url.js

@@ -1,3 +1,5 @@
1 1
 
2 2
 var BASEURL = 'https://api.xindedata.com/v1/'
3 3
 
4
+var BASEURL_KX = 'https://api.security.726p.com'
5
+

+ 3 - 26
fund_h5/typeChoice.html

@@ -7,6 +7,7 @@
7 7
 	    <link rel="stylesheet" href="./css/reset.css">
8 8
 	    <link rel="stylesheet" href="./css/typeChoice.css">
9 9
 	    <script src="./js/jquery.min.js"></script>
10
+	    <script type="text/javascript" src="kuxuan/api-url.js"></script>
10 11
 	    <script src="./js/common.js"></script>
11 12
 	</head>
12 13
 	<body>
@@ -17,8 +18,8 @@
17 18
 		<div class="list">
18 19
 			<div class="typeList">
19 20
 				<div class="typeListLeft">
20
-					<h4>北京公积金</h4>
21
-					<p>北京公积金</p>
21
+					<h4>暂无数据</h4>
22
+					<p></p>
22 23
 				</div>
23 24
 				<div class="typeListRight">
24 25
 					<div class="hollowCircle">
@@ -26,30 +27,6 @@
26 27
 					</div>
27 28
 				</div>
28 29
 			</div>
29
-			<div class="typeList">
30
-				<div class="typeListLeft">
31
-					<h4>北京公积金</h4>
32
-					<p>北京公积金</p>
33
-				</div>
34
-				<div class="typeListRight">
35
-					<div class="hollowCircle">
36
-						<div class="disc"></div>
37
-					</div>
38
-				</div>
39
-				
40
-			</div>
41
-			<div class="typeList">
42
-				<div class="typeListLeft">
43
-					<h4>北京公积金</h4>
44
-					<p>北京公积金</p>
45
-				</div>
46
-				<div class="typeListRight">
47
-					<div class="hollowCircle">
48
-						<div class="disc"></div>
49
-					</div>
50
-				</div>
51
-				
52
-			</div>
53 30
 		</div>
54 31
 			<div class="nextStep">下一步</div>
55 32