This commit is contained in:
2025-06-30 20:09:44 +08:00
parent 07889701b3
commit da14663be7

View File

@@ -56,9 +56,16 @@ defineExpose({
<template v-if="list.length>1"> <template v-if="list.length>1">
<swiper class="!size-full" :current="cur" @change="({detail:{current}})=>cur=current"> <swiper class="!size-full" :current="cur" @change="({detail:{current}})=>cur=current">
<swiper-item v-for="src in list"> <swiper-item v-for="src in list">
<template v-if="!src.endsWith('.mp4')">
<image class="!size-full" :src="src" mode="aspectFit"></image> <image class="!size-full" :src="src" mode="aspectFit"></image>
<image v-if="sy" class="!size-full !absolute left-0 top-0" :src="SY_ICON" <image v-if="sy" class="!size-full !absolute left-0 top-0" :src="SY_ICON"
mode="aspectFit"></image> mode="aspectFit"></image>
</template>
<template v-else>
<view class="!size-full !flex items-center">
<video class="!w-full" :src="src"></video>
</view>
</template>
</swiper-item> </swiper-item>
</swiper> </swiper>