给注册的账户限制为只能用手机号码
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user