Commit d768bdcf99ccd1d9db685e1a97586f6005887177
1 parent
54955fb5
删除和压缩图片
Showing
9 changed files
with
4 additions
and
12 deletions
manifest.json
| @@ -58,6 +58,7 @@ | @@ -58,6 +58,7 @@ | ||
| 58 | "setting" : { | 58 | "setting" : { |
| 59 | "urlCheck" : false | 59 | "urlCheck" : false |
| 60 | }, | 60 | }, |
| 61 | + "lazyCodeLoading": "requiredComponents", | ||
| 61 | "usingComponents" : true, | 62 | "usingComponents" : true, |
| 62 | "permission" : { | 63 | "permission" : { |
| 63 | "scope.userLocation" : { | 64 | "scope.userLocation" : { |
pages-sub/daily/patrol-manage/index.vue
| @@ -185,8 +185,6 @@ onShow(() => { | @@ -185,8 +185,6 @@ onShow(() => { | ||
| 185 | .sticky-header { | 185 | .sticky-header { |
| 186 | background-color: #ffffff; | 186 | background-color: #ffffff; |
| 187 | padding-bottom: 10rpx; | 187 | padding-bottom: 10rpx; |
| 188 | - border-bottom: 1px solid #eee; | ||
| 189 | - | ||
| 190 | .search-input { | 188 | .search-input { |
| 191 | margin: 20rpx 20rpx 10rpx !important; | 189 | margin: 20rpx 20rpx 10rpx !important; |
| 192 | } | 190 | } |
pages/login/index.vue
| @@ -15,6 +15,7 @@ | @@ -15,6 +15,7 @@ | ||
| 15 | placeholder="请输入登录账号" | 15 | placeholder="请输入登录账号" |
| 16 | border="surround" | 16 | border="surround" |
| 17 | clearable | 17 | clearable |
| 18 | + maxlength="30" | ||
| 18 | input-align="left" | 19 | input-align="left" |
| 19 | :disabled="isLoading" | 20 | :disabled="isLoading" |
| 20 | @blur="checkAccount" | 21 | @blur="checkAccount" |
| @@ -36,6 +37,7 @@ | @@ -36,6 +37,7 @@ | ||
| 36 | <up-input | 37 | <up-input |
| 37 | v-model="form.password" | 38 | v-model="form.password" |
| 38 | placeholder="请输入登录密码" | 39 | placeholder="请输入登录密码" |
| 40 | + maxlength="20" | ||
| 39 | border="surround" | 41 | border="surround" |
| 40 | clearable | 42 | clearable |
| 41 | input-align="left" | 43 | input-align="left" |
| @@ -63,12 +65,7 @@ | @@ -63,12 +65,7 @@ | ||
| 63 | :loading="isLoading" | 65 | :loading="isLoading" |
| 64 | @click="handleLogin" | 66 | @click="handleLogin" |
| 65 | :custom-style="{ | 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,8 +124,6 @@ const checkLoginStatus = () => { | ||
| 127 | const checkAccount = () => { | 124 | const checkAccount = () => { |
| 128 | if (!form.account) { | 125 | if (!form.account) { |
| 129 | error.account = '请输入登录账号'; | 126 | error.account = '请输入登录账号'; |
| 130 | - } else if (!/^[a-zA-Z0-9_-]{4,16}$/.test(form.account)) { | ||
| 131 | - error.account = '账号格式错误(4-16位字母/数字/下划线)'; | ||
| 132 | } else { | 127 | } else { |
| 133 | error.account = ''; | 128 | error.account = ''; |
| 134 | } | 129 | } |
| @@ -138,8 +133,6 @@ const checkAccount = () => { | @@ -138,8 +133,6 @@ const checkAccount = () => { | ||
| 138 | const checkPassword = () => { | 133 | const checkPassword = () => { |
| 139 | if (!form.password) { | 134 | if (!form.password) { |
| 140 | error.password = '请输入登录密码'; | 135 | error.password = '请输入登录密码'; |
| 141 | - } else if (form.password.length < 6) { | ||
| 142 | - error.password = '密码长度不能少于6位'; | ||
| 143 | } else { | 136 | } else { |
| 144 | error.password = ''; | 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