head_data.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <template>
  2. <view>
  3. <view class="head_data row-justify-sb center m-t30">
  4. <view class="data_item page-box-bg-fff column-c r-30 p-tb25">
  5. <image class="wh-80" src="/static/img/statistics/stat-up.png" mode=""></image>
  6. <view class="row-c p-tb20">
  7. <text class="size-40 sys-weight-600 text-color-E83">{{(moneyData.out_money).toFixed(2)}}</text>
  8. <text class="size-24 text-color-666 m-l10">万</text>
  9. </view>
  10. <text class="num r-10 sys-from-background-color size-24 text-color-666">放款{{moneyData.out_num}}笔</text>
  11. </view>
  12. <view class="data_item page-box-bg-fff column-c r-30 p-tb25">
  13. <image class="wh-80" src="/static/img/statistics/stat-down.png" mode=""></image>
  14. <view class="row-c p-tb20">
  15. <text class="size-40 text-color-108 sys-weight-600">{{(moneyData.put_money).toFixed(2)}}</text>
  16. <text class="size-24 text-color-666 m-l10">万</text>
  17. </view>
  18. <text class="num r-10 sys-from-background-color size-24 text-color-666">回款{{moneyData.put_num}}笔</text>
  19. </view>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. import {
  25. getSysCashier
  26. } from "@/api/statistics";
  27. export default {
  28. name: 'head_filter',
  29. props: {
  30. 'moneyData': {
  31. default: () => {
  32. return {
  33. out_money: 0,
  34. out_num: 0,
  35. put_money: 0,
  36. put_num: 0,
  37. }
  38. }
  39. }
  40. },
  41. data() {
  42. return {
  43. };
  44. },
  45. }
  46. </script>
  47. <style lang="scss" scoped>
  48. .head_data {
  49. text-align: center;
  50. .data_item {
  51. width: 330rpx;
  52. .num {
  53. width: 140rpx;
  54. height: 50rpx;
  55. line-height: 50rpx;
  56. }
  57. }
  58. }
  59. </style>