album.php 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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/lptuku.css");
  6. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/overseas/js/scrollfix.min.js");
  7. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/overseas/js/lptuku.js");
  8. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/overseas/js/applyVerify.js");
  9. $this->title = '图片|效果图|实景图|样板间图-品房海外';
  10. ?>
  11. <?php $this->beginContent('@app/views/house/publichousenav.php', ['hid' => $public['id']]); ?>
  12. <?php $this->endContent(); ?>
  13. <?php $this->beginContent('@app/views/house/publichouse.php', ['public' => $public, 'module' => 95]); ?>
  14. <?php $this->endContent(); ?>
  15. <?php $this->beginContent('@app/views/house/swiper.php'); ?>
  16. <?php $this->endContent(); ?>
  17. <div class="y_heihgt" style="height:20px;"></div>
  18. <div class="y_tuku">
  19. <div class="y_tuku_main puic_wid c">
  20. <?php if (!empty($album['album'])) { ?>
  21. <div class="y_tuku_nav fl" id="y_tuku_nav1">
  22. <ul>
  23. <?php foreach ($album['album'] as $key => $val) { ?>
  24. <li <?php if ($key == 0) echo 'class="on"' ?> data-anc="<?php echo $val['album_id'] ?>"><a
  25. href="javascript:;"><span><?php echo Opencc::ConvertHn($val['name']) ?></span><em><?php echo $val['num'] ?></em></a><i></i>
  26. </li>
  27. <?php } ?>
  28. </ul>
  29. </div>
  30. <div class="y_tuku_cent fr">
  31. <?php if (!empty($album['data'])) {
  32. foreach ($album['data'] as $key => $val) { ?>
  33. <div class="y_tuku_ul puic_color mt20 <?php echo Opencc::ConvertHn($key) ?>"> <!-- 5 代表分类id -->
  34. <div class="y_tuku_ul_h c"><h2>
  35. <span><?php echo Opencc::ConvertHn($album['album_id'][$key]) ?></span></h2>
  36. </div>
  37. <ul class="y_tuku_ul_tu c">
  38. <?php foreach ($album['data'][$key] as $v) { ?>
  39. <li data-id="<?php echo $key ?>" data-hid="<?php echo $public['id'] ?>">
  40. <a class="elem" href="<?= !empty($v['path']) ? '/house/zhongqu/'.$v['hid'].'?h='.$v['path'] : (!empty($v['panorama'])?'/house/zhongqu/'.$v['hid'].'?h='.$v['panorama'] : 'javascript:void(0)')?>">
  41. <p class="y_img"><img
  42. src="<?= $v['img'] ?>"
  43. alt=""></p>
  44. <p class="y_title"><?php echo $v['title'] != 'null' ? Opencc::ConvertHn($v['title']) : '' ?></p>
  45. <?php if(!empty($v['path']) || !empty($v['panorama'])){?>
  46. <div class="vvid_pic_ico vr-animation-forever"></div>
  47. <?php }?>
  48. </a>
  49. </li>
  50. <?php } ?>
  51. </ul>
  52. <div class="y_lptk_show">
  53. <a data-list="tuer" data-id="<?php echo $key ?>" data-hid="<?php echo $public['id'] ?>"
  54. href="javascript:;"><span><?= Opencc::ConvertHn('查看更多') ?></span><i><img
  55. src="/overseas/img/ico_51.png" alt=""></i></a>
  56. </div>
  57. <div class="y_lptk_none">
  58. <a href="javascript:;"><span><?= Opencc::ConvertHn('收起') ?></span><i><img
  59. src="/overseas/img/ico_51.png" alt=""></i></a>
  60. </div>
  61. </div>
  62. <?php }
  63. } ?>
  64. </div>
  65. <?php } else { ?>
  66. <div class="y_nodata" style="display:none; text-align:center; background: #fff; padding: 20px 0;">
  67. <img src="/overseas/img/ico_nodata3.png" alt="" width="400" height="auto">
  68. </div>
  69. <?php } ?>
  70. </div>
  71. </div>
  72. <div class="y_bottom_h"></div>
  73. <!-- 猜你喜欢 -->
  74. <div class="y_love mt20">
  75. <div class="y_love_main puic_wid puic_color">
  76. <div class="y_love_h"><h2><?= Opencc::ConvertHn('猜你喜欢') ?></h2></div>
  77. <div class="y_love_list">
  78. <ul class="c">
  79. <?php if (!empty($public['randhouse'])) {
  80. foreach ($public['randhouse'] as $val) { ?>
  81. <li>
  82. <div class="y_love_list_main">
  83. <div class="y_tu">
  84. <a target="_blank" href="/house/<?= $val['id'] ?>"><img
  85. src="<?= Yii::$app->params['httpImg']['hosts'], Yii::$app->params['httpImg']['houses'] . $val['thumb'], '/same' ?>"
  86. alt=""></a>
  87. </div>
  88. <div class="y_text">
  89. <h2><a target="_blank"
  90. href="/house/<?= $val['id'] ?>"><?php echo Opencc::ConvertHn($val['name']) ?></a><i>[<?php echo Opencc::ConvertHn($val['city_name']) ?>
  91. ]</i></h2>
  92. <p class="y_pic">
  93. <?php if (!empty($val['sale_price'])) { ?>
  94. <span><?php echo $val['sale_price'] ?></span>
  95. <i><?php echo Opencc::ConvertHn($val['price_unit']) ?></i>
  96. <?php } else { ?>
  97. <span><?= Opencc::ConvertHn('待定') ?></span>
  98. <i></i>
  99. <?php } ?>
  100. </p>
  101. <i class="yv2_puicTime" style="color:#c2bfbf;font-size:12px;margin-top:2px;display: block;"></i>
  102. </div>
  103. </div>
  104. </li>
  105. <?php }
  106. } ?>
  107. </ul>
  108. </div>
  109. </div>
  110. </div>