index.axml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <view>
  2. <view class="head flex-box flex-center-center">
  3. <view class="flex-1" data-index="1" onTap="openView">
  4. <view>{{userData.b.month_point}}</view>
  5. <view>本月B分</view>
  6. </view>
  7. <view class="flex-1" data-index="2" onTap="openView">
  8. <view>{{userData.a.month_point}}</view>
  9. <view>本月A分</view>
  10. </view>
  11. </view>
  12. <view class="headed margin-bottom">
  13. <view class="top"></view>
  14. <view class="headed-box">
  15. <view class="flex-box headed-box-item">
  16. <view class="flex-box flex-center-center flex-1 left" data-index="3" onTap="openView">
  17. <image mode="scaleToFill" src="../../../image/jkbf.png"/>
  18. <text>奖扣B分</text>
  19. </view>
  20. <view class="flex-box flex-center-center flex-1" data-index="4" onTap="openView">
  21. <image mode="scaleToFill" src="../../../image/jkaf.png"/>
  22. <text>奖扣A分</text>
  23. </view>
  24. </view>
  25. <view class="flex-box headed-box-item">
  26. <view class="flex-box flex-center-center flex-1 left" data-index="5" onTap="openView">
  27. <image mode="scaleToFill" src="../../../image/sqjf.png"/>
  28. <text>申请积分</text>
  29. </view>
  30. <view class="flex-box flex-center-center flex-1" data-index="6" onTap="openView">
  31. <image mode="scaleToFill" src="../../../image/sp.png"/>
  32. <text>审批<text class="red">({{total}})</text></text>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. <!-- 奖扣展示 -->
  38. <view class="main margin-bottom" a:if="{{userData.task}}">
  39. <view class="main-title flex-box flex-v-ce">
  40. <text style="font-size:32rpx">本月B分奖扣</text>
  41. <text class="text2" catchTap="showText">?</text>
  42. </view>
  43. <view class="main-main flex-box flex-center-center" data-index="7" catchTap="openView">
  44. <view class="flex-1">
  45. <view>{{userData.task.reward.point}}</view>
  46. <view class="fontColorF" style="font-size:28rpx">奖分</view>
  47. <view>目标{{userData.task.reward.target_point}}</view>
  48. </view>
  49. <view class="flex-1">
  50. <view>{{userData.task.deduction.point}}</view>
  51. <view class="fontColorF" style="font-size:28rpx">扣分</view>
  52. <view>目标{{userData.task.deduction.target_point}}</view>
  53. </view>
  54. <view class="flex-1">
  55. <view>{{userData.ratio.ratio}}</view>
  56. <view class="fontColorF" style="font-size:28rpx">奖扣比例</view>
  57. <view>目标{{userData.ratio.target_ratio}}</view>
  58. </view>
  59. <view class="flex-1">
  60. <view>{{userData.task.exec.count}}</view>
  61. <view class="fontColorF" style="font-size:28rpx">奖扣人次</view>
  62. <view>目标{{userData.task.exec.target_count}}</view>
  63. </view>
  64. </view>
  65. </view>
  66. <view class="bottom margin-bottom">
  67. <view class="bottom-title">近30天B分趋势</view>
  68. <view class="f2-chart">
  69. <f2 onInit="onInitChart"></f2>
  70. </view>
  71. </view>
  72. <view class="bottom margin-bottom">
  73. <view class="bottom-title">积分构成</view>
  74. <view class="f2-chart" a:if="{{pieData.length>0}}">
  75. <f2 onInit="onInitChart2"></f2>
  76. </view>
  77. <no-data a:if="{{pieData.length==0}}" content="无数据" />
  78. </view>
  79. <view class="bottom">
  80. <view class="bottom-title">积分事件</view>
  81. <view class="flex-box bottom-time" a:for="{{incidentLsit}}" data-item="{{item}}" data-index="8" onTap="openView">
  82. <img-box name="{{item.employee_name}}" imgUrl="{{item.employee_img_url}}"/>
  83. <view class="flex-1 bottom-right">
  84. <view class="flex-box">
  85. <text class="flex-1 name">{{item.employee_name}}</text>
  86. <text class="num" a:if="{{item.point>0}}">+{{item.point}} {{item.ptObj.name}}</text>
  87. <text class="num green" a:else>{{item.point}} {{item.ptObj.name}}</text>
  88. </view>
  89. <view class="text">{{item.remark}}</view>
  90. <view class="date">{{item.event_time}}</view>
  91. </view>
  92. </view>
  93. <no-data a:if="{{incidentLsit.length==0}}" />
  94. </view>
  95. <view data-index="9" onTap="openView" a:if="{{incidentLsitTotal>5}}" class="more">查看更多</view>
  96. <view class="windows" a:if="{{isBh}}" content="还没有积分事件">
  97. <view class="windows-box">
  98. <view class="windows-title">温馨提示</view>
  99. <view class="windows-content">作为管理者,管理执行力是关键,每月按要求完成奖分和扣分任务</view>
  100. <view class="windows-btn flex-box flex-v-ce">
  101. <view class="flex-1" catchTap="showText">我知道了</view>
  102. </view>
  103. </view>
  104. </view>
  105. </view>