猫妈狗爸伴宠师小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

92 lines
1.9 KiB

3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
  1. <template>
  2. <view>
  3. <view class="my-data">
  4. <view class="my-data-mounth">
  5. <cardTitle :cardTitle="nounthName"></cardTitle>
  6. <cardData :cardData="nounthData"></cardData>
  7. </view>
  8. </view>
  9. <view class="my-data">
  10. <view class="my-data-total">
  11. <cardTitle :cardTitle="totalName"></cardTitle>
  12. <cardData :cardData="totalData"></cardData>
  13. </view>
  14. </view>
  15. <view class="bottom box-size child" :style="{ borderRadius: '16rpx' }" >
  16. <up-parse :content="configList.cumulative_data_statement.paramValueArea" containerStyle="{
  17. color: '#A55822',
  18. fontSize: '22rpx',
  19. lineHeight: '29rpx',
  20. }"></up-parse>
  21. </view>
  22. </view>
  23. </template>
  24. <script setup>
  25. import cardTitle from '../../components/cardTitle.vue'
  26. import cardData from '../../components/cardData.vue'
  27. import {
  28. ref,
  29. reactive,
  30. computed,
  31. } from "vue"
  32. import { useStore } from 'vuex'
  33. const store = useStore()
  34. const props = defineProps({
  35. dataInfo : {
  36. default : () => {
  37. return {}
  38. }
  39. }
  40. })
  41. const configList = computed(() => {
  42. return store.getters.configList
  43. })
  44. const nounthData = computed(() => {
  45. return [{
  46. title: '当月注册用户',
  47. num: props.dataInfo.register_users + "个",
  48. },
  49. {
  50. title: '当月下单用户',
  51. num: props.dataInfo.register_users + "个",
  52. },
  53. {
  54. title: '当月有效用户',
  55. num: props.dataInfo.register_users + "个",
  56. },
  57. ]
  58. })
  59. const totalData = computed(() => {
  60. return [{
  61. title: '累计注册用户',
  62. num: props.dataInfo.register_users + "个",
  63. },
  64. {
  65. title: '累计下单用户',
  66. num: props.dataInfo.register_users + "个",
  67. },
  68. {
  69. title: '累计有效用户',
  70. num: props.dataInfo.register_users + "个",
  71. color:'red'
  72. },
  73. ]
  74. })
  75. const nounthName = ref('当月数据')
  76. const totalName = ref('累计数据')
  77. </script>
  78. <style scoped lang="scss">
  79. @import "../index.scss";
  80. </style>