更新
This commit is contained in:
parent
73ec8dc947
commit
2b1e28cda4
@ -50,8 +50,9 @@
|
|||||||
<mybtn v-else text="已提交,请等待审核" :my_btn_disabled="true" @click="showToast('请耐心等待审核结果')"></mybtn>
|
<mybtn v-else text="已提交,请等待审核" :my_btn_disabled="true" @click="showToast('请耐心等待审核结果')"></mybtn>
|
||||||
<!--视频预览弹窗-->
|
<!--视频预览弹窗-->
|
||||||
<view v-if="show_video" class="video-count">
|
<view v-if="show_video" class="video-count">
|
||||||
<!--#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>
|
||||||
|
<!--#ifndef APP-PLUS-->
|
||||||
|
<!-- <video id="myVideo" class="videoLink" autoplay loop muted :src="video_src"></video> -->
|
||||||
<!--#endif-->
|
<!--#endif-->
|
||||||
<!--#ifdef APP-PLUS-->
|
<!--#ifdef APP-PLUS-->
|
||||||
|
|
||||||
@ -90,9 +91,9 @@
|
|||||||
}, {
|
}, {
|
||||||
name: '视频',
|
name: '视频',
|
||||||
}],
|
}],
|
||||||
current: 0,
|
current: 1,
|
||||||
fileList: [],
|
fileList: [],
|
||||||
videoList: [],
|
videoList: ['https://ceshi-worker-task.lihaink.cn/uploads/video/20230916/20230916144834ddf521318.mp4'],
|
||||||
video_src: '',
|
video_src: '',
|
||||||
show_video: false
|
show_video: false
|
||||||
};
|
};
|
||||||
@ -162,6 +163,8 @@
|
|||||||
success: (res) => {
|
success: (res) => {
|
||||||
// 选择视频成功的回调函数
|
// 选择视频成功的回调函数
|
||||||
const video = res.tempFilePath;
|
const video = res.tempFilePath;
|
||||||
|
// this.videoList.push(video)
|
||||||
|
// return ;
|
||||||
uni.uploadFile({
|
uni.uploadFile({
|
||||||
url: VIDEO_URL,
|
url: VIDEO_URL,
|
||||||
filePath: video,
|
filePath: video,
|
||||||
@ -173,7 +176,7 @@
|
|||||||
console.log(uploadFileRes);
|
console.log(uploadFileRes);
|
||||||
uploadFileRes.data = JSON.parse(uploadFileRes.data)
|
uploadFileRes.data = JSON.parse(uploadFileRes.data)
|
||||||
if(uploadFileRes.data.code==1) {
|
if(uploadFileRes.data.code==1) {
|
||||||
this.videoList.push()
|
this.videoList.push(uploadFileRes.data.uri)
|
||||||
}
|
}
|
||||||
else Toast('网络错误')
|
else Toast('网络错误')
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user