|
|
@@ -323,7 +323,8 @@ export default {
|
|
|
this.progressFlag = false;
|
|
|
this.percentage = 0;
|
|
|
},
|
|
|
- // 仍要上传
|
|
|
+ // 照片是否入库,1.照片识别三次不通过仍要上传,2.照片识别通过
|
|
|
+ // isUpdate:是否更新店招照片,只有门店店招需要更新
|
|
|
confirmUpload(res) {
|
|
|
if (this.photoIdentifyType) {
|
|
|
var form = {
|
|
|
@@ -343,9 +344,11 @@ export default {
|
|
|
businessId: res.data.businessId, // 当前拍摄图片id
|
|
|
};
|
|
|
if (res.isUpdate) form.isUpdate = 'true';
|
|
|
- addPhotoToDB(form).then(() => {});
|
|
|
+ addPhotoToDB(form).then((resData) => {
|
|
|
+ res.data.fileId = resData.fileId;
|
|
|
+ this.normalFlow(res);
|
|
|
+ });
|
|
|
}
|
|
|
- this.normalFlow(res);
|
|
|
},
|
|
|
close() {
|
|
|
this.imageAIVerifyFlag = false;
|
|
|
@@ -359,8 +362,9 @@ export default {
|
|
|
message: res.msg,
|
|
|
showCancelButton: false,
|
|
|
})
|
|
|
- .then(() => {});
|
|
|
- this.normalFlow(res);
|
|
|
+ .then(() => {
|
|
|
+ this.confirmUpload(res);
|
|
|
+ });
|
|
|
},
|
|
|
// 取消图片上传
|
|
|
progressClose() {},
|