index.php 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479
  1. <?php
  2. use wechat\assets\AppAsset;
  3. use yii\helpers\Url;
  4. AppAsset::addCss($this,Yii::$app->request->baseUrl."/js/index/swiper-3.4.2.min.css");
  5. AppAsset::addScript($this,Yii::$app->request->baseUrl.'/js/index/swiper-3.4.2.min.js');
  6. AppAsset::addCss($this,Yii::$app->request->baseUrl."/css/index.css");
  7. AppAsset::addScript($this,Yii::$app->request->baseUrl.'/js/index/index.js');
  8. // AppAsset::addScript($this,Yii::$app->request->baseUrl.'/js/search_ajax.js');
  9. AppAsset::addScript($this,Yii::$app->request->baseUrl.'/js/search_public.js');
  10. //AppAsset::addScript($this,Yii::$app->request->baseUrl.'/js/signup/signup.js'); // 报名弹窗调用
  11. //AppAsset::addScript($this,Yii::$app->request->baseUrl.'/js/applyVerify.js'); // 报名弹窗调用
  12. $this->title = '海南房价_海南房地产门户_海南房产网-易购房';
  13. ?>
  14. <script type="text/javascript" charset="utf-8">
  15. var browser = {
  16. versions: function () {
  17. var u = navigator.userAgent, app = navigator.appVersion;
  18. return { //移动终端浏览器版本信息
  19. ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端
  20. android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或uc浏览器
  21. iPhone: u.indexOf('iPhone') > -1, //是否为iPhone或者QQHD浏览器
  22. iPad: u.indexOf('iPad') > -1, //是否iPad
  23. };
  24. }(),
  25. };
  26. // if (browser.versions.iPhone || browser.versions.iPad || browser.versions.ios) {
  27. // document.write('<link rel="stylesheet" type="text/css" href=""/>');
  28. // }
  29. if (browser.versions.android) {
  30. document.write('<link rel="stylesheet" type="text/css" href="/css/android_index.css"/>');
  31. }
  32. </script>
  33. <!-- 侧边栏 -->
  34. <?php $this->beginContent('@app/views/public/navsidebar.php'); ?>
  35. <?php $this->endContent(); ?>
  36. <div id="serachBox2">
  37. <!-- 顶部 -->
  38. <div class="w_top">
  39. <div class="m_logo"><a href="/" alt=""><img src="/image/v2/index01.png" alt=""></a></div>
  40. <div class="w_se_box">
  41. <a class="a_inp y_lplist_inp1" href="javascript:;"><img src="/image/v2/index3.png" alt="">请输入楼盘名称</a>
  42. <!-- <a class="se" href="javascrip:void(0)"><img src="/image/index/w_se_1.png" alt=""></a> -->
  43. <div class="y_lplist_inp" style="position: absolute;top:0;width:100%;height:100%;"></div>
  44. </div>
  45. <div class="y_city">
  46. <a href="javascript:;">
  47. <span><?= $cityname ?></span>
  48. <i><img src="/image/v2/index2.png" alt=""></i>
  49. </a>
  50. </div>
  51. </div>
  52. <div style="height:70px;"></div>
  53. <!-- 轮播图片 -->
  54. <?php if(!empty($lunbo)){ ?>
  55. <div class="w_banner">
  56. <div class="swiper-container" id="yw_swiper">
  57. <div class="swiper-wrapper">
  58. <?php foreach ($lunbo as $val){?>
  59. <div class="swiper-slide" data-swiper-autoplay="3300"><a href="<?= $val['url'] ?>" alt=""><img src="<?= Yii::$app->params['httpImg']['host'], Yii::$app->params['httpImg']['push_lb'],$val['img']; ?>" alt="<?= $val['title'] ?>"></a></div>
  60. <?php } ?>
  61. </div>
  62. <div class="yw_swiper-pagination"></div>
  63. </div>
  64. </div>
  65. <?php } ?>
  66. <!-- <div class="y_sfheader" style="display:none">-->
  67. <!-- <div class="y_sfheader_main">-->
  68. <!-- <div class="y_sfheader_top">-->
  69. <!-- <div class="y_logo">-->
  70. <!-- <p><img src="/image/u4.png" alt=""></p>-->
  71. <!-- <p>shunfangw.com</p> -->
  72. <!-- <p>汇聚全国旅居地产</p>-->
  73. <!-- <img src="/image/index/m_sflogo.png" alt="">-->
  74. <!-- </div> -->
  75. <!-- <div class="y_input c">-->
  76. <!-- <div class="y_city">-->
  77. <!-- <a href="javascript:;">-->
  78. <!-- <span>--><?//= $cityname ?><!--</span>-->
  79. <!-- <i><img src="/image/index/video_jt_icon1.png" alt=""></i>-->
  80. <!-- </a>-->
  81. <!-- </div>-->
  82. <!-- <div class="ipt_area c" id="search_id2">-->
  83. <!-- <a class="a_inp y_lplist_inp" href="javascript:;">请输入楼盘名称</a>-->
  84. <!-- </div>-->
  85. <!-- </div> -->
  86. <!-- </div>-->
  87. <!-- <div class="y_sfheader_bg">-->
  88. <!-- <p><img src="/image/index/y_shunbg.png" alt=""></p>-->
  89. <!-- </div>-->
  90. <!-- </div>-->
  91. <!-- </div>-->
  92. <?php if(!empty($sysmenu)){ ?>
  93. <!--导航 -->
  94. <div class="main_columns">
  95. <ul class="c">
  96. <?php foreach ($sysmenu as $val){ ?>
  97. <li ><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><?= $val['name'] ?></h1></a></li>
  98. <?php } ?>
  99. </ul>
  100. </div>
  101. <?php } ?>
  102. <!-- 品房推荐 -->
  103. <div class="headle" style="<?php modules_show(54) ?>">
  104. <div class="headle_main clear_c">
  105. <div class="headle_title"><img src="/image/v2/index4.png" alt=""></div>
  106. <div class="headle_right">
  107. <div class="content">
  108. <ul>
  109. <?php foreach ($tuijian as $val){ ?>
  110. <li><a href="<?= $val['url'] ?>"><span><?= $val['title'] ?></span><img src="/image/v2/index5.png" alt=""></a></li>
  111. <?php } ?>
  112. </ul>
  113. </div>
  114. </div>
  115. </div>
  116. </div>
  117. <!-- 热门地区 -->
  118. <!-- <div class="y_hotcity" style="display: none">-->
  119. <!-- <div class="y_hotcitymain">-->
  120. <!-- <div class="hot_title">-->
  121. <!-- <div class="hot_title_font"><span>快捷找房</span></div>-->
  122. <!-- </div>-->
  123. <!-- <div class="y_hottype c">-->
  124. <!-- <a href="/house/search?characteristic=22">海景房</a>-->
  125. <!-- <a href="/house/search?characteristic=35">旅游地产</a>-->
  126. <!-- <a href="/house/search?characteristic=9">特色别墅</a>-->
  127. <!-- <a href="/house/search?characteristic=13">投资地产</a>-->
  128. <!-- <a href="/house/search?characteristic=25">公园地产</a>-->
  129. <!-- <a href="/house/search?characteristic=11">小户型</a>-->
  130. <!-- <a href="/house/search?characteristic=26">低密居所</a>-->
  131. <!-- <a href="/house/search?characteristic=39">养生社区</a>-->
  132. <!-- <a href="/house/search?characteristic=34">花园洋房</a>-->
  133. <!-- <a href="/house/search?characteristic=37">商铺</a>-->
  134. <!-- </div>-->
  135. <!-- </div>-->
  136. <!-- </div>-->
  137. <!-- 品牌馆 -->
  138. <?php if(!empty($pinpai)){ ?>
  139. <!-- 热销楼盘 -->
  140. <div class="sell_box">
  141. <div class="m_zaigai_title">
  142. <span>品牌馆</span>
  143. </div>
  144. <div class="swiper-container" id="yw_swiper_5">
  145. <!-- <div id="city_id" style="display: none;">--><?//= $gcity ?><!--</div>-->
  146. <!-- <div id="htype" style="display: none;">1</div>-->
  147. <div class="swiper-wrapper hot-house">
  148. <?php foreach ($pinpai as $val){ ?>
  149. <div class="swiper-slide" data-swiper-autoplay="3300">
  150. <a <?php if (!empty($val['id'])) { ?>href="/brand/home?bid=<?= $val['id'] ?>"
  151. <?php }else{ ?>href="http://m.yigouf.com/"
  152. <?php } ?> alt="">
  153. <div class="w_img"><img src="<?= $val['img'] ?>" alt=""><i><?= $val['house_count'] ?>套房源</i></div>
  154. </a>
  155. </div>
  156. <?php } ?>
  157. </div>
  158. </div>
  159. </div>
  160. <?php } ?>
  161. <!-- 精选楼盘 -->
  162. <?php if(!empty($hot_house)){ ?>
  163. <div class="sell_box" style="margin-top: 10px;">
  164. <div class="m_zaigai_title">
  165. <span>精选楼盘</span>
  166. <!-- <a href="/house/search/"><img src="/image/index/w_t.png" alt=""></a> -->
  167. </div>
  168. <div class="sell_conter">
  169. <ul>
  170. <?php foreach ($hot_house as $val){ ?>
  171. <li class="c">
  172. <a href="/house/<?= $val['id'] ?>" class="c">
  173. <div class="sell_img"><img src="<?= $val['thumb'] ?>" alt=""><i><?= $val['city_name'] ?></i></div>
  174. <div class="sell_conter_right">
  175. <p class="title"><?= $val['name'] ?></p>
  176. <p class="jg_ing jg_ingdd">
  177. <?php if (!empty($val['sale_price'])) { ?>
  178. <span><em><?= $val['sale_price'] ?></em><?= $val['price_unit'] ?></span>
  179. <?php }else{ ?>
  180. <span><em>价格待定</em></span>
  181. <?php } ?>
  182. </p>
  183. <p class="date">有效期 | <?= \common\Helps\Time::effectiveTime() ?></p>
  184. <p class="style">
  185. <?php foreach ($val['characteristic'] as $v){ ?>
  186. <i><?= $v ?></i>
  187. <?php } ?>
  188. </p>
  189. </div>
  190. </a>
  191. <div class="m_gzlx c">
  192. <p class="m_gzlx_l"><img src="/image/v2/index6.png" alt="">楼盘热度</p>
  193. <p class="m_gzlx_r">已有<?= $val['click_num'] ?>人浏览</p>
  194. </div>
  195. <div class="cal_price"><a bindtap="calling" data-tel="<?= $val['tel'] ?>" href="tel:<?= $val['tel'] ?>"><img src="/image/pinp7.png"></a></div>
  196. <?php } ?>
  197. </ul>
  198. <a href="/house/search/" class="m_lj_ckgd">查看更多楼盘</a>
  199. </div>
  200. </div>
  201. <?php } ?>
  202. <div class="m_bm_box">
  203. <a class="popup" href="javascript:;" data-name="领取房源" data-text="<span style='color:red;'>特价房源</span>稍纵即逝,报名马上领取" data-id="0" data-module="48" data-button="马上领取"><img src="/image/v2/windex9.png" alt=""></a>
  204. </div>
  205. <div class="y_hotnews_main" style="<?php modules_show(51) ?>">
  206. <div class="m_zaigai_title">
  207. <span>楼市资讯</span>
  208. <!-- <a href="/news/"><img src="/image/index/w_t.png" alt=""></a> -->
  209. </div>
  210. <div class="y_hotnews_list">
  211. <ul>
  212. <?php if(!empty($news)){
  213. foreach ($news as $val){
  214. $img = json_decode($val['thumb'],true);
  215. if(!isset($img[1])){
  216. ?>
  217. <li class="style1 c">
  218. <a href="<?= '/news/details/',$val['id'],'/' ?>">
  219. <div class="y_style1_text">
  220. <?php if(!empty($val['short_subject'])){ ?>
  221. <p class="y_title"><?= $val['short_subject'] ?></p>
  222. <?php }else{ ?>
  223. <p class="y_title"><?= $val['subject'] ?></p>
  224. <?php } ?>
  225. <p class="y_sjll">
  226. <span class="y_ll"><?= $val['open_time'] ?></span>
  227. <span class="y_sj"><img src="/image/v2/index8.png" alt=""><?= $val['clicks'] ?></span>
  228. </p>
  229. </div>
  230. <div class="y_style1_tu"><img src="<?= Yii::$app->params['httpImg']['host'],Yii::$app->params['httpImg']['newsthumb'],$img[0] ?>" alt=""></div>
  231. </a>
  232. </li>
  233. <?php } else{ ?>
  234. <li class="style2">
  235. <a href="<?= '/news/details/',$val['id'],'/' ?>">
  236. <?php if(!empty($val['short_subject'])){ ?>
  237. <p class="y_title"><?= $val['short_subject'] ?></p>
  238. <?php }else{ ?>
  239. <p class="y_title"><?= $val['subject'] ?></p>
  240. <?php } ?>
  241. <p class="y_tulist c">
  242. <?php foreach ($img as $v){ ?>
  243. <i><img src="<?= Yii::$app->params['httpImg']['host'],Yii::$app->params['httpImg']['newsthumb'],$v?>" alt=""></i>
  244. <?php } ?>
  245. </p>
  246. <p class="y_sjll">
  247. <span class="y_ll"><?= $val['open_time'] ?></span>
  248. <span class="y_sj"><img src="/image/v2/index8.png" alt=""> <?= $val['clicks'] ?></span>
  249. </p>
  250. </a>
  251. </li>
  252. <?php } } } ?>
  253. </ul>
  254. <a href="/news/" class="m_lj_ckgd">查看更多资讯</a>
  255. <div style="height:50px;"></div>
  256. </div>
  257. </div>
  258. <!-- <div class="Livinglife" style="display:none">-->
  259. <!-- <div class="Livinglife_c">-->
  260. <!-- <div class="m_zaigai_title">-->
  261. <!-- <span>旅居生活</span>-->
  262. <!-- </div>-->
  263. <!-- <div class="Livinglife_bg c">-->
  264. <!-- <div class="left">-->
  265. <!-- <div class="left_top">-->
  266. <!-- <a href="house/search?characteristic=40">-->
  267. <!-- <p class="tu"><img src="/image/index/livi_vidin1.png" alt=""></p>-->
  268. <!-- <div class="text">-->
  269. <!-- <p class="p1">热门主题</p>-->
  270. <!-- <p class="p2">保障新房,安心居住</p>-->
  271. <!-- </div>-->
  272. <!-- </a>-->
  273. <!-- </div>-->
  274. <!-- <div class="left_top left_top2">-->
  275. <!-- <a href="house/search?characteristic=35">-->
  276. <!-- <p class="tu"><img src="/image/index/livi_vidin2.png" alt=""></p>-->
  277. <!-- <div class="text">-->
  278. <!-- <p class="p1">自在旅居</p>-->
  279. <!-- <p class="p2">为你寻找适合自己的家</p>-->
  280. <!-- </div>-->
  281. <!-- </a>-->
  282. <!-- </div>-->
  283. <!-- </div>-->
  284. <!-- <div class="right">-->
  285. <!-- <a href="house/search?characteristic=9">-->
  286. <!-- <p class="tu"><img src="/image/index/livi_vidin3.png" alt=""></p>-->
  287. <!-- <div class="text">-->
  288. <!-- <p class="p1">品质别墅</p>-->
  289. <!-- <p class="p2">品质献给懂生活的你</p>-->
  290. <!-- </div>-->
  291. <!-- </a>-->
  292. <!-- </div>-->
  293. <!-- </div>-->
  294. <!-- <a href="/house/search/" class="m_lj_ckgd">查看更多</a>-->
  295. <!-- <div style="height:25px;"></div>-->
  296. <!-- </div>-->
  297. <!-- </div>-->
  298. <!-- 购房流程 -->
  299. <!-- <div class="process" style="display:none">-->
  300. <!-- <div class="process_main">-->
  301. <!-- <ul class="c">-->
  302. <!-- <li>-->
  303. <!-- <a class="popup" data-name="报名看房" data-text="我们将为您保密个人信息!专业团队,一对一服务,让您全程无忧看房!" data-id="0" data-module="9" href="javascript:;">-->
  304. <!-- <p class="img"><img src="/image/icon-baoming.png" alt=""></p>-->
  305. <!-- <p class="txt">-->
  306. <!-- <span>报名看房</span>-->
  307. <!-- <span>在线报名 订制看房行程</span> -->
  308. <!-- </p>-->
  309. <!-- </a>-->
  310. <!-- </li>-->
  311. <!-- <img src="/image/icon-right1.png" class="process_main_icon">-->
  312. <!-- <li>-->
  313. <!-- <a class="c" href="tel:0">-->
  314. <!-- <p class="img"><img src="/image/icon-jieji.png" alt=""></p>-->
  315. <!-- <p class="txt">-->
  316. <!-- <span>24/h接送机</span>-->
  317. <!-- <span>在线报名 订制看房行程</span> -->
  318. <!-- </p>-->
  319. <!-- </a>-->
  320. <!-- </li>-->
  321. <!-- <img src="/image/icon-right1.png" class="process_main_icon">-->
  322. <!-- <li>-->
  323. <!-- <a class="c popup" data-name="看房专车" data-text="预约看房专车,立享全程免费专车接送服务!线上报名更有购房优惠政策!" data-id="0" data-module="10" href="javascript:;">-->
  324. <!-- <p class="img"><img src="/image/icon-car.png" alt=""></p>-->
  325. <!-- <p class="txt">-->
  326. <!-- <span>看房专车</span>-->
  327. <!-- <span>在线报名 订制看房行程</span> -->
  328. <!-- </p>-->
  329. <!-- </a>-->
  330. <!-- </li>-->
  331. <!-- <img src="/image/icon-right1.png" class="process_main_icon">-->
  332. <!-- <li>-->
  333. <!-- <a class="c" href="javascript:;" rel="nofollow" onclick="$53click();" rel="nofollow">-->
  334. <!-- <p class="img"><img src="/image/icon-vip.png" alt=""></p>-->
  335. <!-- <p class="txt">-->
  336. <!-- <span>一对一服务</span>-->
  337. <!-- <span>在线报名 订制看房行程</span> -->
  338. <!-- </p>-->
  339. <!-- </a>-->
  340. <!-- </li>-->
  341. <!-- </ul>-->
  342. <!-- </div>-->
  343. <!-- </div>-->
  344. </div>
  345. <section class="m_qhcs_box" style="display:none;">
  346. <div class="m_head_qhcs c">
  347. <div class="m_Return"><img src="/image/v2/ico_city.png" alt=""></div>
  348. <div class="m_region c">
  349. <span class="on" data-id="1">国内城市</span>
  350. <span data-id="2">海外城市</span>
  351. </div>
  352. </div>
  353. <div class="m_City_box" data-id="1">
  354. <!-- --><?php //if (!empty($hotcity)) { ?>
  355. <!-- <div class="m_City">-->
  356. <!-- <div class="m_City_title">热门城市</div>-->
  357. <!-- <ul class="m_City_list c">-->
  358. <!-- <li><a href="http://m.yigouf.com/">全国</a></li>-->
  359. <!-- --><?php //foreach ($hotcity as $a){ ?>
  360. <!---->
  361. <!-- --><?php //if (!empty($a['url'])) { ?>
  362. <!-- <li><a href="--><?//= $a['url'] ?><!--">--><?//= $a['city_name'] ?><!--</a></li>-->
  363. <!-- --><?php //}else{ ?>
  364. <!-- <li><a href="javascript:;">--><?//= $a['city_name'] ?><!--</a></li>-->
  365. <!-- --><?php //}?>
  366. <!---->
  367. <!-- --><?php //} ?>
  368. <!-- </ul>-->
  369. <!-- </div>-->
  370. <!-- --><?php //} ?>
  371. <ul class="m_City_ul">
  372. <!-- <div class="m_City_ul_title">全部城市</div> -->
  373. <?php foreach ($city_all['abroad_a'] as $key => $value) {?>
  374. <div class="m_City_province"><?php echo $value['city_name'] ?></div>
  375. <li class="m_City_ul_li c">
  376. <?php foreach ($value['son'] as $k => $v) {?>
  377. <a href="<?= 'http://baiduygf','.',$this->params['main_city_url'],'/house/search/?city=',$v['id'] ?>"><?= $v['city_name']?></a>
  378. <?php }?>
  379. </li>
  380. <?php } ?>
  381. </ul>
  382. <div style="height:40px;font-size:0.8rem;color:#333;line-height:40px;text-indent:17px;">更多城市敬请期待...</div>
  383. </div>
  384. <div class="m_City_box" data-id="2">
  385. <!-- --><?php //if (!empty($hotcityb)) { ?>
  386. <!-- <div class="m_City">-->
  387. <!-- <div class="m_City_title">热门城市</div>-->
  388. <!-- <ul class="m_City_list c">-->
  389. <!-- --><?php //foreach ($hotcityb as $a){ ?>
  390. <!---->
  391. <!-- --><?php //if (!empty($a['url'])) { ?>
  392. <!-- <li><a href="--><?//= $a['url'] ?><!--">--><?//= $a['city_name'] ?><!--</a></li>-->
  393. <!-- --><?php //}else{ ?>
  394. <!-- <li><a href="javascript:;">--><?//= $a['city_name'] ?><!--</a></li>-->
  395. <!-- --><?php //}?>
  396. <!---->
  397. <!-- --><?php //} ?>
  398. <!-- </ul>-->
  399. <!-- </div>-->
  400. <!-- --><?php //} ?>
  401. <ul class="m_City_ul">
  402. <!-- <div class="m_City_ul_title">全部城市</div> -->
  403. <?php foreach ($city_all['abroad_b'] as $key => $value) {?>
  404. <div class="m_City_province"><?php echo $value['city_name'] ?></div>
  405. <li class="m_City_ul_li c">
  406. <?php foreach ($value['son'] as $k => $v) {?>
  407. <a href="<?= 'http://baiduygf','.',$this->params['main_city_url'],'/house/search/?city=',$v['id'] ?>"><?= $v['city_name']?></a>
  408. <?php }?>
  409. </li>
  410. <?php } ?>
  411. </ul>
  412. <div style="height:40px;font-size:0.8rem;color:#333;line-height:40px;text-indent:17px;">更多城市敬请期待...</div>
  413. </div>
  414. </section>