Commit d768bdcf99ccd1d9db685e1a97586f6005887177
1 parent
54955fb5
删除和压缩图片
Showing
9 changed files
with
4 additions
and
12 deletions
manifest.json
pages-sub/daily/patrol-manage/index.vue
pages/login/index.vue
| ... | ... | @@ -15,6 +15,7 @@ |
| 15 | 15 | placeholder="请输入登录账号" |
| 16 | 16 | border="surround" |
| 17 | 17 | clearable |
| 18 | + maxlength="30" | |
| 18 | 19 | input-align="left" |
| 19 | 20 | :disabled="isLoading" |
| 20 | 21 | @blur="checkAccount" |
| ... | ... | @@ -36,6 +37,7 @@ |
| 36 | 37 | <up-input |
| 37 | 38 | v-model="form.password" |
| 38 | 39 | placeholder="请输入登录密码" |
| 40 | + maxlength="20" | |
| 39 | 41 | border="surround" |
| 40 | 42 | clearable |
| 41 | 43 | input-align="left" |
| ... | ... | @@ -63,12 +65,7 @@ |
| 63 | 65 | :loading="isLoading" |
| 64 | 66 | @click="handleLogin" |
| 65 | 67 | :custom-style="{ |
| 66 | - backgroundColor: '#3b82f6', | |
| 67 | - borderColor: '#3b82f6', | |
| 68 | - borderRadius: '44rpx', | |
| 69 | - height: '88rpx', | |
| 70 | - lineHeight: '88rpx', | |
| 71 | - fontSize: '32rpx' | |
| 68 | + | |
| 72 | 69 | }" |
| 73 | 70 | > |
| 74 | 71 | 登录 |
| ... | ... | @@ -127,8 +124,6 @@ const checkLoginStatus = () => { |
| 127 | 124 | const checkAccount = () => { |
| 128 | 125 | if (!form.account) { |
| 129 | 126 | error.account = '请输入登录账号'; |
| 130 | - } else if (!/^[a-zA-Z0-9_-]{4,16}$/.test(form.account)) { | |
| 131 | - error.account = '账号格式错误(4-16位字母/数字/下划线)'; | |
| 132 | 127 | } else { |
| 133 | 128 | error.account = ''; |
| 134 | 129 | } |
| ... | ... | @@ -138,8 +133,6 @@ const checkAccount = () => { |
| 138 | 133 | const checkPassword = () => { |
| 139 | 134 | if (!form.password) { |
| 140 | 135 | error.password = '请输入登录密码'; |
| 141 | - } else if (form.password.length < 6) { | |
| 142 | - error.password = '密码长度不能少于6位'; | |
| 143 | 136 | } else { |
| 144 | 137 | error.password = ''; |
| 145 | 138 | } | ... | ... |
static/icons/home-active.png deleted
423 Bytes
static/icons/home.png deleted
379 Bytes
static/icons/mine-active.png deleted
422 Bytes
static/icons/mine.png deleted
338 Bytes
static/imgs/default-avatar.png
static/imgs/logo.png deleted
7.55 KB