search.php 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  1. <?php
  2. use frontend\assets\AppAsset;
  3. use yii\helpers\Html;
  4. use yii\helpers\Url;
  5. use common\fm\Opencc;
  6. AppAsset::addCss($this, Yii::$app->request->baseUrl . "/overseas/css/lp_list.css");
  7. AppAsset::addScript($this,Yii::$app->request->baseUrl.'/overseas/js/qrcode/qrcode.js');
  8. AppAsset::addScript($this,Yii::$app->request->baseUrl.'/overseas/js/scrollfix.min.js');
  9. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/overseas/js/search.js");
  10. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/overseas/js/applyVerify.min.js");
  11. use yii\widgets\LinkPager;
  12. $this->title = '海南楼盘列表';
  13. $this->metaTags[] = '<meta name="keywords" content="楼盘,最新楼盘,最新楼盘信息,新房价格信息,楼盘价格、一手房价格、新房价格、最新房源" />';//第二种
  14. $this->metaTags[] = '<meta name="description" content="欢迎您访问品房海外海南站楼盘频道,品房海外海南楼盘频道为您提供楼盘信息、在售楼盘、最新楼盘,新房价格信息,更多楼盘信息尽在品房海外海南站-专注为您找好房."/>';
  15. ?>
  16. <div class="m_nav_box">
  17. <div class="m_nav_qy">
  18. <div class="c">
  19. <div class="m_nav_qy_l">
  20. <em>区域</em>
  21. <a href="javascript:void(0)"
  22. name="city" value="0"
  23. <?php if (!isset($_GET['city']) || $_GET['city'] == 0) echo 'id="nav"' ?> >
  24. 不限
  25. </a>
  26. </div>
  27. <?php if (!empty($city)) { ?>
  28. <p class="m_nav_qy_listsjs m_nav_qy_listsjs2 c">
  29. <?php foreach ($city as $val) { ?>
  30. <a href="javascript:void(0)" name="city"
  31. pinyin="<?= $val['pinyin'] ?>"
  32. value="<?= $val['id'] ?>"><?= $val['city_name'] ?>
  33. </a>
  34. <?php } ?>
  35. </p>
  36. <?php } ?>
  37. </div>
  38. </div>
  39. <div class="m_nav_qy c">
  40. <div class="m_nav_qy_l">
  41. <em>价格</em>
  42. <a href="javascript:void(0)" name="price"
  43. value="0" <?php if (!isset($_GET['price']) || $_GET['price'] == 0) echo 'id="nav"' ?> >不限</a>
  44. </div>
  45. <?php if (!empty($price)) { ?>
  46. <p class="m_nav_qy_list">
  47. <?php foreach ($price as $val) { ?>
  48. <a href="javascript:void(0)" name="price" value="<?php echo $val['id'] ?>"><?= $val['price'] ?></a>
  49. <?php } ?>
  50. </p>
  51. <?php } ?>
  52. </div>
  53. <div class="m_nav_qy c">
  54. <div class="m_nav_qy_l">
  55. <em>户型</em>
  56. <a href="javascript:void(0)" name="type" value="0" <?php if (!isset($_GET['type']) || $_GET['type'] == 0) echo 'id="nav"' ?> >不限</a>
  57. </div>
  58. <?php if (!empty($type)) { ?>
  59. <p class="m_nav_qy_list">
  60. <?php foreach ($type as $val) { ?>
  61. <a href="javascript:void(0)" name="type" value="<?php echo $val['id'] ?>"><?php echo $val['huxing_name'] ?></a>
  62. <?php } ?>
  63. </p>
  64. <?php } ?>
  65. </div>
  66. <div class="m_nav_qy c">
  67. <div class="m_nav_qy_l">
  68. <em>类型</em>
  69. <a href="javascript:void(0)" name="characteristic"
  70. value="0" <?php if (!isset($_GET['characteristic']) || $_GET['characteristic'] == 0) echo 'id="nav"' ?> >不限</a>
  71. </div>
  72. <?php if (!empty($characteristic)) { ?>
  73. <p class="m_nav_qy_list">
  74. <?php foreach ($characteristic as $val) { ?>
  75. <a href="javascript:void(0)" name="characteristic" value="<?php echo $val['id'] ?>"><?php echo $val['name'] ?></a>
  76. <?php } ?>
  77. </p>
  78. <?php } ?>
  79. </div>
  80. <!--<div class="m_nav_qy c">
  81. <div class="m_nav_qy_l">
  82. <em>品牌</em>
  83. <a href="javascript:void(0)" name="zhuti" value="0" <?php /*if (!isset($_GET['zhuti']) || $_GET['zhuti'] == 0) echo 'id="nav"' */?> >不限</a>
  84. </div>
  85. <?php /*if (!empty($brand)) { */?>
  86. <p class="m_nav_qy_list m_nav_qy_tese">
  87. <?php /*foreach ($brand as $val) { */?>
  88. <a href="javascript:void(0)" name="zhuti" value="<?/*= $val['id'] */?>"><?/*= $val['name'] */?></a>
  89. <?php /*} */?>
  90. </p>
  91. <?php /*} */?>
  92. </div>-->
  93. <div class="yv2_selected js_yv2_selected">
  94. <div class="yv2_selected_main">已选条件:</div>
  95. <div class="yv2_selected_cnter">
  96. <div class="yv2_selected_list js_yv2_selected_list">
  97. <!-- <a href="javascript:;" name="" value=""><span>三亚市</span><i>X</i></a>
  98. <a href="javascript:;"><span>三亚市</span><i>X</i></a> -->
  99. </div>
  100. <div class="yv2_selected_right">
  101. <a href="/house/search"><img src="/overseas/img/v2image/v2_ico22.png" alt="">清空筛选</a>
  102. </div>
  103. </div>
  104. </div>
  105. </div>
  106. <!--排序-->
  107. <div class="m_sort c">
  108. <ul class="c">
  109. <!-- id="sort" -->
  110. <li name="default" value="1" class="sort m_sortClick">默认排序</li>
  111. <li name="pricesort" class="sort_jg"><span class="fnt">按价格</span>
  112. <div class="m_sort_jg">
  113. <span name="pricesort" value="1" class="m_sortClick">低到高</span>
  114. <span name="pricesort" value="2" class="m_sortClick">高到低</span>
  115. </div>
  116. </li>
  117. <li name="vrread" value="1" class="m_sortClick">全景看房</li>
  118. <div class="yv2_map fl"><a target="_blank" href="/map/home"><img src="/overseas/img/v2image/v2_ico23.png" alt="">地图找房</a></div>
  119. </ul>
  120. <span class="m_sort_gs">共 <i><?php echo $count ?></i> 个楼盘</span>
  121. </div>
  122. <div class="m_lp_box js_listLp_box">
  123. <ul class="m_lp_list">
  124. <?php if (!empty($models)) { ?>
  125. <?php foreach ($models as $key => $val) { ?>
  126. <li>
  127. <div class="list_main">
  128. <div class="lpleft_img">
  129. <a target="_blank" href="/house/<?= $val['id'] ?>">
  130. <p class="lpico"><img src="<?= Yii::$app->params['httpImg']['hosts'], Yii::$app->params['httpImg']['house'], $val['thumb'] ?>/same" alt=""></p>
  131. <p class="city"><?php echo $val['city_name'] ?></p>
  132. <p class="video_ico">
  133. <?php if (!empty($val['video_url'])) { ?>
  134. <i><img src="/overseas/img/v2image/v2_ico30.png" alt=""></i>
  135. <?php } ?>
  136. <?php if (!empty($val['albumCount'])) { ?>
  137. <i><img src="/overseas/img/v2image/v2_ico31.png" alt=""></i>
  138. <?php } ?>
  139. </p>
  140. <?php if (!empty($val['panorama'])) { ?>
  141. <div class="sdin">
  142. <div class="vvid_pic_ico vr-animation-forever"></div>
  143. </div>
  144. <?php } ?>
  145. </a>
  146. </div>
  147. <div class="lpright_text">
  148. <div class="lpright_text_l">
  149. <p class="title">
  150. <a target="_blank" href="/house/<?= $val['id'] ?>"><?php echo $val['name'] ?></a>
  151. <span>在售</span>
  152. </p>
  153. <?php if(!empty($val['preferential'])){?>
  154. <p class="lpzk lp_puic">
  155. <i><img src="/overseas/img/v2image/v2_ico24.png" alt=""></i>
  156. <span><?=$val['preferential']?></span>
  157. <a href="javascript:;" class="pic_jjtz" data-buttom="立即锁定" data-title="锁定折扣优惠" data-hid="<?= $val['id'] ?>" data-text="<em>【<?php echo $val['name'] ?>】</em>开发商直销,享特惠折扣,在线预约锁定 优惠。" data-source="126">锁定优惠</a>
  158. </p>
  159. <?php }?>
  160. <p class="lphx lp_puic">
  161. <i><img src="/overseas/img/v2image/v2_ico25.png" alt=""></i>
  162. <span><?php echo '(建筑面积)' . $val['main_units'] ?></span>
  163. </p>
  164. <p class="lpdiz lp_puic">
  165. <i><img src="/overseas/img/v2image/v2_ico26.png" alt=""></i>
  166. <span><?php echo $val['address'] ?></span>
  167. <a href="javascript:;" class="y_idckdt" data-jwd="<?php echo $val['longitude_latitude'] ?>" data-title="<?php echo $val['name'] ?>"><img src="/overseas/img/v2image/v2_ico28.png" alt="">查看地图</a>
  168. </p>
  169. <div class="lptell_main">
  170. <div class="lptell_main_l">
  171. <img src="/overseas/img/v2image/v2_ico27.png" alt="">
  172. <span><?php echo $val['citytel'] ?></span>
  173. </div>
  174. <div class="lptell_main_r js_lptell_main_r">
  175. <div class="lptell_main_r_main"><a href="javascript:;"><img src="/overseas/img/v2image/v2_ico29.png" alt="">扫码拨号</a></div>
  176. <div class="lptell_main_show js_lptell_main_show">
  177. <p class="ewm_main js_ewm_main" id="list_sm<?= $key ?>" src="http://m.pinfanghw.com/house/selftel/<?= $val['id'] ?>?tel=<?php echo $val['citytel'] ?>"></p>
  178. <p class="text">
  179. <i>微信扫码拨号</i>
  180. <i>询问底价</i>
  181. </p>
  182. </div>
  183. </div>
  184. </div>
  185. <p class="style">
  186. <?php if (!empty($val['characteristic']) && is_array($val['characteristic'])) {
  187. foreach ($val['characteristic'] as $v) { ?>
  188. <i><?php echo $v ?></i>
  189. <?php }
  190. } ?>
  191. </p>
  192. </div>
  193. <div class="lpright_text_r">
  194. <div class="lppric_main">
  195. <?php if (!empty($val['sale_price'])) { ?>
  196. <p class="lppric">
  197. <span><?php echo $val['sale_price'] ?></span>
  198. <em><?php echo $val['price_unit'] ?></em>
  199. </p>
  200. <?php } else { ?>
  201. <p class="lppric">
  202. <span>待定</span>
  203. <em></em>
  204. </p>
  205. <?php } ?>
  206. <p class="lptime yv2_puicTime">有效期至:</p>
  207. </div>
  208. <div class="lpzx_main js_lpzx_main">
  209. <p class="ico_top"><img src="/overseas/img/service2.png" alt=""></p>
  210. <a href="javascript:;" onclick="$53click()">向Ta咨询></a>
  211. </div>
  212. </div>
  213. </div>
  214. </div>
  215. <?php if(!empty($val['news'])){?>
  216. <div class="yv2List_news">
  217. <span>【最新动态】</span>
  218. <a target="_blank" href="/news/details/<?=$val['news']['id']?>"><h2><?=$val['news']['subject']?></h2></a>
  219. </div>
  220. <?php }?>
  221. </li>
  222. <?php if ($key == 3) { ?>
  223. <div class="m_lp_list_gg">
  224. <div class="wadlabel" style="top:0;right:0;">广告</div>
  225. <img src="/overseas/img/v2image/v2_ico32.png" alt="">
  226. <form class="submit_area">
  227. <div class="m_lp_list_gg_form">
  228. <input type="hidden" name="aid" value="0"> <!-- 0 为公共报名,其它为楼盘ID-->
  229. <input type="hidden" name="source" value="83">
  230. <!--报名来源 具体查看applyVerify.js文件中source 标识说明-->
  231. <input type="hidden" name="equipment" value="2"> <!--来源设备 ( PC端 2,手机端 1 )-->
  232. <input name="mobile" type="text" placeholder="请输入手机号,预约找房"
  233. class="f_input sign-mobile2">
  234. <input type="button" value="立即咨询" class="f_submit sign-btn2 m_lp_list_button">
  235. </div>
  236. </form>
  237. </div>
  238. <?php } ?>
  239. <?php }
  240. } ?>
  241. <div class="page_list c">
  242. <?php if (!empty($page)) { ?>
  243. <?=
  244. LinkPager::widget(['pagination' => $page,
  245. 'nextPageLabel' => '下一页',
  246. 'prevPageLabel' => '上一页',]);
  247. } ?>
  248. </div>
  249. </ul>
  250. <div class="m_lp_r">
  251. <div class="lp_xuangua" id="lp_xuangua">
  252. <div class="listHothome">
  253. <div class="listHothome_title">
  254. <i></i>
  255. <span>本周热销楼盘</span>
  256. </div>
  257. <div class="listHothome_main">
  258. <ul>
  259. <?php if(!empty($hothouselist)){ foreach ($hothouselist as $k => $val){?>
  260. <li>
  261. <a href="/house/<?=$val['id']?>">
  262. <div class="top_texzt">
  263. <i><?= ++$k?></i>
  264. <span><?=$val['name']?></span>
  265. <em><?=$val['city_name']?></em>
  266. <?php if(!empty($val['sale_price'])){?>
  267. <b><?=$val['sale_price']?><?=$val['price_unit']?></b>
  268. <?php }else{ ?>
  269. <b>待定</b>
  270. <?php } ?>
  271. </div>
  272. <div class="bot_img">
  273. <img src="<?=Yii::$app->params['httpImg']['hosts'],Yii::$app->params['httpImg']['houses'],$val['thumb'],'/same'?>" alt="">
  274. </div>
  275. </a>
  276. </li>
  277. <?php }} ?>
  278. </ul>
  279. </div>
  280. </div>
  281. <div class="yv2_customization">
  282. <div class="listHothome_title">
  283. <i></i>
  284. <span>定制看房方案</span>
  285. </div>
  286. <div class="yv2_customization_Box">
  287. <div class="yv2_maing_text">
  288. <p>专业置业顾问,帮你定制好房</p>
  289. <p>免费咨询 一分钟内回复</p>
  290. </div>
  291. <div class="yv2_customization_form">
  292. <form class="submit_area">
  293. <input type="hidden" name="aid" value="0"> <!-- 0 为公共报名,其它为楼盘ID-->
  294. <input type="hidden" name="source" value="125">
  295. <!--报名来源 具体查看applyVerify.js文件中source 标识说明-->
  296. <input type="hidden" name="equipment" value="2"> <!--来源设备 ( PC端 2,手机端 1 )-->
  297. <input type="text" name="name" class="in_text" onfocus="this.placeholder=''" onblur="this.placeholder='请输入您的姓名'" placeholder="请输入您的姓名">
  298. <input type="text" name="mobile" class="in_text" onfocus="this.placeholder=''" onblur="this.placeholder='请输入您的手机号码'" placeholder="请输入您的手机号码">
  299. <a href="javascript:;" class="in_buttom m_lp_list_button">立即提交</a>
  300. </form>
  301. </div>
  302. <div class="yv2_customization_ico">
  303. <img src="/overseas/img/v2image/v2_ico33.png" alt="">
  304. </div>
  305. </div>
  306. </div>
  307. </div>
  308. </div>
  309. </div>