Commit a22dc205 authored by Xuguangxing's avatar Xuguangxing

fix ui error

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