| | |
| | | <template> |
| | | <div class="login Group_132"> |
| | | <el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form"> |
| | | <h3 class="title" style="margin-top: 211px;margin-right: 108px;margin-bottom: 0;margin-left: 109px;">欢迎来到张氏APP</h3> |
| | | <el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form" style="margin-left: 0px;margin-right: 180px;"> |
| | | <h3 class="title" style="margin-top: 80px;margin-right: 108px;margin-bottom: 0;margin-left: 109px;">欢迎来到本都都</h3> |
| | | <div class="second-box" style=" margin-top: 25px; |
| | | margin-left: 140px; |
| | | margin-right: 141px; |
| | |
| | | |
| | | |
| | | <div class="验证码" style="margin-left: 99px;margin-right: 425px;width: 48px;height: 20px;">验证码</div> |
| | | <el-form-item prop="code" v-if="captchaEnabled" style="margin-bottom: 76px;width: 264px;" > |
| | | <el-form-item prop="code" v-if="captchaEnabled" style="margin-bottom: 76px;width: 520px;" > |
| | | <el-input |
| | | v-model="loginForm.code" |
| | | auto-complete="off" |
| | |
| | | line-height: 14px; |
| | | ">刷新 </div> |
| | | |
| | | </el-form-item> |
| | | </el-form-item> |
| | | |
| | | |
| | | |
| | |
| | | <span v-if="!loading" style="width: 97px;height: 62px;">登录</span> |
| | | <span v-else>登 录 中...</span> |
| | | </el-button> |
| | | <a href="https://47.93.189.255:8080/profile/upload/2023/10/10/Bendudu20231010_20231010203358A033.apk">点击此处下载应用程序</a> |
| | | <div style="float: right; |
| | | height:94px;" v-if="register"> |
| | | <router-link class="link-type" :to="'/register'">立即注册</router-link> |
| | | |
| | | </div> |
| | | </el-form-item> |
| | | </el-form> |
| | | <!-- 底部 --> |
| | | <div class="el-login-footer"> |
| | | <span>Copyright © GDUT All Rights Reserved.</span> |
| | | <div class="el-login-footer" > |
| | | <span style="color: black; ">Copyright © GDUT All Rights Reserved.<sapn v-html="'\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0'"></sapn></span> |
| | | <a href="https://beian.miit.gov.cn/" target="_blank" style="color: black; ">粤ICP备2023050334号<sapn v-html="'\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0'"></sapn>公安备案号44010402003045</a> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { getCodeImg } from "@/api/login"; |
| | | import { getCodeImg,Download } from "@/api/login"; |
| | | import Cookies from "js-cookie"; |
| | | import { encrypt, decrypt } from '@/utils/jsencrypt' |
| | | |
| | |
| | | return { |
| | | codeUrl: "", |
| | | loginForm: { |
| | | username: "admin", |
| | | password: "admin123", |
| | | // username: "admin", |
| | | // password: "admin123", |
| | | username: "", |
| | | password: "", |
| | | rememberMe: false, |
| | | code: "", |
| | | uuid: "" |
| | |
| | | // 验证码开关 |
| | | captchaEnabled: true, |
| | | // 注册开关 |
| | | register: false, |
| | | register: true, |
| | | redirect: undefined |
| | | }; |
| | | }, |
| | |
| | | }, |
| | | methods: { |
| | | getCode() { |
| | | |
| | | getCodeImg().then(res => { |
| | | |
| | | this.captchaEnabled = res.data.captchaEnabled === undefined ? true : res.captchaEnabled; |
| | | if (this.captchaEnabled) { |
| | | this.codeUrl = "data:image/gif;base64," + res.data.img; |
| | |
| | | align-items: center; |
| | | height: 100%; |
| | | width: 100%; |
| | | background: no-repeat center/40% url("../assets/images/Group 132.png"); |
| | | background: no-repeat center/40% url("../assets/images/login_logo.png"); |
| | | background-color: #FEF7FC; |
| | | // background-position: 81.7px 71.3px; |
| | | |
| | | background-position: 183px 145px; |
| | | //background-image: url("../assets/images/login-background.jpg"); |
| | | //background-size: cover; |