newsxiajia.php 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: xiaofeng
  5. * Date: 2018/4/19
  6. * Time: 下午4:57
  7. */
  8. use frontend\assets\AppAsset;
  9. AppAsset::addCss($this,Yii::$app->request->baseUrl."/css/xiajia/index.css");
  10. $this->title = '楼盘信息';
  11. ?>
  12. <div class="soldOut">
  13. <div style="height:20px;"></div>
  14. <div class="soldOut_main">
  15. <div class="soldOut_top">
  16. <div class="soldOut_img">
  17. <p><img src="/image/soid_ico.png" alt=""></p>
  18. <p>很抱歉,该资讯不存在或者已下架。</p>
  19. </div>
  20. <div class="soldOut_html">
  21. <a href="/">返回首页</a>
  22. </div>
  23. </div>
  24. <?php if(!empty($model)){ ?>
  25. <div class="soldOut_bottom">
  26. <div class="soldOut_bottom_h">
  27. <span>为您推荐</span>
  28. <i></i>
  29. </div>
  30. <div class="soldOut_bottom_list">
  31. <ul class="c">
  32. <?php foreach ($model as $val){ ?>
  33. <li>
  34. <div class="img"><a href="/house/<?= $val['id'] ?>"><img src="<?= Yii::$app->params['httpImg']['hosts'],Yii::$app->params['httpImg']['houses'],$val['thumb'] ?>/same" alt=""></a></div>
  35. <div class="text">
  36. <p><span><a href="/house/<?= $val['id'] ?>"><?= $val['name'] ?></a></span><em>[<?= $val['city_name'] ?>]</em></p>
  37. <?php if(!empty($val['sale_price'])){ ?>
  38. <p><span>¥<em><?= $val['sale_price'] ?></em><?= $val['price_unit'] ?></span></p>
  39. <?php }else{?>
  40. <p><span>¥<em>待定</em></span></p>
  41. <?php } ?>
  42. </div>
  43. </li>
  44. <?php } ?>
  45. </ul>
  46. </div>
  47. <div class="soldOut_html soldOut_html2">
  48. <a href="/house/search">更多楼盘推荐</a>
  49. </div>
  50. </div>
  51. <?php } ?>
  52. </div>
  53. </div>