search_books_new.wxml 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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' wx:else>
  9. <view class='search'>
  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. </view>
  14. <view class='search-button' bindtap='submitSearchCtl'>搜索</view>
  15. </view>
  16. <view class='list-result' wx:if='{{isResult&&list.length>0}}'>
  17. <view class='list-result-one'>搜索结果</view>
  18. <!-- <view class='list-result-two' wx:if='{{isResult&&list.length>5}}'>
  19. <image src='../../../assets/jin_gao.png' class='list-result-two-img'></image>
  20. <text>搜索内容过于模糊,建议输入完整书名</text>
  21. </view> -->
  22. </view>
  23. <view wx:if='{{list.length == 0&&isResult}}'>
  24. <template is='nodata' data='{{...nodataArray}}'></template>
  25. <view class="firstaddBooks" data-url='president/pages/apply_bookform/apply_bookform' bindtap='navigateTo'>填写申请书单</view>
  26. </view>
  27. <view class='list' wx:else>
  28. <view class='item-title' wx:if='{{!isResult}}'>推荐书籍</view>
  29. <view class='item-title' wx:if='{{isResult}}'>总部书籍</view>
  30. <view class='ul' wx:for='{{list}}' wx:key='index'>
  31. <view class='ui-image'>
  32. <image src='{{item.local_image?baseImgUrl+item.local_image:"../../../assets/default_headicon.png"}}' class='li-img'></image>
  33. </view>
  34. <view class='li-right'>
  35. <view data-url='president/pages/book_Imformation/book_Imformation' data-paras='{{({bookInfoId: item.book_info_id})}}' bindtap='navigateTo'>
  36. <view>{{item.title}}</view>
  37. <view class='li-right-tips' wx:if='{{item.theme}}'>
  38. <view class='li-right-tips-items'>{{item.theme}}</view>
  39. </view>
  40. <view>
  41. <image src='../../../assets/fire.png' class='li-right-grade' wx:for='{{item.heat}}' wx:key='index'></image>
  42. </view>
  43. </view>
  44. <view class='ul-num' wx:if='{{item.number==0}}'>
  45. <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>
  46. </view>
  47. <view class='ul-num' wx:if='{{item.book_size>0&&item.number>0}}'>
  48. <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>
  49. <text class='ul-num-text'>{{item.number}}</text>
  50. <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>
  51. </view>
  52. </view>
  53. </view>
  54. <view class='load' wx:if='{{isDown}}'>已经到底了~</view>
  55. <view class='load' wx:if='{{isLoad}}'>
  56. <image src='../../../assets/zai_jia.png' class='load-img'></image>
  57. <view>正在玩命加载...</view>
  58. </view>
  59. </view>
  60. </view>
  61. <!-- <template is='footer' data='{{...footerData}}'></template> -->
  62. </view>