|
|
@@ -357,14 +357,13 @@ |
|
|
|
console.log("tempFilePaths[0].startsWith('file://')", res.tempFilePaths[0], res.tempFilePaths[0].startsWith('file://')) |
|
|
|
compressImage(res.tempFilePaths[0], (res) => { |
|
|
|
console.log("过来了", res) |
|
|
|
if (state.choiceIndex == 3) { |
|
|
|
form.licenseFrontUrl = res.tempFilePath; |
|
|
|
} else { |
|
|
|
form.licenseReverseUrl = res.tempFilePath; |
|
|
|
if (state.choiceIndex == 3 || state.choiceIndex == 4) { |
|
|
|
state.showImg = false |
|
|
|
state.images = res.tempFilePath |
|
|
|
state.phoneType = state.choiceIndex |
|
|
|
state.isTakePhotoModeShow = false |
|
|
|
return |
|
|
|
} |
|
|
|
state.phoneType = state.choiceIndex |
|
|
|
state.showImg = false |
|
|
|
state.isTakePhotoModeShow = false |
|
|
|
}) |
|
|
|
}, |
|
|
|
}) |
|
|
@@ -385,12 +384,12 @@ |
|
|
|
state.isTakePhotoModeShow = false |
|
|
|
uploadFile(val.tempImagePath, imageType, etcCarOcrCard).then((data) => { |
|
|
|
// uploadFile(val.tempImagePath, state.choiceIndex, ocrAllQuery).then((data) => { |
|
|
|
console.log('输出内容=====================', state.choiceIndex) |
|
|
|
console.log('输出内容=====================', state.choiceIndex,data) |
|
|
|
if (state.choiceIndex === "3") { |
|
|
|
form.licenseFrontUrl = data.imageUrl; |
|
|
|
} else { |
|
|
|
form.licenseReverseUrl = data.imageUrl; |
|
|
|
console.log('=====================', state.form.vehNegImgUrl, state) |
|
|
|
console.log('=====================', state) |
|
|
|
} |
|
|
|
state.isTakePhotoModeShow = false |
|
|
|
}) |