From 6bf8aca3ac89281c6db2892191cb6e8c113f468f Mon Sep 17 00:00:00 2001 From: dy <1197793912@qq.com> Date: Thu, 22 Apr 2021 15:01:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E7=AB=AF-=E6=B4=BB=E5=8A=A8=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E9=A1=B5=E9=9D=A2=E6=A0=A1=E9=AA=8C=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/templates/activity/info/edit.html | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/sino-activity/src/main/resources/templates/activity/info/edit.html b/sino-activity/src/main/resources/templates/activity/info/edit.html index 031c6b9fd..97f4882f8 100644 --- a/sino-activity/src/main/resources/templates/activity/info/edit.html +++ b/sino-activity/src/main/resources/templates/activity/info/edit.html @@ -1050,6 +1050,14 @@ var btnFinish = $('').text('完成') .addClass('btn btn-info') .on('click', function () { + var flag = $("#step-7").validate({ + errorPlacement: function(error, element) { + error.appendTo(element.parent().parent().parent()); + } + }).form(); + if (flag == false){ + return; + } //添加保存逻辑 var markupStr = $('.summernote').summernote('code'); $("#btnLink2").val(markupStr); @@ -1224,7 +1232,12 @@ // 该事件在离开某个步骤之前触发 $("#smartwizard").on("leaveStep", function (e, anchorObject, currentStepNumber, nextStepNumber, stepDirection) { if (stepDirection == 'forward') { - return $("#step-" + (currentStepNumber + 1)).validate().form(); + return $("#step-" + (currentStepNumber + 1)).validate({ + errorPlacement: function(error, element) { + error.appendTo(element.parent().parent().parent()); + } + } + ).form(); } return true; });