type.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. use mobile\assets\AppAsset;
  3. use yii\helpers\Html;
  4. use yii\helpers\Url;
  5. AppAsset::addCss($this, Yii::$app->request->baseUrl . "/overseas/js/album_list/css/lightgallery.css");
  6. AppAsset::addCss($this, Yii::$app->request->baseUrl . "/overseas/css/housetype.css");
  7. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/overseas/js/album_list/js/lightgallery.js");
  8. AppAsset::addScript($this, Yii::$app->request->baseUrl . '/overseas/js/menu/iscroll.js'); //菜单滑动
  9. AppAsset::addScript($this, Yii::$app->request->baseUrl . '/overseas/js/menu/navbarscroll.js'); //菜单滑动
  10. AppAsset::addScript($this, Yii::$app->request->baseUrl . '/overseas/js/menu/lpnav.js');
  11. AppAsset::addScript($this, Yii::$app->request->baseUrl . '/overseas/js/house/type.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">
  24. <ul>
  25. <?php foreach ($model as $val) { ?>
  26. <li value="<?= $val['type_id'] ?>"
  27. hid="<?= $val['hid'] ?>"><?= \common\fm\Opencc::ConvertHn($val['huxing_name']) ?>
  28. <span>(<?= $val['num'] ?>)</span><i></i></li>
  29. <?php } ?>
  30. </ul>
  31. </div>
  32. <!-- 列表 -->
  33. <div class="hu_box" id="zh_housetype-list">
  34. </div>
  35. <?php } else { ?>
  36. <div class="y_nodata">
  37. <div style="background:#fff; padding:20px;"><img src="/overseas/img/y_nodata.png" alt="" width="100%"
  38. height="auto"/></div>
  39. </div>
  40. <?php } ?>
  41. </div>