master
fanluyan 2 years ago
parent 2fdd507d3c
commit 8b2ce947ca

@ -24,6 +24,8 @@
height="100%" height="100%"
:src="bigPicPath" :src="bigPicPath"
controls="controls" controls="controls"
:poster="videopath"
autoplay
></video> ></video>
</div> </div>
<div class="bigimg" v-else> <div class="bigimg" v-else>
@ -82,8 +84,11 @@
class="smallnoPic" class="smallnoPic"
v-else-if="item.path.indexOf('videos') !== -1" v-else-if="item.path.indexOf('videos') !== -1"
> >
<!-- <img src="../../assets/img/img.jpg" v-if="item.thumb == ''" v-else/> --> <img
<img :src="item.thumb" /> src="../../assets/img/loading.jpg"
v-if="item.thumb.indexOf('jpg') == -1"
/>
<img :src="item.thumb" v-else />
<p class="videoicon"><i class="el-icon-video-play"></i></p> <p class="videoicon"><i class="el-icon-video-play"></i></p>
<p class="timeInfo"> <p class="timeInfo">
<el-tooltip <el-tooltip
@ -154,6 +159,7 @@ export default {
}, },
isshowArrow: true, // isshowArrow: true, //
bigPicPath: "", // bigPicPath: "", //
videopath: "",
smallPicPath: "", // smallPicPath: "", //
bigNum: 0, // bigNum: 0, //
fiveList: [], //list fiveList: [], //list
@ -185,6 +191,7 @@ export default {
this.page * this.pagesize this.page * this.pagesize
); );
this.bigPicPath = this.fiveList[this.activeSmall].path; this.bigPicPath = this.fiveList[this.activeSmall].path;
this.videopath = this.fiveList[this.activeSmall].thumb;
}, },
// //
leftClick() { leftClick() {
@ -361,12 +368,12 @@ export default {
} }
.videoicon { .videoicon {
position: absolute; position: absolute;
top: 45%; top: 73%;
left: 50%; left: 10%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
i { i {
font-size: 38px; font-size: 28px;
color: #409eff; color: #fff;
} }
} }
.borderActive { .borderActive {

@ -1,7 +1,7 @@
<template> <template>
<el-dialog <el-dialog
class="setTimeDialog" class="setTimeDialog"
title="时间表设置" title="拍照时间表设置"
:visible.sync="isShow" :visible.sync="isShow"
:close-on-click-modal="false" :close-on-click-modal="false"
@close="handleclose" @close="handleclose"

@ -565,11 +565,10 @@ export default {
this.newPicData = res.data; this.newPicData = res.data;
console.log(this.newPicData); console.log(this.newPicData);
console.log(this.newTermId); console.log(this.newTermId);
this.timer = window.setInterval(() => { this.timer = window.setInterval(() => {
this.newPicApi(); this.newPicApi();
this.i++; this.i++;
}, 5000); }, 10000);
}) })
.catch((err) => { .catch((err) => {
console.log(err); // console.log(err); //

Loading…
Cancel
Save