growth_track.wxml 5.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <!--parents//pages/growth_track/growth_track.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. <view class='li' style='padding-bottom:{{isIphoneX?"166":""}}rpx'>
  9. <image src='../../../assets/pai_hang_bang.png' class='li-img' bindtap='setRanking'></image>
  10. <view class='list' wx:if='{{themeInfoList.length == 0&&rankList.length==0&&monthList.length==0}}'>
  11. <view class='nodata'style='margin-top:120rpx'>
  12. <image class="image-nodata"src='../../../assets/book.png'></image>
  13. <view class="text-nodata">您还没有借阅过任何书呢,快去借书吧</view>
  14. <view class="firstaddBooks" style='margin-top:0' bindtap='scanCtl'>扫码借书</view>
  15. </view>
  16. </view>
  17. <view class='li-rank' wx:if='{{rankList.length>0}}'>
  18. <view class='li-rank-title'>馆内排名成就</view>
  19. <view class='li-rank-items' wx:for='{{rankList}}' wx:key='index'>
  20. <image src='../../../assets/no_one_bg.png' class='li-rank-items-bg' wx:if='{{index==0}}'></image>
  21. <image src='../../../assets/no_two_bg.png' class='li-rank-items-bg' wx:if='{{index==1}}'></image>
  22. <image src='../../../assets/no_three_bg.png' class='li-rank-items-bg' wx:if='{{index==2}}'></image>
  23. <view class='li-rank-item'>
  24. <image src='../../../assets/no_one.png' class='li-rank-item-img' wx:if='{{index==0}}'></image>
  25. <image src='../../../assets/no_two.png' class='li-rank-item-img' wx:if='{{index==1}}'></image>
  26. <image src='../../../assets/no_three.png' class='li-rank-item-img' wx:if='{{index==2}}'></image>
  27. <view class='li-rank-item-content'>
  28. <view>获得馆内月度排名第{{item.ranking}}名{{item.rankTimes}}次</view>
  29. <view class='li-rank-item-month'>{{item.rankMonth}}月</view>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. <!-- 主题借阅分析 -->
  35. <view class='li-rank' wx:if='{{themeInfoList.length>0}}'>
  36. <view class='li-rank-title'>主题借阅分析</view>
  37. <view class='li-rank-canvas'>
  38. <view class='li-rank-canvas-text'>主题借阅量所占百分比</view>
  39. <ff-canvas id="pieSelect" opts="{{opts}}"></ff-canvas>
  40. </view>
  41. <view class='li-rank-biao' wx:if='{{themeSelect}}'>
  42. <view class='li-rank-biao-title'>{{message}}</view>
  43. <view class='li-rank-biao-num'>借阅量 {{pages}}本</view>
  44. <view class='list-item' wx:for='{{list}}' wx:key='index'>
  45. <view class='list-item-img'>
  46. <image src='{{item.localImage?baseImgUrl+item.localImage:"../../../assets/banner1.png"}}' class='list-item-img-items'></image>
  47. </view>
  48. <view class='list-item-content'>
  49. <view>{{item.title}}</view>
  50. <view class='list-item-content-tips'>{{item.summary}}</view>
  51. </view>
  52. </view>
  53. <view class='list-item-all' data-url='parents/pages/all_books/all_books' data-paras='{{({vipId,code,message})}}' bindtap='navigateTo'>查看全部</view>
  54. </view>
  55. </view>
  56. <!-- 阅读偏好 -->
  57. <view class='li-rank' wx:if='{{themeTopList.length>0}}'>
  58. <view class='li-rank-title'>阅读偏好</view>
  59. <view class='li-balls'>
  60. <view class='li-balls-one' wx:if='{{themeTopList[0].themeName}}'>
  61. <view style='margin-top:50rpx'>{{themeTopList[0].themeName}}</view>
  62. <view>{{themeTopList[0].percentage}}%</view>
  63. </view>
  64. <view class='li-balls-two' wx:if='{{themeTopList[1].themeName}}'>
  65. <view style='margin-top:40rpx'>{{themeTopList[1].themeName}}</view>
  66. <view>{{themeTopList[1].percentage}}%</view>
  67. </view>
  68. <view class='li-balls-three' wx:if='{{themeTopList[4].themeName}}'>
  69. </view>
  70. <view class='li-balls-four' wx:if='{{themeTopList[2].themeName}}'>
  71. <view style='margin-top:50rpx'>{{themeTopList[2].themeName}}</view>
  72. <view>{{themeTopList[2].percentage}}%</view>
  73. </view>
  74. <view class='li-balls-five' wx:if='{{themeTopList[3].themeName}}'>
  75. <view style='margin-top:44rpx'>{{themeTopList[3].themeName}}</view>
  76. <view>{{themeTopList[3].percentage}}%</view>
  77. </view>
  78. </view>
  79. </view>
  80. <!-- 近28天阅读量对比 -->
  81. <view class='li-rank' wx:if='{{monthList.length>0}}'>
  82. <view class='li-rank-title'>近28天阅读量对比</view>
  83. <!-- <canvas canvas-id='twentyEightCanvas' class='li-canvas'></canvas> -->
  84. <ff-canvas id="twentyEightCanvas" opts="{{opts}}"></ff-canvas>
  85. </view>
  86. <!-- 每月阅读量对比 -->
  87. <view class='li-rank' wx:if='{{yearList.length>0}}'>
  88. <view class='li-rank-title'>每月阅读量对比</view>
  89. <!-- <canvas canvas-id='readCanvas' class='li-canvas'></canvas> -->
  90. <ff-canvas id="readCanvas" opts="{{opts}}"></ff-canvas>
  91. </view>
  92. </view>
  93. </view>
  94. <template is='footer' data='{{...footerData}}'></template>
  95. </view>