details.php 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: xiaofeng
  5. * Date: 2018/4/20
  6. * Time: 上午12:44
  7. */
  8. use wechat\assets\AppAsset;
  9. use yii\helpers\Url;
  10. AppAsset::addCss($this,Yii::$app->request->baseUrl."/css/news_details.css");
  11. AppAsset::addCss($this,Yii::$app->request->baseUrl."/js/index/swiper-3.4.2.min.css");
  12. AppAsset::addScript($this,Yii::$app->request->baseUrl."/js/index/swiper-3.4.2.min.js");
  13. AppAsset::addScript($this,Yii::$app->request->baseUrl."/js/news/details.js");
  14. // AppAsset::addScript($this,Yii::$app->request->baseUrl.'/js/signup/signup.js'); // 报名弹窗调用
  15. // AppAsset::addScript($this,Yii::$app->request->baseUrl.'/js/applyVerify.js'); // 报名弹窗调用
  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. <?php $this->beginContent('@app/views/public/nav.php'); ?>
  21. <?php $this->endContent(); ?>
  22. <div class="y_news_details">
  23. <div class="y_news_main">
  24. <div class="y_news_conter">
  25. <div class="y_newsdeta_h">
  26. <?= $model['subject'] ?>
  27. </div>
  28. <div class="y_newsdeta_hbottom c">
  29. <p class="y_left c">
  30. <?php if(!empty($model['source'])){ ?>
  31. <span>来源:<?= $model['source'] ?></span>
  32. <?php } ?>
  33. <?php if(!empty($model['author'])){ ?>
  34. <span>作者:<?= $model['author'] ?></span>
  35. <?php } ?>
  36. </p>
  37. <p class="y_right"><?= date('Y-m-d',$model['create_at']); ?></p>
  38. </div>
  39. <div class="y_newsdata_cont">
  40. <?= $model['content'] ?>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. <!--上一篇/-->
  46. <!--<div class="y_newsmore">-->
  47. <!-- <div class="y_newsmore_main">-->
  48. <!-- <div class="y_newsmore_cent">-->
  49. <!-- <div class="y_newsmore_li">-->
  50. <!-- <a href="--><?//= '/news/details/',$hotnews[0]['id'],'/' ?><!--" class="c"><span>上一篇: <em> --><?//= $hotnews[0]['subject'] ?><!--</em></span><i><img src="/image/ico_32.png" alt=""></i></a>-->
  51. <!-- </div>-->
  52. <!-- <div class="y_newsmore_li">-->
  53. <!-- <a href="--><?//= '/news/details/',$hotnews[1]['id'],'/' ?><!--" class="c"><span>下一篇: <em> --><?//= $hotnews[1]['subject'] ?><!--</em></span><i><img src="/image/ico_32.png" alt=""></i></a>-->
  54. <!-- </div>-->
  55. <!-- </div>-->
  56. <!-- </div>-->
  57. <!--</div>-->
  58. <!--<div class="y_newsub">-->
  59. <!-- <div class="y_newsub_main">-->
  60. <!-- <div class="y_newsub_bg">-->
  61. <!-- <img src="/image/ico_news_dy.png" alt="">-->
  62. <!-- </div>-->
  63. <!-- <div class="y_newsub_cent">-->
  64. <!-- <div class="y_newsub_h">订阅奇葩说,更多地产奇闻第一时间发送至您手机上</div>-->
  65. <!-- <div class="y_newsub_input">-->
  66. <!-- <form class="submit_area">-->
  67. <!-- <input type="hidden" name="hid" value=""> <!-- 0 为公共报名,其它为楼盘ID-->
  68. <!-- <input type="hidden" name="b_city" value="">-->
  69. <!-- <input type="hidden" name="source" value="7"> <!--报名来源 具体查看applyVerify.js文件中SourceModule 标识说明-->
  70. <!-- <input type="hidden" name="equipment" value="1"> <!--来源设备 ( PC端 2,手机端 1 )-->
  71. <!-- <input type="text" name="mobile" class="y_input" placeholder="您的手机号">-->
  72. <!-- <input type="buttom" class="y_submit apply_submit" value="立即订阅">-->
  73. <!-- </form>-->
  74. <!-- </div>-->
  75. <!-- </div>-->
  76. <!-- </div>-->
  77. <!--</div>-->
  78. <!-- 相关推荐 -->
  79. <div class="y_newsrelated">
  80. <div class="y_newsrelated_main">
  81. <div class="y_lphome_h y_lphome_h2 c">
  82. <span>推荐楼盘</span>
  83. </div>
  84. <div class="y_lphomepc_cent">
  85. <div class="y_lphomepc_cent_list">
  86. <div class="y_lphomepc_swip swiper-container">
  87. <ul class="y_lphomepc_swip_main swiper-wrapper">
  88. <?php foreach ($cityhouse as $val){ ?>
  89. <li class="y_neirongpc swiper-slide">
  90. <a href="<?= '/house/',$val['id'] ?>/">
  91. <div class="y_centerpc">
  92. <p class="y_img"><img src="/image/ico_6.png" alt=""></p>
  93. <div class="y_bottomtext c">
  94. <p class="y_left"><span><?= $val['name'] ?></span><em>[<?= $val['city_name'] ?>]</em></p>
  95. <?php if(!empty($val['sale_price'])){ ?>
  96. <p class="y_right">均价:<span><?= $val['sale_price'] ?></span><?= $val['price_unit'] ?></p>
  97. <?php }else { ?>
  98. <p class="y_right">均价:待定</span></p>
  99. <?php } ?>
  100. </div>
  101. </div>
  102. </a>
  103. </li>
  104. <?php } ?>
  105. </ul>
  106. <div class="y_longhr">
  107. <div class="swiper-pagination"></div>
  108. </div>
  109. </div>
  110. </div>
  111. </div>
  112. </div>
  113. <!--</div>-->
  114. <!-- 看房定制 -->
  115. <div class="y_lpkfdz">
  116. <div class="y_lpkfdz_bg">
  117. <img src="/image/m_1ico_lptjbg.png" alt="">
  118. </div>
  119. <div class="y_lpkfdz_main">
  120. <div class="y_lpkfdz_cent">
  121. <!-- <div class="y_lpkfdz_h">报名看房</div> -->
  122. <div class="y_lpkfdz_inplist">
  123. <form class="submit_area">
  124. <input type="hidden" name="hid" value=""> <!-- 0 为公共报名,其它为楼盘ID-->
  125. <input type="hidden" name="b_city" value="">
  126. <input type="hidden" name="source" value="15"> <!--报名来源 具体查看applyVerify.js文件中SourceModule 标识说明-->
  127. <input type="hidden" name="equipment" value="1"> <!--来源设备 ( PC端 2,手机端 1 )-->
  128. <div class="y_lpkfdzinpund">
  129. <i><img src="/image/m_ico_dzxm1.png" alt=""></i><input name="name" class="y_input" type="text" placeholder="您的姓名">
  130. </div>
  131. <div class="y_lpkfdzinpund">
  132. <i><img src="/image/m_ico_dzxm3.png" alt=""></i><input name="mobile" class="y_input" type="text" placeholder="您的手机号">
  133. </div>
  134. <div class="y_lpkfdzsub"><a class="apply_submit" href="javascript:;">立即报名</a></div>
  135. </form>
  136. </div>
  137. <div style="height:25px;"></div>
  138. </div>
  139. </div>
  140. <div class="y_lpkfdz_bg" id="m_lpkfdz_bg">
  141. <img src="/image/m_2ico_lptjbg.png" alt="">
  142. </div>
  143. </div>