School_library.wxml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <!--parents/pages/library/library.wxml-->
  2. <import src="../../../templates/loading/loading.wxml" />
  3. <import src="../../../templates/nodata/nodata.wxml" />
  4. <view class='container'>
  5. <template is='loading' wx:if='{{!isLoaded}}'></template>
  6. <view class='wrapper' wx:else>
  7. <view class='header {{content.length > 0 ? "header-active" : ""}}'>
  8. <view class='search-container'>
  9. <view class='search-wrapper'>
  10. <image class='search-icon' src='../../../assets/search.png'></image>
  11. <input class='search-input' type='text' value='{{content}}' placeholder='' placeholder-class='search-placeholder' confirm-type='search' bindconfirm='inputSearchCtl'></input>
  12. <image class='search-icon' wx:if='{{content.length > 0}}' src='../../../assets/error_gray.png' bindtap='clearSearchCtl'></image>
  13. </view>
  14. <view bindtap='returnBack' class='search-cancel'>取消</view>
  15. </view>
  16. </view>
  17. <view class='list-items-title' wx:if='{{isResult&&libraryList.length>0}}'>搜索结果</view>
  18. <view class='section-label' wx:if='{{libraryList.length>0}}'>
  19. <image class='section-icon-two' src='../../../assets/position_gray.png'></image>
  20. <text class='section-text'>附近学校</text>
  21. </view>
  22. <view class='section-list' wx:if='{{libraryList.length>0}}'>
  23. <view class='section-li' wx:for='{{libraryList}}' wx:key='index' data-index='{{index}}' bindtap='selectLibraryCtl'>
  24. <view class='section-row'>
  25. <view class='section-title section-flex'>{{item.name}}</view>
  26. <view class='section-text' wx:if='{{item.juli}}'>距离{{item.juli}}km</view>
  27. </view>
  28. <view class='section-context' wx:if='{{item.school_address}}'>{{item.school_address}}</view>
  29. </view>
  30. </view>
  31. <template is='nodata' data='{{...nodataArray}}' wx:if='{{isResult&&libraryList.length==0}}'></template>
  32. </view>
  33. </view>