Commit f88d03e5 authored by 郭志伟's avatar 郭志伟

Merge branch 'master' of http://git.quantgroup.cn/ui/cauchy-ui

parents a6b62450 9d95cfb1
...@@ -216,9 +216,8 @@ export default { ...@@ -216,9 +216,8 @@ export default {
mounted() { mounted() {
this.orderNo = this.$route.query.orderNo || cookies.get('orderNo')?.orderNo; this.orderNo = this.$route.query.orderNo || cookies.get('orderNo')?.orderNo;
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) {
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');
// 先支付再查询信息 // 先支付再查询信息
...@@ -456,7 +455,7 @@ export default { ...@@ -456,7 +455,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;
...@@ -481,22 +480,22 @@ export default { ...@@ -481,22 +480,22 @@ export default {
) { ) {
/* 密码或者短信鉴权 */ /* 密码或者短信鉴权 */
this.close(); this.close();
console.log(creditPayStatus, 'creditPayStatus');
this[`${creditPayStatusType[creditPayStatus]}Modal`] = true; this[`${creditPayStatusType[creditPayStatus]}Modal`] = true;
return; return;
} else if (creditPayStatus === FACE_VERIFICATION_CODE_PAY) { } else if (creditPayStatus === FACE_VERIFICATION_CODE_PAY) {
/* 人脸鉴权 */ /* 人脸鉴权 */
cookies.set('info', { cookies.set('info', {
paramsData, paramsData: {
flowOrderNo: this.flowOrderNo,
...paramsData
},
payType: this.payType, payType: this.payType,
selectedCoupon: this.selectedCoupon, selectedCoupon: this.selectedCoupon,
isCheckAgreement: this.isCheckAgreement, isCheckAgreement: this.isCheckAgreement,
mergePayPretreatmentId: this.mergePayPretreatmentId mergePayPretreatmentId: this.mergePayPretreatmentId
}); });
this.close(); this.close();
setTimeout(() => {
this.goOcr(); this.goOcr();
}, 500);
} }
}, },
payResult(type, error) { payResult(type, error) {
...@@ -571,7 +570,6 @@ export default { ...@@ -571,7 +570,6 @@ export default {
flowOrderNo: this.flowOrderNo, flowOrderNo: this.flowOrderNo,
callBackUrl: encodeURIComponent(`${window.location.href}&ocrflag=1`) callBackUrl: encodeURIComponent(`${window.location.href}&ocrflag=1`)
}); });
cookies.set('ocrflag', 1);
if (!res.callBackUrl) return; if (!res.callBackUrl) return;
window.location.href = res.callBackUrl; window.location.href = res.callBackUrl;
}, },
......
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