xiuli.gao 6 年之前
父节点
当前提交
5d4a49eb82

+ 11 - 2
fund_h5_01/choose_city.html

@@ -31,7 +31,7 @@
31 31
     <div class="searchBox">
32 32
 	    <div class="search" id="search">
33 33
 	    	<i></i>
34
-	    	<input type="text" placeholder="请输入城市名称" />
34
+	    	<input type="text" placeholder="请输入城市名称"/>
35 35
 	    	<em onclick="deleteSearch()"></em>
36 36
 	    </div>
37 37
     </div>
@@ -75,7 +75,16 @@
75 75
     <script src="./js/tips.js?vv=4"></script>
76 76
     <script src="./js/city_picker.js?vv=10"></script>
77 77
     <script src="./js/choose_city.js?vv=12"></script>
78
-    <script src="./js/choice_city.js?v=10"></script>
78
+    <script src="./js/choice_city.js?v=11"></script>
79 79
 </body>
80 80
 
81 81
 </html>
82
+<script type="text/javascript">
83
+	$(".search input").focus(function () {
84
+		if ($('html').scrollTop()) {
85
+	        $('html').animate({ scrollTop: 0 }, 10);
86
+	        return false;
87
+	    }
88
+	    $('body').animate({ scrollTop: 0 }, 10);
89
+	})
90
+</script>

+ 1 - 1
fund_h5_01/fund_h5_api.html

@@ -108,7 +108,7 @@
108 108
     </div>
109 109
     <script src="./js/auto_size.js"></script>
110 110
     <script src="./js/tips.js?v=2"></script>
111
-    <script src="./js/fund_h5_api.js?v=25"></script>
111
+    <script src="./js/fund_h5_api.js?v=26"></script>
112 112
 </body>
113 113
 
114 114
 </html>

+ 5 - 1
fund_h5_01/js/choice_city.js

@@ -5,7 +5,6 @@ var cityList = [];
5 5
 if (qs.token) {
6 6
     token = qs.token;
7 7
 }
8
-
9 8
 function deleteSearch () {
10 9
 	$("#search input").val("")
11 10
 	$("#city_02 .container ul").html("");
@@ -17,6 +16,11 @@ function deleteSearch () {
17 16
 	})
18 17
 	$("#city_02").css("display",'none')
19 18
 	$("#city_01").css("display",'block')
19
+	if ($('html').scrollTop()) {
20
+        $('html').animate({ scrollTop: 0 }, 10);
21
+        return false;
22
+    }
23
+    $('body').animate({ scrollTop: 0 }, 10);
20 24
 }
21 25
 
22 26
 /**

+ 1 - 1
fund_h5_01/js/fund_h5_api.js

@@ -909,6 +909,6 @@ function loanClick () {
909 909
 //		var id = $(this).attr('data-id');
910 910
 //		var name = $(this).attr('data-name');
911 911
 //		extension_statistics(id,name)
912
-		extension_statistics(383,"贷款")
912
+		extension_statistics(129,"贷款")
913 913
 	})
914 914
 }

+ 1 - 1
fund_h5_01/js/queryHelp.js

@@ -123,6 +123,6 @@ function extension_statistics (id,name) {
123 123
 
124 124
 function loanClick () {
125 125
 	$(".mySwiper").click(function () {
126
-		extension_statistics(383,"贷款")
126
+		extension_statistics(129,"贷款")
127 127
 	})
128 128
 }

+ 1 - 1
fund_h5_01/queryHelp.html

@@ -49,4 +49,4 @@
49 49
 </html>
50 50
 <script src="./js/auto_size.js?vv=10"></script>
51 51
 <script src="./js/tips.js?vv=10"></script>
52
-<script type="text/javascript" src="js/queryHelp.js?vv=15"></script>
52
+<script type="text/javascript" src="js/queryHelp.js?vv=16"></script>