Fix:2877 【寻趣味】古镇详情页--项目--店铺封面为视频时,项目列表店铺未显示封面

This commit is contained in:
modendeveloper
2024-12-18 22:28:47 +08:00
parent 0b0abdfad8
commit b687d3737a
+15 -1
View File
@@ -33,12 +33,26 @@
<view v-if="items.length > 0" class="v12-d-grid-columns-2 v12-gap-10">
<view v-for="(item, index) in items" :key="index" class="store-card" @click="toStore(item.hotelId)">
<view class="cover-box">
<image class="town-cover" :src="item.cover" mode="aspectFit|aspectFill|widthFix"></image>
<image
v-if="item.coverType === 1"
class="town-cover"
:src="item.cover"
mode="aspectFit|aspectFill|widthFix"></image>
<video
v-if="item.coverType === 2"
play-btn-position="center"
:show-fullscreen-btn="false"
class="town-cover"
:src="item.cover"
controls
autoplay
:poster="item.cover + '?vframe/jpg/offset/1'"></video>
<view class="name-box">
<image
:src="webUrl + '/home/icon-location.png'"
class="icon"
/>
<view class="one-t">
{{ item.cityName }}
</view>