Commit 51ee88e7 authored by 全球's avatar 全球

提现姓名验证字段长度

parent a2753150
......@@ -22,6 +22,7 @@
label="姓名"
placeholder="请输入"
size="large"
maxlength="8"
/>
<van-field
v-model="form.idCardNo"
......@@ -109,8 +110,8 @@ export default {
this.$toast.fail("请输入正确的身份证号");
return;
}
if(!/^[a-zA-Z\u4e00-\u9fa5]+$/.test(this.form.name)){
this.$toast.fail("姓名仅支持中文");
if(!/^[u4e00-u9fa5]{8}/.test(this.form.name)){
this.$toast.fail("姓名仅支持中文或英文");
return;
}
const params = this.form;
......
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