|
@@ -813,21 +813,10 @@
|
|
|
async uploadDatas(data) {
|
|
async uploadDatas(data) {
|
|
|
if (this.form.recent_photos && this.form.idcard_face_photo) {
|
|
if (this.form.recent_photos && this.form.idcard_face_photo) {
|
|
|
let base64 = await this.$method.imageToBase64(
|
|
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 = () => {
|
|
let func1 = () => {
|
|
|
-
|
|
|
|
|
var self = this;
|
|
var self = this;
|
|
|
if (self.remarkStatus) {
|
|
if (self.remarkStatus) {
|
|
|
var arsty = {};
|
|
var arsty = {};
|
|
@@ -1193,7 +1182,7 @@
|
|
|
lists[0].url.indexOf("//temp") !== -1;
|
|
lists[0].url.indexOf("//temp") !== -1;
|
|
|
// #endif
|
|
// #endif
|
|
|
// #ifdef H5
|
|
// #ifdef H5
|
|
|
- console.log(lists,'lists')
|
|
|
|
|
|
|
+ console.log(lists, 'lists')
|
|
|
const isJPG =
|
|
const isJPG =
|
|
|
lists[0].file.type === "image/jpeg" ||
|
|
lists[0].file.type === "image/jpeg" ||
|
|
|
lists[0].file.type === "image/png" ||
|
|
lists[0].file.type === "image/png" ||
|
|
@@ -1216,7 +1205,7 @@
|
|
|
let size = lists[0].file.size;
|
|
let size = lists[0].file.size;
|
|
|
if (size < 2 * 1024 * 1024) {
|
|
if (size < 2 * 1024 * 1024) {
|
|
|
this["fileList" + index] = lists;
|
|
this["fileList" + index] = lists;
|
|
|
- if (index == 1) {
|
|
|
|
|
|
|
+ if (index == 1 || index == 3) {
|
|
|
let url = lists[0].url;
|
|
let url = lists[0].url;
|
|
|
// #ifdef MP-WEIXIN
|
|
// #ifdef MP-WEIXIN
|
|
|
url = await this.$method.imageInfos(url);
|
|
url = await this.$method.imageInfos(url);
|
|
@@ -1224,7 +1213,8 @@
|
|
|
// #ifdef H5
|
|
// #ifdef H5
|
|
|
url = await this.$method.uploadFile(url, 0);
|
|
url = await this.$method.uploadFile(url, 0);
|
|
|
// #endif
|
|
// #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 {
|
|
} else {
|
|
|
// #ifdef MP-WEIXIN
|
|
// #ifdef MP-WEIXIN
|
|
|
let url = lists[0].url;
|
|
let url = lists[0].url;
|