zbH5/public/static/js/config.js

34 lines
887 B
JavaScript
Raw Normal View History

2025-01-28 15:25:35 +08:00
window.config = {
2025-02-25 22:55:31 +08:00
loginUrl: "https://web.ceniu.sztg.com/#/login",
2025-04-07 16:55:52 +08:00
VConsole: false,
2025-01-28 15:25:35 +08:00
userIdList: [],
shareEnv: "production",
2025-02-22 21:34:45 +08:00
getCarProductLink: ({
token,
refreshToken,
2025-03-29 10:11:56 +08:00
// departmentId = 36,
2025-04-07 16:55:52 +08:00
staffNo = "",
2025-02-22 21:34:45 +08:00
activityId,
}) => {
2025-04-07 16:55:52 +08:00
let url = ""
if (staffNo) {
if (activityId.includes("?")) {
url = `${activityId}&eId=${staffNo}`
} else {
url = `${activityId}?eId=${staffNo}`
}
} else {
url = activityId
}
2025-03-29 10:11:56 +08:00
// console.log("url", url)
// debugger
2025-02-22 21:34:45 +08:00
return `https://web.ceniu.sztg.com/setTokenAndRedirect.html?token=${encodeURIComponent(
token
)}&refreshToken=${encodeURIComponent(
refreshToken
2025-04-07 16:55:52 +08:00
)}&redirect=${encodeURIComponent(url)}`
2025-02-22 21:34:45 +08:00
}, // 购物车产品地址
mobileRegister:
"https://web.ceniu.sztg.com/#/login?pageType=mobileRegister&redirect=", // 用户注册地址
2025-03-29 10:11:56 +08:00
}