修改我的收藏的取消收藏后数据少问题、修改预览视频的预加载、修改咨询小助手二维码的显示方式

This commit is contained in:
A1300399510
2023-08-03 12:06:07 +08:00
parent 0d34bc674e
commit a61953c887
3 changed files with 36 additions and 9 deletions

View File

@@ -9,7 +9,8 @@
<el-carousel-item v-for="(item, i) in list" :key="i">
<div class="dis-f jus-x al-item" v-if="item">
<div class="img-box dis-f jus-x" v-if="item['type'] != 'attachment'">
<video :autoplay="false" controls :src="item.url || item['videourl']" style="width:800px;"></video>
<video :autoplay="false" controls :src="item.url || item['videourl']" :preload="imageTab == i ? 'metadata' : 'none'"
style="width:800px;"></video>
</div>
<div class="img-box dis-f jus-x" v-else>
<!-- <img v-lazy="item && item.url || item['imageurl'] || item['image']" class="img" alt=""> -->
@@ -81,7 +82,7 @@ let imageTab = ref(0)
let prev = () => carousel.value.prev()
// 轮播图滚动后事件
const carouselChange = value =>{ imageTab.value = value;console.log(value)}
const carouselChange = value => { imageTab.value = value; console.log(value) }
//下一张
let next = () => carousel.value.next()
@@ -174,8 +175,9 @@ img {
.select-box {
border: 1px solid #50e3c2 !important;
}
.carousel-w{
min-width:800px;
.carousel-w {
min-width: 800px;
}
.watch-box {