album.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. use mobile\assets\AppAsset;
  3. use yii\helpers\Html;
  4. AppAsset::addCss($this, Yii::$app->request->baseUrl . "/overseas/js/album_list/css/lightgallery.css");
  5. AppAsset::addCss($this, Yii::$app->request->baseUrl . "/overseas/css/housephoto.css");
  6. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/overseas/js/album_list/js/lightgallery.js");
  7. AppAsset::addScript($this, Yii::$app->request->baseUrl . '/overseas/js/menu/iscroll.js'); //菜单滑动
  8. AppAsset::addScript($this, Yii::$app->request->baseUrl . '/overseas/js/menu/navbarscroll.js'); //菜单滑动
  9. AppAsset::addScript($this, Yii::$app->request->baseUrl . '/overseas/js/menu/lpnav.js');
  10. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/overseas/js/house/album.js");
  11. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/overseas/js/house/js.js");
  12. AppAsset::addScript($this, Yii::$app->request->baseUrl . '/overseas/js/search_public.js');
  13. $this->title = '楼盘相册';
  14. ?>
  15. <div id="serachBox2">
  16. <?php $this->beginContent('@app/views/public/nav.php'); ?>
  17. <?php $this->endContent(); ?>
  18. <!-- 导航 -->
  19. <?php $this->beginContent('@app/views/public/housenav.php', ['hid' => $hid]); ?>
  20. <?php $this->endContent(); ?>
  21. <!-- 户型数量 -->
  22. <?php if (!empty($model)) { ?>
  23. <div class="hu_main find_nav">
  24. <div class="find_nav_left">
  25. <div class="find_nav_list">
  26. <ul>
  27. <?php foreach ($model['album'] as $val) { ?>
  28. <li value="<?= $val['album_id'] ?>" hid="<?= $val['hid'] ?>"><span
  29. class="hion"><?= \common\fm\Opencc::ConvertHn($val['name']) ?></span><span>(<?= $val['num'] ?>)</span><i></i>
  30. </li>
  31. <?php } ?>
  32. </ul>
  33. </div>
  34. </div>
  35. </div>
  36. <!-- 列表 -->
  37. <div class="hu_box" id="zh_housetype-list">
  38. </div>
  39. <?php } else { ?>
  40. <div class="y_nodata">
  41. <div style="background:#fff; padding:20px;"><img src="/overseas/img/y_nodata.png" alt="" width="100%"
  42. height="auto"/></div>
  43. </div>
  44. <?php } ?>
  45. </div>