|
@@ -212,6 +212,17 @@ function TimeFormatter(time){
|
|
|
|
|
|
Vue.prototype.$validatePhone = ValidatePhone
|
|
|
|
|
|
+ function ValidateMobilePhone(val){
|
|
|
+ let mobReg = /0?1[0-9]\d{9}$/;
|
|
|
+ if (mobReg.test(val)) {
|
|
|
+ return true
|
|
|
+ } else {
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ Vue.prototype.$ValidateMobilePhone = ValidateMobilePhone
|
|
|
+
|
|
|
function ValidateInteger(val,max){
|
|
|
let reg = /(^[0-9]\d*$)/
|
|
|
if(reg.test(val)){
|