|
|
@ -1,44 +1,46 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div class="picture-container"> |
|
|
|
|
|
|
|
|
<div v-if="acList.length" class="picture-container"> |
|
|
<div> |
|
|
<div> |
|
|
<swiper |
|
|
<swiper |
|
|
v-if="acList.length" |
|
|
|
|
|
|
|
|
v-if="acList.length && acList[0].content.file_code.length" |
|
|
:modules="[Autoplay]" |
|
|
:modules="[Autoplay]" |
|
|
:observer="true" |
|
|
:observer="true" |
|
|
:loop="acList.length > 1" |
|
|
|
|
|
:autoplay="acList.length !== 1 ? { delay: 5000, disableOnInteraction: false } : false" |
|
|
|
|
|
|
|
|
:loop="acList[0].content.file_code.length > 1" |
|
|
|
|
|
:autoplay="acList[0].content.file_code.length !== 1 ? { delay: 5000, disableOnInteraction: false } : false" |
|
|
class="myswiper" |
|
|
class="myswiper" |
|
|
> |
|
|
> |
|
|
<swiper-slide v-for="item in acList" :key="item.activityId"> |
|
|
|
|
|
<img :src="item.fileUrl" /> |
|
|
|
|
|
|
|
|
<swiper-slide v-for="item in acList[0].content.file_code" :key="item"> |
|
|
|
|
|
<img :src="item" /> |
|
|
</swiper-slide> |
|
|
</swiper-slide> |
|
|
</swiper> |
|
|
</swiper> |
|
|
<img v-else class="empty" src="@/assets/images/empty_big.svg" alt="" /> |
|
|
<img v-else class="empty" src="@/assets/images/empty_big.svg" alt="" /> |
|
|
</div> |
|
|
</div> |
|
|
<div class="info"> |
|
|
<div class="info"> |
|
|
<div class="name"></div> |
|
|
|
|
|
<ScrollView :list="[]" class="myscroll"> |
|
|
|
|
|
<div class="intro"></div> |
|
|
|
|
|
|
|
|
<div class="name">{{ switchLanguage(acList[0].content, 'name') }}</div> |
|
|
|
|
|
<ScrollView :list="switchLanguage(acList[0].content, 'content')" class="myscroll" scrollbar> |
|
|
|
|
|
<div class="intro">{{ switchLanguage(acList[0].content, 'content') }}</div> |
|
|
</ScrollView> |
|
|
</ScrollView> |
|
|
<div v-if="qrList && qrList.length" class="qr-container"> |
|
|
|
|
|
|
|
|
<div v-if="qrList.length && qrList[0].content.name" class="qr-container"> |
|
|
<div class="item"> |
|
|
<div class="item"> |
|
|
<img src="" alt="" /> |
|
|
|
|
|
<div class="name"></div> |
|
|
|
|
|
|
|
|
<img :src="qrList[0].content.file_code[0]" alt="" /> |
|
|
|
|
|
<div class="name">{{ switchLanguage(qrList[0].content, 'name') }}</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<img v-else class="empty_big" src="@/assets/images/empty_big.svg" alt="" /> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
<script setup lang="ts"> |
|
|
|
|
|
import { useSwitchLanguage } from '@/composables/useSwitchLanguage' |
|
|
import { Swiper, SwiperSlide } from 'swiper/vue' |
|
|
import { Swiper, SwiperSlide } from 'swiper/vue' |
|
|
import { Autoplay } from 'swiper' |
|
|
import { Autoplay } from 'swiper' |
|
|
import 'swiper/css' |
|
|
import 'swiper/css' |
|
|
import ScrollView from '@/base/ScrollView/ScrollView.vue' |
|
|
import ScrollView from '@/base/ScrollView/ScrollView.vue' |
|
|
|
|
|
|
|
|
|
|
|
const { switchLanguage } = useSwitchLanguage() |
|
|
interface Props { |
|
|
interface Props { |
|
|
acList: Activity[] |
|
|
|
|
|
qrList: Activity[] |
|
|
|
|
|
|
|
|
acList: PicText[] |
|
|
|
|
|
qrList: Qr[] |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
defineProps<Props>() |
|
|
defineProps<Props>() |
|
|
@ -58,7 +60,7 @@ defineProps<Props>() |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
.picture-container { |
|
|
.picture-container { |
|
|
@include fl(); |
|
|
|
|
|
|
|
|
@include fl(flex-start, flex-start); |
|
|
|
|
|
|
|
|
position: fixed; |
|
|
position: fixed; |
|
|
top: 268px; |
|
|
top: 268px; |
|
|
@ -95,6 +97,7 @@ defineProps<Props>() |
|
|
line-height: 32px; |
|
|
line-height: 32px; |
|
|
} |
|
|
} |
|
|
.myscroll { |
|
|
.myscroll { |
|
|
|
|
|
position: relative; |
|
|
overflow: hidden; |
|
|
overflow: hidden; |
|
|
width: 708px; |
|
|
width: 708px; |
|
|
height: 308px; |
|
|
height: 308px; |
|
|
@ -133,4 +136,11 @@ defineProps<Props>() |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
.empty_big { |
|
|
|
|
|
position: fixed; |
|
|
|
|
|
top: 268px; |
|
|
|
|
|
left: 56px; |
|
|
|
|
|
width: 1808px; |
|
|
|
|
|
height: 576px; |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |
|
|
|