stat_single_data.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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">放款{{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. },
  46. data() {
  47. return {
  48. current: 0,
  49. iconList: ['stat-up', 'stat-noloan', 'stat-loan', 'stat-sign']
  50. };
  51. }
  52. }
  53. </script>
  54. <style lang="scss" scoped>
  55. .tabs {
  56. // width: calc(100% - 60rpx);
  57. }
  58. </style>