From 74c662058b047bca28876b1851006ed16b6dc237 Mon Sep 17 00:00:00 2001 From: feige <791364011@qq.com> Date: 星期二, 27 八月 2024 17:51:02 +0800 Subject: [PATCH] 修改了对应的bug --- ruoyi-ui/src/views/login.vue | 47 ++++++++++++++++++++++------------------------- 1 files changed, 22 insertions(+), 25 deletions(-) diff --git a/ruoyi-ui/src/views/login.vue b/ruoyi-ui/src/views/login.vue index b5027fe..b030f3a 100644 --- a/ruoyi-ui/src/views/login.vue +++ b/ruoyi-ui/src/views/login.vue @@ -1,23 +1,14 @@ <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> - <div class="second-box" style=" margin-top: 25px; - margin-left: 140px; - margin-right: 141px; -"> + <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="little-title" style=" margin-top: 20px;"> - <h5 >鐧诲綍鍙煡鐪嬫洿澶氫俊鎭�</h5> - <h5 >鏈敞鍐岀殑璐﹀彿鐧诲綍鎴愬姛鍚庝細鑷姩娉ㄥ唽</h5></div></div> + <h5>鐧诲綍鍙煡鐪嬫洿澶氫俊鎭�</h5> + <h5>鏈敞鍐岀殑璐﹀彿鐧诲綍鎴愬姛鍚庝細鑷姩娉ㄥ唽</h5></div></div> <div class="yonghuming" style="margin-left: 99px;margin-right: 425px;">鐢ㄦ埛鍚�</div> - <el-form-item prop="username" style=" - width: 380px; - height: 48px; - margin-left: 96px; - margin-right: 96px; -"> - + <el-form-item prop="username" style="width: 380px; height: 48px; margin-left: 96px; margin-right: 96px; "> <el-input v-model="loginForm.username" type="text" @@ -69,7 +60,7 @@ <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" @@ -99,7 +90,7 @@ line-height: 14px; ">鍒锋柊 </div> - </el-form-item> + </el-form-item> @@ -117,21 +108,24 @@ <span v-if="!loading" style="width: 97px;height: 62px;">鐧诲綍</span> <span v-else>鐧� 褰� 涓�...</span> </el-button> + <a href="https://www.bendudu.com: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; ">绮CP澶�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' @@ -139,10 +133,12 @@ name: "Login", data() { return { - codeUrl: "http://47.93.189.255:8080/captchaImage", + codeUrl: "", loginForm: { - username: "admin", - password: "admin123", + // username: "admin", + // password: "admin123", + username: "", + password: "", rememberMe: false, code: "", uuid: "" @@ -178,7 +174,9 @@ }, 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; @@ -242,10 +240,9 @@ 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; -- Gitblit v1.9.1