searchalert.php 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <?php
  2. use yii\helpers\Url;
  3. ?>
  4. <script src="/js/search_ajax.js"></script>
  5. <style>
  6. /*搜索弹出*/
  7. .clear_c{display:block; zoom:1;}
  8. .clear_c:after{content:"."; display:block; visibility:hidden; height:0; clear:both;}
  9. .search-header{background: #fff; display: block;position:relative;width:91%;margin:auto;box-shadow :0px 0px 16px 0px rgba(185, 211, 236, 0.4);margin-top:10px;height:40px;}
  10. .back-btn_maing{ float: left; width: 10%; display: block;}
  11. .back_search_m{ width: 88%; float: right; display: block;}
  12. .back_search_m .form input{ width: 81%; margin-bottom: 0px; display: block; float: left; border:none; border-radius:3px; height:40px;font-size:0.8125rem;background:#fff;}
  13. /*.back_search_m .form a img{width: 23px; height: auto;}*/
  14. .back_search_m .form{ position: relative;}
  15. .y_scriptm{ position: absolute; width:100%; left: 0px;top:115px;z-index: 12;height:100%;background:#FFF;display:none;}
  16. .y_scriptm .select4_box{width: 100%;overflow: auto; overflow-y:auto;background:#FFF;height:326px;}
  17. .y_scriptm .select4_box ul li{width: 100%;padding:0px 18px;}
  18. .y_scriptm .select4_box ul li a{ background:none; display: inline-block; width: 100%; text-align: left;border-bottom:1px solid #f8f8f8;padding:15px 0;}
  19. .y_scriptm .select4_box ul li span:nth-child(1){display: block; float: left;}
  20. .y_scriptm .select4_box ul li span:nth-child(1){font-size: 1rem; color: #333;}
  21. .y_scriptm .select4_box ul li span:nth-child(1) i{font-size: 0.8rem;color: #999; display: inline-block; margin-left: 5px;}
  22. .y_scriptm .select4_box ul li span:nth-child(2){display: block; float: right; font-size: 0.8rem; color: #999;}
  23. .y_scriptm .select4_box ul li span:nth-child(2) em{font-size: 1rem;color: #f00;}
  24. .select4_box li.active{ background:#f5f5f5;}
  25. #serachBox {z-index: 10;position: relative;}
  26. .search-container{}
  27. .search-container .title {position: relative;line-height: 14px;font-size:1.125rem;font-family: 'PingFang-Medium'; color:#000;display:block;font-weight:600;}
  28. .search-container .title .title-icon {display: block;width: 15px;height: 15px;background:url(/image/v2/sous2.png) no-repeat 0 0/ 100% 100%; float:left;margin-right:5px;}
  29. .search-container .title .title-icon.on{background:url(/image/v2/sous3.png) no-repeat 0 0/ 100% 100%; width:15px;height:19px;position: relative;top:-2px;}
  30. .search-container .filter-list, .search-container .history-list {background-color: #FFF;}
  31. .search-container .filter-list .filter-item {float: left;box-sizing: border-box;width: 22%;display: block; margin-right:4%; margin-bottom:4%;}
  32. .search-container .filter-list .filter-item:nth-child(4n){margin-right:0;}
  33. .search-container .history-list .list-item a {display: block; width: 100%;font-size: 0.9rem;text-overflow: ellipsis;white-space: nowrap;overflow: hidden;color:#333;}
  34. .search-container .filter-list .filter-item a {display: block;box-sizing: border-box;font-size: 0.9rem;text-align: center;color: #333;}
  35. .search-container .filter-list .filter-item a .item-text {display: block;box-sizing: border-box;width:100%; height: 100%;float: left;font-size: 0.875rem;color:#333;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;background:#F3F5F7;padding:8px 0;}
  36. .search-container .filter-list .filter-item:nth-child(3n) a .item-text{border-right:0px;}
  37. .search-container .filter-list .filter-item a i{ float: left; width: 16px; height: 15px; display: block; margin-left: 5px;}
  38. .search-container .filter-list .filter-item a i img{ width: 100%; height: 100%;position: relative;top:-5px}
  39. .search-container .search-history .title {border-top: 1px solid #ebebeb;}
  40. .search-container .clear-histroy { display: block;width: 100%;height: 41px;line-height: 41px;text-align: center;border-top: 1px solid #e7e7e7;border-bottom: 1px solid #e7e7e7;color: #999;font-size: 1rem;background-color: #fafafa;}
  41. .search-container .none-history {display: none;width: 100%;height: 41px;line-height: 41px;text-align: center;border-bottom: 1px solid #e7e7e7;color: #999;font-size: 1rem;background-color: #FFF;}
  42. .search-header .back-btn {position: absolute;left: 17px;top: 13px;width: 15px;height: 15px;background: url("/image/v2/sous1.png") no-repeat 0 0/ 100% 100%;}
  43. /* 搜索框图标*/
  44. /*.index_form {position:relative;}*/
  45. .w_sek {position:absolute;top:6px;left:10px;}
  46. .w_cls {position:absolute;top:9px;right:19%; display:none;width:15px;height:15px;}
  47. .submit{ width:16.5%; display: block; float: right; text-align: center; height: 40px; line-height:40px;position:relative;font-size:0.875rem;color:#333;}
  48. .submit:before {content:"";width:1px;height: 15px;position:absolute;display:block;background:#E6E5EB;top:13px;left:0;}
  49. .search-filter {margin:0 15px;}
  50. .w_li {margin-top:15px;}
  51. .w_c p {color:#4B8DE3;}
  52. .y_publicright {width: 44px;height: 40px;position: absolute;right: 0;top: 3px;margin-top:0;}
  53. .y_publicright a {display: block;width: 44px;height: 44px;background: url(../image/v2/dh2.png) no-repeat center;background-size: 20px 20px;}
  54. /*报名*/
  55. .wx_box {position:absolute;left:0;bottom:0;width:100%;height:50px;overflow:hidden;}
  56. .wx_box img {display:inline-block;width:100%;height:100%;}
  57. </style>
  58. <div id="serachBox" style="background:#fff; width:100%; height:100%;position:fixed;top:0;bottom:0;">
  59. <div class="y_header">
  60. <!-- <div class="header_back"><a href="javascript:history.back(-1)"><img src="/image/search/w_b.png"></a></div>-->
  61. <div class="header_back"><a href="javascript:void(0);" class="back-btn" onclick="btnCloses2();"><img style="top:14px" src="/image/v2/dh1.png"></a></div>
  62. <div class="header_logo2" style="top: 15px;font-size: 1rem;color:#333;font-weight:600;">搜索</div>
  63. <div class="y_publicright" style=""><a></a></div>
  64. </div>
  65. <div class="navsidebar" style="height:55px;"></div>
  66. <div class="search-header clear_c">
  67. <div class="back-btn_maing">
  68. <a href="javascript:void(0);" class="back-btn"></a>
  69. </div>
  70. <div class="back_search_m">
  71. <div class="form">
  72. <form class="index_form" action="javascript:search();">
  73. <!-- <a class="w_sek" href="javascript:void(0);"><img src="/image/index/w_seek.png" alt=""></a> -->
  74. <input type="search" placeholder="楼盘名" class="y_headerscr header_searchs">
  75. <a class="w_cls" href="javascript:void(0);"><img src="/image/index/w_cls.png" alt=""></a>
  76. <a class="submit" type="submit">
  77. <span>搜索</span>
  78. </a>
  79. <input type="submit" value="查找" style="display:none">
  80. </form>
  81. </div>
  82. </div>
  83. </div>
  84. <div class="y_scriptm"></div>
  85. <div class="search-container" style="border-bottom:1px solid #F5F5F5;margin-top:30px;padding-bottom: 50px;">
  86. <?php if( !empty($shaixuan)){ ?>
  87. <div class="search-filter">
  88. <h2 class="title c"><span class="title-icon"></span>热门户型</h2>
  89. <div class="w_li c">
  90. <ul class="filter-list">
  91. <?php foreach ($shaixuan as $val){ ?>
  92. <li class="filter-item"><a href="<?= '/house/search/?type=',$val['id'] ?>"><span class="item-text"><?= $val['huxing_name'] ?></span></a></li>
  93. <?php } ?>
  94. </ul>
  95. </div>
  96. </div>
  97. <?php } ?>
  98. </div>
  99. <div class="search-container" style="margin-top:50px;">
  100. <div class="search-filter">
  101. <h2 class="title c"><span class="title-icon on"></span>热门区域</h2>
  102. <!-- <div class="w_albel">
  103. <img src="/image/index/w_plot.png" alt="">
  104. <p>小区</p>
  105. </div> -->
  106. <div class="w_li c">
  107. <ul class="filter-list">
  108. <?php foreach ($hot_city as $val){ ?>
  109. <li class="filter-item"><a href="<?= '/house/search/?city=',$val['id'] ?>"><span class="item-text"><?= $val['city_name'] ?></span></a></li>
  110. <?php } ?>
  111. </ul>
  112. </div>
  113. </div>
  114. </div>
  115. <!-- 报名 -->
  116. <div class="wx_box">
  117. <a class="popup" href="javascript:;" data-name="房源推荐" data-text="针对需求荐房,买房不走弯路,<span style='color:red;'>买对房,买好房。</span>" data-id="0" data-module="50" data-button="立即咨询"><img src="/image/v2/widn.png" alt=""></a>
  118. </div>
  119. </div>