识别身份证
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
const env = "d";
|
||||
const env = "p";
|
||||
|
||||
const version = 1,
|
||||
|
||||
|
||||
@@ -118,7 +118,9 @@ Page({
|
||||
})
|
||||
|
||||
//上传图片-保存店铺海报 - 作废
|
||||
// wx.showLoading();
|
||||
// wx.showLoading({
|
||||
// title: '上传中',
|
||||
// })
|
||||
// wx.uploadFile({
|
||||
// url:_.config.api.upImg,
|
||||
// filePath:res.tempFilePaths[0],
|
||||
|
||||
@@ -340,7 +340,9 @@ Page({
|
||||
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
|
||||
success(res) {
|
||||
|
||||
wx.showLoading();
|
||||
wx.showLoading({
|
||||
title: '上传中',
|
||||
})
|
||||
wx.uploadFile({
|
||||
url:_.config.api.upImg,
|
||||
filePath:res.tempFilePaths[0],
|
||||
|
||||
@@ -214,7 +214,9 @@ Page({
|
||||
sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
|
||||
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
|
||||
success(res) {
|
||||
wx.showLoading();
|
||||
wx.showLoading({
|
||||
title: '上传中',
|
||||
})
|
||||
wx.uploadFile({
|
||||
url:_.config.api.upImg,
|
||||
filePath:res.tempFilePaths[0],
|
||||
@@ -265,7 +267,9 @@ Page({
|
||||
sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
|
||||
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
|
||||
success(res) {
|
||||
wx.showLoading();
|
||||
wx.showLoading({
|
||||
title: '上传中',
|
||||
})
|
||||
wx.uploadFile({
|
||||
url:_.config.api.upImg,
|
||||
filePath:res.tempFilePaths[0],
|
||||
@@ -316,7 +320,9 @@ Page({
|
||||
sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
|
||||
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
|
||||
success(res) {
|
||||
wx.showLoading();
|
||||
wx.showLoading({
|
||||
title: '上传中',
|
||||
})
|
||||
wx.uploadFile({
|
||||
url:_.config.api.upImg,
|
||||
filePath:res.tempFilePaths[0],
|
||||
@@ -367,7 +373,9 @@ Page({
|
||||
sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
|
||||
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
|
||||
success(res) {
|
||||
wx.showLoading();
|
||||
wx.showLoading({
|
||||
title: '上传中',
|
||||
})
|
||||
wx.uploadFile({
|
||||
url:_.config.api.upImg,
|
||||
filePath:res.tempFilePaths[0],
|
||||
@@ -409,7 +417,9 @@ Page({
|
||||
sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
|
||||
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
|
||||
success(res) {
|
||||
wx.showLoading();
|
||||
wx.showLoading({
|
||||
title: '上传中',
|
||||
})
|
||||
wx.uploadFile({
|
||||
url:_.config.api.upImg,
|
||||
filePath:res.tempFilePaths[0],
|
||||
@@ -451,7 +461,9 @@ Page({
|
||||
sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
|
||||
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
|
||||
success(res1) {
|
||||
wx.showLoading();
|
||||
wx.showLoading({
|
||||
title: '上传中',
|
||||
})
|
||||
let ins_img=that.data.ins_img
|
||||
for (let i = 0; i < res1.tempFilePaths.length; i++) {
|
||||
//上传图片
|
||||
@@ -513,7 +525,9 @@ Page({
|
||||
sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
|
||||
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
|
||||
success(res1) {
|
||||
wx.showLoading();
|
||||
wx.showLoading({
|
||||
title: '上传中',
|
||||
})
|
||||
let other_img=that.data.other_img
|
||||
for (let i = 0; i < res1.tempFilePaths.length; i++) {
|
||||
//上传图片
|
||||
|
||||
@@ -139,7 +139,9 @@ Page({
|
||||
sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
|
||||
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
|
||||
success(res) {
|
||||
wx.showLoading();
|
||||
wx.showLoading({
|
||||
title: '上传中',
|
||||
})
|
||||
wx.uploadFile({
|
||||
url:_.config.api.upImg,
|
||||
filePath:res.tempFilePaths[0],
|
||||
@@ -174,7 +176,9 @@ Page({
|
||||
sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
|
||||
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
|
||||
success(res) {
|
||||
wx.showLoading();
|
||||
wx.showLoading({
|
||||
title: '上传中',
|
||||
})
|
||||
wx.uploadFile({
|
||||
url:_.config.api.upImg,
|
||||
filePath:res.tempFilePaths[0],
|
||||
|
||||
@@ -246,7 +246,9 @@ Page({
|
||||
sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
|
||||
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
|
||||
success(res) {
|
||||
wx.showLoading();
|
||||
wx.showLoading({
|
||||
title: '识别中',
|
||||
})
|
||||
wx.uploadFile({
|
||||
url:_.config.api.upImg,
|
||||
filePath:res.tempFilePaths[0],
|
||||
@@ -256,11 +258,11 @@ Page({
|
||||
},
|
||||
success: (resp) => {
|
||||
resp.data = JSON.parse(resp.data);
|
||||
wx.hideLoading();
|
||||
if (resp.data.code == 200) {
|
||||
let params = {};
|
||||
params['img'] = resp.data.data.url;
|
||||
_.apiQuery.getAppIdcardInfo(params).then(res2 => {
|
||||
wx.hideLoading();
|
||||
that.setData({
|
||||
owner_cardid:res2.data.IdNum,
|
||||
owner_name:res2.data.Name,
|
||||
@@ -269,6 +271,9 @@ Page({
|
||||
})
|
||||
}
|
||||
},
|
||||
fail: res => {
|
||||
wx.hideLoading();
|
||||
}
|
||||
})
|
||||
},
|
||||
fail: res => {
|
||||
|
||||
@@ -1180,7 +1180,9 @@ Page({
|
||||
sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
|
||||
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
|
||||
success(res) {
|
||||
wx.showLoading();
|
||||
wx.showLoading({
|
||||
title: '识别中',
|
||||
})
|
||||
wx.uploadFile({
|
||||
url:_.config.api.upImg,
|
||||
filePath:res.tempFilePaths[0],
|
||||
@@ -1190,11 +1192,11 @@ Page({
|
||||
},
|
||||
success: (resp) => {
|
||||
resp.data = JSON.parse(resp.data);
|
||||
wx.hideLoading();
|
||||
if (resp.data.code == 200) {
|
||||
let params = {};
|
||||
params['img'] = resp.data.data.url;
|
||||
_.apiQuery.getAppIdcardInfo(params).then(res2 => {
|
||||
wx.hideLoading();
|
||||
that.setData({
|
||||
cardid:res2.data.IdNum,
|
||||
name:res2.data.Name,
|
||||
@@ -1203,6 +1205,9 @@ Page({
|
||||
})
|
||||
}
|
||||
},
|
||||
fail: res => {
|
||||
wx.hideLoading();
|
||||
}
|
||||
})
|
||||
},
|
||||
fail: res => {
|
||||
@@ -1222,7 +1227,9 @@ Page({
|
||||
sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
|
||||
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
|
||||
success(res) {
|
||||
wx.showLoading();
|
||||
wx.showLoading({
|
||||
title: '识别中',
|
||||
})
|
||||
wx.uploadFile({
|
||||
url:_.config.api.upImg,
|
||||
filePath:res.tempFilePaths[0],
|
||||
@@ -1232,11 +1239,11 @@ Page({
|
||||
},
|
||||
success: (resp) => {
|
||||
resp.data = JSON.parse(resp.data);
|
||||
wx.hideLoading();
|
||||
if (resp.data.code == 200) {
|
||||
let params = {};
|
||||
params['img'] = resp.data.data.url;
|
||||
_.apiQuery.getAppIdcardInfo(params).then(res2 => {
|
||||
wx.hideLoading();
|
||||
that.setData({
|
||||
owner_cardid:res2.data.IdNum,
|
||||
owner_name:res2.data.Name,
|
||||
@@ -1245,6 +1252,9 @@ Page({
|
||||
})
|
||||
}
|
||||
},
|
||||
fail: res => {
|
||||
wx.hideLoading();
|
||||
}
|
||||
})
|
||||
},
|
||||
fail: res => {
|
||||
|
||||
Reference in New Issue
Block a user