list.php 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. <?php
  2. use mobile\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/js/index/swiper-3.4.2.min.css");
  7. AppAsset::addScript($this, Yii::$app->request->baseUrl . '/overseas/js/index/swiper-3.4.2.min.js');
  8. AppAsset::addCss($this, Yii::$app->request->baseUrl . "/overseas/js/homelist/dist/dropload.css"); //2019-5-9 下拉加载样式
  9. AppAsset::addCss($this, Yii::$app->request->baseUrl . "/overseas/css/loading/loaders.min.css"); //加载转圈需要样式
  10. AppAsset::addCss($this, Yii::$app->request->baseUrl . "/overseas/css/homelist.css");
  11. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/overseas/js/homelist/dist/dropload.min.js"); //2019-5-9 下拉加载最新插件
  12. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/overseas/js/house/search.js");
  13. AppAsset::addScript($this, Yii::$app->request->baseUrl . '/overseas/js/search_public.js');
  14. $this->title = '楼盘列表';
  15. ?>
  16. <div id="serachBox2">
  17. <?php $this->beginContent('@app/views/public/nav.php'); ?>
  18. <?php $this->endContent(); ?>
  19. <!-- v2 搜索 -->
  20. <div class="yv2_listSearch">
  21. <div class="yv2_listSearchBox js_y_lplist_inp">
  22. <span>请输入楼盘名称或区域</span>
  23. <em><img src="/overseas/img/v2image/v2_ico12.png" alt="">搜索</em>
  24. </div>
  25. </div>
  26. <div style="height: 50px;"></div>
  27. <!-- v2广告 -->
  28. <div class="yv2_adcBox">
  29. <div class="yv2_adcBox_main">
  30. <a href="javascript:;" onclick="$53click()"><img src="/overseas/img/v2image/v2_ico10.png" alt=""></a>
  31. </div>
  32. </div>
  33. <div class="y_homelist_head">
  34. <!-- 轮播图 -->
  35. <?php if (!empty($lunbo)) { ?>
  36. <div class="banner" style="display:none;">
  37. <div class="banner_img swiper-container1">
  38. <ul class="swiper-wrapper">
  39. <?php foreach ($lunbo as $val) { ?>
  40. <li class="swiper-slide">
  41. <div class="wadlabel"><?= Opencc::ConvertHn('广告') ?></div>
  42. <div class="wweffective"
  43. style=""></div>
  44. <a target="_blank" href="<?= $val['url'] ?>"><img src="<?= $val['img'] ?>"
  45. alt="<?= Opencc::ConvertHn($val['title']) ?>"
  46. title="<?= Opencc::ConvertHn($val['title']) ?>"/></a>
  47. </li>
  48. <?php } ?>
  49. </ul>
  50. <div class="swiper-pagination" id="swiper-pagination1"></div>
  51. </div>
  52. </div>
  53. <?php } ?>
  54. <div class="y_qylist c">
  55. <div class="y_qylist_hoe c">
  56. <div class="y_qylist_con" data-id='1'>
  57. <p class="y_topmain feng_city"><span><?php
  58. if(!empty($model['select_city'])){
  59. echo $model['select_city']['city_name'];
  60. }else{
  61. echo Opencc::ConvertHn('区域');
  62. }
  63. ?></span><i><img src="/overseas/img/v2image/v2_ico11_1.png" alt=""></i></p>
  64. </div>
  65. <div class="y_qylist_con" data-id='2'>
  66. <p class="y_topmain feng_price"><span><?php
  67. if(!empty($model['select_price'])){
  68. echo $model['select_price'];
  69. }else{
  70. echo Opencc::ConvertHn('价格');
  71. }
  72. ?></span><i><img src="/overseas/img/v2image/v2_ico11_1.png" alt=""></i>
  73. </p>
  74. </div>
  75. <div class="y_qylist_con" data-id='3'>
  76. <p class="y_topmain feng_brand"><span><?php
  77. if(!empty($model['select_type'])){
  78. echo $model['select_type']['huxing_name'];
  79. }else{
  80. echo Opencc::ConvertHn('户型');
  81. }
  82. ?></span><i><img src="/overseas/img/v2image/v2_ico11_1.png" alt=""></i>
  83. </>
  84. </div>
  85. <div class="y_qylist_con" data-id='4'>
  86. <p class="y_topmain feng_type"><span><?php
  87. if(!empty($model['select_lb'])){
  88. echo $model['select_lb'];
  89. }else{
  90. echo Opencc::ConvertHn('特色');
  91. }
  92. ?></span><i><img src="/overseas/img/v2image/v2_ico11_1.png" alt=""></i></p>
  93. </div>
  94. </div>
  95. </div>
  96. </div>
  97. <div class="y_homelist_list">
  98. <ul class="c">
  99. <?php if (!empty($house_data)) { ?>
  100. <?php foreach ($house_data as $val) { ?>
  101. <li>
  102. <div class="sell_conterBox">
  103. <a href="/house/<?= $val['id'] ?>">
  104. <div class="sell_conterBox_l">
  105. <p class="img"><img src="<?= $val['thumb'] ?>/same" alt=""></p>
  106. <p class="city"><?= Opencc::ConvertHn($val['city_name']) ?></p>
  107. <div class="sdin">
  108. <?php if (!empty($val['vr_path'])) { ?>
  109. <div class="vvid_pic_ico vr-animation-forever"></div>
  110. <?php } ?>
  111. <?php if (!empty($val['video_url'])) { ?>
  112. <p class="vid_ico"><img src="/overseas/img/v2image/v2_ico5.png" alt=""></p>
  113. <?php } ?>
  114. </div>
  115. <?php if (!empty($val['panorama'])) { ?>
  116. <p class="hangpai">航拍实景</p>
  117. <?php } ?>
  118. </div>
  119. <div class="sell_conterBox_r">
  120. <h2 class="title"><?= Opencc::ConvertHn($val['name']) ?></h2>
  121. <?php if (!empty($val['sale_price'])) { ?>
  122. <p class="pric"><span><?= $val['sale_price'] ?></span><?= Opencc::ConvertHn($val['price_unit']) ?></p>
  123. <?php } else { ?>
  124. <p class="pric"><span>待定</span></p>
  125. <?php } ?>
  126. <p class="time js_time">有效期至:2020.08.31</p>
  127. <p class="style">
  128. <i><?=$val['state']?></i>
  129. <?php if (!empty($val['characteristic'])) : ?>
  130. <?php foreach ($val['characteristic'] as $key => $characteristic) { ?>
  131. <?php if($key < 2 ) {?>
  132. <span><?= Opencc::ConvertHn($characteristic) ?></span>
  133. <?php }?>
  134. <?php } ?>
  135. <?php endif; ?>
  136. </p>
  137. </div>
  138. </a>
  139. <?php if($val['preferential']){?>
  140. <div class="lp_zk">
  141. <span>
  142. <img src="/overseas/img/v2image/v2_ico6.png" alt="">
  143. <b>优惠活动</b>
  144. <i>|</i>
  145. <em><?=$val['preferential']?></em>
  146. </span>
  147. </div>
  148. <?php }?>
  149. </div>
  150. <div class="lp_tell">
  151. <a href="tel:<?php if (!empty($val['is_tel'])) {
  152. echo $val['is_tel'];
  153. } else {
  154. echo $val['citytel'];
  155. } ?>"><img src="/overseas/img/pulic_ico3.png" alt="">免费电话</a>
  156. </div>
  157. </li>
  158. <?php } ?>
  159. <?php } ?>
  160. </ul>
  161. </div>
  162. </div>
  163. <!-- 筛选栏 -->
  164. <div class="wx_screen_box">
  165. <!-- 选择按钮 -->
  166. <div class="wx_screen_btn sh">
  167. <span><i>条件</i>选择</span>
  168. </div>
  169. <div class="wx_sreen_con">
  170. <div class="y_qylist_cnet">
  171. <div class="y_qylist_cnet_ind" data-id='1'>
  172. <a class="link_click link_click_a" href="javascript:;" name="city"
  173. value="0"><?= Opencc::ConvertHn('不限') ?></a>
  174. <?php foreach ($model['city'] as $val) { ?>
  175. <a class="link_click link-item" href="javascript:;" name="city" pinyin="<?= $val['pinyin'] ?>"
  176. value="<?= $val['id'] ?>"><span><?= Opencc::ConvertHn($val['city_name']) ?></span></a>
  177. <?php } ?>
  178. <div class="three_area">
  179. </div>
  180. </div>
  181. <div class="y_qylist_cnet_ind wx_btn" data-id='2'>
  182. <a class="link_click" href="javascript:;" name="price" value="0"><?= Opencc::ConvertHn('不限') ?></a>
  183. <?php foreach ($model['price'] as $val) { ?>
  184. <a class="link_click" href="javascript:;" name="price"
  185. value="<?= $val['price'] ?>"><span><?= Opencc::ConvertHn($val['price']) ?></a>
  186. <?php } ?>
  187. </span>
  188. </div>
  189. <div class="y_qylist_cnet_ind wx_btn_1" data-id='3'>
  190. <a class="link_click" href="javascript:;" name="type"
  191. value="0"><?= Opencc::ConvertHn('不限') ?></a>
  192. <?php foreach ($model['type'] as $val) { ?>
  193. <a class="link_click" href="javascript:;" name="type"
  194. value="<?= $val['id'] ?>"><span><?= $val['huxing_name'] ?></span></a>
  195. <?php } ?>
  196. </div>
  197. <div class="y_qylist_cnet_ind wx_btn yv3_revamp" data-id='4'>
  198. <div class="y_v3filtrateList">
  199. <div class="m_title m">品牌</div>
  200. <div class="js_screen_box c" name="type">
  201. <a class="js_filtrateBut" href="javascript:;" name="brand"
  202. value="0"><?= Opencc::ConvertHn('不限') ?></a>
  203. <?php if (!empty($model['brand'])) {
  204. foreach ($model['brand'] as $val) { ?>
  205. <a class="js_filtrateBut" href="javascript:;" name="brand"
  206. value="<?= $val['id'] ?>"><span><?= Opencc::ConvertHn($val['name']) ?></span></a>
  207. <?php }
  208. } ?>
  209. </div>
  210. <div class="m_title m">类型</div>
  211. <div class="js_screen_box c" name="l">
  212. <a class="js_filtrateBut" href="javascript:;" name="l"
  213. value="0"><?= Opencc::ConvertHn('不限') ?></a>
  214. <?php foreach ($model['label'] as $val) { ?>
  215. <a class="js_filtrateBut" href="javascript:;" name="l"
  216. value="<?= $val['id'] ?>"><span><?= $val['name'] ?></span></a>
  217. <?php } ?>
  218. </div>
  219. <div style="height:100px;"></div>
  220. </div>
  221. <div class="y_v3buttomBox c">
  222. <div class="lise_bran js_conditionBox">
  223. <!-- <span><em>万达</em><i><img src="/image/lptj03.png" alt=""></i></span>
  224. <span><em>花园洋房</em><i><img src="/image/lptj03.png" alt=""></i></span> -->
  225. </div>
  226. <p class="c">
  227. <a class="le js_unlimited" href="javascript:;">不限</a>
  228. <a class="ri js_confirm" href="javascript:;">确定</a>
  229. </p>
  230. </div>
  231. </div>
  232. </div>
  233. </div>
  234. <!-- 选择按钮 -->
  235. <div class="wx_screen_btn js_wx_screen_btn">
  236. <a class="wx_cls" href="javascript:void(0);"><?= Opencc::ConvertHn('取消') ?></a>
  237. <!-- <span><i>条件</i>选择</span> -->
  238. <a class="wx_confirm" href="javascript:void(0);"><?= Opencc::ConvertHn('确定') ?></a>
  239. </div>
  240. </div>
  241. <!--楼盘总数 用来每次新进入页面弹出多少套房源-->
  242. <div class="feng_house_total" style="display: none;"><?= $house_total ?></div>
  243. <!-- 遮挡层 -->
  244. <div class="w_barrier"></div>