填写机构错误信息

报错机构:上海市东海老年护理医院
确认提交
yii.validation.number(value, messages, { "pattern": /^[+-]?\d+$/, "message": "参观人数必须是整数。", "skipOnEmpty": 1 }); yii.validation.string(value, messages, { "message": "参观人数必须是一条字符串。", "max": 3, "tooLong": "参观人数只能包含至多3个字符。", "skipOnEmpty": 1 }); } }, { "id": "resthomevisit-has_elder", "name": "has_elder", "container": ".field-resthomevisit-has_elder", "input": "#resthomevisit-has_elder", "validateOnBlur": false, "validate": function (attribute, value, messages, deferred, $form) { yii.validation.string(value, messages, { "message": "老人同行必须是一条字符串。", "max": 1, "tooLong": "老人同行只能包含至多1个字符。", "skipOnEmpty": 1 }); } }, { "id": "resthomevisit-contact", "name": "contact", "container": ".field-resthomevisit-contact", "input": "#resthomevisit-contact", "validateOnBlur": false, "validate": function (attribute, value, messages, deferred, $form) { yii.validation.required(value, messages, {"message": "联系人不能为空。"}); yii.validation.regularExpression(value, messages, { "pattern": /^[\u4e00-\u9fa5]{2,5}P?T?W?C?$/, "message": "姓名为2-5位汉字!", "skipOnEmpty": 1 }); } }, { "id": "resthomevisit-mobile", "name": "mobile", "container": ".field-user-mobile", "input": "#user-mobile", "validateOnBlur": false, "validate": function (attribute, value, messages, deferred, $form) { yii.validation.required(value, messages, {"message": "手机不能为空。"}); yii.validation.regularExpression(value, messages, { "pattern": /^1[3|4|5|6|7|8|9]{1}[0-9]{9}$/, "message": "不是有效的手机号码!", "skipOnEmpty": 1 }); } }, { "id": "resthomevisit-smscaptcha", "name": "smsCaptcha", "container": ".field-resthomevisit-smscaptcha", "input": "#resthomevisit-smscaptcha", "enableAjaxValidation": true, "validateOnBlur": false, "validate": function (attribute, value, messages, deferred, $form) { if ((function (attribute, value) { return $('#userLogin').text() == 'n'; })(attribute, value)) { yii.validation.required(value, messages, {"message": "验证码不能为空。"}); } } }], []); });