浏览代码

投诉建议增加验证

master
sunfengxiang 3 年前
父节点
当前提交
c74d11540f
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. +2
    -0
      agriculturalLawEnforcement/static/js/project/complaint/complaintAdd.js
  2. +1
    -1
      agriculturalLawEnforcement/view/complaint/complaintAdd.html

+ 2
- 0
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(),


+ 1
- 1
agriculturalLawEnforcement/view/complaint/complaintAdd.html 查看文件

@@ -106,7 +106,7 @@
<td>
<input type="text" placeholder="请输入姓名" id="name"/>
</td>
<td>联系方式:</td>
<td><span style="color: red;">*</span>联系方式:</td>
<td>
<input type="text" placeholder="请输入联系方式" id="phone"/>
</td>


正在加载...
取消
保存