master
fanluyan 2 years ago
parent 2cf750b663
commit 576c19745c

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 MiB

After

Width:  |  Height:  |  Size: 527 KiB

@ -135,7 +135,7 @@ export default {
}, },
watch: { watch: {
activeIndex(newValue) { activeIndex(newValue) {
if (newValur != this.$route.path) { if (newValue != this.$route.path) {
this.activeIndex = this.$route.path; this.activeIndex = this.$route.path;
} }
}, },

@ -12,7 +12,12 @@
:key="item.id" :key="item.id"
> >
<viewer class="bigimg" v-if="item.path.indexOf('nopic') == -1"> <viewer class="bigimg" v-if="item.path.indexOf('nopic') == -1">
<img :src="item.path + '!1330x670'" alt="" /> <!-- <img :src="item.path + '!1330x670'" alt="" /> -->
<img
src="../../assets/img/nopic.jpg"
:src="item.path + '!1330x670'"
class="swiper-lazy"
/>
</viewer> </viewer>
<div class="bigimg" v-else> <div class="bigimg" v-else>
<img :src="item.path" alt="" /> <img :src="item.path" alt="" />
@ -76,7 +81,13 @@ export default {
spaceBetween: 10, spaceBetween: 10,
//loop: true, //loop: true,
freeMode: true, freeMode: true,
// loopedSlides: 4, loopedSlides: 4,
lazy: {
loadPrevNext: true,
loadPrevNextAmount: 1,
loadOnTransitionStart: true,
},
lazyLoading: true, //
navigation: { navigation: {
nextEl: ".swiper-button-next", nextEl: ".swiper-button-next",
prevEl: ".swiper-button-prev", prevEl: ".swiper-button-prev",
@ -87,9 +98,10 @@ export default {
centeredSlides: true, centeredSlides: true,
slidesPerView: "auto", slidesPerView: "auto",
touchRatio: 0.2, touchRatio: 0.2,
lazyLoading: true, //
slideToClickedSlide: true, slideToClickedSlide: true,
//loop: true, //loop: true,
//loopedSlides: 4, loopedSlides: 4,
}, },
}; };
}, },
@ -158,6 +170,7 @@ export default {
img { img {
width: 260px; width: 260px;
height: 160px; height: 160px;
object-fit: fill;
} }
} }

@ -35,7 +35,8 @@
<div class="imageCenter" v-loading="loading"> <div class="imageCenter" v-loading="loading">
<div class="imgList" v-for="(item, index) in picList" :key="index"> <div class="imgList" v-for="(item, index) in picList" :key="index">
<viewer class="bigpic" v-if="!item.path.includes('mp4')"> <viewer class="bigpic" v-if="!item.path.includes('mp4')">
<img :src="item.path + '!1280x720'" /> <!-- <img :src="item.path + '!1280x720'" /> -->
<el-image :src="item.path + '!1280x720'" lazy></el-image>
</viewer> </viewer>
<video width="100%" height="90%" controls autoplay v-else> <video width="100%" height="90%" controls autoplay v-else>
<source :src="item.path" type="video/mp4" /> <source :src="item.path" type="video/mp4" />
@ -306,7 +307,7 @@ export default {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
img { .el-image {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }

@ -30,13 +30,15 @@
</el-tree> </el-tree>
</div> </div>
<!-- 带参数的中心内容右侧参数区 --> <!-- 带参数的中心内容右侧参数区 -->
<div class="picSetBox" v-loading="loading"> <div class="picSetBox">
<div class="swiperBox"> <div class="swiperBox" v-loading="loading">
<carouselChart <carouselChart
:terminalPhoto="terminalPhoto" :terminalPhoto="terminalPhoto"
v-if="terminalPhoto" v-if="terminalPhoto"
></carouselChart> ></carouselChart>
<div class="totalPic" v-if="totalPic">{{ totalPic }}</div> <div class="totalPic" v-if="totalPic !== 0">
图片总数{{ totalPic }}
</div>
</div> </div>
<div class="parameterArea"> <div class="parameterArea">
<div class="paramsDate"> <div class="paramsDate">
@ -296,6 +298,7 @@ export default {
path: this.nopicPath, path: this.nopicPath,
}, },
]; ];
this.totalPic = 0;
} else { } else {
this.terminalPhoto = res.data.list; this.terminalPhoto = res.data.list;
this.totalPic = res.data.num; this.totalPic = res.data.num;

Loading…
Cancel
Save