list.php 17 KB

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