index.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <template>
  2. <Card :title="title" :icon="icon" class="online-water">
  3. <div class="con-top display-flex border">
  4. <div class="img">
  5. <img src="./images/icon-total.png" alt="" class="icon">
  6. </div>
  7. <div class="info">
  8. <p class="title">线上流水总额</p>
  9. <p class="num">34656444444.55</p>
  10. </div>
  11. </div>
  12. <div class="con-bottom display-flex">
  13. <div class="con-item flex-1 border">
  14. <div class="top display-flex">
  15. <div class="img">
  16. <img src="./images/icon-once.png" alt="" class="icon">
  17. </div>
  18. <div class="flex-1">
  19. <p class="title">单笔缴费金额</p>
  20. <p class="num">344.55</p>
  21. <p class="desc">(近12个月平均值)</p>
  22. </div>
  23. </div>
  24. <div class="bottom display-flex">
  25. <span class="title">单笔最大值</span>
  26. <span class="num">346544.55</span>
  27. </div>
  28. </div>
  29. <div class="con-item flex-1 border">
  30. <div class="top display-flex">
  31. <div class="img">
  32. <img src="./images/icon-month.png" alt="" class="icon">
  33. </div>
  34. <div class="flex-1">
  35. <p class="title">月在线缴费次数</p>
  36. <p class="num">346564</p>
  37. <p class="desc">(近12个月平均值)</p>
  38. </div>
  39. </div>
  40. <div class="bottom display-flex">
  41. <span class="title">单笔最大值</span>
  42. <span class="num">346544.55</span>
  43. </div>
  44. </div>
  45. </div>
  46. </Card>
  47. </template>
  48. <script>
  49. import Card from '@/views/components/card'
  50. import icon from './images/icon-title.png'
  51. export default {
  52. name: 'OnlineWater',
  53. components: {
  54. Card
  55. },
  56. data () {
  57. return {
  58. title: '线上流水数据',
  59. icon: icon
  60. }
  61. }
  62. }
  63. </script>
  64. <style lang="scss">
  65. @import '@/assets/css/function.scss';
  66. .online-water {
  67. .img{
  68. width: halfW(70);
  69. height: halfH(70);
  70. margin-right: halfW(27);
  71. padding: halfH(14) halfW(14);
  72. box-sizing: border-box;
  73. background: #12223C;
  74. border-radius: 50%;
  75. .icon{
  76. width: 100%;
  77. height: 100%;
  78. }
  79. }
  80. .con-top{
  81. padding: halfH(20) halfW(30);
  82. background: #0E1629;
  83. .info{
  84. .title{
  85. font-size: halfW(18);
  86. line-height: halfH(24);
  87. color: #82D1F6;
  88. }
  89. .num{
  90. font-size: halfW(48);
  91. line-height: halfH(48);
  92. color: #9BE3E0;
  93. }
  94. }
  95. }
  96. .con-bottom{
  97. margin-top: halfH(30) ;
  98. .con-item{
  99. // padding: halfH(30) halfW(30);
  100. box-sizing: border-box;
  101. &:first-child{
  102. margin-right: halfW(30);
  103. }
  104. .top{
  105. padding: halfH(30) halfW(30);
  106. .title{
  107. font-size: halfW(20);
  108. line-height: halfH(22);
  109. color: #82D1F6;
  110. margin-bottom: halfH(8);
  111. }
  112. .num{
  113. font-size: halfW(28);
  114. line-height: halfH(38);
  115. color: #F6F7FC;
  116. margin-bottom: halfH(8);
  117. }
  118. .desc{
  119. font-size: halfW(14);
  120. line-height: halfH(16);
  121. color: #9FA5B7;
  122. }
  123. }
  124. .bottom{
  125. justify-content: space-between;
  126. align-items: center;
  127. height: halfH(3);
  128. line-height: halfH(63);
  129. background: #111C30;
  130. padding: halfH(30) halfW(30);
  131. .title{
  132. font-size: halfW(14);
  133. line-height: halfH(20);
  134. color: #9FA5B7;
  135. }
  136. .num{
  137. font-size: halfW(20);
  138. line-height: halfH(24);
  139. color: #F6F7FC;
  140. }
  141. }
  142. }
  143. }
  144. }
  145. </style>