house.wxml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <wxs src="/utils/util.wxs" module="tools"></wxs>
  2. <view class="containt">
  3. <!-- 头部图片开始 -->
  4. <view>
  5. <image class="header_pic" mode="scaleToFill" src="http://ro7r875ut.hn-bkt.clouddn.com/zfbj.png" />
  6. </view>
  7. <!-- 头部图片结束 -->
  8. <!-- 导航栏位置开始 -->
  9. <view class="comm-list grid col-4 no-border comm-list-menu1" style="margin-top:{{-360+customBar}}rpx;">
  10. <view class="item">
  11. <view class="item-circle">
  12. <image src="http://ro7r875ut.hn-bkt.clouddn.com/oldhouse.png"></image>
  13. </view>
  14. <text>二手房</text>
  15. </view>
  16. <view class="item" bindtap="goRent_house">
  17. <view class="item-circle">
  18. <image src="http://ro7r875ut.hn-bkt.clouddn.com/renthouse.png"></image>
  19. </view>
  20. <text>租房</text>
  21. </view>
  22. <view class="item" bindtap="goFindGarden">
  23. <view class="item-circle">
  24. <image src="http://ro7r875ut.hn-bkt.clouddn.com/zhaoxiaoqu.png"></image>
  25. </view>
  26. <text>找小区</text>
  27. </view>
  28. <view class="item">
  29. <view class="item-circle">
  30. <image src="http://ro7r875ut.hn-bkt.clouddn.com/findhouse.png"></image>
  31. </view>
  32. <text>地图找房</text>
  33. </view>
  34. <view class="item" bindtap="goRelease">
  35. <view class="item-circle">
  36. <image src="http://ro7r875ut.hn-bkt.clouddn.com/publish.png"></image>
  37. </view>
  38. <text>委托发布</text>
  39. </view>
  40. <view class="item" bindtap="goAddRenthouse">
  41. <view class="item-circle">
  42. <image src="http://ro7r875ut.hn-bkt.clouddn.com/minrent.png"></image>
  43. </view>
  44. <text>我要出租</text>
  45. </view>
  46. <view class="item">
  47. <view class="item-circle">
  48. <image src="http://ro7r875ut.hn-bkt.clouddn.com/minesale.png"></image>
  49. </view>
  50. <text>我要出售</text>
  51. </view>
  52. </view>
  53. <!-- 导航栏位置结束 -->
  54. </view>
  55. <view class="navbar">
  56. <block wx:for="{{navbarTitle}}" wx:key="index">
  57. <view class="navbar-item {{navbarActiveIndex === index ? 'navbar-item-active' : ''}}" data-navbar-index="{{index}}" catchtap="onNavBarTap">
  58. <text>{{item}}</text>
  59. </view>
  60. </block>
  61. </view>
  62. <view hidden="{{hiddenName.rent}}">
  63. <block wx:if="{{house_list.length>0}}">
  64. <view class="like_content" wx:for="{{house_list}}" wx:key="id" wx:if="{{item.approve_status==2}}" bindtap="goHouseDetail" id="{{item.id}}">
  65. <view class="thumb">
  66. <image src="{{item.house_pic[0]}}"></image>
  67. </view>
  68. <view class="info">
  69. <text class="info_tltle">{{item.garden_name}}•{{item.room_count}}室{{item.hall_count}}厅{{item.wc_count}}卫</text>
  70. <view class="info_news">
  71. <text>{{item.room_area}}m² | {{item.room_count}}室{{item.hall_count}}厅{{item.wc_count}}卫</text>
  72. <text class="info_price">{{item.rent_price/100}}元/月</text>
  73. </view>
  74. <view class="info_state">
  75. <view wx:for="{{tools.formatArr(item.special_conf)}}" wx:key="index" wx:for-item="key">
  76. {{chooseItems[1][key].name}}</view>
  77. </view>
  78. </view>
  79. </view>
  80. </block>
  81. <block wx:else="">
  82. <nodata />
  83. </block>
  84. </view>
  85. <view hidden="{{hiddenName.old}}">
  86. <nodata />
  87. </view>
  88. <view hidden="{{hiddenName.garden}}">
  89. <view class="empty-wrap" wx:if="{{garden_list.length === 0 }}">
  90. <nodata />
  91. </view>
  92. <view class="category-goods-list" wx:else="">
  93. <block wx:for="{{garden_list}}" wx:key="id">
  94. <view class="like_content" bindtap="goGardenDetail" data-item="{{item}}">
  95. <view class="thumb">
  96. <image src="{{item.garden_pic}}"></image>
  97. </view>
  98. <view class="info">
  99. <text class="info_tltle">{{item.garden_name}}</text>
  100. <view class="info_news">
  101. <text space="nbsp">{{item.area}}/{{building_list[item.building_type]}} {{tools.transitionTime(item.building_end,'Y')}}建成</text>
  102. </view>
  103. <view class="info_news">
  104. <text>在售{{item.sell_count}}套/在租{{item.rent_count}}套</text>
  105. </view>
  106. <text class="info_price">{{item.avg_price}}元/平</text>
  107. </view>
  108. </view>
  109. <view class="hr"></view>
  110. </block>
  111. </view>
  112. </view>