| | |
| | | </label> |
| | | </div> |
| | | |
| | | <button class="login-btn" :style="[inputStyle]" @tap="submit"> |
| | | <button class="login-btn" :style="[inputStyle]" @tap="submit"> |
| | | 登录 |
| | | </button> |
| | | |
| | | |
| | | <image class="lowerRightCorner" :src="droneSvg" /> |
| | | </view> |
| | | </template> |
| | |
| | | } |
| | | |
| | | async function submit() { |
| | | if (!loginForm.value.username.trim()) { |
| | | uni.showToast({ |
| | | title: "请输入用户名", |
| | | icon: "none", |
| | | duration: 2000 |
| | | }); |
| | | return; |
| | | } |
| | | |
| | | if (!loginForm.value.password.trim()) { |
| | | uni.showToast({ |
| | | title: "请输入密码", |
| | | icon: "none", |
| | | duration: 2000 |
| | | }); |
| | | return; |
| | | } |
| | | let userInfo = { |
| | | tenantId: "000000", |
| | | deptId: "", |
| | |
| | | } else { |
| | | uni.removeStorageSync('rememberedUser'); |
| | | } |
| | | |
| | | |
| | | try { |
| | | const res = await loginByUsername( |
| | | userInfo.tenantId, |
| | |
| | | redirect = decodeURIComponent(options.redirect); |
| | | } |
| | | }); |
| | | |
| | | |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | |
| | | margin-left: 62rpx; |
| | | margin-right: 58rpx; |
| | | margin-top: 20rpx; |
| | | |
| | | |
| | | color: #666; |
| | | font-size: 28rpx; |
| | | |
| | | |
| | | label { |
| | | display: flex; |
| | | align-items: center; |
| | |
| | | .login-btn { |
| | | z-index: 1; |
| | | @apply flex items-center justify-center py-12rpx px-0 text-30rpx border-none; |
| | | background: #5a93e6; |
| | | background: #1D6FE9; |
| | | color: white; |
| | | width: 590rpx; |
| | | height: 76rpx; |
| | |
| | | color: $u-warning; |
| | | } |
| | | } |
| | | </style> |
| | | </style> |