源文件

This commit is contained in:
gyq
2024-05-23 14:39:33 +08:00
commit a1128dd791
2997 changed files with 500069 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
console.log(window.location,'windowlocationwindowlocation')
console.log(window.location.pathname.split('/pages/hub/'),'46541651651651615')
let pathname = window.location.pathname.split('/pages/hub/').slice(-1)[0]
let pathnameList = pathname.split("/")
let pathnameString = window.location.pathname
console.log(pathnameList[1],'pathnameString')
if (pathnameList.length >= 2) {
let parameterToRemove = pathnameList[1]
pathnameString = pathnameString.replace(parameterToRemove, "");
}
console.log(pathnameString,'pathnameStringpathnameString')
// 支持多服务商码牌地址
if(/^\/cashier\/(.+)\/pages\/hub\/(default|h5|lite)\/$/.test(pathname)){
console.log(pathnameList,'windowlocationwindowlocation')
window.location.href= '/cashier/pages/hub/' + pathnameList[0] + window.location.search
}