houseItem.wxml 1.1 KB

1234567891011121314151617181920212223
  1. <view class="house-item" bind:tap="tapItemAction">
  2. <view class="house-img">
  3. <image class="img" mode="aspectFill"
  4. src="{{data.img || 'https://static.hoolihome.com/weapp/hoolihome/small_4_3.png'}}"></image>
  5. <view wx:if="{{ data.imgTag && data.imgTag.length}}" class="water-img">
  6. {{data.imgTag}}</view>
  7. </view>
  8. <view class="house-intro">
  9. <text class="name">{{data.name}}</text>
  10. <view class="house-tags">
  11. <text wx:for="{{data.textTag}}" wx:key="{{item.title}}" class="tag"
  12. style="background-color: {{item.bgColor}};color:{{item.color}}">{{item.title}}</text>
  13. </view>
  14. <view class="address" wx:if="{{data.nearText && data.nearText.length}}">
  15. <text class="type">{{data.nearText}}</text>
  16. </view>
  17. <view class="intro-money">
  18. <text class="money-unit">{{data.moneyUnit}}</text>
  19. <text class="money">{{data.price}}</text>
  20. <text class="money-cycle my-class">{{data.priceSuffix}}/{{data.rentTimeUnit}}</text>
  21. </view>
  22. </view>
  23. </view>