details.php 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. <?php
  2. use frontend\assets\AppAsset;
  3. use yii\helpers\Url;
  4. use common\fm\Opencc;
  5. AppAsset::addCss($this, Yii::$app->request->baseUrl . "/overseas/css/zxxqy.css");
  6. AppAsset::addScript($this, Yii::$app->request->baseUrl . '/overseas/js/lunbo/jquery.SuperSlide.2.1.3.js');
  7. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/overseas/js/applyVerify.js");
  8. AppAsset::addScript($this, Yii::$app->request->baseUrl . '/overseas/js/scrollfix.min.js');
  9. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/overseas/js/details.js");
  10. $this->title = $model['subject'] . '-房产资讯';
  11. $this->metaTags[] = '<meta name="keywords" content="' . $model['subject'] . '" />';
  12. $this->metaTags[] = '<meta name="description" content="' . $model['subject'] . '"/>';
  13. ?>
  14. <div class="y_news_maintop"></div>
  15. <!-- 资讯内容 -->
  16. <div class="m_ift_box c">
  17. <!-- 左 -->
  18. <div class="m_ift_left">
  19. <div class="m_ift_left_title"><?= Opencc::ConvertHn($model['subject']) ?></div>
  20. <div class="m_ift_left_zuoz">
  21. <span><?= Opencc::ConvertHn('来源') ?>:<?= Opencc::ConvertHn($model['source']) ?></span>
  22. <!-- <span>--><?//= Opencc::ConvertHn('作者') ?><!--:--><?//= Opencc::ConvertHn($model['author']) ?><!--</span>-->
  23. <span><?= $model['open_time'] ?></span>
  24. <!-- <span><?= date('H:i', $model['create_at']) ?></span> -->
  25. <div class="m_ift_left_zuoz_img c">
  26. <em class="bdsharebuttonbox"><a href="javascript:;" class="bds_more"
  27. data-cmd="more"><?= Opencc::ConvertHn('分享') ?></a></em>
  28. <!-- <a class="y_hove" href="javascript:;"><img src="/overseas/img/news/m_xq2.png"-->
  29. <!-- alt="">--><?//= Opencc::ConvertHn('扫描到手机') ?><!--</a>-->
  30. <p class="y_erweima">
  31. <img src="/overseas/img/news/ico_37.png" alt="">
  32. </p>
  33. </div>
  34. </div>
  35. <div class="m_ift_left_zuoz_ty" style="margin:30px auto">[<?= Opencc::ConvertHn('提要') ?>
  36. ] <?= Opencc::ConvertHn($model['abstract']) ?> </div>
  37. <div style="margin-top:20px;width:90%;margin:auto;" class="news_details">
  38. <?= $model['content'] ?>
  39. <!-- 推送相关楼盘 -->
  40. <?php if (!empty($model['hid']) &&!empty($model['hstate'])&& $model['hstate'] == 1) { ?>
  41. <?php if (!empty($push)) { ?>
  42. <div class="w-wvei" style="">
  43. <a href="<?= '/house/', $model['hid'] ?>">
  44. <div class="w-wvei-img">
  45. <i>效果图</i>
  46. <img src="<?= $push['thumb'] ?>" alt="">
  47. </div>
  48. <div class="w-wvei-box">
  49. <div class="w-box-more">更多信息<img src="/overseas/img/news/icmw.png" alt=""></div>
  50. <h2><?= $push['name'] ?><i>在售</i></h2>
  51. <?php if (!empty($push['sale_price'])) { ?>
  52. <p class="w-box-price"><span>售价:</span><?= $push['sale_price'] ?><i><?= $push['price_unit'] ?></i><em style="font-size:12px;color:#999;font-weight:normal;padding-left:20px; top:-2px; position: relative;" class="yv2_puicTime">有效期至:</em></p>
  53. <?php } else { ?>
  54. <p class="w-box-price"><span>售价:</span>待定<i></i></p>
  55. <?php } ?>
  56. <p class="w-box-wn"><span>主力户型:</span><?= $push['main_units'] ?></p>
  57. <p class="w-box-wn"><span>楼盘地址:</span><?= $push['address'] ?></p>
  58. <p class="w-box-bel">
  59. <?php foreach ($push['characteristic'] as $v) { ?>
  60. <i><?= $v ?></i>
  61. <?php } ?>
  62. </p>
  63. </div>
  64. </a>
  65. <div class="wthn" data-module="52"><a class="pic_jjtz" data-id="<?= $push['id'] ?>"
  66. data-name="<?= $push['name'] ?>"
  67. href="javascript:void(0);">获取优惠</a></div>
  68. </div>
  69. <?php } ?>
  70. <?php } ?>
  71. <br/>
  72. <br/>
  73. </div>
  74. <div class="m_pw" style="margin-top:20px;">
  75. <a target="_blank" href="/" class="m_ift_left_fx_title"><img src="/overseas/img/news/m_sy5.png" alt=""><i><?= Opencc::ConvertHn('返回房产首页') ?></i></a>
  76. <div class="m_ift_left_fx c">
  77. <div class="bdsharebuttonbox" data-tag="share_1">
  78. <a class="bds_tsina" data-cmd="tsina"></a>
  79. <a class="bds_qzone" data-cmd="qzone" href="#"></a>
  80. <a class="bds_weixin" data-cmd="weixin"></a>
  81. </div>
  82. </div>
  83. </div>
  84. <div class="m_pw" style="margin-top:20px;"><span class="m_ift_left_xgzx"><?= Opencc::ConvertHn('相关资讯') ?></span>
  85. </div>
  86. <div class="m_pw m_ift_left_xgzx_text" style="margin-top:20px;">
  87. <?php if (!empty($category)) {
  88. foreach ($category as $val) {
  89. ?>
  90. <a target="_blank"
  91. href="<?= '/news/details/', $val['id'] ?>"><i></i><span><?= Opencc::ConvertHn($val['subject']) ?></span></a>
  92. <?php }
  93. } ?>
  94. </div>
  95. <div class="m_pw m_ift_left_img" style="margin-top:20px;">
  96. <div class="wadlabel" style="top:0;right:0;"><?= Opencc::ConvertHn('广告') ?></div>
  97. <div class="policy"><?= Opencc::ConvertHn('政策前线') ?></div>
  98. <div class="specialty">
  99. <p><?= Opencc::ConvertHn('怕买贵?怕被坑?') ?></p>
  100. <p><?= Opencc::ConvertHn('专业顾问帮你越过营销陷阱') ?></p>
  101. </div>
  102. <form class="submit_area">
  103. <input type="hidden" name="hid" value="0"> <!-- 0 为公共报名,其它为楼盘ID-->
  104. <input type="hidden" name="source" value="85"> <!--报名来源 具体查看applyVerify.js文件中SourceModule 标识说明-->
  105. <input type="hidden" name="equipment" value="2"> <!--来源设备 ( PC端 2,手机端 1 )-->
  106. <input name="mobile" type="text" placeholder="您的手机号码">
  107. <input type="button" value="获取最新政策" class="apply_submit">
  108. </form>
  109. </div>
  110. <!-- 楼盘 -->
  111. <div class="m_pw">
  112. <div class="new_lp_box">
  113. <div class="bd">
  114. <ul>
  115. <?php if (!empty($cityhouse)) {
  116. foreach ($cityhouse as $val) {
  117. ?>
  118. <li>
  119. <div class="new_img"><a href="<?= '/house/', $val['id'] ?>">
  120. <div class="new_city"><?= Opencc::ConvertHn($val['city_name']) ?></div>
  121. <img src="<?= Yii::$app->params['httpImg']['hosts'], Yii::$app->params['httpImg']['houses'], $val['thumb'], '/same' ?>"
  122. alt=""></a></div>
  123. <div class="new_lp">
  124. <p class="new_lp_title"><a
  125. href="<?= '/house/', $val['id'] ?>"><?= Opencc::ConvertHn($val['name']) ?></a>
  126. </p>
  127. <p class="new_lp_price"><?php if (!empty($val['sale_price'])) { ?><?= $val['sale_price'] ?>
  128. <i><?= $val['price_unit'] ?></i><?php } else { ?><?= Opencc::ConvertHn('待定') ?><?php } ?>
  129. <em style="font-size:12px;color:#999;font-weight:normal;padding-left:20px; top:-2px; position: relative;" class="yv2_puicTime">有效期至:</em></p>
  130. <p class="new_lp_tel"><img src="/overseas/img/news/tel.png"
  131. alt=""><?= !empty($val['tel']) ? $val['tel'] : '' ?></p>
  132. <p class="new_lp_hutype"><?= Opencc::ConvertHn('主力户型') ?>
  133. :<?= Opencc::ConvertHn((!empty($val['main_units']) ? $val['main_units'] : '')) ?></p>
  134. <p class="new_lp_site">
  135. 地址:<span><?php echo Opencc::ConvertHn(mb_substr($val['address'], 0, 10, 'utf-8')); ?>
  136. ...</span>
  137. <!-- <a href="javascript:;"><img src="/overseas/img/news/map_img.png" alt="">查看地图</a> -->
  138. </p>
  139. </div>
  140. </li>
  141. <?php }
  142. } ?>
  143. </ul>
  144. </div>
  145. <div class="hd">
  146. <ul></ul>
  147. </div>
  148. </div>
  149. </div>
  150. </div>
  151. <!-- 右 -->
  152. <div class="m_ift_right">
  153. <!-- 订阅资讯 -->
  154. <div class="subscribe_box" style="position:relative;">
  155. <div class="wadlabel"><?= Opencc::ConvertHn('广告') ?></div>
  156. <img src="/overseas/img/news/news_top.png" alt="">
  157. <div class="subscribe_font">
  158. <p><?= Opencc::ConvertHn('订阅资讯') ?></p>
  159. <p><?= Opencc::ConvertHn('获取楼盘实时动态信息') ?></p>
  160. </div>
  161. <!-- 报名窗口 -->
  162. <div class="m_bm_box">
  163. <form class="m_bm_form submit_area">
  164. <input type="hidden" name="hid" value="0"> <!-- 0 为公共报名,其它为楼盘ID-->
  165. <input type="hidden" name="source" value="86">
  166. <!--报名来源 具体查看applyVerify.js文件中SourceModule 标识说明-->
  167. <input type="hidden" name="equipment" value="2"> <!--来源设备 ( PC端 2,手机端 1 )-->
  168. <div class="m_bm_form_xm">
  169. <!-- <span>手机号码:</span> -->
  170. <input name="mobile" type="text" placeholder="请输入您的手机号码">
  171. </div>
  172. <input type="button" value="订阅" class="m_bm_form_submit apply_submit">
  173. </form>
  174. </div>
  175. </div>
  176. <!-- 热文排行 -->
  177. <div class="m_ift_right_Ranking" style="display:none;">
  178. <div class="m_ift_right_Ranking_title"><span><?= Opencc::ConvertHn('48小时热文排行') ?></span></div>
  179. <ul>
  180. <?php if (!empty($hotnews)) {
  181. foreach ($hotnews as $k => $v) {
  182. ?>
  183. <li>
  184. <i class="<?php if ($k < 3) echo 'on'; ?>"><?= ++$k ?></i>
  185. <a target="_blank"
  186. href="<?= '/news/details/', $v['id'] ?>"><?= Opencc::ConvertHn($v['subject']) ?></a>
  187. <!-- <span><?= $v['clicks'] ?></span> -->
  188. </li>
  189. <?php }
  190. } ?>
  191. </ul>
  192. </div>
  193. <!-- 热门楼盘 -->
  194. <div class="m_ift_right_lp" style="display:none;">
  195. <div class="m_ift_right_Ranking_title"><span>热门楼盘</span></div>
  196. <ul class="m_Ranking_qh">
  197. <?php if (!empty($hothouse)) {
  198. foreach ($hothouse as $key => $val) {
  199. ?>
  200. <li>
  201. <div class="m_Ranking_text c" dataid="<?= $key ?>">
  202. <a target="_blank" href="<?= '/house/', $val['id'] ?>"><?= $val['name'] ?></a>
  203. <?php if (!empty($val['sale_price'])) { ?>
  204. <span><i><?= $val['sale_price'] ?></i><?= $val['price_unit'] ?></span>
  205. <?php } else { ?>
  206. <span><i>待定</i></span>
  207. <?php } ?>
  208. </div>
  209. <div class="m_Ranking_textTwo" dataid="<?= $key ?>">
  210. <div class="m_Ranking_textTwo_img"><a target="_blank"
  211. href="<?= '/house/', $val['id'] ?>"><img
  212. src="<?= Yii::$app->params['httpImg']['hosts'], Yii::$app->params['httpImg']['houses'], $val['thumb'], '/same' ?>"
  213. alt=""></a></div>
  214. <div class="m_Ranking_textTwo_text">
  215. <a target="_blank" href="<?= '/house/', $val['id'] ?>"><?= $val['name'] ?></a>
  216. <?php if (!empty($val['sale_price'])) { ?>
  217. <span><i><?= $val['sale_price'] ?></i><?= $val['price_unit'] ?></span>
  218. <?php } else { ?>
  219. <span><i>待定</i></span>
  220. <?php } ?>
  221. </div>
  222. </div>
  223. </li>
  224. <?php }
  225. } ?>
  226. </ul>
  227. </div>
  228. <div class="m_ift_right_sm">
  229. <div class="m_ift_right_Ranking_title"><span><?= Opencc::ConvertHn('客户专线,看房优惠') ?></span></div>
  230. <div style="position:relative;">
  231. <div class="wadlabel"><?= Opencc::ConvertHn('广告') ?></div>
  232. <img src="/overseas/img/news/m_x81.png" alt="">
  233. </div>
  234. <!-- 报名窗口 -->
  235. <form class="ift_form submit_area">
  236. <input type="hidden" name="hid" value="0"> <!-- 0 为公共报名,其它为楼盘ID-->
  237. <input type="hidden" name="source" value="87"> <!--报名来源 具体查看applyVerify.js文件中SourceModule 标识说明-->
  238. <input type="hidden" name="equipment" value="2"> <!--来源设备 ( PC端 2,手机端 1 )-->
  239. <!-- <span>手机号码:</span> -->
  240. <input name="mobile" type="text" placeholder="请输入常用手机">
  241. <input type="button" value="领取优惠" class="ift_submit apply_submit">
  242. </form>
  243. </div>
  244. </div>
  245. </div>
  246. <div class="y_newslist_bottom_m"></div> <!-- style="border:1px solid;" -->