|
@@ -0,0 +1,51 @@
|
|
|
+<script lang="ts" setup>
|
|
|
+/**
|
|
|
+ * @Name: InfoCard.vue
|
|
|
+ * @Description:
|
|
|
+ * @Author: Cheney
|
|
|
+ */
|
|
|
+
|
|
|
+const router = useRouter();
|
|
|
+const cardData = inject<Ref>('cardData', ref({}));
|
|
|
+
|
|
|
+function handleJump(item: any) {
|
|
|
+ console.log('router=> ', router);
|
|
|
+
|
|
|
+ router.push({
|
|
|
+ path: '/shop/platform/detail',
|
|
|
+ query: { platform: item.platform } // 将 platform 作为查询参数传递
|
|
|
+ });
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+<template>
|
|
|
+ <el-row :gutter="10">
|
|
|
+ <el-col v-for="(item, index) in cardData" :key="index" :lg="6" :md="6" :sm="8" :xl="4" :xs="12" class="mt-2.5">
|
|
|
+ <el-card>
|
|
|
+ <el-descriptions>
|
|
|
+ <template #title>
|
|
|
+ <el-link :underline="false" style="font-size: 1.25rem; font-weight: 500" type="primary"
|
|
|
+ @click="handleJump(item)">
|
|
|
+ {{ item.platform }}
|
|
|
+ </el-link>
|
|
|
+ </template>
|
|
|
+ <el-descriptions-item label="店铺">
|
|
|
+ <span class="font-bold">
|
|
|
+ {{ item.countShop }}
|
|
|
+ </span>
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="公司">
|
|
|
+ <span class="font-bold">
|
|
|
+
|
|
|
+ {{ item.countCompany }}
|
|
|
+ </span>
|
|
|
+ </el-descriptions-item>
|
|
|
+ </el-descriptions>
|
|
|
+ </el-card>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+</template>
|
|
|
+
|
|
|
+<style scoped>
|
|
|
+
|
|
|
+</style>
|