猫妈狗爸伴宠师小程序前端代码
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.

77 lines
1.5 KiB

  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. } from "vue"
  31. import { useStore } from 'vuex'
  32. const store = useStore()
  33. const configList = computed(() => {
  34. return store.getters.configList
  35. })
  36. const nounthName = ref('当月数据')
  37. const totalName = ref('累计数据')
  38. const nounthData = reactive([{
  39. title: '当月注册用户',
  40. num: "0个"
  41. },
  42. {
  43. title: '当月下单用户',
  44. num: "0个"
  45. },
  46. {
  47. title: '当月有效用户',
  48. num: "0个"
  49. },
  50. ])
  51. const totalData = reactive([{
  52. title: '累计注册用户',
  53. num: "0个"
  54. },
  55. {
  56. title: '累计下单用户',
  57. num: "0个"
  58. },
  59. {
  60. title: '累计有效用户',
  61. num: "0个",
  62. color:'red'
  63. },
  64. ])
  65. </script>
  66. <style scoped lang="scss">
  67. @import "../index.scss";
  68. </style>