fix(mobile regex): #

pull/53/head
Angelo 2022-04-26 16:36:42 +08:00
parent 7f0a46c7d7
commit 807a5819f2
1 changed files with 16 additions and 7 deletions

View File

@ -29,9 +29,20 @@
:headers="headers" :headers="headers"
:limit="1" :limit="1"
:disabled="fileList.length === 1" :disabled="fileList.length === 1"
:on-success="handleAvatarSuccess"> :on-success="handleAvatarSuccess"
<!-- <el-image v-if="userInfo.avatar" :src="userInfo.avatar" :preview-src-list="[userInfo.avatar]" style="width: 100px;height: 100px" alt="头像"></el-image>--> >
<!-- <i v-else class="el-icon-plus avatar-uploader-icon" style="width: 100px;height: 100px"></i>--> <!-- <el-image
v-if="userInfo.avatar"
:src="userInfo.avatar"
:preview-src-list="[userInfo.avatar]"
style="width: 100px; height: 100px"
alt="头像"
></el-image>
<i
v-else
class="el-icon-plus avatar-uploader-icon"
style="width: 100px; height: 100px"
></i> -->
<i class="el-icon-plus"></i> <i class="el-icon-plus"></i>
</el-upload> </el-upload>
</el-form-item> </el-form-item>
@ -159,9 +170,7 @@ export default {
}, },
userInforules: { userInforules: {
name: [{ required: true, message: '请输入昵称', trigger: 'blur' }], name: [{ required: true, message: '请输入昵称', trigger: 'blur' }],
mobile: [ mobile: [{ pattern: /^1[3-9]\d{9}$/, message: '请输入正确手机号' }]
{ pattern: /^1[3|4|5|7|8]\d{9}$/, message: '请输入正确手机号' }
]
}, },
userPasswordInfo: { userPasswordInfo: {
oldPassword: '', oldPassword: '',