ranking.wxml 7.2 KB

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