From 4c67720131183a10c8b854943d270f13e8db74ce Mon Sep 17 00:00:00 2001 From: peng <peng.com> Date: 星期三, 25 六月 2025 10:46:39 +0800 Subject: [PATCH] update 上传商品应上传图片和视频 --- manager/src/views/kitchen/kitchenVideo.vue | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/manager/src/views/kitchen/kitchenVideo.vue b/manager/src/views/kitchen/kitchenVideo.vue index d3e945a..40e7079 100644 --- a/manager/src/views/kitchen/kitchenVideo.vue +++ b/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({ -- Gitblit v1.8.0