Commit 1aca33f4 by hanjixin

bug

parent 63be0d5f
......@@ -34,7 +34,7 @@
size="30"
icon-success-color="red"
></x-icon>-->
<video :src="videoUrl" controls style="width: 100%; height: auto;"></video>
<video :src="videoUrl" controls preload="load" :poster="poster" style="width: 100%; height: auto;"></video>
</ul>
</div>
</div>
......@@ -98,6 +98,7 @@ export default {
pictureType: "1",
activeIndex: 1,
videoUrl: "",
poster: '',
base64: [],
testUrl: [],
isPhoto: true,
......@@ -256,6 +257,7 @@ export default {
console.log(files, "event", files[0].size/1024/1024);
this.upload(file).then(res => {
this.videoUrl = res.url
this.poster = res.url + '?x-oss-process=video/snapshot,t_0,f_jpg,w_0,h_0,m_fast'
this.isPhoto = false;
this.isPreivw = true;
})
......@@ -287,6 +289,7 @@ export default {
var vm = this;
vm.videoUrl = '';
vm.desc = '';
vm.poster = '';
vm.title = '';
vm.isPreivw = false;
this.small_image = "";
......
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 sign in to comment