home.php 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: xiaofeng
  5. * Date: 2018/4/20
  6. * Time: 上午12:51
  7. */
  8. use frontend\assets\AppAsset;
  9. use yii\widgets\LinkPager;
  10. use yii\helpers\Url;
  11. use common\fm\Opencc;
  12. AppAsset::addCss($this, Yii::$app->request->baseUrl . "/assets/614deafb/css/bootstrap.css");
  13. AppAsset::addScript($this, Yii::$app->request->baseUrl . '/overseas/js/lunbo/jquery.SuperSlide.2.1.3.js');
  14. AppAsset::addScript($this, Yii::$app->request->baseUrl . '/overseas/js/scrollfix.min.js');
  15. AppAsset::addScript($this, Yii::$app->request->baseUrl . '/overseas/js/newslist.js');
  16. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/overseas/js/applyVerify.js");
  17. AppAsset::addCss($this, Yii::$app->request->baseUrl . "/overseas/css/newslist.css");
  18. $this->title = '海南房产新闻_最新海南房产政策_海南房产信息网-品房海外';
  19. $this->metaTags[] = '<meta name="keywords" content="海南热点房产新闻,海南最新房产市场,海南楼市热点资讯,海南最新楼市政策,海南房产楼市政策,海南房产资讯,楼市行情,房产新闻" />';
  20. $this->metaTags[] = '<meta name="description" content="海南房产资讯为您提供2020海南楼盘的新动态,您可以查询海南新的楼市行情和楼市新闻,了解海南楼市政策,帮您快速解决房产相关问题。"/>';
  21. ?>
  22. <div class="y_newslsit">
  23. <div class="y_newslsit_main puic_wid">
  24. <div class="y_newslist_modtop puic_color c">
  25. <div class="y_newslist_tu fl c">
  26. <?php if (!empty($one)) { ?>
  27. <div class="y_newslist_tu1">
  28. <a target="_blank" href="<?= '/news/details/', $one[0]['id'] ?>">
  29. <p class="y_tu"><img
  30. src="<?php echo Yii::$app->params['httpImg']['host'], Yii::$app->params['httpImg']['pushnews'], $one[0]['img'] ?>"
  31. alt=""></p>
  32. <p class="y_text"><?php echo Opencc::ConvertHn($one[0]['subject']) ?></p>
  33. </a>
  34. </div>
  35. <!-- <div class="y_newslist_tu1">
  36. <a target="_blank" href="/zt/sykf_zt.php">
  37. <p class="y_tu"><img src="/zt/sykf_zt/overseas/img/icozxsy.png" alt=""></p>
  38. <p class="y_text">暖冬三亚看房团赚的就是优惠 多盘联动团购</p>
  39. </a>
  40. </div> -->
  41. <?php } ?>
  42. <div class="y_newslist_txtli_main" style="float:right">
  43. <div class="y_newslist_txtli_h">
  44. <span><?= Opencc::ConvertHn('热门资讯') ?></span>
  45. <i></i>
  46. </div>
  47. <div class="y_newslist_txtmain">
  48. <ul>
  49. <?php if (!empty($two)) {
  50. foreach ($two as $key => $val) {
  51. ?>
  52. <li class="on c">
  53. <span><?= '0', ++$key ?></span>
  54. <a target="_blank"
  55. href="<?= '/news/details/', $val['id'] ?>"><?= Opencc::ConvertHn($val['subject']) ?></a>
  56. </li>
  57. <?php }
  58. } ?>
  59. </ul>
  60. </div>
  61. <i class="ico_ic"></i>
  62. </div>
  63. </div>
  64. <div class="y_newslist_txtli fr">
  65. <div class="y_newslist_tu2">
  66. <?php if (!empty($one[1])) {
  67. foreach ($one as $key => $val) {
  68. if ($key == 0) {
  69. continue;
  70. }
  71. ?>
  72. <div class="y_newslist_tu2_i">
  73. <a target="_blank" href="<?= '/news/details/', $val['id'] ?>">
  74. <p class="y_tu"><img
  75. src="<?= Yii::$app->params['httpImg']['host'], Yii::$app->params['httpImg']['pushnews'], $val['img'] ?>"
  76. alt=""></p>
  77. <p class="y_text"><?= Opencc::ConvertHn($val['subject']) ?></p>
  78. </a>
  79. </div>
  80. <?php }
  81. } ?>
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. <div class="y_newslist_nr">
  88. <div class="y_news_maintop"></div>
  89. <div class="y_newslist_nrmain puic_wid c">
  90. <div class="y_newslist_left fl c">
  91. <div class="y_newslist_nav puic_color fl">
  92. <div id="y_newslist_nav">
  93. <ul>
  94. <li <?php if (empty(Yii::$app->request->get('cid'))) echo 'class="on"' ?>><a
  95. href="<?= '/news/home' ?>"><?= Opencc::ConvertHn('所有资讯') ?></a></li>
  96. <?php if (!empty($column)) {
  97. $name = '所有资讯';
  98. foreach ($column as $val) { ?>
  99. <li
  100. <?php
  101. if (Yii::$app->request->get('cid') == $val['id']) {
  102. $name = $val['news_name'];
  103. echo 'class="on"';
  104. }
  105. ?> >
  106. <a href="<?= '/news/', $val['id'] ?>"><?= Opencc::ConvertHn($val['news_name']) ?></a>
  107. </li>
  108. <?php }
  109. } ?>
  110. </ul>
  111. </div>
  112. </div>
  113. <div class="y_newslist_list fr">
  114. <div class="m_p_title2">
  115. <i class="m_p_title2_left"></i>
  116. <div class="m_p_title2_text">
  117. <em>
  118. <?php echo Opencc::ConvertHn($name);
  119. ?>
  120. </em>
  121. </div>
  122. <i class="m_p_title2_right"></i>
  123. </div>
  124. <div class="y_newslist_listh"></div>
  125. <ul>
  126. <?php foreach ($all['data'] as $val) {
  127. ?>
  128. <?php
  129. $img = json_decode($val['thumb'], true);
  130. if (isset($img[2]) || isset($img[1])) {
  131. ?>
  132. <li class="y_newslist_class2 puic_color">
  133. <div class="y_padd c">
  134. <div class="y_text">
  135. <p class="y_h"><a target="_blank"
  136. href="<?= '/news/details/', $val['id'] ?>"><?= Opencc::ConvertHn($val['subject']) ?></a>
  137. </p>
  138. <p class="y_cent"><?= Opencc::ConvertHn($val['abstract']) ?></p>
  139. <p class="y_sj"><?= $val['open_time'] ?></p>
  140. </div>
  141. <div class="y_tu c">
  142. <a target="_blank"
  143. href="<?= '/news/details/', $val['id'] ?>">
  144. <?php foreach ($img as $v) { ?>
  145. <img src="<?= Yii::$app->params['httpImg']['host'], Yii::$app->params['httpImg']['newsthumb'], $v ?>"
  146. alt="">
  147. <?php } ?>
  148. </a>
  149. </div>
  150. </div>
  151. </li>
  152. <?php } else { ?>
  153. <li class="y_newslist_class1 puic_color">
  154. <div class="y_padd c">
  155. <div class="y_tu"><a target="_blank"
  156. href="<?= '/news/details/', $val['id'] ?>"><img
  157. src="<?php if (isset($img[0])) echo Yii::$app->params['httpImg']['host'], Yii::$app->params['httpImg']['newsthumb'], $img[0] ?>"
  158. alt=""></a></div>
  159. <div class="y_text">
  160. <p class="y_h"><a target="_blank"
  161. href="<?= '/news/details/', $val['id'] ?>"><?= Opencc::ConvertHn($val['subject']) ?></a>
  162. </p>
  163. <p class="y_cent"><?= Opencc::ConvertHn(mb_substr($val['abstract'], 0, 80, 'utf-8')) ?>
  164. ...</p>
  165. <p class="y_sj"><?= $val['open_time'] ?></p>
  166. </div>
  167. </div>
  168. </li>
  169. <?php }
  170. } ?>
  171. </ul>
  172. <div class="" style="width:880px;height:80px;text-align:center;">
  173. <?= LinkPager::widget([
  174. 'pagination' => $page,
  175. 'nextPageLabel' => Opencc::ConvertHn('下一页'),
  176. 'prevPageLabel' => Opencc::ConvertHn('上一页'),
  177. ]); ?>
  178. </div>
  179. </div>
  180. </div>
  181. <div>
  182. </div>
  183. <div class="y_newslist_right fr">
  184. <?php if (!empty($h)) { ?>
  185. <!-- 楼盘推荐 -->
  186. <div class="w_recommend">
  187. <div class="y_newshot_h">
  188. <h2><span><?= Opencc::ConvertHn('楼盘推荐') ?></span></h2>
  189. </div>
  190. <div class="w_recommend_cont slideBox">
  191. <div class="bd">
  192. <ul>
  193. <?php foreach ($h as $val) { ?>
  194. <li>
  195. <a href="<?= '/house/', $val['id'] ?>">
  196. <div class="w_list_img"><img
  197. src="<?= Yii::$app->params['httpImg']['hosts'], Yii::$app->params['httpImg']['houses'], $val['thumb'], '/same' ?>"
  198. alt=""></div>
  199. <div class="w_list_font c">
  200. <span><?= Opencc::ConvertHn($val['name']) ?></span>
  201. </div>
  202. </a>
  203. </li>
  204. <?php } ?>
  205. </ul>
  206. </div>
  207. <div class="hd">
  208. <ul></ul>
  209. </div>
  210. </div>
  211. </div>
  212. <?php } ?>
  213. <?php if (!empty($click)) { ?>
  214. <div class="y_newshot puic_color">
  215. <div class="y_newshot_center">
  216. <div class="y_newshot_h">
  217. <h2><span><?= Opencc::ConvertHn('48小时热文排行') ?></span></h2>
  218. </div>
  219. <div class="y_newshot_main">
  220. <ul>
  221. <?php foreach ($click as $key => $val) {
  222. ?>
  223. <li class="<?php if ($key < 3) echo 'on'; ?> c">
  224. <em><?= ++$key ?></em>
  225. <a target="_blank"
  226. href="<?= '/news/details/', $val['id'] ?>"><?= Opencc::ConvertHn($val['subject']) ?></a>
  227. <!-- <i><?= $val['clicks'] ?></i> -->
  228. </li>
  229. <?php } ?>
  230. </ul>
  231. </div>
  232. </div>
  233. </div>
  234. <?php } ?>
  235. <?php if (!empty($three)) { ?>
  236. <!-- <div class="y_newzt puic_color">
  237. <div class="y_newztmain">
  238. <div class="y_newshot_h">
  239. <h2><span>热门专题</span></h2>
  240. </div>
  241. <div class="y_newshot_ceng">
  242. <ul>
  243. <?php foreach ($three as $val) { ?>
  244. <li>
  245. <a target="_blank" href="<?= '/news/details/', $val['id'] ?>">
  246. <p class="y_tu">
  247. <img src="<?= Yii::$app->params['httpImg']['host'], Yii::$app->params['httpImg']['pushnews'], $val['img'] ?>" alt="">
  248. </p>
  249. <p class="y_text"><?= $val['subject'] ?></p>
  250. </a>
  251. </li>
  252. <?php } ?>
  253. </ul>
  254. </div>
  255. </div>
  256. </div> -->
  257. <?php } ?>
  258. <!-- 订阅资讯 -->
  259. <div class="subscribe_box">
  260. <div class="wadlabel"><?= Opencc::ConvertHn('广告') ?></div>
  261. <img src="/overseas/img/news/news_top1.png" alt="">
  262. <!-- <div class="subscribe_font"> -->
  263. <!-- <p>订阅资讯</p>
  264. <p>获取楼盘实时动态信息</p> -->
  265. <!-- </div> -->
  266. <!-- 报名窗口 -->
  267. <div class="m_bm_box">
  268. <form class="m_bm_form submit_area">
  269. <input type="hidden" name="hid" value="0"> <!-- 0 为公共报名,其它为楼盘ID-->
  270. <input type="hidden" name="source" value="84">
  271. <!--报名来源 具体查看applyVerify.js文件中SourceModule 标识说明-->
  272. <input type="hidden" name="equipment" value="2"> <!--来源设备 ( PC端 2,手机端 1 )-->
  273. <div class="m_bm_form_xm">
  274. <!-- <span>手机号码:</span> -->
  275. <input name="mobile" type="text" placeholder="<?= Opencc::ConvertHn('请输入您的手机号') ?>">
  276. </div>
  277. <input type="button" value="<?= Opencc::ConvertHn('一键订阅') ?>"
  278. class="m_bm_form_submit apply_submit">
  279. </form>
  280. </div>
  281. </div>
  282. </div>
  283. </div>
  284. </div>
  285. <div class="y_newslist_bottom_m"></div>