stat_single_data.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <template>
  2. <view class="stat_single m-t20 ">
  3. <view class="page-box-bg-fff row-justify-sb center p-lr30 m-t20 r-30 p-tb25" v-if="genre == 1">
  4. <text class="num r-10 size-28 sys-weight-600 text-color-12">任务统计汇总</text>
  5. <view class="row center">
  6. <image class="wh-80 m-r20" src="/static/img/statistics/stat-num.png" mode=""></image>
  7. <text class="size-48 sys-weight-600 color-059374 m-r10">45</text>
  8. <text class="size-26 text-color-666">次</text>
  9. </view>
  10. </view>
  11. <view class="page-box-bg-fff row-justify-sb center p-lr30 m-t20 r-30 p-tb25" v-else>
  12. <view class="row-c">
  13. <image class="wh-80 m-r16" :src="`/static/img/statistics/${iconList[type]}.png`" mode=""></image>
  14. <view class="row-c">
  15. <text class="size-40 sys-weight-600 text-color-E83">{{(totalMoney*1).toFixed(2)}}</text>
  16. <text class="size-24 text-color-666 m-l10">万</text>
  17. </view>
  18. </view>
  19. <text class="num r-10 size-24 text-color-666">{{text}}{{totalNum}}笔</text>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. export default {
  25. name: 'head_filter',
  26. props: {
  27. is_fixed: {
  28. type: Boolean,
  29. default: false
  30. },
  31. type: {
  32. type: Number,
  33. default: 0
  34. },
  35. genre: {
  36. type: Number,
  37. default: 0
  38. },
  39. totalMoney: {
  40. default: 0
  41. },
  42. totalNum: {
  43. default: 0
  44. },
  45. text: {
  46. default: '放款'
  47. }
  48. },
  49. data() {
  50. return {
  51. current: 0,
  52. iconList: ['stat-up', 'stat-noloan', 'stat-loan', 'stat-sign']
  53. };
  54. }
  55. }
  56. </script>
  57. <style lang="scss" scoped>
  58. .tabs {
  59. // width: calc(100% - 60rpx);
  60. }
  61. </style>