search_books.wxml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <!--president/pages/search_books/search_books.wxml-->
  2. <!--president/pages/home/home.wxml-->
  3. <import src="../../../templates/nodata/nodata.wxml" />
  4. <import src="../../../templates/footer/footer.wxml" />
  5. <import src="../../../templates/loading/loading.wxml" />
  6. <view class='container'>
  7. <template is='loading' wx:if='{{!isLoaded}}'></template>
  8. <view class='wrapper pb' wx:else>
  9. <view class='search-container'>
  10. <view class='search-wrapper'>
  11. <image class='search-icon' src='../../../assets/search.png'></image>
  12. <input class='search-input' type='text' confirm-type='search' value='{{title}}' placeholder='请输入书名' placeholder-class='search-placeholder' bindinput='inputSearchCtl'></input>
  13. <image class='search-icon' wx:if='{{title.length > 0}}' src='../../../assets/error_gray.png' bindtap='clearSearchCtl'></image>
  14. </view>
  15. <view class='search-button {{title.length > 0 ? "search-button-active" : ""}}' bindtap='submitSearchCtl'>搜索 </view>
  16. </view>
  17. <view class='items' wx:if='{{list.length != 0}}'>
  18. <view class='item'>
  19. <view class='item-title'>在馆书籍借阅量Top10</view>
  20. </view>
  21. </view>
  22. <template is='nodata' data='{{...nodataArray}}' wx:if='{{list.length == 0}}'></template>
  23. <view class='list' wx:else>
  24. <view class='li' wx:for='{{list}}' wx:key='index'>
  25. <view class='book-container' data-url='president/pages/book_Imformation/book_Imformation' data-paras='{{({bookInfoId: item.book_info_id})}}' bindtap='navigateTo'>
  26. <view class='book-wrapper'>
  27. <view class='book-ranking'>
  28. <image wx:if='{{index == 0}}' class='ranking-icon' src='../../../assets/numberOne.png'></image>
  29. <image wx:if='{{index == 1}}' class='ranking-icon' src='../../../assets/numberTwo.png'></image>
  30. <image wx:if='{{index == 2}}' class='ranking-icon' src='../../../assets/number_three.png'></image>
  31. <text wx:if='{{index>2}}'>{{index+1}}</text>
  32. </view>
  33. <view class='book-images-Container'>
  34. <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>
  35. </view>
  36. <view class='book-content' style='padding-top:20rpx;'>
  37. <view class='book-title'>{{item.title}}</view>
  38. <view wx:if='{{item.theme}}' class='items-modal-Selecttip SelectActive'>{{item.theme}}</view>
  39. <view class='book-text'>
  40. <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>
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. <template is='footer' data='{{...footerData}}'></template>
  49. </view>