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) {
|
||||||
|
|
4
libs.js
4
libs.js
|
@ -25,12 +25,16 @@ const settlementFun = (token, settlementType) => {
|
||||||
|
|
||||||
// 兼容IOS 返回
|
// 兼容IOS 返回
|
||||||
const locationReplace = (url) => {
|
const locationReplace = (url) => {
|
||||||
|
try {
|
||||||
if (history && history.replaceState) {
|
if (history && history.replaceState) {
|
||||||
history.replaceState(null, document.title, url);
|
history.replaceState(null, document.title, url);
|
||||||
history.go(0);
|
history.go(0);
|
||||||
} else {
|
} else {
|
||||||
location.replace(url);
|
location.replace(url);
|
||||||
}
|
}
|
||||||
|
} catch {
|
||||||
|
location.replace(url);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// 获取url参数
|
// 获取url参数
|
||||||
|
|
Loading…
Reference in New Issue