Fix:4598 【旅居商城小程序】供应链小程序新增视频资讯,前端视频未显示
(cherry picked from commit 2e1fa524fa)
This commit is contained in:
@@ -122,15 +122,15 @@
|
||||
<rich-text :nodes="item.content"></rich-text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="info-item-body" v-if="item.images && item.images.length > 0">
|
||||
<view class="info-item-body" v-if="item.images && item.images.length > 0 || item.video">
|
||||
<view v-if="item.type === 2" class="video">
|
||||
<view @click="infoItemViewClick(item, index)" v-if="activeVideo !== 'video-item' + index" class="play-icon">
|
||||
<u-icon name="play-right-fill" color="#fff" size="48"></u-icon>
|
||||
</view>
|
||||
<image
|
||||
v-if="activeVideo !== 'video-item' + index"
|
||||
:src="item.images[0] + '?vframe/jpg/offset/1'"
|
||||
:poster="item.images[0] + '?vframe/jpg/offset/1'"
|
||||
:src="item.images[0] ? item.images[0] + '?vframe/jpg/offset/1' : item.video + '?vframe/jpg/offset/1'"
|
||||
:poster="item.images[0] ? item.images[0] + '?vframe/jpg/offset/1' : item.video + '?vframe/jpg/offset/1'"
|
||||
controls
|
||||
play-btn-position="center"
|
||||
:show-fullscreen-btn="false"
|
||||
|
||||
Reference in New Issue
Block a user