From bbd1b33996ecce3c75d5ba6c569a2c61ff055cb1 Mon Sep 17 00:00:00 2001 From: liaozetao <1107136310@qq.com> Date: Tue, 2 Apr 2024 14:51:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dvip=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/vip/VipManageView.vue | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/views/vip/VipManageView.vue b/src/views/vip/VipManageView.vue index ca1f2ee..befd6ab 100644 --- a/src/views/vip/VipManageView.vue +++ b/src/views/vip/VipManageView.vue @@ -667,18 +667,16 @@ export default { } } }); - let addSize = $('#addSize').val(); - if (!addSize) { - addSize = 0; - } - if (addSize > 0) { - $('#addSize').val(--addSize); - } - $('#returnProfit' + index).remove(); } - } else { - $('#returnProfit' + index).remove(); } + let addSize = $('#addSize').val(); + if (!addSize) { + addSize = 0; + } + if (addSize > 0) { + $('#addSize').val(--addSize); + } + $('#returnProfit' + index).remove(); }); // 保存 @@ -738,6 +736,9 @@ export default { let returnProfitId = $('#returnProfitId' + i).val(); let profitDate = parseFloat($('#profitDate' + i).val()); let profitAmount = $('#profitAmount' + i).val(); + if (!returnProfitId && !profitDate && !profitAmount) { + continue; + } if (profitDate != 0 && profitDate > 29) { $("#tipMsg").text("返利日期不能超过30天!"); $("#tipModal").modal('show');