|
|
@ -3,7 +3,7 @@ |
|
|
|
<video v-if="srcList[0].endsWith('.mp4')" width="100%" height="100%" controls loop autoplay muted :poster="poster"> |
|
|
|
<source :src="srcList[0]" type="video/mp4"> |
|
|
|
</video> |
|
|
|
<el-carousel v-if="!srcList[0].endsWith('.mp4')" interval="6000"> |
|
|
|
<el-carousel v-if="!srcList[0].endsWith('.mp4')" :interval="6000"> |
|
|
|
<el-carousel-item v-for="src in srcList" :key="src"> |
|
|
|
<img width="100%" height="100%" :src="src"> |
|
|
|
</el-carousel-item> |
|
|
@ -38,7 +38,7 @@ export default { |
|
|
|
FetchShowFileList(params).then(res => { |
|
|
|
if (res.errCode === 0) { |
|
|
|
// this.src = res.data[0].filePath.replace('D://', 'http://172.16.0.23:8888/') |
|
|
|
this.srcList = res.data.map(x => x.filePath.replace('D://', 'http://172.16.0.23:8888/')) |
|
|
|
this.srcList = res.data.map(x => x.filePath.replace('D://', 'http://172.22.0.23:8888/')) |
|
|
|
// this.srcList = res.data.map(x => x.filePath.replace('D://uploadFile', 'http://localhost:8080/static/')) |
|
|
|
// console.log(22222, this.srcList) |
|
|
|
// this.src = 'D://uploadFile/11503339-b829-4357-8379-d2b49106431f.mp4'.replace('D://', 'http://127.0.0.1:8888/') |
|
|
|