Commit a2753150 authored by 全球's avatar 全球

提现姓名验证

parent 205336f5
......@@ -105,14 +105,14 @@ export default {
this.$toast.fail("请输入身份证号");
return;
}
if (
!/^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/.test(
this.form.idCardNo
)
) {
if (!/^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/.test(this.form.idCardNo)) {
this.$toast.fail("请输入正确的身份证号");
return;
}
if(!/^[a-zA-Z\u4e00-\u9fa5]+$/.test(this.form.name)){
this.$toast.fail("姓名仅支持中文");
return;
}
const params = this.form;
if (this.form.id) {
editUserBankInfo(params)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment