diff --git a/h5/hyapp/bd-leader-center/script.js b/h5/hyapp/bd-leader-center/script.js index dff0ca4..14e399b 100644 --- a/h5/hyapp/bd-leader-center/script.js +++ b/h5/hyapp/bd-leader-center/script.js @@ -1234,6 +1234,20 @@ window.location.href = buildRouteURL(route); } + function syncWalletActionLink() { + const nextParams = new URLSearchParams(); + const token = readRawParam("token"); + if (token) nextParams.set("token", token); + if (currentLang) nextParams.set("lang", currentLang); + nextParams.set("identity", "BD_LEADER"); + nextParams.set("salaryType", "BD_LEADER_SALARY"); + const query = nextParams.toString(); + + document.querySelectorAll("[data-wallet-action-link]").forEach((link) => { + link.setAttribute("href", `../withdraw-exchange/index.html${query ? `?${query}` : ""}`); + }); + } + function closePage() { try { if (window.app && typeof window.app.closePage === "function") { @@ -1289,6 +1303,7 @@ renderDetails(); renderTeamListCard(); renderInviteModal(); + syncWalletActionLink(); } function clearPayee() { @@ -1357,6 +1372,7 @@ clearPayee(); setIdentity(); bindEvents(); + syncWalletActionLink(); renderProfile(); renderBalance();