/**
 * 验证电话号码（手机号码+电话号码）
 *
 * @param obj
 * @returns {Boolean}
 */
function checkPhoneNum(obj){if(/^((\d{3}-\d{8}|\d{4}-\d{7,8})|(1[3|5|7|8][0-9]{9}))$/.test(obj)){return true}return false};function checkAddress(obj){if(/^[\u4e00-\u9fa5a-zA-Z]{1,5}[\u4e00-\u9fa5a-zA-Z0-9]{1,25}$/.test(obj)){return true}return false};function checkUserName(obj){var re1=new RegExp("^([\u4E00-\uFA29]|[\uE7C7-\uE7F3]|[a-zA-Z0-9]){1,30}$");if(re1.test(obj)){return true}else{return false}};function checkIdCard(obj){if(/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(obj)){return true}return false};function checkMoney(obj){var reg=new RegExp("^[0-9]*$");if(reg.test(obj)){return true}return false};function checkPhone(phone){if(phone!=""){var p1=/^(([0\+]\d{2,3}-)?(0\d{2,3})-)?(\d{7,8})(-(\d{3,}))?$/;var me=false;if(p1.test(phone)){me=true}if(!me){alert('对不起，您输入的电话号码有错误,区号和电话号码之间请用-分割!');return false}}else{alert("电话号码不能为空！");return false}};function checkMoble(mobile){if(mobile!=""){var reg0=/^13\d{5,9}$/;var reg1=/^153\d{4,8}$/;var reg2=/^159\d{4,8}$/;var reg3=/^0\d{10,11}$/;var m=false;if(reg0.test(mobile)){m=true}if(reg1.test(mobile)){m=true}if(reg2.test(mobile)){m=true}if(reg3.test(mobile)){m=true}if(!m){return false}return true}else{return false}};function luhmCheck(bankno){var reg=/^\d{19}$/;if(!reg.test(bankno)){return false}var lastNum=bankno.substr(bankno.length-1,1);var first15Num=bankno.substr(0,bankno.length-1);var newArr=[];for(var i=first15Num.length-1;i>-1;i-=1){newArr.push(first15Num.substr(i,1))}var arrJiShu=[];var arrJiShu2=[];var arrOuShu=[];for(var j=0;j<newArr.length;j+=1){if((j+1)%2==1){if(parseInt(newArr[j])*2<9){arrJiShu.push(parseInt(newArr[j])*2)}else{arrJiShu2.push(parseInt(newArr[j])*2)}}else{arrOuShu.push(newArr[j])}}var jishu_child1=[];var jishu_child2=[];for(var h=0;h<arrJiShu2.length;h+=1){jishu_child1.push(parseInt(arrJiShu2[h])%10);jishu_child2.push(parseInt(arrJiShu2[h])/10)}var sumJiShu=0;var sumOuShu=0;var sumJiShuChild1=0;var sumJiShuChild2=0;var sumTotal=0;for(var m=0;m<arrJiShu.length;m+=1){sumJiShu=sumJiShu+parseInt(arrJiShu[m])}for(var n=0;n<arrOuShu.length;n+=1){sumOuShu=sumOuShu+parseInt(arrOuShu[n])}for(var p=0;p<jishu_child1.length;p+=1){sumJiShuChild1=sumJiShuChild1+parseInt(jishu_child1[p]);sumJiShuChild2=sumJiShuChild2+parseInt(jishu_child2[p])}sumTotal=parseInt(sumJiShu)+parseInt(sumOuShu)+parseInt(sumJiShuChild1)+parseInt(sumJiShuChild2);var k=parseInt(sumTotal)%10==0?10:parseInt(sumTotal)%10;var luhm=10-k;if(lastNum==luhm){return true}else{return false}};function checkRemark(remark){var pattern=new RegExp("[`~!@#$^&*()=|{}':;'\\[\\]<>/?~！@#￥……&*（）——|{}【】‘；：”“'、？]");if(remark!=""){$.trim(remark);if(!/^[\u4e00-\u9fa5_a-zA-Z0-9]+$/.test(remark)||pattern.test(remark)){mui.alert("请不要输入中文、字母、数字以外的特殊字符!");return}if(!(remark.length>=0&&remark.length<=100)){mui.alert("备注字数长度在0-100之间!");return}}};