news.php 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: xiaofeng
  5. * Date: 2018/4/19
  6. * Time: 下午2:54
  7. */
  8. use frontend\assets\AppAsset;
  9. use yii\helpers\Html;
  10. use common\fm\Opencc;
  11. AppAsset::addCss($this, Yii::$app->request->baseUrl . "/overseas/css/lpnews.css");
  12. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/overseas/js/lpnews.js");
  13. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/overseas/js/applyVerify.js");
  14. /**
  15. * head头信息;
  16. */
  17. $this->title = '楼盘动态-品房海外';
  18. ?>
  19. <?php $this->beginContent('@app/views/house/publichousenav.php', ['hid' => $public['id']]); ?>
  20. <?php $this->endContent(); ?>
  21. <?php $this->beginContent('@app/views/house/publichouse.php', ['public' => $public, 'module' => 95]); ?>
  22. <?php $this->endContent(); ?>
  23. <div style="height:20px;"></div>
  24. <div class="y_lpnewslist">
  25. <div class="y_lpnewslist_main puic_wid c">
  26. <div class="y_lpnewslist_left puic_color fl">
  27. <div class="y_lpnewslist_left_h">
  28. <span>楼盘动态</span>
  29. </div>
  30. <?php if (!empty($news)) { ?>
  31. <div class="y_lpnewslist_left_cent">
  32. <ul>
  33. <?php foreach ($news as $val) { ?>
  34. <li class="c">
  35. <div class="y_lpnewslist_sj fl">
  36. <p class="y_nian"><?= date('Y', $val['create_at']) ?></p>
  37. <p class="y_yue"><?= date('m-d', $val['create_at']) ?></p>
  38. </div>
  39. <div class="y_lpnewslist_text fl">
  40. <p class="title"><a target="_blank"
  41. href="/news/details/<?= $val['id'] ?>"><?= $val['subject'] ?></a>
  42. </p>
  43. <p class="y_listimg">
  44. <a target="_blank" href="/news/details/<?= $val['id'] ?>">
  45. <?php if (!empty($val['thumb'])) {
  46. foreach ($val['thumb'] as $v) { ?>
  47. <i><img src="<?= Yii::$app->params['httpImg']['host'], Yii::$app->params['httpImg'][''], $v ?>"
  48. alt=""></i>
  49. <?php }
  50. } ?>
  51. </a>
  52. </p>
  53. </div>
  54. </li>
  55. <?php } ?>
  56. </ul>
  57. </div>
  58. <?php } else { ?>
  59. <div class="y_nodata" style="text-align:center;">
  60. <img src="/overseas/img/ico_nodata2.png" alt="" width="400" height="auto">
  61. </div>
  62. <?php } ?>
  63. </div>
  64. <div class="y_lpnewslist_right fr">
  65. <div class="m_dynamic_rbox">
  66. <div class="m_dynamic_r">
  67. <div class="tw">报名<span>看房</span></div>
  68. <div class="m_dynamic_text">
  69. <p class="c" style="margin-top:12px;"><i></i><span>第一时间了解楼盘信息</span></p>
  70. <p class="c"><i></i><span>定制自己的看房路线</span></p>
  71. <p class="c"><i></i><span>报名看房可获取购房优惠</span></p>
  72. </div>
  73. <form class="submit_area c">
  74. <input type="hidden" name="hid" value="<?= Yii::$app->request->get('hid') ?>">
  75. <!-- 0 为公共报名,其它为楼盘ID-->
  76. <input type="hidden" name="source" value="102">
  77. <!--报名来源 具体查看applyVerify.js文件中SourceModule 标识说明-->
  78. <input type="hidden" name="equipment" value="2"> <!--来源设备 ( PC端 2,手机端 1 )-->
  79. <input type="text" name="mobile" placeholder="请输入您的手机号" class="m_form_input">
  80. <input type="button" value="立即报名" class="m_form_buttom m_form_button">
  81. </form>
  82. </div>
  83. <?php if (!empty($adviser)) { ?>
  84. <div class="m_Consultation c" style="">
  85. <img class="m_Consultation_img"
  86. src="<?= Yii::$app->params['httpImg']['host'], Yii::$app->params['httpImg']['adviser'], $adviser['photo'] ?>"
  87. alt="">
  88. <div class="m_Consultation_text">
  89. <p class="title"><?= $adviser['name'] ?></p>
  90. <p class="Number">已帮助<span><?= rand(500, 600) ?></span>组客户</p>
  91. <p class="introduce">(<?= $adviser['experience'] ?>)</p>
  92. </div>
  93. <a href="javascript:;" rel="nofollow" onclick="$53click()">
  94. <img src="/overseas/img/windex_8.png" alt="">
  95. <span>向TA咨询</span>
  96. </a>
  97. </div>
  98. <?php } ?>
  99. </div>
  100. </div>
  101. </div>
  102. </div>