|
@@ -2695,16 +2695,30 @@ export default {
|
|
|
.then((res) => {
|
|
|
console.log(res, "res");
|
|
|
resolve(res.data.data);
|
|
|
- });
|
|
|
+ }).catch((err) => {
|
|
|
+ // 当前网络延迟,
|
|
|
+ console.log('人脸识别错误:', err)
|
|
|
+ uni.showModal({
|
|
|
+ content: "当前网络延迟",
|
|
|
+ showCancel: false,
|
|
|
+ success: (resultst) => {
|
|
|
+ if (resultst.confirm) {
|
|
|
+ uni.navigateBack()
|
|
|
+ }
|
|
|
+ },
|
|
|
+ })
|
|
|
+ })
|
|
|
},
|
|
|
fail(err) {
|
|
|
- console.error(err, "err");
|
|
|
+ // this.$u.toast('人脸识别错误!')
|
|
|
+ console.error(err, "err-----人脸识别错误");
|
|
|
},
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
|
|
|
async submit() {
|
|
|
+ console.log('this.uploadLock的值:', this.uploadLock)
|
|
|
if (this.uploadLock) {
|
|
|
return;
|
|
|
}
|
|
@@ -2766,9 +2780,6 @@ export default {
|
|
|
success: (res) => {
|
|
|
self.avatarUrl = res.tempImagePath;
|
|
|
this.isTaking = false;
|
|
|
- // self.submit();
|
|
|
- // self.photoPopup = false;
|
|
|
- // self.enableAutoRotation = true;
|
|
|
},
|
|
|
fail: (err) => {
|
|
|
},
|