123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241 |
- <template>
- <div class="login-main">
- <div class="login-main-block">
- <div class="lmb-head">
- 欢迎使用社管总体平台
- </div>
- <div class="lmb-content">
- <div class="lmbc-left">
- <img src="./img/login-bg-left.png"/>
- </div>
- <img class="lmbc-center" src="./img/login-bg-center.png"/>
- <div class="lmbc-right">
- <el-form class="form" ref="ref_form" :model="form" label-width="80px"
- :inline="true" :show-message ="true">
- <el-form-item label="" prop="username" :rules="[
- { required: true, trigger: 'blur', message: '请输入您的用户名' }]">
- <el-input @keyup.enter="onNormalClick" v-model="form.username" placeholder="输入您的用户名">
- <template v-slot:prefix>
- <img src="./img/login-bg-username.png"/>
- </template>
- </el-input>
- </el-form-item>
- <el-form-item label="" prop="password" :rules="[
- { required: true, trigger: 'blur', message: '请输入您的密码' }]">
- <el-input @keyup.enter="onNormalClick" v-model="form.password" placeholder="输入您的密码" show-password>
- <template v-slot:prefix>
- <img src="./img/login-bg-password.png"/>
- </template>
- </el-input>
- </el-form-item>
- <el-form-item class="code" label="" prop="code" :rules="[
- { required: true, trigger: 'blur', message: '请输入验证码' }]">
- <el-input @keyup.enter="onNormalClick" v-model="form.code" placeholder="验证码" class="code">
- <template v-slot:prefix>
- <img src="./img/login-bg-code.png"/>
- </template>
- <template v-slot:suffix>
- <img v-if="codeImg" :src="codeImg"/>
- </template>
- </el-input>
- </el-form-item>
- </el-form>
- <div class="__hover login-button">安全登录</div>
- </div>
- </div>
- </div>
- </div>
- </template>
- <script lang="ts">
- import {
- defineComponent,
- computed,
- onMounted,
- ref,
- reactive,
- watch,
- getCurrentInstance,
- ComponentInternalInstance,
- toRefs,
- nextTick
- } from 'vue'
- import {useStore} from 'vuex'
- import {useRouter, useRoute} from 'vue-router'
- export default defineComponent({
- name: '',
- components: {},
- setup() {
- const store = useStore();
- const router = useRouter();
- const route = useRoute();
- const that = (getCurrentInstance() as ComponentInternalInstance).appContext.config.globalProperties
- const state = reactive({
- form: {},
- codeImg: ''
- })
- const onNormalClick = () => {
- }
- return {
- ...toRefs(state),
- onNormalClick
- }
- },
- })
- </script>
- <style scoped lang="scss">
- .login-main {
- width: 100%;
- height: 100%;
- background-color: rgba(0, 0, 0, 0.5);
- display: flex;
- align-items: center;
- justify-content: center;
- .login-main-block {
- background: url("./img/login-bg.png") 100% 100% no-repeat;
- width: 961px;
- height: 561px;
- display: flex;
- flex-direction: column;
- align-items: center;
- .lmb-head {
- background: url("./img/login-bg-head.png") 100% 100% no-repeat;
- width: 614px;
- height: 63px;
- display: flex;
- justify-content: center;
- font-size: 30px;
- font-family: FZLanTingHeiS-DB-GB;
- font-weight: 400;
- color: #97E3F4;
- line-height: 56px;
- }
- .lmb-content {
- display: flex;
- align-items: flex-start;
- justify-content: center;
- .lmbc-left, .lmbc-right {
- width: 381px;
- }
- .lmbc-left {
- position: relative;
- height: 443px;
- >img {
- position: absolute;
- top: 0;
- left: -210px;
- }
- }
- .lmbc-center {
- margin-top: 69px;
- }
- .lmbc-right {
- margin-top: 69px;
- padding-left: 50px;
- height: 443px;
- :deep(.form) {
- width: 100%;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- .el-form-item {
- margin-right: 0px;
- margin-bottom: 25px;
- width: 100%;
- height: 58px;
- input:-webkit-autofill , textarea:-webkit-autofill, select:-webkit-autofill {
- }
- .el-input {
- width: 100%;
- height: 100%;
- .el-input__wrapper {
- border: 1px solid #17396F;
- background-color: rgba(107,185,248,0.1);
- padding: 2px;
- box-sizing: border-box;
- border-radius: 0;
- box-shadow: 0 0 0 1px transparent inset;
- .el-input__prefix {
- width: 58px;
- height: 100%;
- background: #17396F;
- display: flex;
- align-items: center;
- justify-content: center;
- .el-input__prefix-inner {
- >img {
- margin-right: 0px;
- }
- }
- }
- .el-input__inner {
- padding-left: 15px;
- width: 100%;
- height: 100%;
- background: rgba(107,185,248,0.1) !important;
- font-size: 20px;
- font-family: FZLanTingHeiS-DB-GB;
- font-weight: 400;
- color: #FFFFFF;
- border-color: transparent;
- &:focus {
- border-color: #0d84ff;
- }
- &::placeholder {
- font-size: 18px;
- font-family: FZLanTingHei-R-GBK;
- font-weight: 400;
- color: #FFFFFF;
- }
- &:-webkit-autofill {
- background-color: rgba(34, 58, 80, 0.3) !important;
- -webkit-text-fill-color: #ededed !important;
- -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
- background-image: none;
- transition: background-color 50000s ease-in-out 0s;
- caret-color: #eee; //光标颜色
- //背景色透明 生效时长 过渡效果 启用时延迟的时间
- }
- }
- .el-input__suffix {
- width: 58px;
- display: flex;
- align-items: center;
- justify-content: center;
- background: rgba(107,185,248,0.1);
- .el-input__suffix-inner {
- >i {
- font-size: 20px;
- margin-left: 0;
- }
- }
- }
- }
- }
- }
- }
- .login-button {
- margin-top: 13px;
- width: 100%;
- height: 58px;
- background: #56C7FC;
- border: 1px solid #134B7E;
- font-size: 24px;
- font-family: FZLanTingHeiS-DB-GB;
- font-weight: 400;
- color: #FFFFFF;
- display: flex;
- justify-content: center;
- align-items: center;
- }
- }
- }
- }
- }
- </style>
|