diff --git a/h5/hyapp/bd-center/index.html b/h5/hyapp/bd-center/index.html index e8ce0aa..0ea4428 100644 --- a/h5/hyapp/bd-center/index.html +++ b/h5/hyapp/bd-center/index.html @@ -4,7 +4,7 @@ BD Center - +
@@ -55,7 +55,7 @@
Salary
- + Withdraw/Exchange
@@ -126,6 +126,6 @@
- + diff --git a/h5/hyapp/bd-center/script.js b/h5/hyapp/bd-center/script.js index 4d9b0ae..efc3994 100644 --- a/h5/hyapp/bd-center/script.js +++ b/h5/hyapp/bd-center/script.js @@ -944,6 +944,21 @@ 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"); + nextParams.set("salaryType", "BD_SALARY"); + nextParams.set("mode", "withdraw"); + 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") { @@ -997,6 +1012,7 @@ renderBill(); renderTeamListCard(); renderInviteModal(); + syncWalletActionLink(); } function clearPayee() { @@ -1055,6 +1071,7 @@ clearPayee(); setIdentity(); bindEvents(); + syncWalletActionLink(); renderProfile(); renderBalance(); diff --git a/h5/hyapp/bd-center/style.css b/h5/hyapp/bd-center/style.css index 776c64c..531def5 100644 --- a/h5/hyapp/bd-center/style.css +++ b/h5/hyapp/bd-center/style.css @@ -372,6 +372,7 @@ button { color: #10bcb0; font-size: 13px; font-weight: 900; + text-decoration: none; } .salary-value {