Commit a189f6d8 authored by 潘永坪's avatar 潘永坪

身份证号和姓名正则取消

parent 54a40cf4
......@@ -19,14 +19,14 @@
<text>
姓名:
</text>
<input v-model.trim="name" placeholder="请输入中文姓名,必填" />
<input v-model.trim="name" placeholder="请输入姓名,必填" />
</view>
<view>
<text>
身份证:
</text>
<input type="idcard" v-model.trim="credentialNumber" maxlength="18" placeholder="请输入身份证号码,必填" />
<input v-model.trim="credentialNumber" maxlength="18" placeholder="请输入身份证号码,必填" />
</view>
<view>
<text>
......@@ -70,20 +70,6 @@ export default {
methods: {
//---保存
keepSave() {
if (!this.$commonjs.nameReg().test(this.name)) {
uni.showToast({
title:'请输入正确的中文名字',
icon:'none'
})
return
}
if (!this.$commonjs.idReg().test(this.credentialNumber)) {
uni.showToast({
title:'请输入正确身份证号',
icon:'none'
})
return
}
if (this.phone&&!this.$commonjs.phoneReg().test(this.phone)) {
uni.showToast({
title:'请输入正确电话号码',
......
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