good_books_new.wxml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <!--president//pages/good_books_new/good_books_new.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'>
  9. <view class='bg-left' wx:if='{{isSelect}}' bindtap='backBook'></view>
  10. <view class='bg-word'>好书推荐</view>
  11. </view>
  12. <view wx:if='{{!isSelect}}' class='all'>
  13. <view class='head'>
  14. <image src='../../../assets/sui_ji_diao_shu.png' class='search-container-img {{hiddenModel?"show-model":""}}' data-url='president/pages/random_books/random_books' bindtap='navigateTo'></image>
  15. <view class='search-wrapper head-search' data-url='president/pages/search_books_new/search_books_new' bindtap='navigateTo'>
  16. <image class='search-icon-img' src='../../../assets/SearchIcon.png'></image>
  17. <input class='search-input' type='text' value='{{navList[navIndex].title}}' placeholder='搜索' placeholder-class='search-placeholder new-placeholder' bindinput='inputSearchCtl' disabled='true'></input>
  18. <image class='search-icon' wx:if='{{navList[navIndex].title.length > 0}}' src='../../../assets/error_gray.png' bindtap='clearSearchCtl'></image>
  19. </view>
  20. </view>
  21. <view class='content'>
  22. <view class='content-head'>
  23. <view>推荐列表</view>
  24. <view class='content-head-hot'>
  25. <view style='margin-right:50rpx;' class='{{itemIndex?"new-placeholder":""}}' bindtap='selectHot'>热度排序</view>
  26. <view bindtap='getScreen'>
  27. <text>筛选</text>
  28. <image src='../../../assets/shai_xuan.png' class='content-head-hot-icon'></image>
  29. </view>
  30. </view>
  31. </view>
  32. <view class='ul' wx:for='{{list}}' wx:key='index'>
  33. <view class='ui-image'>
  34. <image 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>
  35. </view>
  36. <view class='li-right'>
  37. <view data-url='president/pages/book_Imformation/book_Imformation' data-paras='{{({bookInfoId: item.book_info_id,isFold:1})}}' bindtap='navigateTo'>
  38. <view>{{item.title}}</view>
  39. <view class='li-right-tips' wx:if='{{item.theme}}'>
  40. <view class='li-right-tips-items'>{{item.theme}}</view>
  41. </view>
  42. <view>
  43. <image src='../../../assets/fire.png' class='li-right-grade' wx:for='{{item.heat}}' wx:key='index'></image>
  44. </view>
  45. </view>
  46. <view class='ul-num' wx:if='{{item.number==0}}'>
  47. <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>
  48. </view>
  49. <view class='ul-num' wx:if='{{item.book_size>0&&item.number>0}}'>
  50. <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>
  51. <text class='ul-num-text'>{{item.number}}</text>
  52. <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>
  53. </view>
  54. </view>
  55. </view>
  56. <view class='load' wx:if='{{isDown}}'>已经到底了</view>
  57. <view class='load' wx:if='{{isLoad}}'>
  58. <image src='../../../assets/zai_jia.png' class='load-img'></image>
  59. <view>正在玩命加载...</view>
  60. </view>
  61. </view>
  62. </view>
  63. <!-- 筛选内容 -->
  64. <view wx:if='{{isSelect}}' class='all'>
  65. <view class='head'>
  66. <view class='search-wrapper head-search' data-url='president/pages/search_books_new/search_books_new' bindtap='navigateTo'>
  67. <image class='search-icon-img' src='../../../assets/SearchIcon.png' style='left:42%'></image>
  68. <input class='search-input' type='text' value='{{navList[navIndex].title}}' placeholder='搜索' placeholder-class='search-placeholder new-placeholder' bindinput='inputSearchCtl' disabled='true'></input>
  69. <image class='search-icon' wx:if='{{navList[navIndex].title.length > 0}}' src='../../../assets/error_gray.png' bindtap='clearSearchCtl'></image>
  70. </view>
  71. </view>
  72. <view class='content'>
  73. <view class='content-head'>
  74. <view>推荐列表</view>
  75. <view class='content-head-hot'>
  76. <view style='margin-right:50rpx;' class='{{itemIndex?"new-placeholder":""}}' bindtap='selectHot'>热度排序</view>
  77. <view bindtap='getScreen'>
  78. <text class='{{isShai?"new-placeholder":""}}'>筛选</text>
  79. <image src='../../../assets/shai_xuan.png' class='content-head-hot-icon' wx:if='{{!isShai}}'></image>
  80. <image src='../../../assets/shai_xuan_active.png' class='content-head-hot-icon' wx:if='{{isShai}}'></image>
  81. </view>
  82. </view>
  83. </view>
  84. <view class='ul' wx:for='{{list}}' wx:key='index'>
  85. <view class='book-images'>
  86. <image class='book-image' lazy-load='true' style="left:{{ key * 15 }}rpx; z-index:{{ key * 30 }}" mode='aspectFill' src='{{val ? baseImgUrl + val + thumbnail : "../../../assets/default_headicon.png"}}' wx:for="{{item.imagesList}}" wx:key='{{key}}' wx:for-item='val' wx:for-index='key' data-images='{{item.imagesList}}' data-baseurl='{{baseImgUrl}}' bindtap='viewImage'></image>
  87. </view>
  88. <view class='li-right li-root'>
  89. <view>
  90. <view>{{item.theme}}</view>
  91. <image src='../../../assets/fire.png' class='li-right-grade' wx:for='{{item.heat}}' wx:key='index'></image>
  92. </view>
  93. <view class='ul-select' data-child='{{item.child_theme}}' data-theme='{{item.theme}}' bindtap='enterTheme'>
  94. <text>选择调入</text>
  95. <image src='../../../assets/arrow_gray.png' class='ul-num-right'></image>
  96. </view>
  97. </view>
  98. </view>
  99. <view class='load' wx:if='{{isDown}}'>已经到底了</view>
  100. <view class='load' wx:if='{{isLoad}}'>
  101. <image src='../../../assets/zai_jia.png' class='load-img'></image>
  102. <view>正在玩命加载...</view>
  103. </view>
  104. </view>
  105. </view>
  106. <!-- 筛选弹框 -->
  107. <view class='showModel' bindtap='screenShowModel' catchtouchmove="screenShowModel" wx:if='{{screenModel}}' catchtouchmove="true"></view>
  108. <view class='model' wx:if='{{screenModel}}' catchtouchmove="true">
  109. <scroll-view scroll-y class='screen'>
  110. <view class='screen-items'>
  111. <view class='screen-items-head'>年段</view>
  112. <view>
  113. <view class='screen-items-all' wx:for='{{gradeList}}' wx:key='index' data-index='{{index}}' bindtap='selectGrade'>
  114. <view class='screen-items-content {{item.isCheck?"screen-active":""}}'>
  115. <text>{{item.grade}}</text>
  116. <image src='../../../assets/blue_active.png' class='screen-items-all-img' wx:if='{{item.isCheck}}'></image>
  117. </view>
  118. </view>
  119. </view>
  120. </view>
  121. <view class='screen-items' >
  122. <view class='screen-items-head'>主题</view>
  123. <view class='screen-items-all' wx:for='{{themeList}}' wx:key='index'>
  124. <view class='screen-items-content {{item.isCheck?"screen-active":""}}' wx:if='{{item.childList.length==0}}' data-index='{{index}}' data-type='{{1}}' bindtap='selectTheme'>
  125. <text>{{item.name}}</text>
  126. <image src='../../../assets/blue_active.png' class='screen-items-all-img' wx:if='{{item.isCheck}}'></image>
  127. </view>
  128. </view>
  129. <!-- <view>
  130. <view class='screen-items-all' wx:for='{{item.childList}}' wx:key='key' wx:for-item='val' wx:for-index='key' data-index='{{index}}' data-key='{{key}}' data-type='{{0}}' bindtap='selectTheme'>
  131. <view class='screen-items-content {{val.isCheck?"screen-active":""}}'>
  132. <text>{{val.name}}</text>
  133. <image data-index='{{index}}' bindtap='themeListReset' src='../../../assets/blue_active.png' class='screen-items-all-img' wx:if='{{val.isCheck}}'></image>
  134. </view>
  135. </view>
  136. </view> -->
  137. </view>
  138. <view class='screen-footer'></view>
  139. <view class='screen-btn'>
  140. <view class='screen-btn-rest' bindtap='getReset'>重置</view>
  141. <view class='screen-btn-sure' bindtap='getSubmit'>确定</view>
  142. </view>
  143. </scroll-view>
  144. </view>
  145. <!-- 随机点击弹框 -->
  146. <view class='showModel' bindtap='allShowModel' catchtouchmove="allShowModel" wx:if='{{hiddenModel}}'></view>
  147. <view class='model' wx:if='{{hiddenModel}}'>
  148. <image src='../../../assets/grade.png' class='model-grade'></image>
  149. <view class='model-tips'>
  150. <view>点击“随机调书”设定调书数量,系统会为您随机挑选好书送上门哟</view>
  151. <view class='model-tips-btn' bindtap='allShowModel'>知道啦</view>
  152. </view>
  153. </view>
  154. <template is='nodata' data='{{...nodataArray}}' wx:if='{{list.length==0}}'></template>
  155. </view>
  156. <template is='footer' data='{{...footerData}}'></template>
  157. </view>