library.wxml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <!--parents/pages/library/library.wxml-->
  2. <import src="../../../templates/loading/loading.wxml" />
  3. <view class='container'>
  4. <template is='loading' wx:if='{{!isLoaded}}'></template>
  5. <view class='wrapper' wx:else>
  6. <view class='section-label'>
  7. <image class='section-icon' src='../../../assets/address_gray.png'></image>
  8. <text class='section-text'>定位地址</text>
  9. </view>
  10. <view class='section-list'>
  11. <view class='section-li' data-index='0' bindtap='selectLibraryCtl' wx:if='{{libraryList.length>0}}'>
  12. <view class='section-row'>
  13. <view class='section-flex'>
  14. <view class='section-title'>{{libraryList[0].league_name||libraryList[0].lname}}</view>
  15. <view class='section-context'>{{libraryList[0].league_address}}</view>
  16. </view>
  17. <view class='section-button' wx:if='{{libraryList[0].stype}}'>年卡服务</view>
  18. </view>
  19. </view>
  20. </view>
  21. <view class='section-label'>
  22. <image class='section-icon-two' src='../../../assets/position_gray.png'></image>
  23. <text class='section-text'>附近地址</text>
  24. </view>
  25. <view class='section-list'>
  26. <view class='section-li' wx:for='{{libraryList}}' wx:key='{{index}}' data-index='{{index}}' bindtap='selectLibraryCtl'>
  27. <view class='section-row'>
  28. <view class='section-title section-flex'>{{item.league_name||item.lname}}</view>
  29. <view class='section-text' wx:if='{{item.juli}}'>距离{{item.juli}}km</view>
  30. </view>
  31. <view class='section-context' wx:if='{{item.league_address}}'>{{item.league_address}}</view>
  32. </view>
  33. </view>
  34. </view>
  35. </view>