| | |
| | | },*/ |
| | | password: { |
| | | validators: { |
| | | notEmpty: { |
| | | message: '密码不能为空' |
| | | }, |
| | | regexp:{ |
| | | regexp: /^.{6,18}$/, |
| | | message: '密码长度为6-18' |
| | |
| | | }, |
| | | rePassword: { |
| | | validators: { |
| | | notEmpty: { |
| | | message: '密码不能为空' |
| | | }, |
| | | regexp:{ |
| | | regexp: /^.{6,18}$/, |
| | | message: '密码长度为6-18' |
| | |
| | | if(!this.validate()){ |
| | | return ; |
| | | } |
| | | |
| | | // 判断密码 |
| | | if ($('#password').val() == "" || $('#password').val() == null){ |
| | | Feng.info("密码不能为空"); |
| | | return; |
| | | } |
| | | if ($('#rePassword').val() == "" || $('#rePassword').val() == null){ |
| | | Feng.info("密码不能为空"); |
| | | return; |
| | | } |
| | | |
| | | // 遍历this.tCarInfoData 如果有值为空字符串或者是undefined 将这个字段剔除 |
| | | for (var key in this.yesDriverInfoData) { |
| | | if (this.yesDriverInfoData[key] == "" || this.yesDriverInfoData[key] == undefined) { |