Members_search.wxml 1.7 KB

1234567891011121314151617181920212223242526272829303132
  1. <!--parents/pages/search/search.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' focus="{{true}}" 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' wx:if='{{isResult&&list.length>0}}' style='margin:0 40rpx;'>
  18. <view class='list-items-title'>搜索结果</view>
  19. <view class='li' wx:for='{{list}}' wx:key='index' data-index='{{index}}' bindtap='selectNavCtl'>
  20. <view class="li-box">
  21. <image class='li-img' mode='aspectFill' src='{{item.imgUrl ? baseImgUrl + item.imgUrl + key : "../../../assets/default_headicon.png"}}'></image>
  22. </view>
  23. <view class="li-col">
  24. <view class="li-text-black" >{{item.childName || ''}}</view>
  25. <view class="li-text-gray">{{item.grade}}-{{item.school}}</view>
  26. </view>
  27. </view>
  28. </view>
  29. <template is='nodata' data='{{...nodataArray}}' wx:if='{{isResult&&list.length==0}}'></template>
  30. </view>
  31. </view>