| | |
| | | /> |
| | | </wd-cell-group> |
| | | <view class="footer"> |
| | | <view class="w-full text-end"> |
| | | <wd-checkbox v-model="rember" shape="square" @change="handleChange"> |
| | | 记住密码 |
| | | <view> |
| | | <wd-checkbox v-model="rember" @change="handleChange"> |
| | | <text class="rember-text">记住密码</text> |
| | | </wd-checkbox> |
| | | </view> |
| | | <wd-button class="mt-6" type="primary" size="large" @click="handleSubmit" block> |
| | | 提交 |
| | | </wd-button> |
| | | |
| | | <view class="copyright-info"> |
| | | <text>上海兰宝传感科技股份有限公司</text> |
| | | </view> |
| | | </view> |
| | | </wd-form> |
| | | </template> |
| | |
| | | import { useToast } from 'wot-design-uni' |
| | | import { login, getUserInfo } from '@/service/login' |
| | | import type { UserInfo } from '@/service/login.d' |
| | | import { TestEnum } from '@/typings' |
| | | import { tabbarStore } from '@/components/fg-tabbar/tabbar' |
| | | const userStore = useUserStore() |
| | | const accessStore = useAccessStore() |
| | | const configStore = useSystemConfigStore() |
| | | const { success: showSuccess } = useToast() |
| | | |
| | | const model = reactive<{ |
| | | username: string |
| | |
| | | } |
| | | userStore.setUserInfo(userInfo) |
| | | const { query } = currRoute() |
| | | uni.switchTab({ url: query.redirect }) |
| | | uni.switchTab({ url: '/pages/home/index' }) |
| | | tabbarStore?.setCurIdx(0) |
| | | tabbarStore?.setLastIdx(0) |
| | | } |
| | | </script> |
| | | |
| | | <style scoped lang="scss"> |
| | | .footer { |
| | | padding: 12px; |
| | | padding: 24rpx; |
| | | } |
| | | .rember-text { |
| | | font-size: 24rpx; |
| | | color: $uni-text-color-grey; |
| | | } |
| | | |
| | | .copyright-info { |
| | | position: absolute; |
| | | bottom: 20rpx; |
| | | width: 100%; |
| | | display: flex; |
| | | justify-content: center; |
| | | color: $uni-text-color-disable; |
| | | font-size: 24rpx; |
| | | } |
| | | </style> |