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');