hospitalList.wxml 931 Bytes
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
<!-- 医院列表-->
<view scroll-y="true" style="background:white" >
<!--list的item-->
<block wx:for="{{hospitalList}}" wx:key="index" wx:for-item="item">
<view class='area_name'>{{item.name.regionName}}</view>
<view wx:for="{{item.data}}" wx:for-index="sectionIndex" wx:for-item="sectionItem" >
<view class='hospital_item' bindtap='toHospitalDetail' data-id="{{sectionItem.id}}">
<image class='icon' src='{{sectionItem.image.medium}}'></image>
<view class='hospital_name'>{{sectionItem.title}}</view>
<view class='distance' >{{sectionItem.distance}}km </view>
</view>
<view class='divider' wx:if="{{sectionIndex==item.list.length-1 ? false:true}}"></view>
</view>
<view class="loadmore" bindtap="loadMore" wx:if="{{index==hospitalList.length-1 &&hasMore==true}}">加载更多</view>
</block>
</view>