From 2b1e28cda4548d59a63ea637f81cf37c222ea6f9 Mon Sep 17 00:00:00 2001
From: weipengfei <2187978347@qq.com>
Date: Sat, 16 Sep 2023 14:54:52 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
subpkg/otherTask/otherTask.vue | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
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('网络错误')
},