|
|
@@ -316,14 +316,19 @@ Ext.define('KitchenSink.view.binding.ChildForm', {
|
|
|
hideTrigger:true,
|
|
|
allowBlank:false,
|
|
|
maxLength: 30,
|
|
|
- regex:/^(13[0-9]|14[5|7]|15[0|1|2|3|5|6|7|8|9]|18[0|1|2|3|5|6|7|8|9])\d{8}$/,
|
|
|
+ regex:/^1(3|4|5|7|8)\d{9}$/,
|
|
|
regexText:'请输入正确的手机号码',
|
|
|
listeners:{
|
|
|
+ change:function(f,a,b){
|
|
|
+ if(a==''){
|
|
|
+ f._lastCheckValue = ''
|
|
|
+ }
|
|
|
+ },
|
|
|
blur:function(f,a,b,c){
|
|
|
var form = f.ownerCt;
|
|
|
if(f.value&&f.value!=''&&f.isValid()&&f._lastCheckValue!=f.value){
|
|
|
+ f._lastCheckValue = f.value;
|
|
|
form.setLoading(true);
|
|
|
- f._lastCheckValue = f.value
|
|
|
Ext.Ajax.request({
|
|
|
url: '/api/account/account/checkMobile?mobile='+f.value,
|
|
|
method: 'GET',
|