Commit 44890876 authored by Xuguangxing's avatar Xuguangxing

fix ui error

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