Commit 56ea2b8798451cb25e12b9438115fb2789f37c29

Authored by fengwotao
1 parent be153b56

perf: 优化登录页手机登录和账号登录更换为图标形式

... ... @@ -47,31 +47,36 @@
47 47 {{ t('sys.login.loginButton') }}
48 48 </Button>
49 49 </FormItem>
50   - <ARow class="enter-x flex justify-center">
51   - <!-- <ACol :md="11" :xs="24">
  50 + <!-- <ARow class="enter-x flex justify-center"> -->
  51 + <!-- <ACol :md="11" :xs="24">
52 52 <Button block @click="setLoginState(LoginStateEnum.LOGIN)">
53 53 {{ t('sys.login.userNameInFormTitle') }}
54 54 </Button>
55 55 </ACol> -->
56   - <ACol :md="11" :xs="24">
57   - <!-- <Button block @click="setLoginState(LoginStateEnum.MOBILE)">
  56 + <!-- <ACol :md="11" :xs="24"> -->
  57 + <!-- <Button block @click="setLoginState(LoginStateEnum.MOBILE)">
58 58 {{ t('sys.login.mobileSignInFormTitle') }}
59 59 </Button> -->
60   - <div class="flex justify-center cursor-pointer">
  60 + <!-- <div class="flex justify-center cursor-pointer">
61 61 <div
62 62 @click="setLoginState(LoginStateEnum.MOBILE)"
63 63 class="flex justify-center icon-button"
64 64 >
65 65 <phone-filled :style="{ fontSize: '18px' }" />
66 66 </div>
67   - </div>
68   - </ACol>
69   - </ARow>
  67 + </div> -->
  68 + <!-- </ACol> -->
  69 + <!-- </ARow> -->
  70 + <Divider class="enter-x">
  71 + <div @click="setLoginState(LoginStateEnum.MOBILE)" class="flex justify-center icon-button">
  72 + <mobile-filled :style="{ fontSize: '18px' }" />
  73 + </div>
  74 + </Divider>
70 75 </Form>
71 76 </template>
72 77 <script lang="ts" setup>
73 78 import { reactive, ref, unref, computed } from 'vue';
74   - import { Checkbox, Form, Input, Row, Col, Button } from 'ant-design-vue';
  79 + import { Checkbox, Form, Input, Row, Col, Button, Divider } from 'ant-design-vue';
75 80 import LoginFormTitle from './LoginFormTitle.vue';
76 81 import { useI18n } from '/@/hooks/web/useI18n';
77 82 import { useMessage } from '/@/hooks/web/useMessage';
... ... @@ -79,7 +84,7 @@
79 84 import { LoginStateEnum, useLoginState, useFormRules, useFormValid } from './useLogin';
80 85 import { getPlatForm } from '/@/api/oem';
81 86 import { createLocalStorage, createSessionStorage } from '/@/utils/cache';
82   - import { PhoneFilled } from '@ant-design/icons-vue';
  87 + import { MobileFilled } from '@ant-design/icons-vue';
83 88
84 89 const ACol = Col;
85 90 const ARow = Row;
... ...
... ... @@ -27,18 +27,20 @@
27 27 <!-- <Button size="large" block class="mt-4" @click="handleBackLogin">
28 28 {{ t('sys.login.backSignIn') }}
29 29 </Button> -->
30   - <div class="flex justify-center cursor-pointer mt-4">
  30 + </FormItem>
  31 + <Divider class="enter-x">
  32 + <div class="flex justify-center cursor-pointer">
31 33 <div @click="handleBackLogin" class="flex justify-center icon-button">
32 34 <contacts-filled :style="{ fontSize: '18px' }" />
33 35 </div>
34 36 </div>
35   - </FormItem>
  37 + </Divider>
36 38 </Form>
37 39 </template>
38 40 </template>
39 41 <script lang="ts" setup>
40 42 import { reactive, ref, computed, unref, toRaw } from 'vue';
41   - import { Form, Input, Button, message } from 'ant-design-vue';
  43 + import { Form, Input, Button, message, Divider } from 'ant-design-vue';
42 44 import { CountdownInput } from '/@/components/CountDown';
43 45 import LoginFormTitle from './LoginFormTitle.vue';
44 46 import { useI18n } from '/@/hooks/web/useI18n';
... ...