百色农校完成
This commit is contained in:
@@ -3,7 +3,8 @@
|
||||
<el-carousel id="flash1" :height="flashHeight + 'px'" :interval="2000">
|
||||
<el-carousel-item v-for="(item,index) in list" :key="index">
|
||||
<div class="item relative flex justify-center items-center">
|
||||
<el-image :src="`${FILE_SERVER}${item.image}`" fit="fill" class="w-full" :style="`height: 300px;`" />
|
||||
{{item.version }}
|
||||
<el-image :src="`${item.version == 1 ? config.FILE_SERVER : ''}${item.image}`" fit="fill" class="w-full" :style="`height: 300px;`" />
|
||||
<!-- fit: '' | 'fill' | 'contain' | 'cover' | 'none' | 'scale-down'-->
|
||||
</div>
|
||||
</el-carousel-item>
|
||||
@@ -27,6 +28,7 @@ import {getCmsAd, pageCmsAd} from "~/api/cms/cmsAd";
|
||||
import {pageCmsArticle} from "~/api/cms/cmsArticle";
|
||||
import type {CmsArticle} from "~/api/cms/cmsArticle/model";
|
||||
import {FILE_SERVER} from "~/config";
|
||||
import {useConfigInfo} from "~/composables/configState";
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
@@ -46,6 +48,7 @@ const emit = defineEmits<{
|
||||
(e: 'done'): void;
|
||||
}>();
|
||||
|
||||
const config = useConfigInfo()
|
||||
const isMobile = useIsMobile();
|
||||
const list = ref<CmsArticle[]>([]);
|
||||
const flashHeight = ref<number>(372)
|
||||
|
||||
Reference in New Issue
Block a user