|
@@ -106,6 +106,11 @@ var cmSysVitaMixins = function () {
|
|
|
handleSubmit(){
|
|
|
// 提交联系人信息
|
|
|
if(this.isDisabled){ return }
|
|
|
+ let reg = RegExp(/^1\d{10}$/);
|
|
|
+ if(!reg.test(params.consultMobile)){
|
|
|
+ CAIMEI.dialog('请输入正确的手机号');
|
|
|
+ return
|
|
|
+ }
|
|
|
this.userInformationInsertRoos(this.consultParams);
|
|
|
},
|
|
|
handleClose(){
|
|
@@ -130,11 +135,6 @@ var cmSysVitaMixins = function () {
|
|
|
userInformationInsertRoos(params){
|
|
|
//提交记录咨询人&&关闭弹窗
|
|
|
let _self = this;
|
|
|
- let reg = RegExp(/^1\d{10}$/);
|
|
|
- if(!reg.test(params.consultMobile)){
|
|
|
- CAIMEI.dialog('请输入正确的手机号');
|
|
|
- return
|
|
|
- }
|
|
|
PublicApi.userInformationInsertRoos(params, function (response) {
|
|
|
if(response.code == 0){
|
|
|
_self.showRossHtml = false
|