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

支付流水号的问题

parent 4e9aa392
......@@ -216,13 +216,11 @@ export default {
mounted() {
this.orderNo = this.$route.query.orderNo || cookies.get('orderNo')?.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') || {};
cookies.remove('ocrflag');
cookies.remove('info');
// 先支付再查询信息
this.flowOrderNo = cookies.get('flowOrderNo');
console.log(this.payInfo?.paramsData);
this.pay(this.payInfo?.paramsData, 'ocr', cookies.get('ocrflag'));
}
const vccToken = localStorage.get('vccToken');
......@@ -482,13 +480,15 @@ export default {
) {
/* 密码或者短信鉴权 */
this.close();
console.log(creditPayStatus, 'creditPayStatus');
this[`${creditPayStatusType[creditPayStatus]}Modal`] = true;
return;
} else if (creditPayStatus === FACE_VERIFICATION_CODE_PAY) {
/* 人脸鉴权 */
cookies.set('info', {
paramsData,
paramsData: {
flowOrderNo: this.flowOrderNo,
...paramsData
},
payType: this.payType,
selectedCoupon: this.selectedCoupon,
isCheckAgreement: this.isCheckAgreement,
......@@ -563,15 +563,13 @@ export default {
},
/* 走h5活体流程 */
async goOcr() {
cookies.set('flowOrderNo', this.flowOrderNo);
const [res] = await ocrFaceId({
isH5: true,
type: 'xyqb',
orderNo: this.orderNo,
flowOrderNo: this.flowOrderNo,
callBackUrl: `${window.location.href}&ocrflag=1`
callBackUrl: encodeURIComponent(`${window.location.href}&ocrflag=1`)
});
cookies.set('ocrflag', 1);
if (!res.callBackUrl) return;
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