Commit cc6e81c9 by 杨明

fixed

1 parent 434290e4
......@@ -72,10 +72,9 @@
</el-form-item>
<el-form-item label="视频:" class="photoWrap">
<div class="img-div">
<div class="put-img" v-if="materialAddForm.coverUrl">
<img :src="materialAddForm.coverUrl" alt="" />
<!-- <video :src="materialAddForm.videoUrl" id="video" width="100%" height="100%" preload loop muted>
</video> -->
<div class="put-img" v-if="materialAddForm.videoUrl">
<img :src="materialAddForm.coverUrl" v-if="materialAddForm.coverUrl" />
<video :src="materialAddForm.videoUrl" v-if="materialAddForm.videoUrl" id="video" width="100%" height="100%" preload loop muted></video>
<div class="mask">
<h3>
<img slot="reference" src="@/assets/material/view.png" alt="" @click="viewVideo" />
......@@ -795,6 +794,9 @@ export default {
}
</script>
<style lang="scss" scoped>
#video {
opacity: 0;
}
.materialType {
/deep/.el-form-item__content {
max-width: 85%;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!