contrast.js 742 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // pages/home/components/contrast/contrast.js
  2. const app = getApp()
  3. Component({
  4. /**
  5. * 组件的属性列表
  6. */
  7. properties: {
  8. tablelist:{
  9. type: Array,
  10. value: [],
  11. }
  12. },
  13. /**
  14. * 组件的初始数据
  15. */
  16. data: {
  17. error: "",
  18. listAll: [
  19. {
  20. name: "总浏览量",
  21. type: "total_pv",
  22. },
  23. {
  24. name: "原创量",
  25. type: "total_ori",
  26. },
  27. {
  28. name: "总点赞数",
  29. type: "total_digg",
  30. },
  31. {
  32. name: "总评论数",
  33. type: "total_comment",
  34. },
  35. {
  36. name: "总转发量",
  37. type: "total_forward",
  38. },
  39. ],
  40. },
  41. ready() {
  42. },
  43. /**
  44. * 组件的方法列表
  45. */
  46. methods: {
  47. }
  48. })