diff --git a/src/views/vip/VipManageView.vue b/src/views/vip/VipManageView.vue index f2d8f3c..918074c 100644 --- a/src/views/vip/VipManageView.vue +++ b/src/views/vip/VipManageView.vue @@ -668,6 +668,9 @@ export default { // 保存 $('#button-save').on('click', function () { let params = buildSaveParams(); + if (!params) { + return; + } console.log(params) $.ajax({ type: 'post', @@ -710,7 +713,7 @@ export default { if (addSize && addSize > 5) { $("#tipMsg").text("返利数量超过5个!!!"); $("#tipModal").modal('show'); - return; + return null; } let isReturnProfit = $('#isReturnProfit').val(); let returnProfitArray = []; @@ -722,12 +725,12 @@ export default { if (profitDate != 0 && profitDate > 29) { $("#tipMsg").text("返利日期不能超过30天!"); $("#tipModal").modal('show'); - return; + return null; } if (!profitAmount || profitAmount <= 0) { $("#tipMsg").text("返利数量不能为空!"); $("#tipModal").modal('show'); - return; + return null; } let returnProfit = { vipLevel: vipLevel,