newsxiajia.php 2.8 KB

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