Merge branch 'bjxz-dev' of http://139.9.66.234:18023/dhp/zhgdyun into bjxz-rain
This commit is contained in:
commit
bd093bbdff
@ -3420,7 +3420,22 @@ export default {
|
||||
// }
|
||||
if (res.data.status == "SUCCESS") {
|
||||
if ((this.cropperEditTitle = "现场采集照裁剪")) {
|
||||
this.workerInfo.fieldAcquisitionUrl = res.data.data[0].imageUrl;
|
||||
if(this.isIscDevice){
|
||||
let imgSize = Number(res.data.data[0].fileInfo.size / 1024);
|
||||
console.log('经过vueCropper裁剪后', imgSize);
|
||||
if (imgSize <= 10 || imgSize >= 200) {
|
||||
this.$message.error("图片裁剪后大小不能超过200kb小于10kb,请重新裁剪或重新上传图片!");
|
||||
return false;
|
||||
}
|
||||
// this.checkImgLibrary(res.data.data[0].imageUrl);
|
||||
if (this.isSzProject == 1) {
|
||||
this.checkImgLibrary(res.data.data[0].imageUrl);
|
||||
} else {
|
||||
this.checkFace2(res.data.data[0].imageUrl);
|
||||
}
|
||||
}else{
|
||||
this.workerInfo.fieldAcquisitionUrl = res.data.data[0].imageUrl;
|
||||
}
|
||||
} else if ((this.cropperEditTitle = "身份证头像裁剪")) {
|
||||
this.workerInfo.idCardBigPhotoUrl = res.data.data[0].imageUrl;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user