search_headquarters_books.wxml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <!--president/pages/home/home.wxml-->
  2. <import src="../../../templates/nodata/nodata.wxml" />
  3. <import src="../../../templates/footer/footer.wxml" />
  4. <import src="../../../templates/loading/loading.wxml" />
  5. <view class='container'>
  6. <template is='loading' wx:if='{{!isLoaded}}'></template>
  7. <view class='wrapper pb' wx:else>
  8. <view class='search-container'>
  9. <view class='search-wrapper'>
  10. <image class='search-icon' src='../../../assets/search.png'></image>
  11. <input class='search-input' type='text' confirm-type='search' value='{{title}}' placeholder='请输入书名' placeholder-class='search-placeholder' bindinput='inputSearchCtl'></input>
  12. <image class='search-icon' wx:if='{{title.length > 0}}' src='../../../assets/error_gray.png' bindtap='clearSearchCtl'></image>
  13. </view>
  14. <view class='search-button {{title.length > 0 ? "search-button-active" : ""}}' bindtap='submitSearchCtl'>搜索</view>
  15. </view>
  16. <view class='item-result'>搜索结果</view>
  17. <view class='items'>
  18. <view>在馆书籍</view>
  19. </view>
  20. <template is='nodata' data='{{...nodataArray}}' wx:if='{{list.length == 0}}'></template>
  21. <view class='list' wx:else>
  22. <view class='li' wx:for='{{list}}' wx:key='index'>
  23. <view class='book-container' data-url='president/pages/book_Imformation/book_Imformation' data-paras='{{({bookInfoId: item.book_info_id})}}' bindtap='navigateTo'>
  24. <view class='book-wrapper'>
  25. <view class='book-images'>
  26. <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>
  27. </view>
  28. <view class='book-content'>
  29. <view class='book-title'>{{item.title}}</view>
  30. <view wx:if='{{item.theme}}' class='items-modal-Select SelectActive'>{{item.theme}}</view>
  31. <view class='book-text'>
  32. <image src='../../../assets/fire.png' class='li-right-grade' wx:for='{{item.heat}}' wx:key='index'></image>
  33. </view>
  34. </view>
  35. <!-- <view class='book-footer'>
  36. <view class='book-footer-item' data-index='{{index}}' bindtap='getBooksCtl'>
  37. <text class='book-button-fill-blue'>调出</text>
  38. </view>
  39. </view> -->
  40. </view>
  41. </view>
  42. </view>
  43. </view>
  44. <view class='load' wx:if='{{isDown}}'>已经到底了</view>
  45. <view class='load' wx:if='{{isLoad}}'>
  46. <image src='../../../assets/zai_jia.png' class='load-img'></image>
  47. <view>正在玩命加载...</view>
  48. </view>
  49. </view>
  50. <template is='footer' data='{{...footerData}}'></template>
  51. </view>