1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <!--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' wx:else>
- <view class='search'>
- <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>
- </view>
- <view class='search-button' bindtap='submitSearchCtl'>搜索</view>
- </view>
- <view class='list-result' wx:if='{{isResult&&list.length>0}}'>
- <view class='list-result-one'>搜索结果</view>
- <!-- <view class='list-result-two' wx:if='{{isResult&&list.length>5}}'>
- <image src='../../../assets/jin_gao.png' class='list-result-two-img'></image>
- <text>搜索内容过于模糊,建议输入完整书名</text>
- </view> -->
- </view>
- <view wx:if='{{list.length == 0&&isResult}}'>
- <template is='nodata' data='{{...nodataArray}}'></template>
- <view class="firstaddBooks" data-url='president/pages/apply_bookform/apply_bookform' bindtap='navigateTo'>填写申请书单</view>
- </view>
- <view class='list' wx:else>
- <view class='item-title' wx:if='{{!isResult}}'>推荐书籍</view>
- <view class='item-title' wx:if='{{isResult}}'>总部书籍</view>
- <view class='ul' wx:for='{{list}}' wx:key='index'>
- <view class='ui-image'>
- <image src='{{item.local_image?baseImgUrl+item.local_image:"../../../assets/default_headicon.png"}}' class='li-img'></image>
- </view>
- <view class='li-right'>
- <view data-url='president/pages/book_Imformation/book_Imformation' data-paras='{{({bookInfoId: item.book_info_id})}}' bindtap='navigateTo'>
- <view>{{item.title}}</view>
- <view class='li-right-tips' wx:if='{{item.theme}}'>
- <view class='li-right-tips-items'>{{item.theme}}</view>
- </view>
- <view>
- <image src='../../../assets/fire.png' class='li-right-grade' wx:for='{{item.heat}}' wx:key='index'></image>
- </view>
- </view>
- <view class='ul-num' wx:if='{{item.number==0}}'>
- <image src='../../../assets/jia_fa.png' class='ul-num-img' data-size='{{item.book_size}}' data-isbn13='{{item.isbn13}}' data-detailid='{{item.book_detail_id}}' data-infoid='{{item.book_info_id}}' data-index='{{index}}' data-number='{{item.number}}' bindtap='addBook'></image>
- </view>
- <view class='ul-num' wx:if='{{item.book_size>0&&item.number>0}}'>
- <image src='../../../assets/jian_fa.png' class='ul-num-img' data-isbn13='{{item.isbn13}}' data-detailid='{{item.book_detail_id}}' data-infoid='{{item.book_info_id}}' data-size='{{item.book_size}}' data-index='{{index}}' data-number='{{item.number}}' bindtap='subtractionBook'></image>
- <text class='ul-num-text'>{{item.number}}</text>
- <image src='../../../assets/jia_fa.png' class='ul-num-img' data-size='{{item.book_size}}' data-isbn13='{{item.isbn13}}' data-detailid='{{item.book_detail_id}}' data-infoid='{{item.book_info_id}}' data-index='{{index}}' data-number='{{item.number}}' bindtap='addBook'></image>
- </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>
- </view>
- <!-- <template is='footer' data='{{...footerData}}'></template> -->
- </view>
|