|
@@ -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>
|