|
@@ -0,0 +1,47 @@
|
|
|
+<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(false);
|
|
|
+
|
|
|
+const isShow = ref(false);
|
|
|
+provide('isShow', isShow);
|
|
|
+
|
|
|
+
|
|
|
+onBeforeMount(() => {
|
|
|
+ initData();
|
|
|
+});
|
|
|
+
|
|
|
+async function initData() {
|
|
|
+ const res = await useResponse({}, api.getCardData, loading);
|
|
|
+ cardData.value = res.data;
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+<template>
|
|
|
+ <div class="flex flex-col px-5">
|
|
|
+ <el-divider content-position="left">
|
|
|
+ <div class="font-bold text-xl">店铺信息概览</div>
|
|
|
+ </el-divider>
|
|
|
+ <!-- 添加 flex-grow 类,确保 el-card 占据剩余空间 -->
|
|
|
+ <el-card v-loading="loading" class="flex-grow" shadow="never">
|
|
|
+ <InfoCard />
|
|
|
+ </el-card>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<style scoped>
|
|
|
+:deep(.el-divider__text.is-left) {
|
|
|
+ background-color: #F5F5F5;
|
|
|
+}
|
|
|
+</style>
|