1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <!--president/pages/home/home.wxml-->
- <import src="../../../templates/nodata/nodata.wxml" />
- <import src="../../../templates/footer/footer.wxml" />
- <import src="../../../templates/loading/loading.wxml" />
- <view class='container'>
- <template is='loading' wx:if='{{!isLoaded}}'></template>
- <view class='wrapper pb' wx:else>
- <view class='search-container'>
- <view class='search-wrapper'>
- <image class='search-icon' src='../../../assets/search.png'></image>
- <input class='search-input' type='text' confirm-type='search' value='{{title}}' placeholder='请输入书名' placeholder-class='search-placeholder' bindinput='inputSearchCtl'></input>
- <image class='search-icon' wx:if='{{title.length > 0}}' src='../../../assets/error_gray.png' bindtap='clearSearchCtl'></image>
- </view>
- <view class='search-button {{title.length > 0 ? "search-button-active" : ""}}' bindtap='submitSearchCtl'>搜索</view>
- </view>
- <view class='item-result'>搜索结果</view>
- <view class='items'>
- <view>在馆书籍</view>
- </view>
- <template is='nodata' data='{{...nodataArray}}' wx:if='{{list.length == 0}}'></template>
- <view class='list' wx:else>
- <view class='li' wx:for='{{list}}' wx:key='index'>
- <view class='book-container' data-url='president/pages/book_Imformation/book_Imformation' data-paras='{{({bookInfoId: item.book_info_id})}}' bindtap='navigateTo'>
- <view class='book-wrapper'>
- <view class='book-images'>
- <image class='book-image' mode='aspectFill' src='{{item.local_image ? baseImgUrl + item.local_image + thumbnail : "../../../assets/default_headicon.png"}}' data-images='{{([item.local_image])}}' data-baseurl='{{baseImgUrl}}' bindtap='viewImage'></image>
- </view>
- <view class='book-content'>
- <view class='book-title'>{{item.title}}</view>
- <view wx:if='{{item.theme}}' class='items-modal-Select SelectActive'>{{item.theme}}</view>
- <view class='book-text'>
- <image src='../../../assets/fire.png' class='li-right-grade' wx:for='{{item.heat}}' wx:key='index'></image>
- </view>
- </view>
- <!-- <view class='book-footer'>
- <view class='book-footer-item' data-index='{{index}}' bindtap='getBooksCtl'>
- <text class='book-button-fill-blue'>调出</text>
- </view>
- </view> -->
- </view>
- </view>
- </view>
- </view>
- <view class='load' wx:if='{{isDown}}'>已经到底了</view>
- <view class='load' wx:if='{{isLoad}}'>
- <image src='../../../assets/zai_jia.png' class='load-img'></image>
- <view>正在玩命加载...</view>
- </view>
- </view>
- <template is='footer' data='{{...footerData}}'></template>
- </view>
|