1234567891011121314151617181920212223242526272829303132 |
- <!--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'>
- <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>
- <view class='list-items' wx:if='{{isResult&&list.length>0}}' style='margin:0 40rpx;'>
- <view class='list-items-title'>搜索结果</view>
- <view class='li' wx:for='{{list}}' wx:key='index' data-index='{{index}}' bindtap='selectNavCtl'>
- <view class="li-box">
- <image class='li-img' mode='aspectFill' src='{{item.imgUrl ? baseImgUrl + item.imgUrl + key : "../../../assets/default_headicon.png"}}'></image>
- </view>
- <view class="li-col">
- <view class="li-text-black" >{{item.childName || ''}}</view>
- <view class="li-text-gray">{{item.grade}}-{{item.school}}</view>
- </view>
- </view>
- </view>
- <template is='nodata' data='{{...nodataArray}}' wx:if='{{isResult&&list.length==0}}'></template>
- </view>
- </view>
|