From c74d11540ffd910c4e0226bba14a6f4eb9815617 Mon Sep 17 00:00:00 2001 From: sunfengxiang Date: Mon, 29 Nov 2021 16:10:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=95=E8=AF=89=E5=BB=BA=E8=AE=AE=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../static/js/project/complaint/complaintAdd.js | 2 ++ agriculturalLawEnforcement/view/complaint/complaintAdd.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/agriculturalLawEnforcement/static/js/project/complaint/complaintAdd.js b/agriculturalLawEnforcement/static/js/project/complaint/complaintAdd.js index eda0a9d..0cbc4b8 100644 --- a/agriculturalLawEnforcement/static/js/project/complaint/complaintAdd.js +++ b/agriculturalLawEnforcement/static/js/project/complaint/complaintAdd.js @@ -29,6 +29,8 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa tools.initError('标题不能为空!'); } else if($('#content').val()=="" || $('#content').val()==undefined){ tools.initError('内容不能为空!'); + } else if($('#phone').val()=="" || $('#phone').val()==undefined){ + tools.initError('联系方式不能为空!'); } else{ var form = { title:$('#title').val(), diff --git a/agriculturalLawEnforcement/view/complaint/complaintAdd.html b/agriculturalLawEnforcement/view/complaint/complaintAdd.html index bf22191..ac88d02 100644 --- a/agriculturalLawEnforcement/view/complaint/complaintAdd.html +++ b/agriculturalLawEnforcement/view/complaint/complaintAdd.html @@ -106,7 +106,7 @@ - 联系方式: + *联系方式: