<script lang="ts" setup>
/**
 * @Name: index.vue
 * @Description: 店铺信息页面
 * @Author: Cheney
 */

import InfoCard from '/@/views/shop-information/components/InfoCard.vue';
import * as api from '/@/views/shop-information/api';
import { useResponse } from '/@/utils/useResponse';


const cardData = ref();
provide('cardData', cardData);

const loading = ref();

onBeforeMount(() => {
  initData();
});

async function initData() {
  const res = await useResponse({}, api.getCardData, loading);
  cardData.value = res.data;
}
</script>

<template>
  <div class="mb-2.5">
    <el-card v-loading="loading" class="m-2 h-full" shadow="never" style="border: none;">
      <InfoCard></InfoCard>
    </el-card>
  </div>

</template>

<style scoped>

</style>
