ranking.wxml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <!--parents//pages/ranking/ranking.wxml-->
  2. <import src="../../../templates/nodata/nodata.wxml" />
  3. <import src="../../../templates/loading/loading.wxml" />
  4. <view class='container'>
  5. <template is='loading' wx:if='{{!isLoaded}}'></template>
  6. <view class='wrapper' wx:else>
  7. <view wx:if='{{isMonth}}'>
  8. <view class='head'>
  9. <image src='../../../assets/pai_hang_bg.png' class='bg'></image>
  10. <view class='head-history' bindtap='selectHistory'>查看历史记录</view>
  11. <view class='head-ranking'>馆内阅读排行榜</view>
  12. </view>
  13. <view class='title'>
  14. <view class='title-left'>
  15. <view class='title-left-one' bindtap='showModel'>
  16. <image src='../../../assets/gan_tan.png' class='title-left-one-img'></image>
  17. <text>榜单说明</text>
  18. </view>
  19. <view class='title-left-two'>
  20. <image src='../../../assets/default_headicon.png' class='title-left-two-img' wx:if='{{!rankingVO.childImg}}'></image>
  21. <image src='{{baseImgUrl+rankingVO.childImg}}' class='title-left-two-img' wx:if='{{rankingVO.childImg}}'></image>
  22. <view>{{rankingVO.childName}}</view>
  23. </view>
  24. <view class='title-left-three {{type==2?"li-blue":""}}'>{{type==2?"总借书":"本月借书"}}总量排第{{rankingVO.ranking}}名</view>
  25. <view class='title-left-four {{type==2?"li-blue-text":""}}'>
  26. <view>借阅次数{{rankingVO.borrowTimes}}</view>
  27. <view>借书数量{{rankingVO.borrowNum}}</view>
  28. </view>
  29. </view>
  30. <view class='title-right'>
  31. <view class='title-right-one {{type==1?"title-top":"title-bottom"}}' data-num='{{1}}' bindtap='selectMonth'>
  32. <text class='title-right-one-text'>本月排行榜</text>
  33. </view>
  34. <view class='title-right-two {{type==2?"title-top":""}}' data-num='{{2}}' bindtap='selectMonth'>
  35. <text class='title-right-one-text'>总排行榜</text>
  36. </view>
  37. </view>
  38. </view>
  39. <view class='li' wx:if='{{list.length>0}}'>
  40. <view class='li-head'>
  41. <view>参与人数({{list.length}}人)</view>
  42. <view>借书总量排名</view>
  43. </view>
  44. <view class='li-items' wx:for='{{list}}' wx:key='index'>
  45. <view>
  46. <!-- <text class='li-items-one' wx:if='{{index==0}}'>1</text>
  47. <text class='li-items-two' wx:if='{{index==1}}'>2</text>
  48. <text class='li-items-three' wx:if='{{index==2}}'>3</text> -->
  49. <image src='../../../assets/one.png' class='li-items-img' wx:if='{{index==0}}'></image>
  50. <image src='../../../assets/two.png' class='li-items-img' wx:if='{{index==1}}'></image>
  51. <image src='../../../assets/three.png' class='li-items-img' wx:if='{{index==2}}'></image>
  52. <text wx:if='{{index>2}}' class='li-items-img'>{{index+1}}</text>
  53. <image src='{{item.childImg?baseImgUrl+item.childImg:"../../../assets/default_headicon.png"}}' class='li-items-head'></image>
  54. <text>{{item.childName}}</text>
  55. </view>
  56. <view style='margin:auto 0;'>{{item.borrowNum}}</view>
  57. </view>
  58. </view>
  59. </view>
  60. <view wx:if='{{!isMonth}}'>
  61. <view class='head'>
  62. <image src='../../../assets/month_bg.png' class='bg' style='height:452rpx;'></image>
  63. <view class='head-item'>
  64. <picker mode="date" fields="month" value="{{date}}" start="2017-10" end="{{date}}" bindchange="changeDate">
  65. <view class='head-month'>
  66. <text>{{date}}</text>
  67. <image src='../../../assets/right_white.png' class='head-month-img'></image>
  68. </view>
  69. </picker>
  70. <view class='head-all'>馆内借书总量排行榜</view>
  71. <view class='head-people'>参与人数({{pages}}人)</view>
  72. </view>
  73. </view>
  74. <view class='xl' wx:if='{{list.length>0}}'>
  75. <view class='ul-item two'>
  76. <image src='{{list[1].childImg?baseImgUrl+list[1].childImg:"../../../assets/default_headicon.png"}}' class='ul-item-img'></image>
  77. <image src='../../../assets/no_two.png' class='ul-item-num'></image>
  78. <view class='ul-item-name'>{{list[1].childName}}</view>
  79. <view>{{list[1].borrowNum}}本</view>
  80. </view>
  81. <view class='ul-item one'>
  82. <image src='{{list[0].childImg?baseImgUrl+list[0].childImg:"../../../assets/default_headicon.png"}}' class='ul-item-img'></image>
  83. <image src='../../../assets/no_one.png' class='ul-item-num'></image>
  84. <view class='ul-item-name'>{{list[0].childName}}</view>
  85. <view>{{list[0].borrowNum}}本</view>
  86. </view>
  87. <view class='ul-item three'>
  88. <image src='{{list[2].childImg?baseImgUrl+list[2].childImg:"../../../assets/default_headicon.png"}}' class='ul-item-img'></image>
  89. <image src='../../../assets/no_three.png' class='ul-item-num'></image>
  90. <view class='ul-item-name'>{{list[2].childName}}</view>
  91. <view>{{list[2].borrowNum}}本</view>
  92. </view>
  93. </view>
  94. <view class='li' wx:if='{{list.length>0}}'>
  95. <!-- <view class='li-head'>
  96. <view>参与人数({{pages}}人)</view>
  97. <view>借书总量排名</view>
  98. </view> -->
  99. <view class='li-items' wx:for='{{list}}' wx:key='index' wx:if='{{index>2}}'>
  100. <view>
  101. <text class='li-items-img'>{{index+1}}</text>
  102. <image src='{{item.childImg?baseImgUrl+item.childImg:"../../../assets/default_headicon.png"}}' class='li-items-head'></image>
  103. <text>{{item.childName}}</text>
  104. </view>
  105. <view style='margin:auto 0;' wx:if='{{item.borrowNum}}'>{{item.borrowNum}}本</view>
  106. </view>
  107. </view>
  108. <template is='nodata' data='{{...nodataArray}}' wx:if='{{list.length==0}}'></template>
  109. </view>
  110. <!-- 借阅弹幕 -->
  111. <view class='showModel' bindtap='allShowModel' catchtouchmove="allShowModel" wx:if='{{hiddenModel}}'></view>
  112. <view class='model' wx:if='{{hiddenModel}}' style='margin:0 130rpx;top:18%'>
  113. <view class='model-list'>
  114. <view class='model-list-title'>榜单说明</view>
  115. <view>本月排行榜:</view>
  116. <view>本月排行榜为本月当前借书总量排行。每月1号以消息推送方式出榜上个自然月的借书总量排名结果,评选月度前三名,可获得为期一个月的每次借阅数量调整权限:</view>
  117. <view>第一名:5本;</view>
  118. <view>第二名:4本;</view>
  119. <view>第三名:3本;</view>
  120. <view>第四名及以下:2本</view>
  121. <view>(注:如果借阅总量相同,则以最后一本书借阅时间为排名标准,先借的排序在前。每个排名只都是唯一的,不并列。)</view>
  122. <view style='padding:40rpx 0;'>
  123. <view>总排行榜:</view>
  124. <view>借书总量排行</view>
  125. </view>
  126. </view>
  127. <view class='model-list-del' bindtap='allShowModel'>
  128. <image src='../../../assets/guan_bi.png' class='model-list-img'></image>
  129. </view>
  130. </view>
  131. </view>
  132. </view>