details.php 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: xiaofeng
  5. * Date: 2018/4/20
  6. * Time: 上午12:44
  7. */
  8. use mobile\assets\AppAsset;
  9. use yii\helpers\Url;
  10. AppAsset::addCss($this, Yii::$app->request->baseUrl . "/overseas/css/news_details.css");
  11. AppAsset::addCss($this, Yii::$app->request->baseUrl . "/overseas/js/index/swiper-3.4.2.min.css");
  12. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/overseas/js/index/swiper-3.4.2.min.js");
  13. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/overseas/js/news/details.js");
  14. AppAsset::addScript($this, Yii::$app->request->baseUrl . '/overseas/js/search_public.js');
  15. //$this->title = '资讯';
  16. $this->title = $model['subject'] . '';
  17. $this->metaTags[] = '<meta name="keywords" content="' . $model['subject'] . '" />';
  18. $this->metaTags[] = '<meta name="description" content="' . $model['subject'] . '"/>';
  19. ?>
  20. <div id="serachBox2">
  21. <img src="<?= Yii::$app->params['httpImg']['host'], Yii::$app->params['httpImg']['newsthumb'], json_decode($model['thumb'], true)[0] ?>"
  22. alt="" style="visibility:hidden;height:0;width:0;"/>
  23. <?php $this->beginContent('@app/views/public/nav.php'); ?>
  24. <?php $this->endContent(); ?>
  25. <div class="y_news_details">
  26. <div class="y_news_main">
  27. <div class="y_news_conter">
  28. <div class="y_newsdeta_h">
  29. <?= $model['subject'] ?>
  30. </div>
  31. <div class="y_newsdeta_hbottom c">
  32. <p class="y_left c">
  33. <span><?= $model['source'] ?></span>
  34. <span>作者:<?= $model['author'] ?></span>
  35. </p>
  36. <p class="y_right"><?= $model['open_time'] ?></p>
  37. </div>
  38. <div class="y_newsdata_cont">
  39. <?= $model['content'] ?>
  40. </div>
  41. </div>
  42. </div>
  43. <?php if (!empty($model['hid']) /*&& $model['hstate'] == 1*/) { ?>
  44. <?php if (!empty($push)) { ?>
  45. <div class="m_lpdatabox" style="">
  46. <div class="m_lpdatap c">
  47. <a href="<?= '/house/', $model['hid'] ?>">
  48. <div class="m_lpdataimg">
  49. <img class="img" src="<?= $push['thumb'] ?>" alt="">
  50. <i><img src="/overseas/img/zxdz.png" alt=""><?= $push['city_name'] ?></i>
  51. </div>
  52. <div class="m_lpdata">
  53. <p class="title c"><?= $push['name'] ?></p>
  54. <?php if (!empty($push['sale_price'])) { ?>
  55. <p class="Price">
  56. <span>均价:<i><?= $push['sale_price'] ?></i><?= $push['price_unit'] ?></span></p>
  57. <?php } else { ?>
  58. <p class="Price"><span>均价:<i>待定</i></span></p>
  59. <?php } ?>
  60. <p class="huxing">建筑面积:<?= $push['main_units'] ?></p>
  61. <p class="tyle c">
  62. <?php if (!empty($push['characteristic'])) foreach ($push['characteristic'] as $v) { ?>
  63. <span><?= $v ?></span>
  64. <?php } ?>
  65. </p>
  66. </div>
  67. </a>
  68. <a class="m_lpdatabm popup" href="javascript:;" data-name="获取优惠"
  69. data-text="价格变动这么快?!<em>楼盘优惠</em>的消息我们将<em>第一时间通知您</em>!" data-id="<?= $push['id'] ?>"
  70. data-module="122">获取优惠</a>
  71. </div>
  72. </div>
  73. <?php } ?>
  74. <?php } ?>
  75. <?php //$this->beginContent('@app/views/news/tail.php', ['tel' => $tel]); ?>
  76. <?php //$this->endContent(); ?>
  77. </div>
  78. <!--上一篇/-->
  79. <div class="y_newsmore">
  80. <div class="y_newsmore_main">
  81. <div class="y_newsmore_cent">
  82. <div class="y_newsmore_li">
  83. <a href="<?= '/news/details/', $hotnews[0]['id'] ?>"
  84. class="c"><span>上一篇: <em> <?= $hotnews[0]['subject'] ?></em></span><i><img
  85. src="/overseas/img/ico_32.png" alt=""></i></a>
  86. </div>
  87. <div class="y_newsmore_li">
  88. <a href="<?= '/news/details/', $hotnews[1]['id'] ?>"
  89. class="c"><span>下一篇: <em> <?= $hotnews[1]['subject'] ?></em></span><i><img
  90. src="/overseas/img/ico_32.png" alt=""></i></a>
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. <div class="y_newsub">
  96. <div class="y_newsub_main">
  97. <div class="y_newsub_bg">
  98. <img src="/overseas/img/m1_ico_news_dy.png" alt="">
  99. </div>
  100. <img src="/overseas/img/m_zxxtb1.png" alt="" class="m_zxxtb">
  101. <div class="y_newsub_cent">
  102. <div class="y_newsub_h">订阅<!-- 品房阁 --> 资讯,获取楼市最新信息</div>
  103. <div class="y_newsub_input">
  104. <form class="submit_area">
  105. <input type="hidden" name="hid" value=""> <!-- 0 为公共报名,其它为楼盘ID-->
  106. <input type="hidden" name="b_city" value="<?= $model['city'] ?>">
  107. <input type="hidden" name="source" value="123">
  108. <!--报名来源 具体查看applyVerify.js文件中SourceModule 标识说明-->
  109. <input type="hidden" name="equipment" value="1">
  110. <!--来源设备 ( PC端 2,手机端 1 )-->
  111. <input type="text" name="mobile" class="y_input" placeholder="您的手机号">
  112. <a class="y_submit apply_submit" href="javascript:;"><img src="/overseas/img/m_zxg1.png" alt="" class="m_zxg"></a>
  113. </form>
  114. </div>
  115. </div>
  116. </div>
  117. </div>
  118. <!-- 相关推荐 -->
  119. <div class="y_newsrelated">
  120. <div class="y_newsrelated_main">
  121. <div class="y_lphome_h y_lphome_h2 c">
  122. <span>推荐楼盘</span>
  123. </div>
  124. <div class="y_lphomepc_cent">
  125. <div class="y_lphomepc_cent_list">
  126. <div class="y_lphomepc_swip swiper-container">
  127. <ul class="y_lphomepc_swip_main swiper-wrapper">
  128. <?php foreach ($cityhouse as $val) { ?>
  129. <li class="y_neirongpc swiper-slide">
  130. <a href="<?= '/house/', $val['id'] ?>">
  131. <div class="y_centerpc">
  132. <p class="y_img"><img
  133. src="<?= Yii::$app->params['httpImg']['hosts'], Yii::$app->params['httpImg']['houses'], $val['thumb'], '/same' ?>"
  134. alt=""></p>
  135. <div class="y_bottomtext c">
  136. <p class="y_left">
  137. <span><?= $val['name'] ?></span><em>[<?= $val['city_name'] ?>]</em>
  138. </p>
  139. <?php if (!empty($val['sale_price'])) { ?>
  140. <p class="y_right">
  141. 均价:<span><?= $val['sale_price'] ?></span><?= $val['price_unit'] ?>
  142. </p>
  143. <?php } else { ?>
  144. <p class="y_right">均价:待定</span></p>
  145. <?php } ?>
  146. </div>
  147. </div>
  148. </a>
  149. </li>
  150. <?php } ?>
  151. </ul>
  152. <div class="y_longhr">
  153. <div class="swiper-pagination"></div>
  154. </div>
  155. </div>
  156. </div>
  157. </div>
  158. </div>
  159. </div>
  160. <!-- 看房定制 -->
  161. <div class="y_lpkfdz">
  162. <div class="y_lpkfdz_bg">
  163. <img src="/overseas/img/m_1ico_lptjbg.png" alt="">
  164. </div>
  165. <div class="y_lpkfdz_main">
  166. <div class="y_lpkfdz_cent">
  167. <!-- <div class="y_lpkfdz_h">报名看房</div> -->
  168. <div class="y_lpkfdz_inplist">
  169. <form class="submit_area">
  170. <input type="hidden" name="hid" value=""> <!-- 0 为公共报名,其它为楼盘ID-->
  171. <input type="hidden" name="b_city" value="">
  172. <input type="hidden" name="source" value="124">
  173. <!--报名来源 具体查看applyVerify.js文件中SourceModule 标识说明-->
  174. <input type="hidden" name="equipment" value="1">
  175. <!--来源设备 ( PC端 2,手机端 1 )-->
  176. <div class="y_lpkfdzinpund">
  177. <i><img src="/overseas/img/m_ico_dzxm1.png" alt=""></i><input name="name" class="y_input"
  178. type="text" placeholder="您的姓名">
  179. </div>
  180. <div class="y_lpkfdzinpund">
  181. <i><img src="/overseas/img/m_ico_dzxm3.png" alt=""></i><input name="mobile" class="y_input"
  182. type="text" placeholder="您的手机号">
  183. </div>
  184. <div class="y_lpkfdzsub"><a class="apply_submit" href="javascript:;">立即报名</a></div>
  185. </form>
  186. </div>
  187. <div style="height:25px;"></div>
  188. </div>
  189. </div>
  190. <div class="y_lpkfdz_bg" id="m_lpkfdz_bg">
  191. <img src="/overseas/img/m_2ico_lptjbg.png" alt="">
  192. </div>
  193. </div>
  194. </div>