<view class="container">
  <header text="门店" isLeftIcon="{{false}}"></header>

  <scroll-view
    class="content"
    scroll-y="true"
    bindscrolltolower="onReachBottom"
    lower-threshold="50"
    refresher-enabled="true"
    refresher-triggered="{{refreshing}}"
    bindrefresherrefresh="onPullDownRefresh"
  >
    <view wx:for="{{list}}" wx:key="index" class="list-card {{index === list.length - 1 ? 'no-margin' : ''}}" bindtap="goDetail" data-id="{{item.id}}">
      <image class="card-img" src="{{item.img}}" mode="aspectFill"/>
      <view class="card-ri">
        <view class="card-ri-title m-ellipsis">{{item.title}}</view>
        <view class="card-ri-time">{{item.time}}</view>
        <view class="card-ri-address">
          <view class="address-text m-ellipsis">{{item.address}}</view>
          <view>{{item.distance}}</view>
        </view>
      </view>
    </view>
    <view wx:if="{{noMore}}" class="loading">没有更多数据了</view>
  </scroll-view>
</view>