From 3a945a5259dd9b5a1c774c743581343903d7ba64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?kaizheng=28=E9=83=91=E5=87=AF=29?= Date: Sat, 29 Mar 2025 10:11:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B4=AD=E7=89=A9=E8=BD=A6=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/static/js/config.js | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/public/static/js/config.js b/public/static/js/config.js index 523bdf7..9d2dee7 100644 --- a/public/static/js/config.js +++ b/public/static/js/config.js @@ -6,18 +6,24 @@ window.config = { getCarProductLink: ({ token, refreshToken, - departmentId = 36, - eId = 0, + // departmentId = 36, + // eId = 0, activityId, }) => { + // let url = "" + // if (activityId.includes("?")) { + // url = `${activityId}&departmentId=${departmentId}&eId=${eId}` + // } else { + // url = `${activityId}?eId=${eId}` + // } + // console.log("url", url) + // debugger return `https://web.ceniu.sztg.com/setTokenAndRedirect.html?token=${encodeURIComponent( token )}&refreshToken=${encodeURIComponent( refreshToken - )}&redirect=${encodeURIComponent( - `https://web.ceniu.sztg.com/#/index/shopping?departmentId=${departmentId}&eId=${eId}&activityId=${activityId}` - )}`; + )}&redirect=${encodeURIComponent(activityId)}` }, // 购物车产品地址 mobileRegister: "https://web.ceniu.sztg.com/#/login?pageType=mobileRegister&redirect=", // 用户注册地址 -}; +}