statistics_B.axml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <view>
  2. <view class="head flex-box flex-center-center">
  3. <view class="flex-1">
  4. <view>{{data_b.month_point}}</view>
  5. <view>本月B分</view>
  6. </view>
  7. <view class="flex-1">
  8. <view>{{data_b.year_point}}</view>
  9. <view>本年B分</view>
  10. </view>
  11. <view class="flex-1">
  12. <view>{{data_b.total_point}}</view>
  13. <view>累计B分</view>
  14. </view>
  15. </view>
  16. <view class="headed margin-bottom">
  17. <view class="top">
  18. <view class="dates" style="padding:10rpx 0" catchTap="openDate">
  19. <image mode="scaleToFill" src="../../../image/date.png"/>
  20. <text style="font-size:32rpx;position: relative;" class="{{showDate? 'activeView':''}}">{{date}}</text>
  21. </view>
  22. </view>
  23. <view class="headed-box">
  24. <view class="title" style="padding-bottom:0rpx">近半年的B分</view>
  25. <view class="f2-chart">
  26. <f2 onInit="onInitChart"></f2>
  27. </view>
  28. </view>
  29. </view>
  30. <view class="main margin-bottom">
  31. <view class="title">积分构成</view>
  32. <view class="f2-chart" a:if="{{pieData.length>0}}">
  33. <f2 onInit="onInitChart2"></f2>
  34. </view>
  35. <no-data a:if="{{pieData.length==0}}" content="无数据" />
  36. </view>
  37. <view class="main margin-bottom">
  38. <view class="flex-box">
  39. <view class="title flex-1">奖分最多</view>
  40. <view class="gengduo" catchTap="openMore">更多<image mode="scaleToFill" src="../../../image/right.png"/></view>
  41. </view>
  42. <view>
  43. <view class="flex-box list" a:for="{{data_good}}">
  44. <block a:if="{{index<=4}}">
  45. <view class="text flex-1" a:if="{{item.remark.customize}}">{{item.remark.customize}}</view>
  46. <view class="text flex-1" a:else>{{item.remark.rule}}</view>
  47. <view class="num red" a:if="{{item.point>0}}">+{{item.point}}</view>
  48. <view class="num green" a:else>{{item.point}}</view>
  49. </block>
  50. </view>
  51. <no-data a:if="{{data_good.length==0}}" content="无数据" />
  52. </view>
  53. </view>
  54. <view class="main">
  55. <view class="flex-box">
  56. <view class="title flex-1">扣分最多</view>
  57. <view class="gengduo" catchTap="openMore">更多<image mode="scaleToFill" src="../../../image/right.png"/></view>
  58. </view>
  59. <view>
  60. <view class="flex-box list" a:for="{{data_bad}}">
  61. <block a:if="{{index<=4}}">
  62. <view class="text flex-1" a:if="{{item.remark.customize}}">{{item.remark.customize}}</view>
  63. <view class="text flex-1" a:else>{{item.remark.rule}}</view>
  64. <view class="num red" a:if="{{item.point>0}}">+{{item.point}}</view>
  65. <view class="num green" a:else>{{item.point}}</view>
  66. </block>
  67. </view>
  68. <no-data a:if="{{data_bad.length==0}}" content="无数据" />
  69. </view>
  70. </view>
  71. </view>