1234567891011121314151617181920212223242526272829303132333435 |
- <!--parents/pages/library/library.wxml-->
- <import src="../../../templates/loading/loading.wxml" />
- <import src="../../../templates/nodata/nodata.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' 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-title' wx:if='{{isResult&&libraryList.length>0}}'>搜索结果</view>
- <view class='section-label' wx:if='{{libraryList.length>0}}'>
- <image class='section-icon-two' src='../../../assets/position_gray.png'></image>
- <text class='section-text'>附近学校</text>
- </view>
- <view class='section-list' wx:if='{{libraryList.length>0}}'>
- <view class='section-li' wx:for='{{libraryList}}' wx:key='index' data-index='{{index}}' bindtap='selectLibraryCtl'>
- <view class='section-row'>
- <view class='section-title section-flex'>{{item.name}}</view>
- <view class='section-text' wx:if='{{item.juli}}'>距离{{item.juli}}km</view>
- </view>
- <view class='section-context' wx:if='{{item.school_address}}'>{{item.school_address}}</view>
- </view>
-
- </view>
- <template is='nodata' data='{{...nodataArray}}' wx:if='{{isResult&&libraryList.length==0}}'></template>
- </view>
-
- </view>
|