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

提现姓名验证字段长度

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