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

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