Commit 4e9aa392 authored by FE-安焕焕's avatar FE-安焕焕 👣

ocr认证回掉密码框展示问题

parent 05cc267b
...@@ -218,10 +218,11 @@ export default { ...@@ -218,10 +218,11 @@ export default {
cookies.set('orderNo', { orderNo: this.orderNo }); cookies.set('orderNo', { orderNo: this.orderNo });
if (this.$route?.query?.ocrflag || cookies.get('ocrflag')) { if (this.$route?.query?.ocrflag || cookies.get('ocrflag')) {
this.payInfo = cookies.get('info') || {}; this.payInfo = cookies.get('info') || {};
this.flowOrderNo = this.payInfo?.paramsData?.flowOrderNo || '';
cookies.remove('ocrflag'); cookies.remove('ocrflag');
cookies.remove('info'); cookies.remove('info');
// 先支付再查询信息 // 先支付再查询信息
this.flowOrderNo = cookies.get('flowOrderNo');
console.log(this.payInfo?.paramsData);
this.pay(this.payInfo?.paramsData, 'ocr', cookies.get('ocrflag')); this.pay(this.payInfo?.paramsData, 'ocr', cookies.get('ocrflag'));
} }
const vccToken = localStorage.get('vccToken'); const vccToken = localStorage.get('vccToken');
...@@ -456,7 +457,7 @@ export default { ...@@ -456,7 +457,7 @@ export default {
} }
error?.message && this.$toast(error?.message); error?.message && this.$toast(error?.message);
this.error = error?.message; this.error = error?.message;
this.retrieve(); this.pwdModal && this.retrieve();
return; return;
} }
const { creditPayInfo = {}, wxPayInfo = {}, flowOrderNo, aliPayInfo = {} } = data; const { creditPayInfo = {}, wxPayInfo = {}, flowOrderNo, aliPayInfo = {} } = data;
...@@ -494,9 +495,7 @@ export default { ...@@ -494,9 +495,7 @@ export default {
mergePayPretreatmentId: this.mergePayPretreatmentId mergePayPretreatmentId: this.mergePayPretreatmentId
}); });
this.close(); this.close();
setTimeout(() => {
this.goOcr(); this.goOcr();
}, 500);
} }
}, },
payResult(type, error) { payResult(type, error) {
...@@ -564,6 +563,7 @@ export default { ...@@ -564,6 +563,7 @@ export default {
}, },
/* 走h5活体流程 */ /* 走h5活体流程 */
async goOcr() { async goOcr() {
cookies.set('flowOrderNo', this.flowOrderNo);
const [res] = await ocrFaceId({ const [res] = await ocrFaceId({
isH5: true, isH5: true,
type: 'xyqb', type: 'xyqb',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment