confirmAuthcode: {
rules: [{
required: true,
errorMessage: '请再次输入4位认证码',
},
{
validateFunction: function(rule, value, data, callback) {
if(value.legth==4){}
if (value != data.authcode) {
callback('两次输入的认证码必须相同')
}
return true
}
}
]
}
05-16
780
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
04-06
2057
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
09-02
4561
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)