更新
This commit is contained in:
parent
73ec8dc947
commit
2b1e28cda4
@ -50,8 +50,9 @@
|
||||
<mybtn v-else text="已提交,请等待审核" :my_btn_disabled="true" @click="showToast('请耐心等待审核结果')"></mybtn>
|
||||
<!--视频预览弹窗-->
|
||||
<view v-if="show_video" class="video-count">
|
||||
<video id="myVideo" class="videoLink" autoplay loop muted :src="video_src"></video>
|
||||
<!--#ifndef APP-PLUS-->
|
||||
<video id="myVideo" class="videoLink" autoplay loop muted :src="video_src"></video>
|
||||
<!-- <video id="myVideo" class="videoLink" autoplay loop muted :src="video_src"></video> -->
|
||||
<!--#endif-->
|
||||
<!--#ifdef APP-PLUS-->
|
||||
|
||||
@ -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('网络错误')
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user