details.php 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. <?php
  2. use mobile\assets\AppAsset;
  3. use yii\helpers\Html;
  4. use common\fm\Opencc;
  5. AppAsset::addCss($this, Yii::$app->request->baseUrl . "/overseas/css/lpdetails.css");
  6. AppAsset::addScript($this, Yii::$app->request->baseUrl . '/overseas/js/menu/iscroll.js'); //菜单滑动
  7. AppAsset::addScript($this, Yii::$app->request->baseUrl . '/overseas/js/menu/navbarscroll.js'); //菜单滑动
  8. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/overseas/js/house/details.js");
  9. AppAsset::addScript($this, Yii::$app->request->baseUrl . '/overseas/js/search_public.js');
  10. AppAsset::addScript($this, Yii::$app->request->baseUrl . '/overseas/js/menu/lpnav.js');
  11. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/overseas/js/publicuse/housenav.js");
  12. $this->title = '楼盘详情';
  13. ?>
  14. <div id="serachBox2">
  15. <div id="y_sidebarl">
  16. <!-- 导航 -->
  17. <?php $this->beginContent('@app/views/public/nav.php'); ?>
  18. <?php $this->endContent(); ?>
  19. <!-- <div style="height:55px;"></div> -->
  20. <!-- 导航 -->
  21. <?php $this->beginContent('@app/views/public/housenav.php', ['hid' => $hid]); ?>
  22. <?php $this->endContent(); ?>
  23. <!-- 项目介绍 2019-10-15 添加需要调数据-->
  24. <div class="y_lpjbxx" style="">
  25. <div class="y_lpjbxx_main">
  26. <div class="y_lphome_h2 c">
  27. <span><?= Opencc::ConvertHn('项目介绍') ?></span>
  28. </div>
  29. <div class="w-font">
  30. <?= Opencc::ConvertHn($model['house']['info']); ?>
  31. </div>
  32. <div class="font-more">
  33. <a class="w-more" href="javascript:void(0);"><?= Opencc::ConvertHn('展开') ?></a>
  34. </div>
  35. </div>
  36. </div>
  37. <!-- 基本信息 -->
  38. <div class="y_lpjbxx">
  39. <div class="y_lpjbxx_main">
  40. <div class="y_lphome_h2 c">
  41. <span><?= Opencc::ConvertHn('基本信息') ?></span>
  42. </div>
  43. <div class="y_lpjbxx_cent">
  44. <ul>
  45. <li class="c">
  46. <span><?= Opencc::ConvertHn('开&nbsp; 发&nbsp;&nbsp;商') ?>:</span><em><?= Opencc::ConvertHn(f_unit($model['house']['developers'])) ?></em>
  47. </li>
  48. <li class="tese c"><span><?= Opencc::ConvertHn('项目特色') ?>:</span><em class="y_lptese_color">
  49. <?php if (!empty($model['house']['characteristic'])) foreach ($model['house']['characteristic'] as $val) { ?>
  50. <i><?= Opencc::ConvertHn($val) ?></i>
  51. <?php } ?>
  52. </em>
  53. </li>
  54. <li class="c">
  55. <span><?= Opencc::ConvertHn('建筑类别') ?>:</span><em> <?php foreach ($model['house']['architecture_type'] as $val) { ?>
  56. <?= Opencc::ConvertHn($val) . '&nbsp;' ?>
  57. <?php } ?></em></li>
  58. <li class="c">
  59. <span><?= Opencc::ConvertHn('装修状况') ?>:</span><em><?php if (!empty($model['house']['fit'])) {
  60. echo Yii::$app->params['Housefit'][$model['house']['fit']];
  61. } else {
  62. echo '暂无信息';
  63. } ?></em></li>
  64. <li class="c">
  65. <span><?= Opencc::ConvertHn('产权年限') ?>:</span><em><?= f_unit($model['house']['house_cx'], '年') ?></em>
  66. </li>
  67. <li class="c">
  68. <span><?= Opencc::ConvertHn('楼盘地址') ?>:</span><em><?= Opencc::ConvertHn(f_unit($model['house']['address'])) ?></em>
  69. </li>
  70. </ul>
  71. </div>
  72. </div>
  73. </div>
  74. <div class="y_lpjbxx">
  75. <div class="y_lpjbxx_main">
  76. <div class="y_lphome_h2 c">
  77. <span><?= Opencc::ConvertHn('销售信息') ?></span>
  78. </div>
  79. <div class="y_lpjbxx_cent">
  80. <ul>
  81. <li class="c">
  82. <span><?= Opencc::ConvertHn('销售状态') ?>:</span><em><?= Yii::$app->params['HouseSalesStatus'][$model['house']['state']] ?></em>
  83. </li>
  84. <li class="c">
  85. <span><?= Opencc::ConvertHn('楼盘优惠') ?>:</span><em><?= Opencc::ConvertHn(f_unit($model['house']['preferential'])) ?></em>
  86. </li>
  87. <li class="c">
  88. <span><?= Opencc::ConvertHn('开盘时间') ?>:</span><em><?= Opencc::ConvertHn(f_unit($model['house']['open_time'])) ?></em>
  89. </li>
  90. <li class="c">
  91. <span><?= Opencc::ConvertHn('交房时间') ?>:</span><em><?= Opencc::ConvertHn(f_unit($model['house']['launch_time'])) ?></em>
  92. </li>
  93. <li class="c"><span><?= Opencc::ConvertHn('咨询电话') ?>:</span><em><a style="color:red;"
  94. href="tel:<?= $model['house']['tel'] ?>"><?= $model['house']['tel'] ?></a></em>
  95. </li>
  96. <li class="c"><span><?= Opencc::ConvertHn('主力户型') ?>:</span><em>(<?= Opencc::ConvertHn('建筑面积') ?>
  97. )<?= Opencc::ConvertHn(f_unit($model['house']['main_units'])) ?></em></li>
  98. <li class="c"><span><?= Opencc::ConvertHn('预售许可证') ?>:</span>
  99. <em style="width:70%;">
  100. <?php if (!empty($model['house']['zhengshu'])) { ?>
  101. <a class="y_ckysz" data-id="<?= $hid ?>"
  102. href="javascipt:;"><?= Opencc::ConvertHn('查看') ?> >></a>
  103. <?php } else {
  104. echo Opencc::ConvertHn('暂无资料');
  105. } ?>
  106. </em>
  107. </li>
  108. </ul>
  109. </div>
  110. </div>
  111. </div>
  112. <div class="y_lpjbxx">
  113. <div class="y_lpjbxx_main">
  114. <div class="y_lphome_h2 c">
  115. <span><?= Opencc::ConvertHn('小区规划') ?></span>
  116. </div>
  117. <div class="y_lpjbxx_cent">
  118. <ul>
  119. <li class="c">
  120. <span><?= Opencc::ConvertHn('占地面积') ?>:</span><em><?= Opencc::ConvertHn(f_unit($model['house']['planning_area'], 'm²')) ?></em>
  121. </li>
  122. <li class="c">
  123. <span><?= Opencc::ConvertHn('建筑面积') ?>:</span><em><?= Opencc::ConvertHn(f_unit($model['house']['construction_area'], 'm²')) ?></em>
  124. </li>
  125. <li class="c">
  126. <span><?= Opencc::ConvertHn('容&nbsp; 积&nbsp;&nbsp;率') ?>:</span><em><?= Opencc::ConvertHn(f_unit($model['house']['volume_rate'])) ?></em>
  127. </li>
  128. <li class="c">
  129. <span><?= Opencc::ConvertHn('绿&nbsp; 化&nbsp;&nbsp;率') ?>:</span><em><?= Opencc::ConvertHn(f_unit($model['house']['greening_rate'])) ?></em>
  130. </li>
  131. <li class="c">
  132. <span><?= Opencc::ConvertHn('停&nbsp; 车&nbsp;&nbsp;位') ?>:</span><em><?= Opencc::ConvertHn(f_unit($model['house']['parking_num'], '个')) ?></em>
  133. </li>
  134. <li class="c">
  135. <span><?= Opencc::ConvertHn('楼栋总数') ?>:</span><em><?= Opencc::ConvertHn(f_unit($model['house']['total_building'], '栋')) ?></em>
  136. </li>
  137. <li class="c">
  138. <span><?= Opencc::ConvertHn('总&nbsp; 户&nbsp;&nbsp;数') ?>:</span><em><?= Opencc::ConvertHn(f_unit($model['house']['planning_households'], '户')) ?></em>
  139. </li>
  140. <li class="c">
  141. <span><?= Opencc::ConvertHn('物业公司') ?>:</span><em><?= Opencc::ConvertHn(f_unit($model['house']['property_company'])) ?></em>
  142. </li>
  143. <li class="c">
  144. <span><?= Opencc::ConvertHn('物&nbsp; 业&nbsp;&nbsp;费') ?>:</span><em><?= Opencc::ConvertHn(f_unit($model['house']['property_costs'])) ?></em>
  145. </li>
  146. <li class="c">
  147. <span><?= Opencc::ConvertHn('楼层状况') ?>:</span><em><?= Opencc::ConvertHn(f_unit($model['house']['floor_condition'])) ?></em>
  148. </li>
  149. </ul>
  150. </div>
  151. </div>
  152. </div>
  153. </div>
  154. </div>