薪资账户 - 添加充值代理结算判断

This commit is contained in:
2025-07-04 16:34:01 +08:00
parent 9fecee67a7
commit 1d3c175524

View File

@@ -119,6 +119,7 @@ $(function () {
}
}
});
var rechargeUserLimitTip;
// 获取usd操作的功能标签tab
function getTab() {
tabPersonalArr = [];
@@ -138,8 +139,9 @@ function getTab() {
// 代理弹窗数据
$('.agent_pop .wrap li').remove()
var agent_popStr = '';
var rechargeUserList = res.data.rechargeUserList;
if (rechargeUserList.length <= 0) {
rechargeUserLimitTip = res.data.rechargeUserLimitTip;
var rechargeUserList = res.data.rechargeUserLimitTip?[]:res.data.rechargeUserList;
if (rechargeUserList.length <= 0 ) {
$('.agent_pop .wrap').append(`<li class="no">${langReplace(localLang.salary.text10)}</li>`);
} else {
rechargeUserList.forEach((res, i) => {
@@ -437,6 +439,7 @@ $('.tab').on('click', '.item', function () {
// typeTabType = i == 1 ? 'personal' : 'agent';
typeTabType = tabKey;
typeTabFun(typeTabType)
$('.confirm').show();
})
// 切换方式
$('.transfer_method').on('click', 'li', function () {
@@ -449,6 +452,7 @@ $('.transfer_method').on('click', 'li', function () {
$('.agent_pop .btn_wrap .sure').attr('type', type);
transfer_dollars_ArrType = type;
dollarsFun(transfer_dollars_ArrType);
$('.confirm').show();
})
$('.transfer_method').on('click', 'li .wenhao', function () {
$('.pop').show();
@@ -559,6 +563,10 @@ function operateValue(than) {
var targetUid = than.attr('uid');
var type = than.attr('type');
if (type == 3) {
if(rechargeUserLimitTip){
toastMsg(rechargeUserLimitTip);
return;
}
$('.agent_pop').show();
bodyScroolFun(true);
} else if (type == 4) {