Commit 2deef894 authored by FE-安焕焕's avatar FE-安焕焕 👣

修改支付中页面参数

parent cf807bfc
......@@ -6,6 +6,8 @@
*/
import qs from 'qs';
import cookies from '@/service/cookieStorage.service';
import localStorage from '@/service/localStorage.service';
import { isApp as isXyqb } from '@/service/validation.service';
/**
* payByWeixinJsapi
......@@ -57,11 +59,13 @@ function payByWeixinH5(info) {
if (!info.params) {
info.params = {};
}
const vccToken = localStorage.get('vccToken');
const orderNo = cookies.get('orderNo')?.orderNo;
info.params.isXyqb = isXyqb ? 1 : 0;
info.params.isWxH5 = 1;
const currentPath = encodeURIComponent(
window.location.origin +
'/payWaiting' +
`/payWaiting?vccToken=${vccToken}&orderNo=${orderNo}` +
qs.stringify(info.params, { encode: true, addQueryPrefix: true })
);
// window.location.href = `${info.url}&redirect_url=${currentPath}`;
......
......@@ -128,6 +128,7 @@ import {
kaGetNextUrl
} from '@/api/pay.api.js';
const VCC_CHANNEL = localStorage.get('vccChannel');
let Current_Url = null;
export default {
components: {
crPayCard,
......@@ -207,6 +208,8 @@ export default {
mounted() {
this.orderNo = this.$route.query.orderNo || cookies.get('orderNo')?.orderNo;
cookies.set('orderNo', { orderNo: this.orderNo });
const vccToken = localStorage.get('vccToken');
Current_Url = `${window.location.origin}/payWaiting?vccToken=${vccToken}&orderNo=${this.orderNo}`;
this.queryPayInfo();
this.getCouponList(this.orderNo);
},
......@@ -406,8 +409,8 @@ export default {
}
const paramsData = {
...params,
quitUrl: `${window.location.origin}/payWaiting`,
returnUrl: `${window.location.origin}/payWaiting`,
quitUrl: Current_Url,
returnUrl: Current_Url,
ocrAuth: {
isH5: true
},
......
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