userTwo copy.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <template>
  2. <div id="userTwo">
  3. <el-row>
  4. <el-col :span="24" class="userTwo">
  5. <el-col :span="12" class="left">
  6. <el-col :span="24" class="one">
  7. <el-image style="width:166px;height:166px;" :src="dynamic1"></el-image>
  8. <p>企业注册数量</p>
  9. <p>{{ detail.num1 }}</p>
  10. </el-col>
  11. <el-col :span="24" class="one two">
  12. <el-image style="width:166px;height:166px;" :src="dynamic2"></el-image>
  13. <p>个人注册数量</p>
  14. <p>{{ detail.num2 }}</p>
  15. </el-col>
  16. </el-col>
  17. <el-col :span="12" class="left right">
  18. <el-col :span="24" class="one">
  19. <el-image style="width:166px;height:166px;" :src="dynamic3"></el-image>
  20. <p>在线人数</p>
  21. <p>{{ detail.num3 }}</p>
  22. </el-col>
  23. <el-col :span="24" class="one two">
  24. <el-image style="width:166px;height:166px;" :src="dynamic4"></el-image>
  25. <p>企业项目数量</p>
  26. <p>{{ detail.num4 }}</p>
  27. </el-col>
  28. </el-col>
  29. </el-col>
  30. </el-row>
  31. </div>
  32. </template>
  33. <script>
  34. export default {
  35. name: 'userTwo',
  36. props: {},
  37. components: {},
  38. data: () => ({
  39. dynamic1: require('@/assets/dynamic1.png'),
  40. dynamic2: require('@/assets/dynamic2.png'),
  41. dynamic3: require('@/assets/dynamic3.png'),
  42. dynamic4: require('@/assets/dynamic4.png'),
  43. detail: {
  44. num1: 1,
  45. num2: 2,
  46. num3: 3,
  47. num4: 4,
  48. },
  49. }),
  50. created() {},
  51. computed: {},
  52. methods: {},
  53. };
  54. </script>
  55. <style lang="less" scoped>
  56. .userTwo {
  57. float: left;
  58. width: 100%;
  59. }
  60. .userTwo .left {
  61. width: 50%;
  62. }
  63. .userTwo .left .one {
  64. float: left;
  65. width: 212px;
  66. height: 212px;
  67. overflow: hidden;
  68. border-radius: 10px;
  69. box-shadow: 0 0 5px #ccc;
  70. text-align: center;
  71. padding: 20px 0;
  72. position: relative;
  73. margin: 40px 0 0 15px;
  74. }
  75. .userTwo .left .one p:nth-child(2) {
  76. position: absolute;
  77. top: 80px;
  78. font-size: 14px;
  79. color: #346da4;
  80. font-weight: bold;
  81. left: 60px;
  82. text-align: center;
  83. width: 86px;
  84. }
  85. .userTwo .left .one p:nth-child(3) {
  86. position: absolute;
  87. top: 110px;
  88. left: 60px;
  89. font-size: 14px;
  90. color: #346da4;
  91. font-weight: bold;
  92. text-align: center;
  93. width: 86px;
  94. }
  95. .userTwo .right {
  96. width: 50%;
  97. margin: 110px 0 0 0;
  98. }
  99. </style>