Authored by xuqi

phone regx

@@ -65,7 +65,7 @@ function validateAddress($el) { @@ -65,7 +65,7 @@ function validateAddress($el) {
65 ], 65 ],
66 phone: [ 66 phone: [
67 { 67 {
68 - regx: /[\d-]+/, 68 + regx: /^[\d-]+$/,
69 err: '只能包含数字、-组合', 69 err: '只能包含数字、-组合',
70 skipWhenEmpty: true 70 skipWhenEmpty: true
71 } 71 }