Commit 7efbb9fba7f811ca5ad47fb0e2193893f7df7903
1 parent
c0534536
add 个人资料 前端页面
Showing
1 changed file
with
9 additions
and
12 deletions
src/views/information/index.vue
| @@ -72,27 +72,21 @@ | @@ -72,27 +72,21 @@ | ||
| 72 | num: '23', | 72 | num: '23', |
| 73 | sex:'男', | 73 | sex:'男', |
| 74 | birthday: '2019-08-17', | 74 | birthday: '2019-08-17', |
| 75 | - address: '普通' | 75 | + address: '北京海淀区上地五街1003号' |
| 76 | }, | 76 | }, |
| 77 | rules: { | 77 | rules: { |
| 78 | username: [ | 78 | username: [ |
| 79 | { required: true, message: '请输入活动名称', trigger: 'blur' }, | 79 | { required: true, message: '请输入活动名称', trigger: 'blur' }, |
| 80 | - { min: 3, max: 5, message: '长度在 3 到 5 个字符', trigger: 'blur' } | 80 | + { min: 1, max: 10, message: '长度在 3 到 10 个字符', trigger: 'blur' } |
| 81 | ], | 81 | ], |
| 82 | - | ||
| 83 | birthday: [ | 82 | birthday: [ |
| 84 | - { required: true, message: '请输入邮箱地址', trigger: 'blur' }, | ||
| 85 | - { type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] } | 83 | + { required: true, message: '请输入日期', trigger: 'blur' }, |
| 84 | + { type: 'email', message: '请输入正确的日期', trigger: ['blur', 'change'] } | ||
| 86 | ], | 85 | ], |
| 87 | - /* num: [ | ||
| 88 | - { required: true, message: '请输入活动名称', trigger: 'blur' }, | ||
| 89 | - { min: 3, max: 5, message: '长度在 3 到 5 个字符', trigger: 'blur' } | ||
| 90 | - ],*/ | ||
| 91 | address: [ | 86 | address: [ |
| 92 | { required: true, message: '请输入活动名称', trigger: 'blur' }, | 87 | { required: true, message: '请输入活动名称', trigger: 'blur' }, |
| 93 | - { min: 3, max: 20, message: '长度在 3 到 20 个字符', trigger: 'blur' } | 88 | + { min: 1, max: 30, message: '长度在 1 到 30 个字符', trigger: 'blur' } |
| 94 | ], | 89 | ], |
| 95 | - | ||
| 96 | } | 90 | } |
| 97 | }; | 91 | }; |
| 98 | }, | 92 | }, |
| @@ -114,6 +108,9 @@ | @@ -114,6 +108,9 @@ | ||
| 114 | this.$message.error('上传头像图片大小不能超过 5MB!'); | 108 | this.$message.error('上传头像图片大小不能超过 5MB!'); |
| 115 | } | 109 | } |
| 116 | return isJPG && isLt5M; | 110 | return isJPG && isLt5M; |
| 111 | + }, | ||
| 112 | + resetForm(formName) { | ||
| 113 | + this.$refs[formName].resetFields(); | ||
| 117 | } | 114 | } |
| 118 | } | 115 | } |
| 119 | } | 116 | } |
| @@ -122,7 +119,7 @@ | @@ -122,7 +119,7 @@ | ||
| 122 | 119 | ||
| 123 | .avatar-uploader .el-upload { | 120 | .avatar-uploader .el-upload { |
| 124 | border: 1px dashed #d9d9d9; | 121 | border: 1px dashed #d9d9d9; |
| 125 | - border-radius: 6px; | 122 | + border-radius: 50%; |
| 126 | cursor: pointer; | 123 | cursor: pointer; |
| 127 | position: relative; | 124 | position: relative; |
| 128 | overflow: hidden; | 125 | overflow: hidden; |