fix: 修改 链接

This commit is contained in:
zhangds 2024-05-10 09:18:05 +08:00
parent f59590253d
commit 5d94239d51
2 changed files with 9 additions and 4 deletions

View File

@ -273,6 +273,7 @@
settlementFun(data.token, data.settlement_data.settlement_type);
}
wxauth_url = `${wxauth_url}?jump=${location.origin}/packkey/bm-index.html`;
} else {
// 不是包码
if (this.pageType === 4 || this.pageType === 8) {

View File

@ -25,12 +25,16 @@ const settlementFun = (token, settlementType) => {
// 兼容IOS 返回
const locationReplace = (url) => {
try {
if (history && history.replaceState) {
history.replaceState(null, document.title, url);
history.go(0);
} else {
location.replace(url);
}
} catch {
location.replace(url);
}
};
// 获取url参数