newsxiajia.php 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. use wechat\assets\AppAsset;
  3. AppAsset::addCss($this,Yii::$app->request->baseUrl."/css/house/xiajia.css");
  4. $this->title = '楼盘信息';
  5. ?>
  6. <div style="height:50px;"></div>
  7. <div class="soidOut">
  8. <div class="soidOut_main">
  9. <div class="soidOut_top">
  10. <div class="topimg">
  11. <p><img src="/image/soid_ico.png" alt=""></p>
  12. <p>很抱歉,该资讯已下架。</p>
  13. </div>
  14. <div class="toptext">
  15. <a href="/">返回首页</a>
  16. </div>
  17. </div>
  18. </div>
  19. <?php if(!empty($model)){ ?>
  20. <div class="soidOut_bottom">
  21. <div class="soidOut_bottom_h c">
  22. <div class="left"><span>为您推荐</span></div>
  23. <!-- <div class="right">
  24. <a href="" data-id=''>周边楼盘</a>
  25. <a href="" data-id=''>同价楼盘</a>
  26. </div> -->
  27. </div>
  28. <div class="soidOut_bottom_list">
  29. <ul>
  30. <?php foreach ($model as $val){ ?>
  31. <li>
  32. <div class="bottom_list_m c">
  33. <a href="/house/<?= $val['id'] ?>">
  34. <div class="left_img">
  35. <p><img src="<?= Yii::$app->params['httpImg']['hosts'],Yii::$app->params['httpImg']['houses'],$val['thumb'] ?>/same" alt=""></p>
  36. <p><i><img src="/image/soid_ico3.png" alt=""></i><span><?= $val['city_name'] ?></span></p>
  37. </div>
  38. <div class="right_tet">
  39. <p class="title"><?= $val['name'] ?></p>
  40. <p class="hx"><?= f_unit($val['main_units']) ?></p>
  41. <?php if(!empty($val['sale_price'])){ ?>
  42. <p class="jg"><span><em><?= $val['sale_price'] ?></em><?= $val['price_unit'] ?></span></p>
  43. <?php }else{ ?>
  44. <p class="jg"><span><em>待定</em></span></p>
  45. <?php } ?>
  46. <p class="ts">
  47. <?php if(isset($val['characteristic']) && is_array($val['characteristic'])){ foreach ($val['characteristic'] as $v){ ?>
  48. <i><?= $v ?></i>
  49. <?php } } ?>
  50. </p>
  51. </div>
  52. </a>
  53. </div>
  54. </li>
  55. <?php } ?>
  56. </ul>
  57. </div>
  58. <div class="soidOut_bottom_gd">
  59. <a href="/house/search">更多楼盘推荐</a>
  60. </div>
  61. <div style="height:50px;"></div>
  62. </div>
  63. <?php } ?>
  64. </div>