stat_capital.vue 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <template>
  2. <view class="page-box-bg-fff m-t20 r-30 p-30">
  3. <!-- 标题插槽 -->
  4. <StatisticsTitle :genre="genre" :leftText="leftText" :is_right="false" > </StatisticsTitle>
  5. <view class="row-justify-sb center p-lr20">
  6. <view class="capital_item">
  7. <view class="row-c flex">
  8. <view class="wh-14 r-100 m-r10" :style="{background:bgColor[leftColor]}"></view>
  9. <text class="size-24 text-color-576">消金类产品4笔</text>
  10. </view>
  11. <view class="sys-weight-600 m-l20 m-tb10">
  12. <text class="size-32 text-color-081">50</text>
  13. <text class="size-28 text-color-081">万</text>
  14. </view>
  15. <text class="size-28 text-color-00B sys-weight-600 m-l20"
  16. :style="{color:bgColor[leftColor]}">29.4%</text>
  17. </view>
  18. <view class="chart_item column-c m-lr20">
  19. <CircleChart :bgColor="'#2B7DFA'"></CircleChart>
  20. </view>
  21. <view class="capital_item">
  22. <view class="row-c flex">
  23. <view class="wh-14 r-100 m-r10" :style="{background:bgColor[rightColor]}"></view>
  24. <text class="size-24 text-color-576">消金类产品4笔</text>
  25. </view>
  26. <view class="sys-weight-600 m-l20 m-tb10">
  27. <text class="size-32 text-color-081">50</text>
  28. <text class="size-28 text-color-081">万</text>
  29. </view>
  30. <text class="size-28 text-color-00B sys-weight-600 m-l20"
  31. :style="{color:bgColor[rightColor]}">29.4%</text>
  32. </view>
  33. </view>
  34. </view>
  35. </template>
  36. <script>
  37. import CircleChart from "@/common/chart/circle_chart.vue";
  38. import StatisticsTitle from "./statistics_title.vue";
  39. export default {
  40. name: 'capital_chart',
  41. components: {
  42. CircleChart,
  43. StatisticsTitle
  44. },
  45. props: {
  46. genre: {
  47. type: Number,
  48. default: 0
  49. },
  50. leftText: {
  51. type: String,
  52. default: ''
  53. },
  54. rightText: {
  55. type: String,
  56. default: '同比环比'
  57. },
  58. leftColor: {
  59. type: Number,
  60. default: 0
  61. },
  62. rightColor: {
  63. type: Number,
  64. default: 0
  65. },
  66. tabulateData:{
  67. default: {}
  68. }
  69. },
  70. data() {
  71. return {
  72. bgColor: ['#00BF8A', '#2B7DFA', '#ED9A2C']
  73. };
  74. }
  75. }
  76. </script>
  77. <style lang="scss" scoped>
  78. .capital_item {
  79. width: 200rpx;
  80. text-align: left;
  81. }
  82. </style>