index.vue 760 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <script lang="ts" setup>
  2. /**
  3. * @Name: index.vue
  4. * @Description: 店铺信息页面
  5. * @Author: Cheney
  6. */
  7. import InfoCard from '/@/views/shop-information/components/InfoCard.vue';
  8. import * as api from '/@/views/shop-information/api';
  9. import { useResponse } from '/@/utils/useResponse';
  10. const cardData = ref();
  11. provide('cardData', cardData);
  12. const loading = ref();
  13. onBeforeMount(() => {
  14. initData();
  15. });
  16. async function initData() {
  17. const res = await useResponse({}, api.getCardData, loading);
  18. cardData.value = res.data;
  19. }
  20. </script>
  21. <template>
  22. <div class="mb-2.5">
  23. <el-card v-loading="loading" class="m-2 h-full" shadow="never" style="border: none;">
  24. <InfoCard></InfoCard>
  25. </el-card>
  26. </div>
  27. </template>
  28. <style scoped>
  29. </style>