userTwo.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <template>
  2. <div id="userTwo">
  3. <el-row v-loading="loading" element-loading-text="拼命加载中" element-loading-spinner="el-icon-loading">
  4. <el-col :span="24" class="userTwo">
  5. <el-col :psan="24" class="userTwoTop">
  6. 统计数据
  7. </el-col>
  8. <el-col :span="24" class="left">
  9. <el-col class="list" :span="5" v-for="(item, index) in list" :key="index">
  10. <el-col :span="24" class="one">
  11. <p>{{ item.name }}</p>
  12. <p>{{ item.value }}</p>
  13. </el-col>
  14. </el-col>
  15. <!-- <el-col class="box" :span="5">
  16. <el-col :span="24" class="two one">
  17. <p>个人注册数量</p>
  18. <p>{{ detail.num2 }}</p>
  19. </el-col>
  20. </el-col>
  21. <el-col class="box" :span="5">
  22. <el-col :span="24" class="three one">
  23. <p>专家注册数量</p>
  24. <p>{{ detail.num3 }}</p>
  25. </el-col>
  26. </el-col>
  27. <el-col class="box" :span="5">
  28. <el-col :span="24" class="five one">
  29. <p>信息发布数量</p>
  30. <p>{{ detail.num4 }}</p>
  31. </el-col>
  32. </el-col>
  33. <el-col class="box" :span="5">
  34. <el-col :span="24" class="five one">
  35. <p>交流互动</p>
  36. <p>{{ detail.num5 }}</p>
  37. </el-col>
  38. </el-col>
  39. <el-col class="box" :span="5">
  40. <el-col :span="24" class="three one">
  41. <p>正在洽谈</p>
  42. <p>{{ transaction1 }}</p>
  43. </el-col>
  44. </el-col>
  45. <el-col class="box" :span="5">
  46. <el-col :span="24" class="two one">
  47. <p>达成意向</p>
  48. <p>{{ transaction2 }}</p>
  49. </el-col>
  50. </el-col>
  51. <el-col class="box" :span="5">
  52. <el-col :span="24" class="four one">
  53. <p>对接完成</p>
  54. <p>{{ transaction3 }}</p>
  55. </el-col>
  56. </el-col> -->
  57. </el-col>
  58. </el-col>
  59. </el-row>
  60. </div>
  61. </template>
  62. <script>
  63. import { mapState, mapActions, createNamespacedHelpers } from 'vuex';
  64. const { mapActions: count } = createNamespacedHelpers('count');
  65. export default {
  66. name: 'userTwo',
  67. props: {},
  68. components: {},
  69. data: () => ({
  70. list: [],
  71. loading: true,
  72. }),
  73. created() {
  74. this.searchInfo();
  75. },
  76. methods: {
  77. ...count(['circleQuery']),
  78. async searchInfo({} = {}) {
  79. let res = await this.circleQuery();
  80. if (this.$checkRes(res)) {
  81. this.$set(this, `list`, res.data);
  82. }
  83. this.loading = false;
  84. },
  85. },
  86. computed: {
  87. ...mapState(['user']),
  88. pageTitle() {
  89. return `${this.$route.meta.title}`;
  90. },
  91. },
  92. metaInfo() {
  93. return { title: this.$route.meta.title };
  94. },
  95. };
  96. </script>
  97. <style lang="less" scoped>
  98. .userTwo {
  99. float: left;
  100. width: 100%;
  101. }
  102. .userTwo .userTwoTop {
  103. padding: 20px 0 10px 0;
  104. font-size: 18px;
  105. font-weight: bold;
  106. text-align: center;
  107. }
  108. .left {
  109. float: left;
  110. }
  111. .right {
  112. float: right;
  113. }
  114. .list {
  115. overflow: hidden;
  116. border-radius: 10px;
  117. box-shadow: 0 0 5px #ccc;
  118. padding: 10px;
  119. margin: 30px 5px 30px 14px;
  120. .one {
  121. height: 110px;
  122. p {
  123. font-size: 22px;
  124. color: #346da4;
  125. font-weight: bold;
  126. text-align: center;
  127. }
  128. p:first-child {
  129. padding: 40px 0 0 0;
  130. font-size: 12px;
  131. }
  132. }
  133. }
  134. .list:nth-child(1) .one {
  135. background: url('~@/assets/dynamic4.png') no-repeat;
  136. background-size: 100% 100%;
  137. }
  138. .list:nth-child(2) .one {
  139. background: url('~@/assets/dynamic1.png') no-repeat;
  140. background-size: 100% 100%;
  141. }
  142. .list:nth-child(3) .one {
  143. background: url(../../../assets/dynamic3.png) no-repeat;
  144. background-size: 100% 100%;
  145. }
  146. .list:nth-child(4) .one {
  147. background: url(../../../assets/dynamic2.png) no-repeat;
  148. background-size: 100% 100%;
  149. }
  150. .list:nth-child(5) .one {
  151. background: url(../../../assets/dynamic2.png) no-repeat;
  152. background-size: 100% 100%;
  153. }
  154. .list:nth-child(6) .one {
  155. background: url(../../../assets/dynamic3.png) no-repeat;
  156. background-size: 100% 100%;
  157. }
  158. .list:nth-child(7) .one {
  159. background: url(../../../assets/dynamic1.png) no-repeat;
  160. background-size: 100% 100%;
  161. }
  162. .list:nth-child(8) .one {
  163. background: url(../../../assets/dynamic4.png) no-repeat;
  164. background-size: 100% 100%;
  165. }
  166. </style>