1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <!--parents/pages/library/library.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' 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='{{setStoragelibraryList}}'>
- <image class='section-icon' src='../../../assets/address_gray.png'></image>
- <text class='section-text'>定位地址</text>
- </view>
- <view class="section-position-add" wx:if='{{options.isAdd==1&&setStoragelibraryList}}'>
- <view class='section-list'>
- <view class='section-li'>
- <view class='section-row'>
- <view class='section-title section-flex-blue'>{{setStoragelibraryList.league_name||setStoragelibraryList.lname}}</view>
- </view>
- <view class='section-row'>
- <view class='section-context' wx:if='{{setStoragelibraryList.league_address}}'>地址: {{setStoragelibraryList.league_address}}</view>
- <view class='section-text' wx:if='{{setStoragelibraryList.juli}}'>距离{{setStoragelibraryList.juli}}km</view>
- </view>
-
- </view>
-
- </view>
- </view>
- <view class='section-list' wx:if='{{options.isAdd==0}}'>
-
- <view class='section-li' data-index='0' bindtap='selectLibraryCtl' wx:if='{{libraryList.length>0}}'>
- <view class='section-row'>
- <view class='section-flex'>
- <view class='section-title'>{{libraryList[0].league_name||libraryList[0].lname}}</view>
- <view class='section-context'>{{libraryList[0].league_address}}</view>
- </view>
- <view class='section-button' wx:if='{{libraryList[0].type=="C001"}}'>年卡服务</view>
- <view class='section-button' wx:if='{{libraryList[0].type=="C002"}}'>半年卡服务</view>
- <view class='section-button' wx:if='{{libraryList[0].type=="C003"}}'>月卡服务</view>
- </view>
- </view>
- </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'>
- <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.league_name||item.lname}}</view>
- <view class='section-text' wx:if='{{item.juli}}'>距离{{item.juli}}km</view>
- </view>
- <view class='section-context' wx:if='{{item.league_address}}'>{{item.league_address}}</view>
- </view>
-
- </view>
- <template is='nodata' data='{{...nodataArray}}' wx:if='{{isResult&&libraryList.length==0}}'></template>
- </view>
- </view>
|