电子合同-视频无法播放与人脸照片不能展示
This commit is contained in:
parent
29fe649877
commit
2ace619493
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue