-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.html
86 lines (83 loc) · 3.17 KB
/
search.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1, user-scalable=no">
<title>搜索</title>
<meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="stylesheet" href="css/index.css">
</head>
<body>
<!-- header -->
<header class="sea-head clearfix">
<div class="sea-con clearfix fl">
<div class="sea-name fl">
<h2>二手房</h2>
<ul>
<li>新房</li>
<li>二手房</li>
</ul>
</div>
<div class="sea-input fl">
<input type="text" placeholder="楼盘名称/开发商/地标/商圈">
<ul class="search-tips" style="display: none;"><li data-value="恒大华府" real-value="31" class=""><a href="#"><p><a href=""><span>20套房</span>恒大华府</a></p></a></li><li data-value="恒大城中央广场" real-value="2883" class=""><a href="#"><p><a href=""><span>0套房</span>恒大城中央广场</a></p></a></li><li data-value="华盛大运城" real-value="2803" class=""><a href="#"><p><a href=""><span>0套房</span>华盛大运城</a></p></a></li><li data-value="圣大国际" real-value="2710" class=""><a href="#"><p><a href=""><span>0套房</span>圣大国际</a></p></a></li><li data-value="合肥恒大城" real-value="2648" class=""><a href="#"><p><a href=""><span>0套房</span>合肥恒大城</a></p></a></li><li data-value="恒大帝景" real-value="2244" class=""><a href="#"><p><a href=""><span>0套房</span>恒大帝景</a></p></a></li><li data-value="恒大城" real-value="2126" class=""><a href="#"><p><a href=""><span>0套房</span>恒大城</a></p></a></li><li data-value="恒达阳光景苑" real-value="1516" class="active"><a href="#"><p><a href=""><span>0套房</span>恒达阳光景苑</a></p></a></li></ul>
</div>
<span class="sea-gb fr"></span>
</div>
<a href="" class="sea-dt fr">取消</a>
</header>
<!-- /header -->
<!-- 热门搜索 -->
<section class="sea-hot bgf">
<h2>热门搜索</h2>
<div class="sea-tag clearfix">
<a href="">淮矿馥邦天下</a>
<a href="">保利梧桐雨</a>
<a href="">三联学院</a>
<a href="">大蜀山</a>
<a href="">恒大</a>
<a href="">中海原山</a>
</div>
</section>
<!-- /热门搜索 -->
<!-- /搜索记录 -->
<section>
<ul class="sea-list bgf mt10">
<li><a href="">华邦世贸城</a></li>
<li><a href="">苹果小镇</a></li>
<li><a href="">碧桂园</a></li>
<li><a href="">中环城</a></li>
</ul>
<div class="record bgf tc">清除搜索历史</div>
</section>
<!-- /搜索记录 -->
<script src="js/zepto/zepto.min.js"></script>
<script>
$(function() {
//展开
$(".sea-name").click(function() {
$(this).toggleClass('active').children('ul').toggle();
});
//选择房源
$(".sea-name li").click(function() {
$(".sea-name h2").text($(this).text());
});
//搜索
$(".sea-input input").keyup(function() {
$(".sea-dt").text('搜索');
$(".search-tips").show();
});
//
$(".sea-gb").click(function() {
$(".sea-input input").val("");
$(".sea-dt").text('取消');
$(".search-tips").hide();
});
//
//
});
</script>
</body>
</html>