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);
|
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() {
|
function closePage() {
|
||||||
try {
|
try {
|
||||||
if (window.app && typeof window.app.closePage === "function") {
|
if (window.app && typeof window.app.closePage === "function") {
|
||||||
@ -1289,6 +1303,7 @@
|
|||||||
renderDetails();
|
renderDetails();
|
||||||
renderTeamListCard();
|
renderTeamListCard();
|
||||||
renderInviteModal();
|
renderInviteModal();
|
||||||
|
syncWalletActionLink();
|
||||||
}
|
}
|
||||||
|
|
||||||
function clearPayee() {
|
function clearPayee() {
|
||||||
@ -1357,6 +1372,7 @@
|
|||||||
clearPayee();
|
clearPayee();
|
||||||
setIdentity();
|
setIdentity();
|
||||||
bindEvents();
|
bindEvents();
|
||||||
|
syncWalletActionLink();
|
||||||
renderProfile();
|
renderProfile();
|
||||||
renderBalance();
|
renderBalance();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user