123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <!--president/pages/search_books/search_books.wxml-->
- <!--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='items' wx:if='{{list.length != 0}}'>
- <view class='item'>
- <view class='item-title'>在馆书籍借阅量Top10</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-ranking'>
- <image wx:if='{{index == 0}}' class='ranking-icon' src='../../../assets/numberOne.png'></image>
- <image wx:if='{{index == 1}}' class='ranking-icon' src='../../../assets/numberTwo.png'></image>
- <image wx:if='{{index == 2}}' class='ranking-icon' src='../../../assets/number_three.png'></image>
- <text wx:if='{{index>2}}'>{{index+1}}</text>
- </view>
- <view class='book-images-Container'>
- <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' style='padding-top:20rpx;'>
- <view class='book-title'>{{item.title}}</view>
- <view wx:if='{{item.theme}}' class='items-modal-Selecttip SelectActive'>{{item.theme}}</view>
- <view class='book-text'>
- <image class='book-icon-two' wx:for='{{item.heat}}' wx:key='index' wx:for-item='val' wx:for-index='index' src="../../../assets/fire.png"></image>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- <template is='footer' data='{{...footerData}}'></template>
- </view>
|