good_books.wxml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <!--parents/pages/good_books/good_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' wx:else>
  8. <image class='bg' mode='aspectFill' src='../../../assets/banner4.png' wx:if='{{!isHeader}}'></image>
  9. <view class='list'>
  10. <view class='list-canvas'>
  11. <view class='canvas'>
  12. <view class='canvas-text'>
  13. <text class='canvas-text-item'> {{ message }}</text>
  14. </view>
  15. <view class='canvas-parcent'>图书品类 占比%</view>
  16. <ff-canvas id="pieSelect" canvas-id="pieSelect" opts="{{opts}}"></ff-canvas>
  17. </view>
  18. <view class='list-canvas-title'>
  19. <view class='list-canvas-title-item' wx:for='{{headInfoList}}' wx:key='{{index}}'>
  20. <text class="list-color {{index==0?'list-color1':index==1?'list-color2':index==2?'list-color3':'list-color4'}}"></text>
  21. <text>{{item.name}}</text>
  22. </view>
  23. </view>
  24. </view>
  25. <view class='list-title'>
  26. <image src='../../../assets/yue_du_ji_hua.png' class='list-title-img'></image>
  27. <text>我的阅读计划</text>
  28. </view>
  29. <view class='li' wx:for='{{borrowInfoList}}' wx:key='{{index}}' wx:if='{{borrowInfoList.length>0}}'>
  30. <view class='li-title'>
  31. <image class='li-title-img' src='../../../assets/topic{{index+1}}.png'></image>
  32. <text>{{item.theme_name}}</text>
  33. <text class='li-title-number'>共{{item.book_num}}本</text>
  34. </view>
  35. <view class='li-content'>
  36. <view>主题介绍:</view>
  37. <view class='li-content-word'>{{item.aliases}}</view>
  38. </view>
  39. <view class='li-topic'>
  40. <view class='li-topic-tips'></view>
  41. <view class='li-topic-title'>我正在阅读</view>
  42. <view class='li-topic-tips'></view>
  43. </view>
  44. <view>
  45. <view class='li-bookList' wx:for="{{item.bookList}}" wx:key='{{key}}' wx:for-item='val' wx:for-index='key' wx:if='{{item.bookList.length>0}}' data-url='parents/pages/book_detail/book_detail' data-paras='{{({isbn13: val.isbn13})}}' data-zindex='3' bindtap='navigateTo'>
  46. <view class='book-container'>
  47. <view class='book-wrapper'>
  48. <view class='book-images'>
  49. <image class='book-image' mode='aspectFill' src='{{val.local_image ? baseImgUrl + val.local_image : "../../../assets/default_headicon.png"}}'></image>
  50. </view>
  51. <view class='book-content'>
  52. <view class='book-title'>{{val.title}}</view>
  53. <view class='book-text'>图文简介: {{val.summary}}</view>
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. </view>
  59. <view class='li-footer' data-url='parents/pages/search/search' data-paras='{{({type:3,child_theme:item.child_theme,theme_name:item.theme_name,img_index:index+1})}}' data-zindex='3' bindtap='navigateTo'>同主题其他好书推荐>></view>
  60. </view>
  61. <view class='li'>
  62. <template is='nodata' data='{{...nodataArray}}' wx:if='{{borrowInfoList.length==0}}'></template>
  63. </view>
  64. </view>
  65. </view>
  66. <template is='footer' data='{{...footerData}}'></template>
  67. </view>