fix: 修改 链接
This commit is contained in:
parent
f59590253d
commit
5d94239d51
|
@ -273,6 +273,7 @@
|
||||||
settlementFun(data.token, data.settlement_data.settlement_type);
|
settlementFun(data.token, data.settlement_data.settlement_type);
|
||||||
}
|
}
|
||||||
wxauth_url = `${wxauth_url}?jump=${location.origin}/packkey/bm-index.html`;
|
wxauth_url = `${wxauth_url}?jump=${location.origin}/packkey/bm-index.html`;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// 不是包码
|
// 不是包码
|
||||||
if (this.pageType === 4 || this.pageType === 8) {
|
if (this.pageType === 4 || this.pageType === 8) {
|
||||||
|
|
12
libs.js
12
libs.js
|
@ -25,10 +25,14 @@ const settlementFun = (token, settlementType) => {
|
||||||
|
|
||||||
// 兼容IOS 返回
|
// 兼容IOS 返回
|
||||||
const locationReplace = (url) => {
|
const locationReplace = (url) => {
|
||||||
if (history && history.replaceState) {
|
try {
|
||||||
history.replaceState(null, document.title, url);
|
if (history && history.replaceState) {
|
||||||
history.go(0);
|
history.replaceState(null, document.title, url);
|
||||||
} else {
|
history.go(0);
|
||||||
|
} else {
|
||||||
|
location.replace(url);
|
||||||
|
}
|
||||||
|
} catch {
|
||||||
location.replace(url);
|
location.replace(url);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue