| | |
| | | layer.close(index); |
| | | var data = json.content; |
| | | if (data === "not found") { |
| | | layer.alert("没有获取到身份证信息!", { |
| | | offset: ['300px', '300px'] |
| | | }); |
| | | // layer.alert("没有获取到身份证信息!", { |
| | | // offset: ['300px', '300px'] |
| | | // }); |
| | | alertError("没有获取到身份证信息!"); |
| | | return; |
| | | } |
| | | // 临时赋值 |
| | |
| | | function submit() { |
| | | var data = form.val("form-data"); |
| | | if (!data.userName) { |
| | | notify("承运人信息不能为空", null); |
| | | // notify("承运人信息不能为空", null); |
| | | alertError("承运人信息不能为空"); |
| | | return; |
| | | } |
| | | if (!data.plateNum) { |
| | | notify("车牌号不能为空", null); |
| | | alertError("车牌号不能为空"); |
| | | // notify("车牌号不能为空", null); |
| | | return; |
| | | } |
| | | if (!data.intelCard && !data.userId) { |
| | | notify("智慧卡号与身份证号不能同时为空", null); |
| | | alertError("智慧卡号与身份证号不能同时为空"); |
| | | // notify("智慧卡号与身份证号不能同时为空", null); |
| | | return; |
| | | } |
| | | |