给注册的账户限制为只能用手机号码

This commit is contained in:
季圣华
2019-11-02 09:49:01 +08:00
parent 8937235726
commit 15a431e77f
2 changed files with 22 additions and 5 deletions

View File

@@ -334,4 +334,18 @@
function turnBillDetailPage(number, type) {
js.addTabPage(null, "单据明细", "/pages/materials/bill_detail.html?n="+ number + "&type=" + type);
}
/**
* 验证手机号码
* @param phoneInput
* @returns {boolean}
*/
function isPhoneAvailable(phoneInput) {
var myreg=/^[1][3,4,5,7,8,9][0-9]{9}$/;
if (!myreg.test(phoneInput.val())) {
return false;
} else {
return true;
}
}