diff --git a/admin/src/views/home/components/TemplateThumb.vue b/admin/src/views/home/components/TemplateThumb.vue
new file mode 100644
index 0000000..4aae832
--- /dev/null
+++ b/admin/src/views/home/components/TemplateThumb.vue
@@ -0,0 +1,376 @@
+
+
+
+
+
+
+
+ 甘肃省房地产价格评估行业协会
+
+
+ {{ sloganText }}
+ {{ valueText }}
+
+
+
+
+
+
+ {{ heroCaption }}
+
+
+
+
+
+
+
+
+ 甘肃省房地产价格评估行业协会
+
+
+ {{ sloganText }}
+ {{ valueText }}
+
+
+
+
+
+
+ {{ heroCaption }}
+
+
+
+
+
+
+
+
+
diff --git a/admin/src/views/home/template/index.vue b/admin/src/views/home/template/index.vue
index 31135a3..bb5b4a0 100644
--- a/admin/src/views/home/template/index.vue
+++ b/admin/src/views/home/template/index.vue
@@ -24,7 +24,14 @@
:class="{ 'is-active': activeTemplate === item.name }"
@click="choose(item.name)"
>
-
+
+
+
+
import { saveAdminHome } from '@/api/home'
+ import TemplateThumb from '../components/TemplateThumb.vue'
import { useHomeEditor } from '../shared'
defineOptions({ name: 'HomeTemplate' })
@@ -100,6 +108,15 @@
box-shadow 0.2s;
}
+ .template-card__preview {
+ display: flex;
+ justify-content: center;
+ }
+
+ .template-card__preview :deep(.thumb) {
+ width: min(100%, 280px);
+ }
+
.template-card.is-active {
border-color: var(--el-color-primary);
box-shadow: 0 0 0 1px var(--el-color-primary);