En route před 1 rokem
rodič
revize
1b12513933
1 změnil soubory, kde provedl 6 přidání a 16 odebrání
  1. 6 16
      pages2/verify/input.vue

+ 6 - 16
pages2/verify/input.vue

@@ -813,21 +813,10 @@
 			async uploadDatas(data) {
 				if (this.form.recent_photos && this.form.idcard_face_photo) {
 					let base64 = await this.$method.imageToBase64(
-						this.form.idcard_face_photo,1
+						this.form.idcard_face_photo, 1
 					);
-					let resData = await this.faceCertificationIDCardOCR(1, base64);
-					if (!resData.data) {
-						uni.showModal({
-							title: "提示",
-							content: "身份证人像面照片异常,请重新上传",
-							showCancel: false,
-						});
-						this.isUploading = false;
-						return;
-					}
-					base64 = await this.$method.imageToBase64(this.form.recent_photos,1);
+					base64 = await this.$method.imageToBase64(this.form.recent_photos, 1);
 					let func1 = () => {
-
 						var self = this;
 						if (self.remarkStatus) {
 							var arsty = {};
@@ -1193,7 +1182,7 @@
 						lists[0].url.indexOf("//temp") !== -1;
 					// #endif
 					// #ifdef H5
-					console.log(lists,'lists')
+					console.log(lists, 'lists')
 					const isJPG =
 						lists[0].file.type === "image/jpeg" ||
 						lists[0].file.type === "image/png" ||
@@ -1216,7 +1205,7 @@
 						let size = lists[0].file.size;
 						if (size < 2 * 1024 * 1024) {
 							this["fileList" + index] = lists;
-							if (index == 1) {
+							if (index == 1 || index == 3) {
 								let url = lists[0].url;
 								// #ifdef MP-WEIXIN
 								url = await this.$method.imageInfos(url);
@@ -1224,7 +1213,8 @@
 								// #ifdef H5
 								url = await this.$method.uploadFile(url, 0);
 								// #endif
-								this.$set(this.form, "recent_photos", url);
+								this.$set(this.form, index == 1 ?"recent_photos":"idcard_national_photo", url);
+								console.log(url,'url')
 							} else {
 								// #ifdef MP-WEIXIN
 								let url = lists[0].url;