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 @@ - 联系方式: + *联系方式: