library_books.wxml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <!--president//pages/library_books/library_books.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='bg'></view> -->
  9. <view>
  10. <view class='header'> </view>
  11. <view>
  12. <image class='header-BackImg' src='../../../assets/banner3.png'></image>
  13. </view>
  14. <view class='header-items'>
  15. <view class='header-item' wx:for='{{HeaderbookList}}' wx:key='index' bindtap='selectNavCtl' data-index='{{index}}'>
  16. <text class='header-item-num'>{{item.amount}}</text>
  17. <text class='header-item-text'>{{item.name}}</text>
  18. </view>
  19. </view>
  20. </view>
  21. <view class='search'>
  22. <view class='search-wrapper' bindtap='inputSearchPage'>
  23. <image class='search-icon' src='../../../assets/SearchIcon.png'></image>
  24. <input class='search-input' disabled type='text' value='{{title}}' placeholder='搜索' placeholder-class='search-placeholder'></input>
  25. </view>
  26. </view>
  27. <view class='content'>
  28. <view class='content-head'>
  29. <view>在馆书籍</view>
  30. <view class='content-head-hot'>
  31. <view style='margin-right:50rpx;' class='{{itemIndex?"new-placeholder":""}}' bindtap='selectHot'>热度排序</view>
  32. <view bindtap='getScreen'>
  33. <text class='{{isShai?"new-placeholder":""}}'>筛选</text>
  34. <image src='../../../assets/shai_xuan.png' class='content-head-hot-icon' wx:if='{{!isShai}}'></image>
  35. <image src='../../../assets/shai_xuan_active.png' class='content-head-hot-icon' wx:if='{{isShai}}'></image>
  36. </view>
  37. </view>
  38. </view>
  39. <view class='ul' wx:for='{{list}}' wx:key='index' data-url='president/pages/book_Imformation/book_Imformation' data-paras='{{({bookInfoId: item.book_info_id})}}' bindtap='navigateTo'>
  40. <view class='ui-image'>
  41. <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' class='li-img'></image>
  42. </view>
  43. <view class='li-right'>
  44. <view data-title='{{item.book_info_id}}' bindtap='BooksInfoPage'>
  45. <view>{{item.title}}</view>
  46. <view >
  47. <view class='li-right-tips' wx:if='{{item.theme}}'>
  48. <view class='li-right-tips-items'>{{item.theme}}</view>
  49. </view>
  50. <view>
  51. <image src='../../../assets/fire.png' class='li-right-grade' wx:for='{{item.heat}}' wx:key='index'></image>
  52. </view>
  53. </view>
  54. </view>
  55. </view>
  56. </view>
  57. <view class='load' wx:if='{{isDown}}'>已经到底了</view>
  58. <view class='load' wx:if='{{isLoad}}'>
  59. <image src='../../../assets/zai_jia.png' class='load-img'></image>
  60. <view>正在玩命加载...</view>
  61. </view>
  62. </view>
  63. <!-- 筛选弹框 -->
  64. <view class='showModel' bindtap='screenShowModel' catchtouchmove="screenShowModel" wx:if='{{screenModel}}' catchtouchmove="true"></view>
  65. <view class='model' wx:if='{{screenModel}}' catchtouchmove="true">
  66. <scroll-view scroll-y class='screen'>
  67. <view class='screen-items'>
  68. <view class='screen-items-head'>年段</view>
  69. <view>
  70. <view class='screen-items-all' wx:for='{{gradeList}}' wx:key='index' data-index='{{index}}' bindtap='selectGrade'>
  71. <view class='screen-items-content {{item.isCheck?"screen-active":""}}'>
  72. <text>{{item.grade}}</text>
  73. <image data-index='{{index}}' bindtap='gradeListReset' src='../../../assets/blue_active.png' class='screen-items-all-img' wx:if='{{item.isCheck}}'></image>
  74. </view>
  75. </view>
  76. </view>
  77. </view>
  78. <view class='screen-items' >
  79. <view class='screen-items-head'>主题</view>
  80. <view class='screen-items-all' wx:for='{{themeList}}' wx:key='index'>
  81. <view class='screen-items-content {{item.isCheck?"screen-active":""}}' wx:if='{{item.childList.length==0}}' data-index='{{index}}' data-type='{{1}}' bindtap='selectTheme'>
  82. <text>{{item.name}}</text>
  83. <image src='../../../assets/blue_active.png' class='screen-items-all-img' wx:if='{{item.isCheck}}'></image>
  84. </view>
  85. </view>
  86. </view>
  87. <view class='screen-footer'></view>
  88. <view class='screen-btn'>
  89. <view class='screen-btn-rest' bindtap='getReset'>重置</view>
  90. <view class='screen-btn-sure' bindtap='getSubmit'>确定</view>
  91. </view>
  92. </scroll-view>
  93. </view>
  94. <!-- 提示弹框 -->
  95. <view class='' wx:if='{{isfirstLogin}}' catchtouchmove='true'>
  96. <view class='items-modal' catchtouchmove='true'> </view>
  97. <view class='PromptModel'>
  98. <view class='books-Info'>
  99. <view class='book-images'>
  100. <image class='book-image' src='../../../assets/wo_mama.png'></image>
  101. </view>
  102. <view class='book-texts'>我妈妈</view>
  103. </view>
  104. <view class="items-modal-Tips">
  105. <view class='items-modal-Selecttip SelectActive'>情感教育</view>
  106. <view class='items-modal-Selecttip SelectActive'>认知自己</view>
  107. </view>
  108. <view class='book-textIcon'>
  109. <image class='book-icon-two' wx:for='{{3}}' wx:key='{{index}}' wx:for-item='val' wx:for-index='index' src="{{item.heat - 1 >= val ? '../../../assets/fire.png' : '../../../assets/fire.png' }}"></image>
  110. </view>
  111. <view class='The-arrow'>
  112. <image class='Thearrow-icon' src='../../../assets/linetip.png'></image>
  113. </view>
  114. <view class='MessageBox'>
  115. <view class='Message-texts'>点击图书信息可以查看图书详情</view>
  116. <view class='Message-confirm' data-index='{{index}}' bindtap='MessageconfirmClose'>
  117. <text class='book-button-fill-blue'>知道啦</text>
  118. </view>
  119. </view>
  120. </view>
  121. </view>
  122. <template is='nodata' data='{{...nodataArray}}' wx:if='{{list.length==0}}'></template>
  123. </view>
  124. <template is='footer' data='{{...footerData}}'></template>
  125. </view>