Commit 9d95cfb1 authored by FE-安焕焕's avatar FE-安焕焕 👣

支付流水号的问题

parent 4e9aa392
...@@ -216,13 +216,11 @@ export default { ...@@ -216,13 +216,11 @@ 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') || {};
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');
...@@ -482,13 +480,15 @@ export default { ...@@ -482,13 +480,15 @@ 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,
...@@ -563,15 +563,13 @@ export default { ...@@ -563,15 +563,13 @@ 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',
orderNo: this.orderNo, orderNo: this.orderNo,
flowOrderNo: this.flowOrderNo, flowOrderNo: this.flowOrderNo,
callBackUrl: `${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