Commit 44890876 authored by Xuguangxing's avatar Xuguangxing

fix ui error

parent a22dc205
......@@ -71,14 +71,13 @@ function payByWeixinH5(info) {
'/payWaiting' +
qs.stringify(info.params, { encode: true, addQueryPrefix: true })
);
window.location.replace = `${info.url}&redirect_url=${currentPath}`;
// try {
// const nextPage = document.createElement('a');
// nextPage.setAttribute('href',);
// nextPage.click();
// } catch (error) {
// window.location.replace = `${info.url}&redirect_url=${currentPath}`;
// }
try {
const nextPage = document.createElement('a');
nextPage.setAttribute('href',);
nextPage.click();
} catch (error) {
window.location.href = `${info.url}&redirect_url=${currentPath}`;
}
}
/**
......@@ -117,10 +116,10 @@ function payByThirdPartyCashier(info) {
'/payWaiting' +
qs.stringify(info.params, { encode: true, addQueryPrefix: true })
);
// const nextPage = document.createElement('a');
// nextPage.setAttribute('href', `${info.url}&redirect_uri=${currentPath}`);
// nextPage.click();
window.location.replace = `${info.url}&redirect_uri=${currentPath}`;
const nextPage = document.createElement('a');
nextPage.setAttribute('href', `${info.url}&redirect_uri=${currentPath}`);
nextPage.click();
window.location.href = `${info.url}&redirect_uri=${currentPath}`;
}
/**
......
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