type.php 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <?php
  2. use frontend\assets\AppAsset;
  3. use yii\helpers\Html;
  4. use yii\helpers\Url;
  5. use common\fm\Opencc;
  6. AppAsset::addCss($this, Yii::$app->request->baseUrl . "/overseas/css/lphxt.css");
  7. AppAsset::addScript($this, Yii::$app->request->baseUrl . '/overseas/js/house/type.js');
  8. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/overseas/js/applyVerify.js");
  9. /**
  10. * head头信息;
  11. */
  12. $this->title = '在售户型-品房海外 ';
  13. ?>
  14. <style>
  15. .y_left {
  16. padding-bottom: 10px;
  17. border-bottom: 1px solid #EAE9E9;
  18. }
  19. </style>
  20. <?php $this->beginContent('@app/views/house/publichousenav.php', ['hid' => $public['id']]); ?>
  21. <?php $this->endContent(); ?>
  22. <?php $this->beginContent('@app/views/house/publichouse.php', ['public' => $public, 'module' => 96]); ?>
  23. <?php $this->endContent(); ?>
  24. <div style="height:20px;"></div>
  25. <div class="y_lphx">
  26. <div class="y_lphx_main puic_wid puic_color">
  27. <?php if (!empty($grouptype)) { ?>
  28. <div class="y_lphx_title c">
  29. <div class="y_left"><h2><?= Opencc::ConvertHn('楼盘户型') ?></h2></div>
  30. <div class="y_right " id="y_right">
  31. <ul class="c">
  32. <?php foreach ($grouptype as $val) { ?>
  33. <li name="<?php echo $val['type_id'] ?>" hid="<?php echo $_GET['hid'] ?>"><a
  34. href="javascript:;"><?php echo Opencc::ConvertHn($val['huxing_name']) ?>
  35. (<?php echo $val['num'] ?>
  36. )</a></li>
  37. <?php } ?>
  38. </ul>
  39. </div>
  40. </div>
  41. <div class="y_lphx_list" id="y_lphx_list">
  42. <ul class="c">
  43. </ul>
  44. </div>
  45. <div class="c"></div>
  46. <div class="c"></div>
  47. <?php } else { ?>
  48. <div class="y_nodata" style="text-align:center;">
  49. <img src="/overseas/img/ico_nodata1.png" alt="" width="400" height="auto">
  50. </div>
  51. <?php } ?>
  52. <div style=" height:10px;"></div>
  53. </div>
  54. </div>
  55. <!-- 猜你喜欢 -->
  56. <div class="y_love mt20">
  57. <div class="y_love_main puic_wid puic_color">
  58. <div class="y_love_h"><h2><?= Opencc::ConvertHn('猜你喜欢') ?></h2></div>
  59. <div class="y_love_list">
  60. <ul class="c">
  61. <?php if (!empty($public['randhouse'])) {
  62. foreach ($public['randhouse'] as $val) { ?>
  63. <li>
  64. <div class="y_love_list_main">
  65. <div class="y_tu">
  66. <a target="_blank" href="/house/<?= $val['id'] ?>"><img
  67. src="<?= Yii::$app->params['httpImg']['hosts'], Yii::$app->params['httpImg']['houses'] . $val['thumb'], '/same' ?>"
  68. alt=""></a>
  69. </div>
  70. <div class="y_text">
  71. <h2><a target="_blank"
  72. href="/house/<?= $val['id'] ?>"><?php echo Opencc::ConvertHn($val['name']) ?></a><i>[<?php echo Opencc::ConvertHn($val['city_name']) ?>
  73. ]</i></h2>
  74. <p class="y_pic">
  75. <?php if (!empty($val['sale_price'])) { ?>
  76. <span><?php echo $val['sale_price'] ?></span>
  77. <i><?php echo Opencc::ConvertHn($val['price_unit']) ?></i>
  78. <?php } else { ?>
  79. <span><?= Opencc::ConvertHn('待定') ?></span>
  80. <i></i>
  81. <?php } ?>
  82. </p>
  83. <i class="yv2_puicTime" style="color:#c2bfbf;font-size:12px;margin-top:2px;display: block;"></i>
  84. </div>
  85. </div>
  86. </li>
  87. <?php }
  88. } ?>
  89. </ul>
  90. </div>
  91. </div>
  92. </div>