library.wxml 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <!--parents/pages/library/library.wxml-->
  2. <import src="../../../templates/nodata/nodata.wxml" />
  3. <import src="../../../templates/loading/loading.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='{{setStoragelibraryList}}'>
  19. <image class='section-icon' src='../../../assets/address_gray.png'></image>
  20. <text class='section-text'>定位地址</text>
  21. </view>
  22. <view class="section-position-add" wx:if='{{options.isAdd==1&&setStoragelibraryList}}'>
  23. <view class='section-list'>
  24. <view class='section-li'>
  25. <view class='section-row'>
  26. <view class='section-title section-flex-blue'>{{setStoragelibraryList.league_name||setStoragelibraryList.lname}}</view>
  27. </view>
  28. <view class='section-row'>
  29. <view class='section-context' wx:if='{{setStoragelibraryList.league_address}}'>地址: {{setStoragelibraryList.league_address}}</view>
  30. <view class='section-text' wx:if='{{setStoragelibraryList.juli}}'>距离{{setStoragelibraryList.juli}}km</view>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. <view class='section-list' wx:if='{{options.isAdd==0}}'>
  36. <view class='section-li' data-index='0' bindtap='selectLibraryCtl' wx:if='{{libraryList.length>0}}'>
  37. <view class='section-row'>
  38. <view class='section-flex'>
  39. <view class='section-title'>{{libraryList[0].league_name||libraryList[0].lname}}</view>
  40. <view class='section-context'>{{libraryList[0].league_address}}</view>
  41. </view>
  42. <view class='section-button' wx:if='{{libraryList[0].type=="C001"}}'>年卡服务</view>
  43. <view class='section-button' wx:if='{{libraryList[0].type=="C002"}}'>半年卡服务</view>
  44. <view class='section-button' wx:if='{{libraryList[0].type=="C003"}}'>月卡服务</view>
  45. </view>
  46. </view>
  47. </view>
  48. <view class='section-label' wx:if='{{libraryList.length>0}}'>
  49. <image class='section-icon-two' src='../../../assets/position_gray.png'></image>
  50. <text class='section-text'>附近地址</text>
  51. </view>
  52. <view class='section-list'>
  53. <view class='section-li' wx:for='{{libraryList}}' wx:key='index' data-index='{{index}}' bindtap='selectLibraryCtl'>
  54. <view class='section-row'>
  55. <view class='section-title section-flex'>{{item.league_name||item.lname}}</view>
  56. <view class='section-text' wx:if='{{item.juli}}'>距离{{item.juli}}km</view>
  57. </view>
  58. <view class='section-context' wx:if='{{item.league_address}}'>{{item.league_address}}</view>
  59. </view>
  60. </view>
  61. <template is='nodata' data='{{...nodataArray}}' wx:if='{{isResult&&libraryList.length==0}}'></template>
  62. </view>
  63. </view>