index.php 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  1. <?php
  2. use mobile\assets\AppAsset;
  3. use yii\helpers\Url;
  4. use common\fm\Opencc;
  5. AppAsset::addCss($this, Yii::$app->request->baseUrl . "/overseas/js/index/swiper-3.4.2.min.css");
  6. AppAsset::addScript($this, Yii::$app->request->baseUrl . '/overseas/js/index/swiper-3.4.2.min.js');
  7. AppAsset::addCss($this, Yii::$app->request->baseUrl . "/overseas/css/index.css");
  8. AppAsset::addScript($this, Yii::$app->request->baseUrl . '/overseas/js/index/index.js');
  9. AppAsset::addScript($this, Yii::$app->request->baseUrl . '/overseas/js/search_public.js');
  10. $this->title = Opencc::ConvertHn('海南房地产门户,海南房地产网');
  11. ?>
  12. <div id="serachBox2">
  13. <!-- v2 改版 -->
  14. <div class="yv2_indexHead">
  15. <div class="yv2_indexHead_box">
  16. <div class="yv2_indexHead_left">
  17. <a href="javascript:;"><img src="/overseas/img/v2image/v2_ico1.png" alt=""></a>
  18. </div>
  19. <div class="yv2_indexHead_center js_y_lplist_inp">
  20. <a href="javascript:;" id="search_id2">
  21. <img src="/image/imagev3/v3_ico2.png" alt=""><span>请输入楼盘名称、区域</span>
  22. </a>
  23. </div>
  24. <div class="yv2_indexHead_right js_y_city"><a id="feng_cityname" href="javascript:;"><?= Opencc::ConvertHn($cityname) ?><i></i></a></div>
  25. </div>
  26. </div>
  27. <!-- v2 幻灯 -->
  28. <?php if(!empty($lunbo)){?>
  29. <div class="yv2_slide">
  30. <div class="yv2_slide_main">
  31. <div class="yv2_slideBox yv2_slideBox">
  32. <ul class="swiper-wrapper">
  33. <?php foreach ($lunbo as $val) { ?>
  34. <li class="swiper-slide">
  35. <a href="<?=$val['url']?>"><img src="<?=$val['img']?>" alt="<?=$val['title']?>"></a>
  36. </li>
  37. <?php } ?>
  38. </ul>
  39. </div>
  40. <div class="swiper-pagination js_swiper-pagination"></div>
  41. </div>
  42. </div>
  43. <?php } ?>
  44. <!--导航 -->
  45. <?php if (!empty($sysmenu)) { ?>
  46. <div class="main_columns">
  47. <ul class="c">
  48. <?php foreach ($sysmenu as $val){ ?>
  49. <li <?php if($val['name']=='看房定制'){ echo 'class="index_list customize_btn" data-name="看房定制" data-id="0" data-module="127"'; } ?>><a href="<?= $val['url'] ?>" <?php if(!empty($val['function'])){echo $val['function'];} ?> ><span><img src="<?= Yii::$app->params['httpImg']['host'],Yii::$app->params['httpImg']['city'],$val['icon'] ?>"></span><h1><?php echo $val['name'] ?></h1></a></li>
  50. <?php } ?>
  51. </ul>
  52. </div>
  53. <?php } ?>
  54. <!-- 推荐 -->
  55. <?php if(!empty($housetou)){?>
  56. <div class="headle">
  57. <div class="headle_main">
  58. <div class="headle_title"><img src="/overseas/img/v2image/v2_ico2.png" alt="" style="width:100%;left: 11px;top:12px;"></div>
  59. <div class="headle_right">
  60. <div class="content">
  61. <ul>
  62. <?php foreach ($housetou as $val){?>
  63. <li><a target="_blank" href="/news/details/<?=$val['id']?>"><span><?=$val['subject']?></span><img src="/overseas/img/v2image/v2_ico8.png" alt=""></a></li>
  64. <?php }?>
  65. </ul>
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. <?php }?>
  71. <!-- 热门地区 -->
  72. <div class="y_hotcity c">
  73. <div class="y_hotcitymain">
  74. <div class="hot_title">
  75. <div class="hot_title_font"><span><?= Opencc::ConvertHn('快捷') ?>找<?= Opencc::ConvertHn('房') ?></span></div>
  76. </div>
  77. <div class="y_hottype c">
  78. <a href="/house/search?characteristic=16"><?= Opencc::ConvertHn('海景房') ?></a>
  79. <a href="/house/search?characteristic=21"><?= Opencc::ConvertHn('旅游地产') ?></a>
  80. <a href="/house/search?characteristic=9"><?= Opencc::ConvertHn('特色别墅') ?></a>
  81. <a href="/house/search?characteristic=13"><?= Opencc::ConvertHn('投资地产') ?></a>
  82. <a href="/house/search?characteristic=25"><?= Opencc::ConvertHn('公园地产') ?></a>
  83. <a href="/house/search?characteristic=11"><?= Opencc::ConvertHn('小户型') ?></a>
  84. <a href="/house/search?characteristic=27"><?= Opencc::ConvertHn('低密居所') ?></a>
  85. <a href="/house/search?characteristic=24"><?= Opencc::ConvertHn('养生社区') ?></a>
  86. <a href="/house/search?characteristic=19"><?= Opencc::ConvertHn('花园洋房') ?></a>
  87. <a href="/house/search?characteristic=29"><?= Opencc::ConvertHn('教育地产') ?></a>
  88. </div>
  89. </div>
  90. </div>
  91. <!-- v2 热榜楼盘 -->
  92. <?php if(!empty($hothouse)){?>
  93. <div class="yv2_hotRanking">
  94. <div class="yv2_hotRankingBox">
  95. <div class="yv2_puicTitle">
  96. <h2>热榜楼盘</h2>
  97. </div>
  98. <div class="yv2_hotRanking_list">
  99. <ul>
  100. <?php foreach ($hothouse as $val){?>
  101. <li>
  102. <div class="lp_top">
  103. <a href="/house/<?=$val['id']?>">
  104. <p class="lp_img"><img src="<?=$val['thumb']?>" alt=""></p>
  105. <p class="top_hot">
  106. <i></i>
  107. <em><?=Yii::$app->params['HouseSalesStatus'][$val['state']]?></em>
  108. </p>
  109. <div class="lp_text">
  110. <div class="left">
  111. <h2><?=$val['name']?></h2>
  112. <em>[<?=$val['city_name']?>]</em>
  113. </div>
  114. <p class="right">
  115. <?php if(!empty($val['sale_price'])){?>
  116. <span><?=$val['sale_price']?></span>
  117. <em><?=$val['price_unit']?></em>
  118. <?php }else{?>
  119. <span>待定</span>
  120. <?php }?>
  121. </p>
  122. </div>
  123. <?php if(!empty($val['video_url'])){?>
  124. <p class="video_ico"><img src="/overseas/img/v2image/v2_ico4.png" alt=""></p>
  125. <?php }?>
  126. </a>
  127. </div>
  128. <div class="lp_bottom">
  129. <?php if(!empty($val['preferential'])){ ?>
  130. <div class="lp_zk">
  131. <p class="left">
  132. <img src="/overseas/img/v2image/v2_ico6.png" alt="">
  133. <span><?=$val['preferential']?></span>
  134. </p>
  135. <a class="right popup" data-title="锁定优惠" data-source="112" data-hid="<?=$val['id']?>" data-text="提交号码可获取户型报价、首付、月供详细报价单。" href="javascript:;">锁定优惠</a>
  136. </div>
  137. <?php }?>
  138. <div class="lp_zk lp_time">
  139. <p class="left">
  140. <img src="/overseas/img/v2image/v2_ico7.png" alt="">
  141. <span class="js_puicTime">有效期至:</span>
  142. </p>
  143. <a href="tel:<?=$val['is_tel']?>">电话咨询</a>
  144. </div>
  145. </div>
  146. </li>
  147. <?php }?>
  148. </ul>
  149. </div>
  150. <a href="/house/search" class="m_lj_ckgd">查看更多楼盘</a>
  151. </div>
  152. </div>
  153. <?php }?>
  154. <!-- v2 VR全景看房 -->
  155. <?php if(!empty($vrhouse)){?>
  156. <div class="yv2_panoramaVr">
  157. <div class="yv2_panoramaVrBox">
  158. <div class="yv2_puicTitle">
  159. <h2>VR全景看房</h2>
  160. </div>
  161. <div class="yv2_panoramaVr_list js_yv2_panoramaVr_list">
  162. <ul class="swiper-wrapper">
  163. <?php foreach ($vrhouse as $val){?>
  164. <li class="swiper-slide">
  165. <a href="/house/<?=$val['id']?>">
  166. <div class="top_ico">
  167. <p><img src="<?=$val['thumb']?>" alt=""></p>
  168. <div class="sdin">
  169. <div class="vvid_pic_ico vr-animation-forever"></div>
  170. </div>
  171. </div>
  172. <div class="botton_text">
  173. <h2 class="title"><?=$val['name']?></h2>
  174. <p class="city">[<?=$val['city_name']?>]</p>
  175. </div>
  176. </a>
  177. </li>
  178. <?php } ?>
  179. </ul>
  180. </div>
  181. <a href="/house/search" style="width:95%; margin:0 auto; margin-top: 20px;" class="m_lj_ckgd">查看更多楼盘</a>
  182. </div>
  183. </div>
  184. <?php } ?>
  185. <?php if (!empty($smallBanner)): ?>
  186. <div class="m_swiper_box" style="display: none;">
  187. <ul class="c">
  188. <?php foreach ($smallBanner as $val): ?>
  189. <li style="position:relative;">
  190. <div class="wadlabel"><?= Opencc::ConvertHn('广告') ?></div>
  191. <a href="<?= $val['url'] ?>"><img src="<?= $val['img']; ?>" alt=""></a>
  192. </li>
  193. <?php endforeach; ?>
  194. </ul>
  195. </div>
  196. <?php endif; ?>
  197. <!-- 热销楼盘 -->
  198. <div class="sell_box">
  199. <div class="yv2_sell_box">
  200. <div class="yv2_puicTitle">
  201. <h2>热门楼盘<h2>
  202. </div>
  203. <div class="sell_conter">
  204. <div id="feng_city_id" style="display: none;">0</div>
  205. <ul>
  206. <!-- <li>
  207. <div class="sell_conterBox">
  208. <a href="">
  209. <div class="sell_conterBox_l">
  210. <p class="img"><img src="/overseas/img/ico_6.png" alt=""></p>
  211. <p class="city">三亚市</p>
  212. <div class="sdin">
  213. <div class="vvid_pic_ico vr-animation-forever"></div>
  214. <p class="vid_ico"><img src="/overseas/img/v2image/v2_ico5.png" alt=""></p>
  215. </div>
  216. <p class="hangpai">航拍实景</p>
  217. </div>
  218. <div class="sell_conterBox_r">
  219. <h2 class="title">恒大双海湾</h2>
  220. <p class="pric"><span>2500</span>万/套起</p>
  221. <p class="time">有效期至:2020.08.31</p>
  222. <p class="style">
  223. <i>在售</i>
  224. <span>宜居生态</span>
  225. </p>
  226. </div>
  227. </a>
  228. <div class="lp_zk">
  229. <span>
  230. <img src="/overseas/img/v2image/v2_ico6.png" alt="">
  231. <b>优惠活动</b>
  232. <i>|</i>
  233. <em>一次性付款96折 分期98折</em>
  234. </span>
  235. </div>
  236. </div>
  237. <div class="lp_tell">
  238. <a href="tel:"><img src="/overseas/img/pulic_ico3.png" alt="">免费电话</a>
  239. </div>
  240. </li> -->
  241. </ul>
  242. <a href="/house/search" class="m_lj_ckgd"><?= Opencc::ConvertHn('查看更多') ?></a>
  243. </div>
  244. </div>
  245. </div>
  246. <div class="Livinglife" style="display:none;">
  247. <div class="Livinglife_c">
  248. <div class="yv2_puicTitle">
  249. <span>旅居生活</span>
  250. </div>
  251. <div class="Livinglife_bg c">
  252. <div class="left">
  253. <div class="left_top">
  254. <a href="/house/search?characteristic=20">
  255. <p class="tu"><img src="/overseas/img/index/livi_vidin1.png" alt=""></p>
  256. <div class="text">
  257. <p class="p1"><?= Opencc::ConvertHn('热门主题') ?></p>
  258. <p class="p2"><?= Opencc::ConvertHn('保障新房,安心居住') ?></p>
  259. </div>
  260. </a>
  261. </div>
  262. <div class="left_top left_top2">
  263. <a href="/house/search?characteristic=21">
  264. <p class="tu"><img src="/overseas/img/index/livi_vidin2.png" alt=""></p>
  265. <div class="text">
  266. <p class="p1"><?= Opencc::ConvertHn('自在旅居') ?></p>
  267. <p class="p2"><?= Opencc::ConvertHn('为您寻找合适自己的家') ?></p>
  268. </div>
  269. </a>
  270. </div>
  271. </div>
  272. <div class="right">
  273. <a href="/house/search?characteristic=9">
  274. <p class="tu"><img src="/overseas/img/index/livi_vidin3.png" alt=""></p>
  275. <div class="text">
  276. <p class="p1"><?= Opencc::ConvertHn('品质别墅') ?></p>
  277. <p class="p2"><?= Opencc::ConvertHn('品质献给懂生活的你') ?></p>
  278. </div>
  279. </a>
  280. </div>
  281. </div>
  282. <a href="/house/search/" class="m_lj_ckgd"><?= Opencc::ConvertHn('查看更多') ?></a>
  283. <div style="height:25px;"></div>
  284. </div>
  285. </div>
  286. <div class="y_hotnews_main" style="display:none;">
  287. <div class="yv2_hotnews">
  288. <div class="yv2_puicTitle">
  289. <h2>房产资讯</h2>
  290. </div>
  291. <div class="y_hotnews_list">
  292. <ul>
  293. <?php if(!empty($news)){
  294. foreach ($news as $val){
  295. $img = json_decode($val['thumb'],true);
  296. if(!isset($img[1])){
  297. ?>
  298. <li class="style1 c">
  299. <a href="<?= '/news/details/',$val['id'] ?>">
  300. <div class="y_style1_text">
  301. <?php if(!empty($val['short_subject'])){ ?>
  302. <p class="y_title"><?= $val['short_subject'] ?></p>
  303. <?php }else{ ?>
  304. <p class="y_title"><?= $val['subject'] ?></p>
  305. <?php } ?>
  306. <p class="y_sjll">
  307. <span class="y_ll"><i><img src="/overseas/img/ico_19.png" alt=""></i><?= $val['clicks'] ?></span>
  308. <span class="y_sj"><i><img src="/overseas/img/ico_20.png" alt=""></i><?= $val['open_time'] ?></span>
  309. </p>
  310. </div>
  311. <div class="y_style1_tu"><img src="<?= Yii::$app->params['httpImg']['host'],Yii::$app->params['httpImg']['newsthumb'],$img[0] ?>" alt=""></div>
  312. </a>
  313. </li>
  314. <?php } else{ ?>
  315. <li class="style2">
  316. <a href="<?= '/news/details/',$val['id'] ?>">
  317. <?php if(!empty($val['short_subject'])){ ?>
  318. <p class="y_title"><?= $val['short_subject'] ?></p>
  319. <?php }else{ ?>
  320. <p class="y_title"><?= $val['subject'] ?></p>
  321. <?php } ?>
  322. <p class="y_tulist c">
  323. <?php foreach ($img as $v){ ?>
  324. <i><img src="<?= Yii::$app->params['httpImg']['host'],Yii::$app->params['httpImg']['newsthumb'],$v?>" alt=""></i>
  325. <?php } ?>
  326. </p>
  327. <p class="y_sjll">
  328. <span class="y_ll"><i><img src="/overseas/img/ico_19.png" alt=""></i><?= $val['clicks'] ?></span>
  329. <span class="y_sj"><i><img src="/overseas/img/ico_20.png" alt=""></i><?= $val['open_time'] ?></span>
  330. </p>
  331. </a>
  332. </li>
  333. <?php } } } ?>
  334. </ul>
  335. <a href="/news/home" class="m_lj_ckgd">查看更多</a>
  336. </div>
  337. </div>
  338. </div>
  339. <!-- v2 航拍实景 -->
  340. <?php if(!empty($pushaerial)){?>
  341. <div class="yv2_panoramaVr">
  342. <div class="yv2_panoramaVrBox">
  343. <div class="yv2_puicTitle">
  344. <h2>航拍实景</h2>
  345. </div>
  346. <div class="yv2_panoramaVr_list js_yv2_hangpai_list">
  347. <ul class="swiper-wrapper">
  348. <?php foreach ($pushaerial as $val){?>
  349. <li class="swiper-slide">
  350. <a href="/house/<?=$val['id']?>">
  351. <div class="top_ico">
  352. <p><img src="<?=$val['thumb']?>" alt=""></p>
  353. <p class="vid_ico"><img src="/overseas/img/v2image/v2_ico5.png" alt=""></p>
  354. </div>
  355. <div class="botton_text">
  356. <h2 class="title"><?=$val['name']?></h2>
  357. <p class="city">[<?=$val['city_name']?>]</p>
  358. </div>
  359. </a>
  360. </li>
  361. <?php }?>
  362. </ul>
  363. </div>
  364. <a href="/house/search" style="width:95%; margin:0 auto; margin-top: 20px;" class="m_lj_ckgd">查看更多楼盘</a>
  365. </div>
  366. </div>
  367. <?php }?>
  368. <!-- 购房流程 -->
  369. <div class="process">
  370. <div class="process_main">
  371. <ul class="c">
  372. <li>
  373. <a class="popup" data-title="<?= Opencc::ConvertHn('报名看房') ?>"
  374. data-text="<?= Opencc::ConvertHn('我们将为您保密个人信息!专业团队,一对一服务,让您全程无忧看房!') ?>" data-hid="0"
  375. data-source="111" href="javascript:;">
  376. <p class="img"><img src="/overseas/img/icon-baoming.png" alt=""></p>
  377. <p class="txt">
  378. <span><?= Opencc::ConvertHn('报名看房') ?></span>
  379. <!-- <span>在线报名 订制看房行程</span> -->
  380. </p>
  381. </a>
  382. </li>
  383. <img src="/overseas/img/icon-right1.png" class="process_main_icon">
  384. <li>
  385. <a class="c" href="javascript:void(0);">
  386. <p class="img"><img src="/overseas/img/icon-jieji.png" alt=""></p>
  387. <p class="txt">
  388. <span><?= Opencc::ConvertHn('24h接送机') ?></span>
  389. <!-- <span>在线报名 订制看房行程</span> -->
  390. </p>
  391. </a>
  392. </li>
  393. <img src="/overseas/img/icon-right1.png" class="process_main_icon">
  394. <li>
  395. <a class="c popup" data-title="<?= Opencc::ConvertHn('看房专车') ?>"
  396. data-text="<?= Opencc::ConvertHn('预约看房专车,立享全程免费专车接送服务!线上报名更有买楼优惠政策!') ?>" data-hid="0"
  397. data-source="110" href="javascript:;">
  398. <p class="img"><img src="/overseas/img/icon-car.png" alt=""></p>
  399. <p class="txt">
  400. <span><?= Opencc::ConvertHn('看房专车') ?></span>
  401. <!-- <span>在线报名 订制看房行程</span> -->
  402. </p>
  403. </a>
  404. </li>
  405. <img src="/overseas/img/icon-right1.png" class="process_main_icon">
  406. <li>
  407. <a class="c" href="javascript:;" onclick="$53click()" rel="nofollow">
  408. <p class="img"><img src="/overseas/img/icon-vip.png" alt=""></p>
  409. <p class="txt">
  410. <span><?= Opencc::ConvertHn('一对一服务') ?></span>
  411. <!-- <span>在线报名 订制看房行程</span> -->
  412. </p>
  413. </a>
  414. </li>
  415. </ul>
  416. </div>
  417. </div>
  418. </div>