com-sta-data.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <!-- 第一行统计数据 -->
  2. <template>
  3. <el-row :gutter="14">
  4. <el-col :lg="4" :sm="8" :xs="24">
  5. <div class="sa-wnk">
  6. <img src="../../static/icon/icon-user.png" />
  7. <div class="sa-wnk-tv">
  8. <p class="sa-wnk-title">边民数量</p>
  9. <p class="sa-wnk-value">{{ sta.bm }}</p>
  10. </div>
  11. </div>
  12. </el-col>
  13. <el-col :lg="4" :sm="8" :xs="24">
  14. <div class="sa-wnk">
  15. <img src="../../static/icon/icon-goods.png" />
  16. <div class="sa-wnk-tv">
  17. <p class="sa-wnk-title">收购商数量</p>
  18. <p class="sa-wnk-value">{{ sta.purchaser }}</p>
  19. </div>
  20. </div>
  21. </el-col>
  22. <el-col :lg="4" :sm="8" :xs="24">
  23. <div class="sa-wnk">
  24. <img src="../../static/icon/icon-order.png" />
  25. <div class="sa-wnk-tv">
  26. <p class="sa-wnk-title">全部订单</p>
  27. <p class="sa-wnk-value">{{ sta.orders }}</p>
  28. </div>
  29. </div>
  30. </el-col>
  31. <el-col :lg="4" :sm="8" :xs="24">
  32. <div class="sa-wnk">
  33. <img src="../../static/icon/icon-money.png" />
  34. <div class="sa-wnk-tv">
  35. <p class="sa-wnk-title">累计交易额</p>
  36. <p class="sa-wnk-value">{{ sta.totalMoney }}</p>
  37. </div>
  38. </div>
  39. </el-col>
  40. <el-col :lg="4" :sm="8" :xs="24">
  41. <div class="sa-wnk">
  42. <img src="../../static/icon/finishMoney.png" />
  43. <div class="sa-wnk-tv">
  44. <p class="sa-wnk-title">完成交易额</p>
  45. <p class="sa-wnk-value">{{ sta.finishMoney }}</p>
  46. </div>
  47. </div>
  48. </el-col>
  49. <el-col :lg="4" :sm="8" :xs="24">
  50. <div class="sa-wnk">
  51. <img src="../../static/icon/jyz.png" />
  52. <div class="sa-wnk-tv">
  53. <p class="sa-wnk-title">交易中</p>
  54. <p class="sa-wnk-value">{{ sta.totalMoney-sta.finishMoney }}</p>
  55. </div>
  56. </div>
  57. </el-col>
  58. </el-row>
  59. </template>
  60. <script>
  61. module.exports = {
  62. props: {
  63. sta: {
  64. type: Object,
  65. default: {}
  66. }
  67. },
  68. data() {
  69. return {};
  70. },
  71. methods: {
  72. },
  73. created() {
  74. }
  75. };
  76. </script>
  77. <style scoped>
  78. /* 第一行 */
  79. .sa-wnk {
  80. background-color: #fff;
  81. border: 1px #ddd solid;
  82. margin-bottom: 14px;
  83. min-height: 100px;
  84. cursor: pointer;
  85. transition: all 0.3s;
  86. overflow: hidden;
  87. }
  88. .sa-wnk:hover {
  89. box-shadow: 0 0 20px #999;
  90. }
  91. .sa-wnk img {
  92. float: left;
  93. line-height: 100px;
  94. margin: 25px 0px 0 20px;
  95. width: 50px;
  96. height: 50px;
  97. vertical-align: middle;
  98. }
  99. .sa-wnk .sa-wnk-tv {
  100. float: left;
  101. margin-left: 10px;
  102. max-width: calc(100% - 100px);
  103. }
  104. .sa-wnk-title {
  105. margin-top: 25px;
  106. font-size: 16px;
  107. }
  108. .sa-wnk-value {
  109. margin-top: 4px;
  110. font-size: 24px;
  111. padding-bottom: 20px;
  112. }
  113. </style>