Commit 795e25b4 authored by zhengke's avatar zhengke

修改视屏显示

parent 64a8d6c2
...@@ -4,9 +4,7 @@ ...@@ -4,9 +4,7 @@
<div class="TC-ImgTop" :id='"boxs_"+DayNum+"_"+0'> <div class="TC-ImgTop" :id='"boxs_"+DayNum+"_"+0'>
<template v-if="scenicArray[0].NewImaArray[0].FileType&&scenicArray[0].NewImaArray[0].FileType=='.mp4'"> <template v-if="scenicArray[0].NewImaArray[0].FileType&&scenicArray[0].NewImaArray[0].FileType=='.mp4'">
<!-- <img :src='scenicArray[0].NewImaArray[0].Url' :id='"bodys_"+DayNum+"_"+0' /> --> <!-- <img :src='scenicArray[0].NewImaArray[0].Url' :id='"bodys_"+DayNum+"_"+0' /> -->
<video ref="myVideo" autoplay="autoplay" width="100%" height="100%" controls="controls"> <video ref="myVideo" width="100%" height="100%" :src="scenicArray[0].NewImaArray[0].VideoPath" controls="controls">
<source :src="scenicArray[0].NewImaArray[0].VideoPath" type="video/mp4">
<source :src="scenicArray[0].NewImaArray[0].VideoPath" type="video/ogg">
</video> </video>
</template> </template>
<template v-else> <template v-else>
...@@ -62,9 +60,7 @@ ...@@ -62,9 +60,7 @@
<div class="TC-ChildListImg"> <div class="TC-ChildListImg">
<div class="TC-fiveTopImg" :id='"boxs_"+DayNum+"_"+1'> <div class="TC-fiveTopImg" :id='"boxs_"+DayNum+"_"+1'>
<template v-if="scenicArray[1].NewImaArray[0].FileType&&scenicArray[1].NewImaArray[0].FileType=='.mp4'"> <template v-if="scenicArray[1].NewImaArray[0].FileType&&scenicArray[1].NewImaArray[0].FileType=='.mp4'">
<video ref="myVideo" autoplay="autoplay" width="100%" height="100%" controls="controls"> <video ref="myVideo" width="100%" height="100%" :src="scenicArray[1].NewImaArray[0].VideoPath" controls="controls">
<source :src="scenicArray[1].NewImaArray[0].VideoPath" type="video/mp4">
<source :src="scenicArray[1].NewImaArray[0].VideoPath" type="video/ogg">
</video> </video>
<!-- <img :src='scenicArray[1].NewImaArray[0].Url' :id='"bodys_"+DayNum+"_"+0' /> --> <!-- <img :src='scenicArray[1].NewImaArray[0].Url' :id='"bodys_"+DayNum+"_"+0' /> -->
</template> </template>
...@@ -121,9 +117,7 @@ ...@@ -121,9 +117,7 @@
<div class="TC-ChildListImg"> <div class="TC-ChildListImg">
<div class="TC-fiveTopImg" :id='"boxs_"+DayNum+"_"+2'> <div class="TC-fiveTopImg" :id='"boxs_"+DayNum+"_"+2'>
<template v-if="scenicArray[2].NewImaArray[0].FileType&&scenicArray[2].NewImaArray[0].FileType=='.mp4'"> <template v-if="scenicArray[2].NewImaArray[0].FileType&&scenicArray[2].NewImaArray[0].FileType=='.mp4'">
<video ref="myVideo" autoplay="autoplay" width="100%" height="100%" controls="controls"> <video ref="myVideo" width="100%" height="100%" :src="scenicArray[2].NewImaArray[0].VideoPath" controls="controls">
<source :src="scenicArray[2].NewImaArray[0].VideoPath" type="video/mp4">
<source :src="scenicArray[2].NewImaArray[0].VideoPath" type="video/ogg">
</video> </video>
<!-- <img :src='scenicArray[2].NewImaArray[0].Url' :id='"bodys_"+DayNum+"_"+0' /> --> <!-- <img :src='scenicArray[2].NewImaArray[0].Url' :id='"bodys_"+DayNum+"_"+0' /> -->
...@@ -181,9 +175,7 @@ ...@@ -181,9 +175,7 @@
<div class="TC-ChildListImg"> <div class="TC-ChildListImg">
<div class="TC-fiveTopImg" :id='"boxs_"+DayNum+"_"+3'> <div class="TC-fiveTopImg" :id='"boxs_"+DayNum+"_"+3'>
<template v-if="scenicArray[3].NewImaArray[0].FileType&&scenicArray[3].NewImaArray[0].FileType=='.mp4'"> <template v-if="scenicArray[3].NewImaArray[0].FileType&&scenicArray[3].NewImaArray[0].FileType=='.mp4'">
<video ref="myVideo" autoplay="autoplay" width="100%" height="100%" controls="controls"> <video ref="myVideo" width="100%" height="100%" :src="scenicArray[3].NewImaArray[0].VideoPath" controls="controls">
<source :src="scenicArray[3].NewImaArray[0].VideoPath" type="video/mp4">
<source :src="scenicArray[3].NewImaArray[0].VideoPath" type="video/ogg">
</video> </video>
<!-- <img :src='scenicArray[3].NewImaArray[0].Url' :id='"bodys_"+DayNum+"_"+0' /> --> <!-- <img :src='scenicArray[3].NewImaArray[0].Url' :id='"bodys_"+DayNum+"_"+0' /> -->
...@@ -241,9 +233,7 @@ ...@@ -241,9 +233,7 @@
<div class="TC-ChildListImg"> <div class="TC-ChildListImg">
<div class="TC-fiveTopImg" :id='"boxs_"+DayNum+"_"+4'> <div class="TC-fiveTopImg" :id='"boxs_"+DayNum+"_"+4'>
<template v-if="scenicArray[4].NewImaArray[0].FileType&&scenicArray[4].NewImaArray[0].FileType=='.mp4'"> <template v-if="scenicArray[4].NewImaArray[0].FileType&&scenicArray[4].NewImaArray[0].FileType=='.mp4'">
<video ref="myVideo" autoplay="autoplay" width="100%" height="100%" controls="controls"> <video ref="myVideo" width="100%" height="100%" :src="scenicArray[4].NewImaArray[0].VideoPath" controls="controls">
<source :src="scenicArray[4].NewImaArray[0].VideoPath" type="video/mp4">
<source :src="scenicArray[4].NewImaArray[0].VideoPath" type="video/ogg">
</video> </video>
<!-- <img :src='scenicArray[4].NewImaArray[0].Url' :id='"bodys_"+DayNum+"_"+0' /> --> <!-- <img :src='scenicArray[4].NewImaArray[0].Url' :id='"bodys_"+DayNum+"_"+0' /> -->
</template> </template>
......
...@@ -28,9 +28,7 @@ ...@@ -28,9 +28,7 @@
<div class="TC-ScencContent clearfix"> <div class="TC-ScencContent clearfix">
<div class="TC-OneDayImg" :id='"boxs_"+DayNum+"_"+0'> <div class="TC-OneDayImg" :id='"boxs_"+DayNum+"_"+0'>
<template v-if="scenicArray[0].NewImaArray[0].FileType&&scenicArray[0].NewImaArray[0].FileType=='.mp4'"> <template v-if="scenicArray[0].NewImaArray[0].FileType&&scenicArray[0].NewImaArray[0].FileType=='.mp4'">
<video ref="myVideo" autoplay="autoplay" width="100%" height="100%" controls="controls"> <video ref="myVideo" width="100%" height="100%" :src="scenicArray[0].NewImaArray[0].VideoPath" controls="controls">
<source :src="scenicArray[0].NewImaArray[0].VideoPath" type="video/mp4">
<source :src="scenicArray[0].NewImaArray[0].VideoPath" type="video/ogg">
</video> </video>
<!-- <img :src='scenicArray[0].NewImaArray[0].Url' :id='"bodys_"+DayNum+"_"+0' /> --> <!-- <img :src='scenicArray[0].NewImaArray[0].Url' :id='"bodys_"+DayNum+"_"+0' /> -->
</template> </template>
...@@ -87,9 +85,7 @@ ...@@ -87,9 +85,7 @@
<div class="TC-fourChildContent"> <div class="TC-fourChildContent">
<div class="image" :id='"boxs_"+DayNum+"_"+1'> <div class="image" :id='"boxs_"+DayNum+"_"+1'>
<template v-if="scenicArray[1].NewImaArray[0].FileType&&scenicArray[1].NewImaArray[0].FileType=='.mp4'"> <template v-if="scenicArray[1].NewImaArray[0].FileType&&scenicArray[1].NewImaArray[0].FileType=='.mp4'">
<video ref="myVideo" autoplay="autoplay" width="100%" height="100%" controls="controls"> <video ref="myVideo" width="100%" height="100%" :src="scenicArray[1].NewImaArray[0].VideoPath" controls="controls">
<source :src="scenicArray[1].NewImaArray[0].VideoPath" type="video/mp4">
<source :src="scenicArray[1].NewImaArray[0].VideoPath" type="video/ogg">
</video> </video>
<!-- <img :src='scenicArray[1].NewImaArray[0].Url' :id='"bodys_"+DayNum+"_"+0' /> --> <!-- <img :src='scenicArray[1].NewImaArray[0].Url' :id='"bodys_"+DayNum+"_"+0' /> -->
</template> </template>
...@@ -146,9 +142,7 @@ ...@@ -146,9 +142,7 @@
<div class="TC-fourChildContent"> <div class="TC-fourChildContent">
<div class="image" :id='"boxs_"+DayNum+"_"+2'> <div class="image" :id='"boxs_"+DayNum+"_"+2'>
<template v-if="scenicArray[2].NewImaArray[0].FileType&&scenicArray[2].NewImaArray[0].FileType=='.mp4'"> <template v-if="scenicArray[2].NewImaArray[0].FileType&&scenicArray[2].NewImaArray[0].FileType=='.mp4'">
<video ref="myVideo" autoplay="autoplay" width="100%" height="100%" controls="controls"> <video ref="myVideo" width="100%" height="100%" :src="scenicArray[2].NewImaArray[0].VideoPath" controls="controls">
<source :src="scenicArray[2].NewImaArray[0].VideoPath" type="video/mp4">
<source :src="scenicArray[2].NewImaArray[0].VideoPath" type="video/ogg">
</video> </video>
<!-- <img :src='scenicArray[2].NewImaArray[0].Url' :id='"bodys_"+DayNum+"_"+0' /> --> <!-- <img :src='scenicArray[2].NewImaArray[0].Url' :id='"bodys_"+DayNum+"_"+0' /> -->
</template> </template>
...@@ -205,9 +199,7 @@ ...@@ -205,9 +199,7 @@
<div class="TC-fourChildContent"> <div class="TC-fourChildContent">
<div class="image" :id='"boxs_"+DayNum+"_"+3'> <div class="image" :id='"boxs_"+DayNum+"_"+3'>
<template v-if="scenicArray[3].NewImaArray[0].FileType&&scenicArray[3].NewImaArray[0].FileType=='.mp4'"> <template v-if="scenicArray[3].NewImaArray[0].FileType&&scenicArray[3].NewImaArray[0].FileType=='.mp4'">
<video ref="myVideo" autoplay="autoplay" width="100%" height="100%" controls="controls"> <video ref="myVideo" width="100%" height="100%" :src="scenicArray[3].NewImaArray[0].VideoPath" controls="controls">
<source :src="scenicArray[3].NewImaArray[0].VideoPath" type="video/mp4">
<source :src="scenicArray[3].NewImaArray[0].VideoPath" type="video/ogg">
</video> </video>
<!-- <img :src='scenicArray[3].NewImaArray[0].Url' :id='"bodys_"+DayNum+"_"+0' /> --> <!-- <img :src='scenicArray[3].NewImaArray[0].Url' :id='"bodys_"+DayNum+"_"+0' /> -->
</template> </template>
......
...@@ -32,9 +32,7 @@ ...@@ -32,9 +32,7 @@
<div class="TC-ScencContent"> <div class="TC-ScencContent">
<div class="TC-OneDayImg" :id='"boxs_"+DayNum+"_"+0'> <div class="TC-OneDayImg" :id='"boxs_"+DayNum+"_"+0'>
<template v-if="scenicArray[0].NewImaArray[0].FileType&&scenicArray[0].NewImaArray[0].FileType=='.mp4'"> <template v-if="scenicArray[0].NewImaArray[0].FileType&&scenicArray[0].NewImaArray[0].FileType=='.mp4'">
<video ref="myVideo" autoplay="autoplay" width="100%" height="100%" controls="controls"> <video ref="myVideo" width="100%" :src="scenicArray[0].NewImaArray[0].VideoPath" height="100%" controls="controls">
<source :src="scenicArray[0].NewImaArray[0].VideoPath" type="video/mp4">
<source :src="scenicArray[0].NewImaArray[0].VideoPath" type="video/ogg">
</video> </video>
<!-- <img :src='scenicArray[0].NewImaArray[0].Url' :id='"bodys_"+DayNum+"_"+0' /> --> <!-- <img :src='scenicArray[0].NewImaArray[0].Url' :id='"bodys_"+DayNum+"_"+0' /> -->
</template> </template>
...@@ -163,6 +161,7 @@ ...@@ -163,6 +161,7 @@
that.scenicArray[0].NewImaArray = []; that.scenicArray[0].NewImaArray = [];
that.scenicArray[0].NewImaArray.push(obj); that.scenicArray[0].NewImaArray.push(obj);
that.scenicArray[0].NewScenicImg = JSON.stringify(that.scenicArray[0].NewImaArray); that.scenicArray[0].NewScenicImg = JSON.stringify(that.scenicArray[0].NewImaArray);
this.$forceUpdate();
console.log("that.scenicArray[0].NewImaArray",that.scenicArray[0].NewImaArray); console.log("that.scenicArray[0].NewImaArray",that.scenicArray[0].NewImaArray);
}); });
}, },
......
...@@ -27,9 +27,7 @@ ...@@ -27,9 +27,7 @@
<div class="TC-ScencContent clearfix"> <div class="TC-ScencContent clearfix">
<div class="TC-threeOneImg" :id='"boxs_"+DayNum+"_"+0'> <div class="TC-threeOneImg" :id='"boxs_"+DayNum+"_"+0'>
<template v-if="scenicArray[0].NewImaArray[0].FileType&&scenicArray[0].NewImaArray[0].FileType=='.mp4'"> <template v-if="scenicArray[0].NewImaArray[0].FileType&&scenicArray[0].NewImaArray[0].FileType=='.mp4'">
<video ref="myVideo" autoplay="autoplay" width="100%" height="100%" controls="controls"> <video ref="myVideo" width="100%" :src="scenicArray[0].NewImaArray[0].VideoPath" height="100%" controls="controls">
<source :src="scenicArray[0].NewImaArray[0].VideoPath" type="video/mp4">
<source :src="scenicArray[0].NewImaArray[0].VideoPath" type="video/ogg">
</video> </video>
<!-- <img :src='scenicArray[0].NewImaArray[0].Url' :id='"bodys_"+DayNum+"_"+0' /> --> <!-- <img :src='scenicArray[0].NewImaArray[0].Url' :id='"bodys_"+DayNum+"_"+0' /> -->
</template> </template>
...@@ -113,9 +111,7 @@ ...@@ -113,9 +111,7 @@
</div> </div>
<div class="TC-ThreeDetail" :id='"boxs_"+DayNum+"_"+1'> <div class="TC-ThreeDetail" :id='"boxs_"+DayNum+"_"+1'>
<template v-if="scenicArray[1].NewImaArray[0].FileType&&scenicArray[1].NewImaArray[0].FileType=='.mp4'"> <template v-if="scenicArray[1].NewImaArray[0].FileType&&scenicArray[1].NewImaArray[0].FileType=='.mp4'">
<video ref="myVideo" autoplay="autoplay" width="100%" height="100%" controls="controls"> <video ref="myVideo" width="100%" height="100%" :src="scenicArray[1].NewImaArray[0].VideoPath" controls="controls">
<source :src="scenicArray[1].NewImaArray[0].VideoPath" type="video/mp4">
<source :src="scenicArray[1].NewImaArray[0].VideoPath" type="video/ogg">
</video> </video>
<!-- <img :src='scenicArray[1].NewImaArray[0].Url' :id='"bodys_"+DayNum+"_"+0' /> --> <!-- <img :src='scenicArray[1].NewImaArray[0].Url' :id='"bodys_"+DayNum+"_"+0' /> -->
</template> </template>
...@@ -146,9 +142,7 @@ ...@@ -146,9 +142,7 @@
<div class="clearfix TC-midContent"> <div class="clearfix TC-midContent">
<div class="TC-ThreeDetail" :id='"boxs_"+DayNum+"_"+2'> <div class="TC-ThreeDetail" :id='"boxs_"+DayNum+"_"+2'>
<template v-if="scenicArray[2].NewImaArray[0].FileType&&scenicArray[2].NewImaArray[0].FileType=='.mp4'"> <template v-if="scenicArray[2].NewImaArray[0].FileType&&scenicArray[2].NewImaArray[0].FileType=='.mp4'">
<video ref="myVideo" autoplay="autoplay" width="100%" height="100%" controls="controls"> <video ref="myVideo" width="100%" :src="scenicArray[2].NewImaArray[0].VideoPath" height="100%" controls="controls">
<source :src="scenicArray[2].NewImaArray[0].VideoPath" type="video/mp4">
<source :src="scenicArray[2].NewImaArray[0].VideoPath" type="video/ogg">
</video> </video>
<!-- <img :src='scenicArray[2].NewImaArray[0].Url' :id='"bodys_"+DayNum+"_"+0' /> --> <!-- <img :src='scenicArray[2].NewImaArray[0].Url' :id='"bodys_"+DayNum+"_"+0' /> -->
</template> </template>
......
...@@ -10,9 +10,7 @@ ...@@ -10,9 +10,7 @@
<div class="TC-twoCombox"> <div class="TC-twoCombox">
<div class="TC-twoimage" :id='"boxs_"+DayNum+"_"+0'> <div class="TC-twoimage" :id='"boxs_"+DayNum+"_"+0'>
<template v-if="scenicArray[0].NewImaArray[0].FileType&&scenicArray[0].NewImaArray[0].FileType=='.mp4'"> <template v-if="scenicArray[0].NewImaArray[0].FileType&&scenicArray[0].NewImaArray[0].FileType=='.mp4'">
<video ref="myVideo" autoplay="autoplay" width="100%" height="100%" controls="controls"> <video ref="myVideo" width="100%" :src="scenicArray[0].NewImaArray[0].VideoPath" height="100%" controls="controls">
<source :src="scenicArray[0].NewImaArray[0].VideoPath" type="video/mp4">
<source :src="scenicArray[0].NewImaArray[0].VideoPath" type="video/ogg">
</video> </video>
<!-- <img :src='scenicArray[0].NewImaArray[0].Url' :id='"bodys_"+DayNum+"_"+0' /> --> <!-- <img :src='scenicArray[0].NewImaArray[0].Url' :id='"bodys_"+DayNum+"_"+0' /> -->
</template> </template>
...@@ -69,9 +67,7 @@ ...@@ -69,9 +67,7 @@
<div class="TC-twoCombox"> <div class="TC-twoCombox">
<div class="TC-twoimage" :id='"boxs_"+DayNum+"_"+1'> <div class="TC-twoimage" :id='"boxs_"+DayNum+"_"+1'>
<template v-if="scenicArray[1].NewImaArray[0].FileType&&scenicArray[1].NewImaArray[0].FileType=='.mp4'"> <template v-if="scenicArray[1].NewImaArray[0].FileType&&scenicArray[1].NewImaArray[0].FileType=='.mp4'">
<video ref="myVideo" autoplay="autoplay" width="100%" height="100%" controls="controls"> <video ref="myVideo" width="100%" :src="scenicArray[1].NewImaArray[0].VideoPath" height="100%" controls="controls">
<source :src="scenicArray[1].NewImaArray[0].VideoPath" type="video/mp4">
<source :src="scenicArray[1].NewImaArray[0].VideoPath" type="video/ogg">
</video> </video>
<!-- <img :src='scenicArray[1].NewImaArray[0].Url' :id='"bodys_"+DayNum+"_"+0' /> --> <!-- <img :src='scenicArray[1].NewImaArray[0].Url' :id='"bodys_"+DayNum+"_"+0' /> -->
</template> </template>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment