Commit 9993fc06 authored by 吴春's avatar 吴春

修改旅行社或者代理商购买票的时候身份的验证

parent 655c4e9f
......@@ -148,12 +148,23 @@
})
});
function isCardNo(obj) {
if ($(obj).val().length>=15) {
if ($(obj).val().length == 15) {
var reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
if (reg.test($(obj).val()) === false) {
layer.msg("身份证输入不合法");
return false;
}
}
else if ($(obj).val().length == 18) {
var reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
if (reg.test($(obj).val()) === false) {
layer.msg("身份证输入不合法");
return false;
}
}
}
function TotalPrice(obj, type) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment