people.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <template>
  2. <div class="p99">
  3. <!-- <span class="title">多系统使用次数{{moreSystem}}次</span> -->
  4. <!-- <span class="title">PC端{{pcSystem}}次</span>
  5. <span class="title">小程序端{{xiaochengxuSystem}}次</span>
  6. <span class="title">微信端{{weixinSystem}}次</span> -->
  7. </div>
  8. </template>
  9. <script>
  10. import { total } from '../api'
  11. export default {
  12. name: "chart",
  13. props: {
  14. dataArr: {
  15. type: Array,
  16. default: () => {
  17. return [];
  18. }
  19. }
  20. },
  21. data() {
  22. return {
  23. moreSystem: 1,
  24. pcSystem: 1,
  25. xiaochengxuSystem: 1,
  26. weixinSystem: 1,
  27. };
  28. },
  29. mounted() {
  30. // this.timer = setInterval(() => {
  31. // this.setNowTimes();
  32. // }, 1000);
  33. this.total();
  34. },
  35. methods: {
  36. async total() {
  37. console.log("pppppppppppppppp");
  38. const result = await total();
  39. this.pcSystem = result[0]['PC端']
  40. this.xiaochengxuSystem = result[0]['小程序端']
  41. this.weixinSystem = result[0]['微信端']
  42. },
  43. },
  44. computed: {}
  45. };
  46. </script>
  47. <style scoped>
  48. .p99 {
  49. top: 1.4%;
  50. right:2.5%;
  51. position: absolute;
  52. color: #fff;
  53. font-size: 16px;
  54. font-weight: 800;
  55. font-family: STHeitiSC;
  56. font-weight: 300;
  57. color: rgba(10, 182, 255, 1);
  58. }
  59. .title {
  60. margin-right: 10px;
  61. }
  62. </style>