ranking_list.wxml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <!--pages/ranking_list/ranking_list.wxml-->
  2. <import src="../../templates/nodata/nodata.wxml" />
  3. <view class='container'>
  4. <view class='wrapper'>
  5. <!-- 校区排行榜 -->
  6. <view class='li' wx:for='{{list}}' wx:key='index' wx:if='{{isType==1||isType==3}}'>
  7. <view class="li-items">
  8. <view class="li-items-block">
  9. <image src="../../assets/{{index==0?'ranking_one':index==1?'ranking_two':'ranking_three'}}.png" class="li-items-ord" wx:if='{{index<3}}'></image>
  10. <text wx:if='{{index>2}}'>{{index+1}}</text>
  11. </view>
  12. <image src="{{item.imgUrl?baseImgUrl+item.imgUrl:'../../assets/default_headicon2.png'}}" class="li-items-header"></image>
  13. <view class="li-items-info">
  14. <view class="li-top">
  15. <view class="li-items-info-name">{{item.name}}</view>
  16. <view>{{item.className}}</view>
  17. </view>
  18. </view>
  19. </view>
  20. <view style="margin:auto 0;">{{item.rankNum}}分</view>
  21. </view>
  22. <!-- 消费记录 -->
  23. <view class='ul' wx:for='{{list}}' wx:key='index' wx:if='{{isType==2||isType==5}}'>
  24. <view class="li-items">
  25. <view class="li-items-info">
  26. <view class="li-items-info-name">
  27. <text wx:if='{{isType!=5}}'>{{item.consumer}}</text>
  28. <text wx:if='{{item.consumer&&isType!=5}}'>-</text>
  29. <text wx:if='{{item.priceType}}'>{{item.priceType=='C023'?'平台服务':'校区服务'}}</text>
  30. <text wx:if='{{item.consumer}}'>x</text>
  31. <text wx:if='{{!item.consumer}}'>{{item.type==1?'充值':item.type==2?'消费的':item.type==3?'服务扣除的':item.type==4?'上级分配':item.type==5?'下级分配':''}}</text>
  32. <text wx:if='{{item.consumer}}'>{{item.nums}}</text>
  33. </view>
  34. <view>{{item.createTime}}</view>
  35. </view>
  36. </view>
  37. <view class="li-add">{{item.type==1||item.type==4?'+':'-'}}{{item.nums}}{{item.priceType=='C023'?'平台服务塾币':'校区服务塾币'}}</view>
  38. </view>
  39. <!-- 作业上传记录 -->
  40. <view class='ol' wx:for='{{list}}' wx:key='index' wx:if='{{isType==4}}'>
  41. <view class="li-items">
  42. <view class="li-items-info">
  43. <view class="li-items-info-name">上传人数:<text class="li-blue">{{item.uploadHomeworkSum}}/{{item.studentSum}}</text></view>
  44. <view>{{item.uploadTime}} {{item.weekDay}}</view>
  45. </view>
  46. </view>
  47. <view class="li-up">已批改人数:<text class="li-blue">{{item.correctSum}}/{{item.studentSum}}</text></view>
  48. </view>
  49. <template is='nodata' wx:if='{{list.length==0}}' data='{{...nodata[0]}}'></template>
  50. </view>
  51. </view>