fix: sync bd leader wallet link params
This commit is contained in:
parent
9bcba16436
commit
9a39096dcd
@ -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();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user