123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- <!--parents/pages/search/search.wxml-->
- <import src="../../../templates/nodata/nodata.wxml" />
- <import src="../../../templates/loading/loading.wxml" />
- <view class='container'>
- <template is='loading' wx:if='{{!isLoaded}}'></template>
- <view class='wrapper' wx:else>
- <view class='header {{content.length > 0 ? "header-active" : ""}}'>
- <view class='search-container' wx:if='{{addNum == 0}}' >
- <view class='search-wrapper'>
- <image class='search-icon' src='../../../assets/search.png'></image>
- <input class='search-input' focus="{{true}}" type='text' value='{{content}}' placeholder='' placeholder-class='search-placeholder' confirm-type='search' bindconfirm='inputSearchCtl'></input>
- <image class='search-icon' wx:if='{{content.length > 0}}' src='../../../assets/error_gray.png' bindtap='clearSearchCtl'></image>
- </view>
- <view bindtap='returnBack' class='search-cancel'>取消</view>
- </view>
- <view class='search-container' wx:if='{{addNum == 1}}' >
- <view class='search-wrapper'>
- <image class='search-icon' src='../../../assets/search.png'></image>
- <input class='search-input' focus="{{true}}" type='text' value='{{content}}' placeholder='请输入微信昵称' placeholder-class='search-placeholder' confirm-type='search' bindconfirm='inputaddNumSearchCtl'></input>
- <image class='search-icon' wx:if='{{content.length > 0}}' src='../../../assets/error_gray.png' bindtap='clearSearchCtl'></image>
- </view>
- <view bindtap='returnBack' class='search-cancel'>取消</view>
- </view>
- </view>
- <!-- 会员管理搜索 -->
- <view class='list-items' wx:if='{{isStaffData == 1}}' style='margin:0 40rpx;'>
- <view class='list-items-title' wx:if='{{vipList.length>0}}'>搜索结果</view>
- <view class="li_type" wx:if='{{vipList.length>0}}'>会员</view>
- <view class='li' wx:for='{{vipList}}' wx:key='index' data-index='{{index}}' bindtap='toggleSelectLiCtl'>
- <view class="li-box">
- <image class='li-img' mode='aspectFill' src='{{item.imgUrl ? baseImgUrl + item.imgUrl + thumbnail : "../../../assets/default_headicon.png"}}'></image>
- </view>
- <view class="li-col">
- <view class="li-text">
- <view class="li-text-black" >{{item.childName || ''}}</view>
- <view class="li-text-gray">{{item.grade}}-{{item.school}}</view>
- </view>
- <view class="li-text-info" data-url='president/pages/Personnel_details/Personnel_details' data-paras='{{({vipId: item.id})}}' bindtap='navigateTo'>详情
- </view>
- <view class="icon">
- <image class="image" src='../../../assets/arrow_gray.png' />
- </view>
-
- </view>
- </view>
- <view class="li_type" wx:if='{{managerList.length>0}}'>馆内人员</view>
- <view class='li' wx:for='{{managerList}}' wx:key='index' data-index='{{index}}'bindtap='toggleSelectLiCtl'>
- <view class="li-box">
- <image class='li-img' mode='aspectFill' src='{{item.imgUrl ? baseImgUrl + item.imgUrl + thumbnail : "../../../assets/default_headicon.png"}}'></image>
- </view>
- <view class="li-col">
- <view class="li-text">
- <view class="li-text-black" >{{item.name || ''}}</view>
- <view class="li-text-gray">{{item.jobs}}</view>
- </view>
- <view class="li-text-info" data-url='president/pages/Personnel_edit/Personnel_edit' data-paras='{{({vipId: item.id})}}' bindtap='navigateTo' >编辑
- </view>
- <view class="icon">
- <image class="image" src='../../../assets/arrow_gray.png' />
- </view>
-
- </view>
- </view>
-
- </view>
- <!-- 添加人员 -->
- <view class='list-items' wx:if='{{addNum == 1&&addmanagerList.length>0}}' style='margin:0 40rpx;'>
-
- <view class='list-items-title'>搜索结果</view>
-
- <view class='li' wx:for='{{addmanagerList}}' wx:key='index' data-index='{{index}}' bindtap='toggleSelectLiCtl'>
- <view class="li-box">
- <image class='li-img' mode='aspectFill' src='{{item.imgUrl ? baseImgUrl + item.imgUrl + thumbnail : "../../../assets/default_headicon.png"}}'></image>
- </view>
- <view class="li-col">
- <view class="li-text">
- <view class="li-text-black" >{{item.name || ''}}</view>
- <view class="li-text-gray">{{item.jobs}}</view>
- </view>
- <view class="li-text-info" data-url='president/pages/Personnel_edit/Personnel_edit' data-paras='{{({vipId: item.id})}}' bindtap='navigateTo' >编辑
- </view>
- <view class="icon">
- <image class="image" src='../../../assets/arrow_gray.png' />
- </view>
-
- </view>
- </view>
- </view>
- <template is='nodata' data='{{...nodataArray}}' wx:if='{{isReturn&&addNum == 1 && addmanagerList.length == 0}}'></template>
- <template is='nodata' data='{{...nodataArray}}' wx:if='{{isStaffReturn&&isStaffData == 1&&managerList.length == 0&&vipList.length == 0}}'></template>
- </view>
- </view>
|