manager/src/views/kitchen/kitchenVideo.vue
@@ -112,6 +112,7 @@ <FormItem label="视频"> <video style="width: 150px;height: 150px" controls @loadedmetadata="getVideoDuration" :poster="uploadVideoForm.showCoverUrl" :autoplay="false" id="remoteVideo" :src="uploadVideoForm.showVideoUrl" @@ -588,6 +589,10 @@ this.$set(this.uploadVideoForm, 'temp', new Date().getTime()); console.log(this.uploadVideoForm) }, getVideoDuration(e){ const duration = this.$refs.healthVideoInfo.duration; this.uploadVideoForm.videoDuration = Math.floor(duration); }, // 视频上架 videoUp(row) { this.$Modal.confirm({