From 8e3592b64223815be89cd142ed92530ade883126 Mon Sep 17 00:00:00 2001 From: liaozetao <1107136310@qq.com> Date: Mon, 1 Apr 2024 16:46:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BF=9D=E5=AD=98=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/vip/VipManageView.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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,