电子合同-视频无法播放与人脸照片不能展示

This commit is contained in:
binbin_pan 2025-01-14 14:34:02 +08:00
parent 29fe649877
commit 2ace619493
2 changed files with 6 additions and 1 deletions

View File

@ -383,10 +383,12 @@ export default {
},
success: (uploadFileRes) => {
console.log(uploadFileRes)
this.contractForm.faceUrl = ''
if(uploadFileRes.statusCode==200){
uploadFileRes=JSON.parse(uploadFileRes.data)
console.log(uploadFileRes)
if(uploadFileRes.code==200){
this.contractForm.faceUrl = uploadFileRes.data.url;
if(uploadFileRes.data.face){
this.faceData=JSON.parse(uploadFileRes.data.personData)
console.log(this.faceData)

View File

@ -80,6 +80,8 @@ export default {
}, 1000);
},
chooseVideo(){
this.videoSrc = ''
this.videoUrl = ''
uni.chooseVideo({
count: 1,
sourceType: ['camera'],
@ -88,7 +90,8 @@ export default {
compressed: false,
success: res => {
console.log('chooseVideo',res)
this.videoSrc = res.tempFilePath+'?_t=' + Date.now();
// this.videoSrc = res.tempFilePath+'?_t=' + Date.now();
this.videoSrc = res.tempFilePath;
this.videoUrl = res.tempFilePath;
},