<!--index.wxml-->
<view class="MainPage">
  <view class="list">
    <view class="flex-h" wx:for="{{list}}" wx:for-item="item" wx:key="item.buildingId">

      <!-- 左侧图片 -->
      <view class="img">
        <image mode="aspectFill" src="{{item.buildingImg}}" class="centerLabel cover"></image>
      </view>

      <!-- 右侧内容 -->
      <view class="flex-item">
        <view>
          <view class="delete">
            <image mode="widthFix" src="/assets/images/icon28.png" bindtap="DeleteItem" data-index="{{item.buildingId}}"></image>
          </view>
          <text>{{item.name}}</text>
          <text>{{item.address}}</text>
          <text>距您{{item.Distance}}km</text>
          <text class="price">均价：<text>{{item.price}}</text>/平</text>
        </view>
      </view>

    </view>
  </view>
</view>