|
@ -109,7 +109,11 @@ import { |
|
|
ocrAction(res.tempFiles[0].tempFilePath).then(res=>{ |
|
|
ocrAction(res.tempFiles[0].tempFilePath).then(res=>{ |
|
|
if(res.success){ |
|
|
if(res.success){ |
|
|
that.selectMzGraduateInfo(res.result.data.idcard_res) |
|
|
that.selectMzGraduateInfo(res.result.data.idcard_res) |
|
|
|
|
|
}else{ |
|
|
|
|
|
that.selectMzGraduateInfo() |
|
|
} |
|
|
} |
|
|
|
|
|
}).catch(err=>{ |
|
|
|
|
|
that.selectMzGraduateInfo() |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
fail: (res) => { |
|
|
fail: (res) => { |
|
@ -188,7 +192,7 @@ import { |
|
|
that.setData({ |
|
|
that.setData({ |
|
|
isShowImage: true |
|
|
isShowImage: true |
|
|
}) |
|
|
}) |
|
|
console.error('因为没有真的上传图片,所以走到出错的逻辑里了') |
|
|
|
|
|
wx.showToast({ |
|
|
wx.showToast({ |
|
|
title: '出错啦...', |
|
|
title: '出错啦...', |
|
|
icon: 'loading' |
|
|
icon: 'loading' |
|
@ -209,17 +213,27 @@ import { |
|
|
success(e) { |
|
|
success(e) { |
|
|
if(e.success){ |
|
|
if(e.success){ |
|
|
this.selectMzGraduateInfo(e.result.data.idcard_res) |
|
|
this.selectMzGraduateInfo(e.result.data.idcard_res) |
|
|
|
|
|
}else{ |
|
|
|
|
|
wx.navigateTo({ |
|
|
|
|
|
url: `/subpages/index/checkInUser/checkInUser`, |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
selectMzGraduateInfo(data){ |
|
|
selectMzGraduateInfo(data){ |
|
|
selectMzGraduateInfo({idCard:data.id.text}).then(res=>{ |
|
|
if(data){ |
|
|
if(res.code === 200){ |
|
|
selectMzGraduateInfo({idCard:data.id.text}).then(res=>{ |
|
|
wx.navigateTo({ |
|
|
if(res.code === 200){ |
|
|
url: `/subpages/index/checkInUser/checkInUser?idCard=${data.id.text}`, |
|
|
wx.navigateTo({ |
|
|
}) |
|
|
url: `/subpages/index/checkInUser/checkInUser?idCard=${data.id.text}`, |
|
|
} |
|
|
}) |
|
|
}).catch(err=>{ |
|
|
} |
|
|
console.log(err); |
|
|
}).catch(err=>{ |
|
|
}) |
|
|
}) |
|
|
|
|
|
}else{ |
|
|
|
|
|
wx.navigateTo({ |
|
|
|
|
|
url: `/subpages/index/checkInUser/checkInUser`, |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |