| | |
| | | ' <div class="form-group" >\n' + |
| | | ' <label class="col-sm-3 control-label">*手机号:</label>\n' + |
| | | ' <div class="col-sm-9">\n' + |
| | | ' <input class="form-control" id="addPhone" placeholder="请输入">' + |
| | | ' <input class="form-control" id="addPhone" type="text" placeholder="请输入" maxlength="11">' + |
| | | ' </div>\n' + |
| | | ' </div>\n' + |
| | | ' <div class="form-group" >\n' + |
| | |
| | | } |
| | | if(null == addPhone || '' == addPhone){ |
| | | Feng.info("手机号不能为空"); |
| | | return |
| | | } |
| | | //定义正则表达式 |
| | | var reg='^((13[0-9])|(14[5,7])|(15[0-3,5-9])|(17[0,3,5-9])|(18[0-9])|166|198|199|191|(147))\\d{8}$'; |
| | | //创建正则表达式对象 |
| | | var regExp=new RegExp(reg); |
| | | //使用test()函数验证数据是否匹配正则表达式,匹配返回true,否则返回false |
| | | if (!regExp.test(addPhone)) { |
| | | Feng.info("手机号格式不正确"); |
| | | return |
| | | } |
| | | if(null == addProvince || '' == addProvince){ |
| | |
| | | ' <div class="form-group" >\n' + |
| | | ' <label class="col-sm-3 control-label">*手机号:</label>\n' + |
| | | ' <div class="col-sm-9">\n' + |
| | | ' <input class="form-control" id="addPhone" placeholder="请输入">' + |
| | | ' <input class="form-control" id="addPhone" type="text" placeholder="请输入" maxlength="11"/>' + |
| | | ' </div>\n' + |
| | | ' </div>\n' + |
| | | ' <div class="form-group" >\n' + |
| | |
| | | } |
| | | if (null == addPhone || '' == addPhone) { |
| | | Feng.info("手机号不能为空"); |
| | | return |
| | | } |
| | | //定义正则表达式 |
| | | var reg='^((13[0-9])|(14[5,7])|(15[0-3,5-9])|(17[0,3,5-9])|(18[0-9])|166|198|199|191|(147))\\d{8}$'; |
| | | //创建正则表达式对象 |
| | | var regExp=new RegExp(reg); |
| | | //使用test()函数验证数据是否匹配正则表达式,匹配返回true,否则返回false |
| | | if (!regExp.test(addPhone)) { |
| | | Feng.info("手机号格式不正确"); |
| | | return |
| | | } |
| | | if (null == addProvince || '' == addProvince) { |
| | |
| | | if (res.code == 200) { |
| | | Feng.success("删除成功"); |
| | | layer.closeAll(); |
| | | Referee.table.refresh(); |
| | | Referee.search(); |
| | | } else { |
| | | Feng.error(res.msg); |
| | | } |
| | | }, function (data) { |
| | | Feng.error("添加失败!" + data.responseJSON.message + "!"); |
| | | Feng.error("删除失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | | ajax.setData({ |
| | | 'id': Referee.seItem.id, |
| | |
| | | var operation = function(){ |
| | | var ajax = new $ax(Feng.ctxPath + "/referee/updateState", function (res) { |
| | | if (res.code == 200) { |
| | | Feng.success("删除成功"); |
| | | Feng.success("解冻成功"); |
| | | layer.closeAll(); |
| | | Referee.table.refresh(); |
| | | Referee.search(); |
| | | } else { |
| | | Feng.error(res.msg); |
| | | } |
| | | }, function (data) { |
| | | Feng.error("添加失败!" + data.responseJSON.message + "!"); |
| | | Feng.error("解冻失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | | ajax.setData({ |
| | | 'id': Referee.seItem.id, |
| | |
| | | var operation = function(){ |
| | | var ajax = new $ax(Feng.ctxPath + "/referee/updateState", function (res) { |
| | | if (res.code == 200) { |
| | | Feng.success("删除成功"); |
| | | Feng.success("冻结成功"); |
| | | layer.closeAll(); |
| | | Referee.table.refresh(); |
| | | Referee.search(); |
| | | } else { |
| | | Feng.error(res.msg); |
| | | } |
| | | }, function (data) { |
| | | Feng.error("添加失败!" + data.responseJSON.message + "!"); |
| | | Feng.error("冻结失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | | ajax.setData({ |
| | | 'id': Referee.seItem.id, |
| | |
| | | |
| | | Referee.search = function () { |
| | | var queryData = {}; |
| | | queryData['userName'] = $("#name").val(); |
| | | queryData['name'] = $("#name").val(); |
| | | queryData['phone'] =$("#phone").val(); |
| | | queryData['provinceCode'] =$("#provinceCode").val(); |
| | | queryData['cityCode'] =$("#cityCode").val(); |