diff --git a/subpkg/otherTask/otherTask.vue b/subpkg/otherTask/otherTask.vue index fade700..d1817b1 100644 --- a/subpkg/otherTask/otherTask.vue +++ b/subpkg/otherTask/otherTask.vue @@ -50,8 +50,9 @@ + - + @@ -90,9 +91,9 @@ }, { name: '视频', }], - current: 0, + current: 1, fileList: [], - videoList: [], + videoList: ['https://ceshi-worker-task.lihaink.cn/uploads/video/20230916/20230916144834ddf521318.mp4'], video_src: '', show_video: false }; @@ -162,6 +163,8 @@ success: (res) => { // 选择视频成功的回调函数 const video = res.tempFilePath; + // this.videoList.push(video) + // return ; uni.uploadFile({ url: VIDEO_URL, filePath: video, @@ -173,7 +176,7 @@ console.log(uploadFileRes); uploadFileRes.data = JSON.parse(uploadFileRes.data) if(uploadFileRes.data.code==1) { - this.videoList.push() + this.videoList.push(uploadFileRes.data.uri) } else Toast('网络错误') },