People_search.wxml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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' wx:if='{{addNum == 0}}' >
  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 class='search-container' wx:if='{{addNum == 1}}' >
  17. <view class='search-wrapper'>
  18. <image class='search-icon' src='../../../assets/search.png'></image>
  19. <input class='search-input' focus="{{true}}" type='text' value='{{content}}' placeholder='请输入微信昵称' placeholder-class='search-placeholder' confirm-type='search' bindconfirm='inputaddNumSearchCtl'></input>
  20. <image class='search-icon' wx:if='{{content.length > 0}}' src='../../../assets/error_gray.png' bindtap='clearSearchCtl'></image>
  21. </view>
  22. <view bindtap='returnBack' class='search-cancel'>取消</view>
  23. </view>
  24. </view>
  25. <!-- 会员管理搜索 -->
  26. <view class='list-items' wx:if='{{isStaffData == 1}}' style='margin:0 40rpx;'>
  27. <view class='list-items-title' wx:if='{{vipList.length>0}}'>搜索结果</view>
  28. <view class="li_type" wx:if='{{vipList.length>0}}'>会员</view>
  29. <view class='li' wx:for='{{vipList}}' wx:key='index' data-index='{{index}}' bindtap='toggleSelectLiCtl'>
  30. <view class="li-box">
  31. <image class='li-img' mode='aspectFill' src='{{item.imgUrl ? baseImgUrl + item.imgUrl + thumbnail : "../../../assets/default_headicon.png"}}'></image>
  32. </view>
  33. <view class="li-col">
  34. <view class="li-text">
  35. <view class="li-text-black" >{{item.childName || ''}}</view>
  36. <view class="li-text-gray">{{item.grade}}-{{item.school}}</view>
  37. </view>
  38. <view class="li-text-info" data-url='president/pages/Personnel_details/Personnel_details' data-paras='{{({vipId: item.id})}}' bindtap='navigateTo'>详情
  39. </view>
  40. <view class="icon">
  41. <image class="image" src='../../../assets/arrow_gray.png' />
  42. </view>
  43. </view>
  44. </view>
  45. <view class="li_type" wx:if='{{managerList.length>0}}'>馆内人员</view>
  46. <view class='li' wx:for='{{managerList}}' wx:key='index' data-index='{{index}}'bindtap='toggleSelectLiCtl'>
  47. <view class="li-box">
  48. <image class='li-img' mode='aspectFill' src='{{item.imgUrl ? baseImgUrl + item.imgUrl + thumbnail : "../../../assets/default_headicon.png"}}'></image>
  49. </view>
  50. <view class="li-col">
  51. <view class="li-text">
  52. <view class="li-text-black" >{{item.name || ''}}</view>
  53. <view class="li-text-gray">{{item.jobs}}</view>
  54. </view>
  55. <view class="li-text-info" data-url='president/pages/Personnel_edit/Personnel_edit' data-paras='{{({vipId: item.id})}}' bindtap='navigateTo' >编辑
  56. </view>
  57. <view class="icon">
  58. <image class="image" src='../../../assets/arrow_gray.png' />
  59. </view>
  60. </view>
  61. </view>
  62. </view>
  63. <!-- 添加人员 -->
  64. <view class='list-items' wx:if='{{addNum == 1&&addmanagerList.length>0}}' style='margin:0 40rpx;'>
  65. <view class='list-items-title'>搜索结果</view>
  66. <view class='li' wx:for='{{addmanagerList}}' wx:key='index' data-index='{{index}}' bindtap='toggleSelectLiCtl'>
  67. <view class="li-box">
  68. <image class='li-img' mode='aspectFill' src='{{item.imgUrl ? baseImgUrl + item.imgUrl + thumbnail : "../../../assets/default_headicon.png"}}'></image>
  69. </view>
  70. <view class="li-col">
  71. <view class="li-text">
  72. <view class="li-text-black" >{{item.name || ''}}</view>
  73. <view class="li-text-gray">{{item.jobs}}</view>
  74. </view>
  75. <view class="li-text-info" data-url='president/pages/Personnel_edit/Personnel_edit' data-paras='{{({vipId: item.id})}}' bindtap='navigateTo' >编辑
  76. </view>
  77. <view class="icon">
  78. <image class="image" src='../../../assets/arrow_gray.png' />
  79. </view>
  80. </view>
  81. </view>
  82. </view>
  83. <template is='nodata' data='{{...nodataArray}}' wx:if='{{isReturn&&addNum == 1 && addmanagerList.length == 0}}'></template>
  84. <template is='nodata' data='{{...nodataArray}}' wx:if='{{isStaffReturn&&isStaffData == 1&&managerList.length == 0&&vipList.length == 0}}'></template>
  85. </view>
  86. </view>