details.php 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  1. <?php
  2. use frontend\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/lpdetails.js");
  7. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/overseas/js/applyVerify.js");
  8. $this->title = '楼盘信息_项目介绍_开盘时间_售楼电话';
  9. ?>
  10. <?php $this->beginContent('@app/views/house/publichousenav.php', ['hid' => $public['id']]); ?>
  11. <?php $this->endContent(); ?>
  12. <?php $this->beginContent('@app/views/house/publichouse.php', ['public' => $public, 'module' => 94]); ?>
  13. <?php $this->endContent(); ?>
  14. <div style="height:20px;"></div>
  15. <div class="y_detav2">
  16. <div class="y_detav2_main puic_wid puic_color">
  17. <div class="y_detav2_cent">
  18. <div class="y_details_h"><h2><?php echo Opencc::ConvertHn('项目参数') ?></h2></div>
  19. <div class="y_detav2_table">
  20. <table>
  21. <tr>
  22. <td class="y_leimu"><?php echo Opencc::ConvertHn('参考价格') ?></td>
  23. <td class="y_cont"><?php if (!empty($model['house']['sale_price'])) {
  24. echo $model['house']['sale_price'] . Opencc::ConvertHn($model['house']['price_unit']);
  25. } else {
  26. echo Opencc::ConvertHn('待定');
  27. } ?></td>
  28. <td class="y_leimu"><?php echo Opencc::ConvertHn('项目特色') ?></td>
  29. <td class="y_cont y_lpdatats y_lptese_color c">
  30. <?php if (!empty($model['house']['characteristic'])) foreach ($model['house']['characteristic'] as $val) { ?>
  31. <i><?php echo Opencc::ConvertHn($val) ?></i>
  32. <?php } ?>
  33. </td>
  34. </tr>
  35. <tr>
  36. <td class="y_leimu"><?php echo Opencc::ConvertHn('建筑类别') ?></td>
  37. <td class="y_cont">
  38. <?php foreach ($model['house']['architecture_type'] as $val) { ?>
  39. <?php echo Opencc::ConvertHn($val) . '&nbsp;' ?>
  40. <?php } ?>
  41. </td>
  42. <td class="y_leimu"><?php echo Opencc::ConvertHn('装修状况') ?></td>
  43. <td class="y_cont"><?= isset(Yii::$app->params['Housefit'][$model['house']['fit']]) ? Yii::$app->params['Housefit'][$model['house']['fit']] : '暂无资料' ?></td>
  44. </tr>
  45. <tr>
  46. <td class="y_leimu"><?php echo Opencc::ConvertHn('产权年限') ?></td>
  47. <td class="y_cont">
  48. <?= Opencc::ConvertHn(f_unit($model['house']['house_cx'], '年')) ?>
  49. </td>
  50. <td class="y_leimu"><?php echo Opencc::ConvertHn('开 发 商') ?></td>
  51. <td class="y_cont"><?= Opencc::ConvertHn(f_unit($model['house']['developers'])) ?></td>
  52. </tr>
  53. <tr>
  54. <td class="y_leimu"><?php echo Opencc::ConvertHn('楼盘地址') ?></td>
  55. <td class="y_cont"><?= Opencc::ConvertHn(f_unit($model['house']['address'])) ?></td>
  56. <td class="y_leimu"></td>
  57. <td class="y_cont"></td>
  58. </tr>
  59. </table>
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. <div style="height:20px;"></div>
  65. <div class="y_detav2">
  66. <div class="y_detav2_main puic_wid puic_color">
  67. <div class="y_detav2_cent">
  68. <div class="y_details_h"><h2><?php echo Opencc::ConvertHn('销售信息') ?></h2></div>
  69. <div class="y_detav2_table">
  70. <table>
  71. <tr>
  72. <td class="y_leimu"><?php echo Opencc::ConvertHn('销售状态') ?></td>
  73. <td class="y_cont"><?= Opencc::ConvertHn(Yii::$app->params['HouseSalesStatus'][$model['house']['state']]) ?></td>
  74. <td class="y_leimu"><?php echo Opencc::ConvertHn('楼盘优惠') ?></td>
  75. <td class="y_cont"><?= Opencc::ConvertHn(f_unit($model['house']['preferential'])) ?></td>
  76. </tr>
  77. <tr>
  78. <td class="y_leimu"><?php echo Opencc::ConvertHn('开盘时间') ?></td>
  79. <td class="y_cont"><?= Opencc::ConvertHn(f_unit($model['house']['open_time'])) ?></td>
  80. <td class="y_leimu"><?php echo Opencc::ConvertHn('交房时间') ?></td>
  81. <td class="y_cont"><?= Opencc::ConvertHn(f_unit($model['house']['launch_time'])) ?></td>
  82. </tr>
  83. <tr>
  84. <td class="y_leimu"><?php echo Opencc::ConvertHn('售楼地址') ?></td>
  85. <td class="y_cont"><?= Opencc::ConvertHn(f_unit($model['house']['sales_address'])) ?></td>
  86. <td class="y_leimu"><?php echo Opencc::ConvertHn('咨询电话') ?></td>
  87. <td class="y_cont" style="color:#FF5849"><?= f_unit($model['house']['tel']) ?></td>
  88. </tr>
  89. <tr>
  90. <td class="y_leimu"><?php echo Opencc::ConvertHn('主力户型') ?></td>
  91. <td class="y_cont">(<?php echo Opencc::ConvertHn('建筑面积') ?>
  92. )<?= f_unit($model['house']['main_units']) ?></td>
  93. <td class="y_leimu"></td>
  94. <td class="y_cont"></td>
  95. </tr>
  96. </table>
  97. <div class="y_lpysz">
  98. <p class="y_lpysz_h"><?php echo Opencc::ConvertHn('预售许可证') ?>:</p>
  99. <div class="y_lpysz_table">
  100. <?php if (!empty($model['house']['zhengshu'])) { ?>
  101. <table>
  102. <thead>
  103. <tr>
  104. <th class="y_ind2"><?php echo Opencc::ConvertHn('预售许可证') ?></th>
  105. <th class="y_ind"><?php echo Opencc::ConvertHn('发证时间') ?></th>
  106. <th class="y_ind"><?php echo Opencc::ConvertHn('绑定楼栋') ?></th>
  107. </tr>
  108. </thead>
  109. <tbody>
  110. <?php foreach ($model['house']['zhengshu'] as $val) { ?>
  111. <tr>
  112. <td><?php echo $val['permit'] ?></td>
  113. <td><?php echo $val['time'] ?></td>
  114. <td><?php echo $val['building_num'] ?></td>
  115. </tr>
  116. <?php } ?>
  117. </tbody>
  118. </table>
  119. <div class="y_lpyszsq">
  120. <a href="javascript:;"><span><?php echo Opencc::ConvertHn('展开') ?></span><i><img
  121. src="/overseas/img/jt_down.png"
  122. alt=""></i></a>
  123. </div>
  124. <?php } else { ?>
  125. <div class="y_nodata">
  126. <p class="y_img"><img src="/overseas/img/ico_52.png" alt=""></p>
  127. <p class="y_text"><?php echo Opencc::ConvertHn('暂无预售证资料') ?></p>
  128. </div>
  129. <?php } ?>
  130. </div>
  131. </div>
  132. </div>
  133. </div>
  134. </div>
  135. </div>
  136. <div style="height:20px;"></div>
  137. <?php if (!empty($model['peitao'])) { ?>
  138. <div class="y_detav2">
  139. <div class="y_detav2_main puic_wid puic_color">
  140. <div class="y_detav2_cent">
  141. <div class="y_details_h"><h2><?php echo Opencc::ConvertHn('配套信息') ?></h2></div>
  142. <div class="y_detav2_table y_detav2_table_pt">
  143. <table>
  144. <?php if (!empty($model['peitao'])) {
  145. foreach ($model['peitao'] as $key => $val) { ?>
  146. <tr>
  147. <td class="y_leimu"><?php echo Opencc::ConvertHn($key) ?></td>
  148. <td class="y_cont">
  149. <?php
  150. echo implode('、', $model['peitao'][$key]['name']);
  151. ?>
  152. </td>
  153. </tr>
  154. <?php }
  155. } ?>
  156. </table>
  157. </div>
  158. </div>
  159. </div>
  160. </div>
  161. <?php } ?>
  162. <div style="height:20px;"></div>
  163. <div class="y_detav2">
  164. <div class="y_detav2_main puic_wid puic_color">
  165. <div class="y_detav2_cent">
  166. <div class="y_details_h"><h2><?php echo Opencc::ConvertHn('小区规划') ?></h2></div>
  167. <div class="y_detav2_table">
  168. <table>
  169. <tr>
  170. <td class="y_leimu"><?php echo Opencc::ConvertHn('占地面积') ?></td>
  171. <td class="y_cont"><?= Opencc::ConvertHn(f_unit($model['house']['planning_area'], 'm²')) ?></td>
  172. <td class="y_leimu"><?php echo Opencc::ConvertHn('建筑面积') ?></td>
  173. <td class="y_cont"><?= Opencc::ConvertHn(f_unit($model['house']['construction_area'], 'm²')) ?></td>
  174. </tr>
  175. <tr>
  176. <td class="y_leimu"><?php echo Opencc::ConvertHn('容 积 率') ?></td>
  177. <td class="y_cont"><?= Opencc::ConvertHn(f_unit($model['house']['volume_rate'])) ?></td>
  178. <td class="y_leimu"><?php echo Opencc::ConvertHn('绿 化 率') ?></td>
  179. <td class="y_cont"><?= Opencc::ConvertHn(f_unit($model['house']['greening_rate'])) ?></td>
  180. </tr>
  181. <tr>
  182. <td class="y_leimu"><?php echo Opencc::ConvertHn('停 车 位') ?></td>
  183. <td class="y_cont"><?= Opencc::ConvertHn(f_unit($model['house']['parking_num'], '个')) ?></td>
  184. <td class="y_leimu"><?php echo Opencc::ConvertHn('楼栋总数') ?></td>
  185. <td class="y_cont"><?= Opencc::ConvertHn(f_unit($model['house']['total_building'], '栋')) ?></td>
  186. </tr>
  187. <tr>
  188. <td class="y_leimu"><?php echo Opencc::ConvertHn('总 户 数') ?></td>
  189. <td class="y_cont"><?= Opencc::ConvertHn(f_unit($model['house']['planning_households'], '户')) ?></td>
  190. <td class="y_leimu"><?php echo Opencc::ConvertHn('物业公司') ?></td>
  191. <td class="y_cont"><?= Opencc::ConvertHn(f_unit($model['house']['property_company'])) ?></td>
  192. </tr>
  193. <tr>
  194. <td class="y_leimu"><?php echo Opencc::ConvertHn('物 业 费') ?></td>
  195. <td class="y_cont"><?= Opencc::ConvertHn(f_unit($model['house']['property_costs'])) ?></td>
  196. <td class="y_leimu"><?php echo Opencc::ConvertHn('楼层状况') ?></td>
  197. <td class="y_cont"><?= Opencc::ConvertHn(f_unit($model['house']['floor_condition'])) ?></td>
  198. </tr>
  199. </table>
  200. </div>
  201. </div>
  202. </div>
  203. </div>
  204. <div style="height:20px;"></div>
  205. <div class="y_detav2">
  206. <div class="y_detav2_main puic_wid puic_color">
  207. <div class="y_detav2_cent">
  208. <div class="y_details_h"><h2><?php echo Opencc::ConvertHn('价格信息') ?></h2></div>
  209. <div class="y_detav2_pic">
  210. <?php if (!empty($model['house']['price_record'])) { ?>
  211. <table>
  212. <thead>
  213. <tr>
  214. <th class="y_ind"><em><?php echo Opencc::ConvertHn('记录时间') ?></em><i><img
  215. src="/overseas/img/ico_53.png" alt=""></i></th>
  216. <th class="y_ind"><em><?php echo Opencc::ConvertHn('均价') ?></em><i><img
  217. src="/overseas/img/ico_54.png" alt=""></i></th>
  218. <th class="y_ind"><em><?php echo Opencc::ConvertHn('起价') ?></em><i><img
  219. src="/overseas/img/ico_55.png" alt=""></i></th>
  220. <th class="y_ind2"><em><?php echo Opencc::ConvertHn('价格说明') ?></em><i><img
  221. src="/overseas/img/ico_56.png" alt=""></i></th>
  222. </tr>
  223. </thead>
  224. <tbody>
  225. <?php foreach ($model['house']['price_record'] as $val) { ?>
  226. <tr>
  227. <td><?php echo $val['create_time'] ?></td>
  228. <td><?php
  229. echo $val['price'] == 0 ? '待定' : $val['price'];
  230. if (!empty($val['price_unit'])) echo $val['price_unit'];
  231. ?></td>
  232. <td><?php echo f_unit($val['min_price']) ?></td>
  233. <td><?php echo $val['explain'] ?></td>
  234. </tr>
  235. <?php } ?>
  236. </tbody>
  237. </table>
  238. <?php } else { ?>
  239. <div class="y_nodata">
  240. <p class="y_img"><img src="/overseas/img/ico_52.png" alt=""></p>
  241. <p class="y_text"><?php echo Opencc::ConvertHn('暂无价格信息数据') ?></p>
  242. </div>
  243. <?php } ?>
  244. </div>
  245. </div>
  246. </div>
  247. </div>
  248. <!-- 项目介绍 -->
  249. <?php if (!empty($model['house']['info'])) { ?>
  250. <div class="y_intro" style="">
  251. <div class="y_intro_main puic_wid puic_color">
  252. <div class="y_intro_cent">
  253. <div class="y_details_h"><h2><?php echo Opencc::ConvertHn('项目介绍') ?></h2></div>
  254. <div class="y_intro_nr">
  255. <?= Opencc::ConvertHn($model['house']['info']) ?>
  256. </div>
  257. </div>
  258. </div>
  259. </div>
  260. <?php } ?>
  261. <!-- 猜你喜欢 -->
  262. <div class="y_love mt20">
  263. <div class="y_love_main puic_wid puic_color">
  264. <div class="y_love_h"><h2><?= Opencc::ConvertHn('猜你喜欢') ?></h2></div>
  265. <div class="y_love_list">
  266. <ul class="c">
  267. <?php if (!empty($public['randhouse'])) {
  268. foreach ($public['randhouse'] as $val) { ?>
  269. <li>
  270. <div class="y_love_list_main">
  271. <div class="y_tu">
  272. <a target="_blank" href="/house/<?= $val['id'] ?>"><img
  273. src="<?= Yii::$app->params['httpImg']['hosts'], Yii::$app->params['httpImg']['houses'] . $val['thumb'], '/same' ?>"
  274. alt=""></a>
  275. </div>
  276. <div class="y_text">
  277. <h2><a target="_blank"
  278. href="/house/<?= $val['id'] ?>"><?php echo Opencc::ConvertHn($val['name']) ?></a><i>[<?php echo Opencc::ConvertHn($val['city_name']) ?>
  279. ]</i></h2>
  280. <p class="y_pic">
  281. <?php if (!empty($val['sale_price'])) { ?>
  282. <span><?php echo $val['sale_price'] ?></span>
  283. <i><?php echo Opencc::ConvertHn($val['price_unit']) ?></i>
  284. <?php } else { ?>
  285. <span><?= Opencc::ConvertHn('待定') ?></span>
  286. <i></i>
  287. <?php } ?>
  288. </p>
  289. <i class="yv2_puicTime" style="color:#c2bfbf;font-size:12px;margin-top:2px;display: block;"></i>
  290. </div>
  291. </div>
  292. </li>
  293. <?php }
  294. } ?>
  295. </ul>
  296. </div>
  297. </div>
  298. </div>