fix(mobile regex): #
parent
7f0a46c7d7
commit
807a5819f2
|
@ -28,10 +28,21 @@
|
||||||
:action="action"
|
:action="action"
|
||||||
: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: '',
|
||||||
|
|
Loading…
Reference in New Issue