-
Notifications
You must be signed in to change notification settings - Fork 0
/
个体服务-我要租房-房源展示.html
476 lines (458 loc) · 24.7 KB
/
个体服务-我要租房-房源展示.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>重庆市长租公寓综合信息服务平台</title>
<!-- 引入重置样式表 -->
<link rel="stylesheet" href="./css/reset.css">
<!-- 引入公共样式表 -->
<!-- <link rel="stylesheet" href="./css/base.css"> -->
<!-- 引入当前页面样式表 -->
<link rel="stylesheet" href="./css/房源展示.css">
<!-- 引入图标字体库 -->
<link rel="stylesheet" href="./fa/css/all.min.css">
<!-- <link rel="icon" href="./img/icon/stage.ico"> -->
<script type="text/javascript" src="./js/new-tools.js"></script>
<script type="text/javascript" src="js/tools.js"></script>
<script type="text/javascript">
window.onload = function(){
/*
我们每一个菜单都是一个div
当div具有collapsed这个类时,div就是折叠的状态
当div没有这个类时,div就是展开的状态
*/
/*
点击菜单,切换菜单的显示状态
*/
// 获取所有class为menuSpan的元素
var menuSpan = document.querySelectorAll(".menuSpan");
// 定义一个变量,来保存当前打开的菜单
var openDiv = menuSpan[0].parentNode;
// 为span绑定单机响应函数
for(var i=0;i<menuSpan.length;i++){
menuSpan[i].onclick = function(){
// this代表当前点击的span
// 获取当前span的父元素
var parentDiv = this.parentNode;
// 切换菜单的显示状态
toggleMenu(parentDiv);
// 判断openDiv和parentDiv是否相同
if(openDiv != parentDiv && !hasClass(openDiv,"collapsed")){
// 打开菜单以后,关闭之前打开的菜单
// 为了可以统一处理动画过渡效果,我们希望在这将addClass改为toggleClass
// addClass(openDiv,"collapsed");
// 此处toggleClass()不具有任何移除功能
// toggleClass(openDiv,"collapsed");
// 切换菜单的显示状态
toggleMenu(openDiv);
};
// 修改openDiv为当前的菜单
openDiv = parentDiv;
};
};
/*
用来切换菜单折叠和显示状态
*/
function toggleMenu(obj){
// 在切换类之前,获取元素的高度
var begin = obj.offsetHeight;
// 关闭obj
toggleClass(obj,"collapsed");
// 在切换类之后获取一个高度
var end = obj.offsetHeight;
// 动画效果就是将高度从begin向end过渡
// 将元素的高度重置为begin
obj.style.height = begin + "px";
// 执行动画,从begin向end过渡
move(obj,"height",end,10,function(){
// 动画执行完毕,内联样式已经没有存在的意义了,删除之
obj.style.height = "";
});
};
// 菜单栏给选中元素换色
var dic = document.getElementsByClassName("active-districtname")[0];
var a = document.getElementById("a1");
a.style.color = "#3499dd";
dic.onclick = function(){
for(var j=0;j<dicA.length;j++){
dicA[j].style.color = "black";
}
a.style.color = "#3499dd";
};
var dicA = document.getElementsByName("a");
for(var i=0;i<dicA.length;i++){
dicA[i].onclick = function(){
for(var j=0;j<dicA.length;j++){
dicA[j].style.color = "black";
var a = document.getElementById("a1");
a.style.color="black";
}
this.style.color = "#3499dd";
}
}
changeColor("active-rentnum","b1","b");
changeColor("active-area","c1","c");
changeColor("active-kind","d1","d");
// 排序栏给选中元素添加下边界
var sort = document.getElementsByClassName('active-sort')[0];
var b = document.getElementById("s1");
b.style.borderBottom = "blue 2px solid";
sort.onclick = function(){
for(var j=0;j<sortA.length;j++){
sortA[j].style.borderBottom = "";
}
this.style.borderBottom = "blue 2px solid";
}
var sortA = document.getElementsByName("s");
for(var i=0;i<sortA.length;i++){
sortA[i].onclick = function(){
for(var j=0;j<sortA.length;j++){
sortA[j].style.borderBottom = "";
b.style.borderBottom="";
}
this.style.borderBottom = "blue 2px solid";
}
}
// 点击房源跳转页面
var item = document.getElementsByClassName("item");
for(var i=0;i<sortA.length;i++){
item[i].onclick=function(){
location = "javascript:;";
}
}
}
</script>
</head>
<body>
<!-- 顶部基本信息 -->
<!-- 外部容器 -->
<div class="top-info-wrapper">
<!-- 内部容器 -->
<div class="top-info w">
<!-- 左侧平台信息 -->
<div class="left-info">
<img src="./img/icon/a-realestatepropertyhandoverhouse.png">
<!-- 左侧名称 -->
<span>重庆市长租公寓综合信息服务平台</span>
</div>
<!-- 右侧服务电话 -->
<div class="right-tel">
<div class="icon">
<img src="./img/icon/Slice5.png">
</div>
<div class="tel-num">
<span>房协房地产租赁专业委员会:878***980</span>
<span>长租公寓信息平台客服:877***244</span>
</div>
</div>
</div>
</div>
<!-- 头部导航条 -->
<!-- 外部容器 -->
<div class="header-wrapper">
<!-- 头部导航条 -->
<div class="header w">
<!-- 左侧服务 -->
<ul class="left-service">
<li><a href="index.html">首页</a></li>
<div class="border"></div>
<li class="relative">
<a href="个体服务-我要租房-房源展示.html">
个体服务
</a>
<ul class="down-bar">
<li><a href="个体服务-我要租房-房源展示.html">我要租房</a></li>
<li><a href="个体服务-我要出租-入驻企业.html">我要出租</a></li>
</ul>
</li>
<div class="border"></div>
<li class="relative">
<a href="企业服务-用户认证-企业界面.html">
企业服务
</a>
<ul class="down-bar">
<li><a href="企业服务-用户认证-企业认证-1.html">用户认证</a></li>
<li><a href="企业服务-经营支持-政策合作.html">经营支持</a></li>
<li><a href="企业服务-房源管理-房源市场.html">房源管理</a></li>
</ul>
</li>
<div class="border"></div>
<li class="relative">
<a href="法律帮助-维权须知.html">
法律帮助
</a>
<ul class="down-bar">
<li><a href="法律帮助-维权须知.html">维权须知</a></li>
<li><a href="法律帮助-咨询通道-法律咨询.html">咨询通道</a></li>
<li><a href="法律帮助-用户维权-用户维权.html">用户维权</a></li>
<li><a href="法律帮助-合同管理-合同备案.html">合同管理</a></li>
</ul>
</li>
<div class="border"></div>
<li class="relative">
<a href="信息公示-行业新闻.html">
信息公示
</a>
<ul class="down-bar">
<li><a href="信息公示-行业新闻.html">行业新闻</a></li>
<li><a href="信息公示-政策公开.html">政策公开</a></li>
<li><a href="信息公示-市场公开.html">市场公示</a></li>
</ul>
</li>
<div class="border"></div>
<li><a href="服务指南.html">服务指南</a></li>
</ul>
<!-- 右侧用户信息 -->
<div class="user-info">
<!-- <i class="fas fa-user-circle"></i> -->
<img src="./img/icon/user.png">
<a href="登陆页面.html">登录</a>
<div class="line">|</div>
<a href="个人注册.html">注册</a>
</div>
</div>
</div>
<!-- 中部主体 -->
<div class="mainbody-wrapper">
<!-- 侧边导航条 -->
<!-- 外部容器 -->
<div class="left-nav-wrapper">
<!-- 二级菜单 -->
<div id="my_menu" class="sdmenu">
<div>
<span class="menuSpan">我要租房</span>
<a href="个体服务-我要租房-房源展示.html" style="background-color: #3499dd; color: #fff;">房源展示</a>
<a href="个体服务-我要租房-房源地图.html">房源地图</a>
<a href="个体服务-我要租房-注意事项.html">注意事项</a>
</div>
<div class="collapsed">
<span class="menuSpan">我要出租</span>
<a href="个体服务-我要出租-入驻企业.html">入驻企业</a>
<a href="个体服务-我要出租-房源发布-1.html">房源发布</a>
<a href="个体服务-我要出租-注意事项.html">注意事项</a>
</div>
</div>
</div>
<!-- 右侧主体 -->
<div class="mainbody-right">
<!-- 主体导航条 -->
<!-- 搜索栏 -->
<div class="search-box">
<div>
<input style="font-size: 16px;width: 400px;height: 30px;border-radius: 5px;border-width: 1px;padding-left: 5px;" type="text" placeholder="请输入小区名称/地址">
<button class="search-btn" style="width: 80px;height: 36px;cursor: pointer;border-radius: 10px;">搜索</button>
</div>
</div>
<div class="info-box-name">
<span>房源展示</span>
</div>
<div class="re-box">
<div class="region">区域:</div>
<ul>
<li class="active-districtname"><a id="a1" href="javascript:;">不限</a></li>
<li class="districtname"><a name="a" href="javascript:;">涪陵区</a></li>
<li class="districtname"><a name="a" href="javascript:;">万州区</a></li>
<li class="districtname"><a name="a" href="javascript:;">渝中区</a></li>
<li class="districtname"><a name="a" href="javascript:;">大渡口区</a></li>
<li class="districtname"><a name="a" href="javascript:;">江北区</a></li>
<li class="districtname"><a name="a" href="javascript:;">沙坪坝区</a></li>
<li class="districtname"><a name="a" href="javascript:;">九龙坡区</a></li>
<li class="districtname"><a name="a" href="javascript:;">南岸区</a></li>
<li class="districtname"><a name="a" href="javascript:;">北碚区</a></li>
<li class="districtname"><a name="a" href="javascript:;">綦江区</a></li>
<li class="districtname"><a name="a" href="javascript:;">大足区</a></li>
<li class="districtname"><a name="a" href="javascript:;">渝北区</a></li>
<li class="districtname"><a name="a" href="javascript:;">巴南区</a></li>
<li class="districtname"><a name="a" href="javascript:;">黔江区</a></li>
<li class="districtname"><a name="a" href="javascript:;">长寿区</a></li>
<li class="districtname"><a name="a" href="javascript:;">江津区</a></li>
<li class="districtname"><a name="a" href="javascript:;">合川区</a></li>
<li class="districtname"><a name="a" href="javascript:;">永川区</a></li>
<li class="districtname"><a name="a" href="javascript:;">南川区</a></li>
<li class="districtname"><a name="a" href="javascript:;">璧山区</a></li>
<li class="districtname"><a name="a" href="javascript:;">铜梁区</a></li>
<li class="districtname"><a name="a" href="javascript:;">潼南区</a></li>
<li class="districtname"><a name="a" href="javascript:;">荣昌区</a></li>
<li class="districtname"><a name="a" href="javascript:;">开州区</a></li>
<li class="districtname"><a name="a" href="javascript:;">梁平区</a></li>
<li class="districtname"><a name="a" href="javascript:;">城口县</a></li>
<li class="districtname"><a name="a" href="javascript:;">丰都县</a></li>
<li class="districtname"><a name="a" href="javascript:;">垫江县</a></li>
<li class="districtname"><a name="a" href="javascript:;">武隆区</a></li>
<li class="districtname"><a name="a" href="javascript:;">忠县</a></li>
<li class="districtname"><a name="a" href="javascript:;">云阳县</a></li>
<li class="districtname"><a name="a" href="javascript:;">奉节县</a></li>
<li class="districtname"><a name="a" href="javascript:;">巫山县</a></li>
<li class="districtname"><a name="a" href="javascript:;">巫溪县</a></li>
<li class="districtname"><a name="a" href="javascript:;">石柱土家族自治县</a></li>
<li class="districtname"><a name="a" href="javascript:;">酉阳土家族自治县</a></li>
<li class="districtname"><a name="a" href="javascript:;">彭水苗族土家族自治县</a></li>
<li class="districtname"><a name="a" href="javascript:;">万盛经开区</a></li>
<li class="districtname"><a name="a" href="javascript:;">两江新区</a></li>
<li class="districtname"><a name="a" href="javascript:;">高新区</a></li>
</ul>
</div>
<div class="rent-box">
<div class="rent">租金:</div>
<ul>
<li class="active-rentnum"><a id="b1" href="javascript:;">不限</a></li>
<li class="rentnum"><a name="b" href="javascript:;">999元/月以下</a></li>
<li class="rentnum"><a name="b" href="javascript:;">1000-1999元/月</a></li>
<li class="rentnum"><a name="b" href="javascript:;">2000-3999元/月</a></li>
<li class="rentnum"><a name="b" href="javascript:;">4000-5999元/月</a></li>
<li class="rentnum"><a name="b" href="javascript:;">6000-9999元/月</a></li>
<li class="rentnum"><a name="b" href="javascript:;">10000元/月以上</a></li>
</ul>
</div>
<div class="area-box">
<div class="area">面积:</div>
<ul>
<li class="active-area"><a id="c1" href="javascript:;">不限</a></li>
<li class="areanum"><a name="c" href="javascript:;">49㎡以下</a></li>
<li class="areanum"><a name="c" href="javascript:;">50-79㎡</a></li>
<li class="areanum"><a name="c" href="javascript:;">80-119㎡</a></li>
<li class="areanum"><a name="c" href="javascript:;">120-159㎡</a></li>
<li class="areanum"><a name="c" href="javascript:;">160-199㎡</a></li>
<li class="areanum"><a name="c" href="javascript:;">200-259㎡</a></li>
<li class="areanum"><a name="c" href="javascript:;">260-299㎡</a></li>
<li class="areanum"><a name="c" href="javascript:;">300-399㎡</a></li>
<li class="areanum"><a name="c" href="javascript:;">400-499㎡</a></li>
<li class="areanum"><a name="c" href="javascript:;">500㎡以上</a></li>
</ul>
</div>
<div class="kind-box">
<div class="kind">户型:</div>
<ul>
<li class="active-kind"><a id="d1" href="javascript:;">不限</a></li>
<li class="kindnum"><a name="d" href="javascript:;">1居室</a></li>
<li class="kindnum"><a name="d" href="javascript:;">2居室</a></li>
<li class="kindnum"><a name="d" href="javascript:;">3居室</a></li>
<li class="kindnum"><a name="d" href="javascript:;">4居室</a></li>
<li class="kindnum"><a name="d" href="javascript:;">5居室</a></li>
<li class="kindnum"><a name="d" href="javascript:;">5居室以上</a></li>
</ul>
</div>
<div class="sort-box">
<ul>
<li><a class="active-sort" id="s1" href="javascript:;">默认</a></li>
<span class="divide">|</span>
<li><a class="sort" name="s" href="javascript:;">租金</a></li>
<span class="divide">|</span>
<li><a class="sort" name="s" href="javascript:;">最近发布</a></li>
</ul>
</div>
<div class="items-box">
<div class="item">
<img class="img" src="./img/house1.jpg" alt="" style="width: 220px;height: 180px;">
<div class="message">
<span class="messageFont">XX小区xxx号 ——4室1厅2卫</span><br />
<span class="messageFont">位置</span><br />
<span class="messageFont">4室1厅2卫 **㎡</span>
</div>
<div>
<span class="price">参考价格:29999元/月</span><br>
<span class="priceId">房源识别码:XXXXXXXXXX</span>
</div>
</div>
<div class="item">
<img class="img" src="./img/house2.jpg" alt="" style="width: 220px;height: 180px;">
<div class="message">
<span class="messageFont">XX小区xxx号 ——1室1厅1卫</span><br />
<span class="messageFont">位置</span><br />
<span class="messageFont">1室1厅1卫 **㎡</span>
</div>
<div>
<span class="price">参考价格:1800元/月</span><br>
<span class="priceId">房源识别码:XXXXXXXXXX</span>
</div>
</div>
<div class="item">
<img class="img" src="./img/house3.jpg" alt="" style="width: 220px;height: 180px;">
<div class="message">
<span class="messageFont">XX小区xxx号 ——3室1厅1卫</span><br />
<span class="messageFont">位置</span><br />
<span class="messageFont">3室1厅1卫 **㎡</span>
</div>
<div>
<span class="price">参考价格:3000元/月</span><br>
<span class="priceId">房源识别码:XXXXXXXXXX</span>
</div>
</div>
<div class="item">
<img class="img" src="./img/house4.jpg" alt="" style="width: 220px;height: 180px;">
<div class="message">
<span class="messageFont">XX小区xxx号 ——*室*厅*卫</span><br />
<span class="messageFont">位置</span><br />
<span class="messageFont">*室*厅*卫 **㎡</span>
</div>
<div>
<span class="price">参考价格:11000元/月</span><br>
<span class="priceId">房源识别码:XXXXXXXXXX</span>
</div>
</div>
<div class="item">
<img class="img" src="./img/house5.jpg" alt="" style="width: 220px;height: 180px;">
<div class="message">
<span class="messageFont">XX小区xxx号 ——1室0厅1卫</span><br />
<span class="messageFont">位置</span><br />
<span class="messageFont">1室0厅1卫 **㎡</span>
</div>
<div>
<span class="price">参考价格:899元/月</span><br>
<span class="priceId">房源识别码:XXXXXXXXXX</span>
</div>
</div>
<div class="item">
<img class="img" src="./img/house6.jpg" alt="" style="width: 220px;height: 180px;">
<div class="message">
<span class="messageFont">XX小区xxx号 ——1室0厅1卫</span><br />
<span class="messageFont">位置</span><br />
<span class="messageFont">1室0厅1卫 **㎡</span>
</div>
<div>
<span class="price">参考价格:1000元/月</span><br>
<span class="priceId">房源识别码:XXXXXXXXXX</span>
</div>
</div>
<div class="item">
<img class="img" src="./img/house7.jpg" alt="" style="width: 220px;height: 180px;">
<div class="message">
<span class="messageFont">XX小区xxx号 ——2室1厅1卫</span><br />
<span class="messageFont">位置</span><br />
<span class="messageFont">2室1厅1卫 **㎡</span>
</div>
<div>
<span class="price">参考价格:1500元/月</span><br>
<span class="priceId">房源识别码:XXXXXXXXXX</span>
</div>
</div>
</div>
<div class="digg">
<span class="disabled">< </span><span class="current">1</span><a href="#?page=2">2</a><a href="#?page=3">3</a><a href="#?page=4">4</a><a href="#?page=5">5</a><a href="#?page=6">6</a><a href="#?page=7">7</a>...<a href="#?page=199">199</a><a href="#?page=200">200</a><a href="#?page=2">
> </a>
</div>
</div>
</div>
<!-- 底部基本信息 -->
<div class="lia-info">
<div class="tit">重庆市*********委员会</div>
<ul class="other-info">
<li>网站标识码: 1********1</li>
<li>ICP备案: 渝ICP备12****34号-5</li>
<li>渝公网安备12**********34号</li>
</ul>
<nav>
<div class="a">
<a href="javascript:;">网站地图</a>
<span>|</span>
<a href="javascript:;">版权声明</a>
<span>|</span>
<a href="javascript:;">联系我们</a>
</div>
<span>联系方式:023-12****34</span>
</nav>
</div>
</body>
</html>