|
@@ -2,7 +2,10 @@
|
|
|
<div class="login">
|
|
|
|
|
|
<div class="header">
|
|
|
- <svg-icon icon-class="logo" class="logo" />
|
|
|
+ <div class="logo_inner">
|
|
|
+ <img src="@/assets/logo/logo.svg" alt="">
|
|
|
+ <span>LibraAI智能体运营平台</span>
|
|
|
+ </div>
|
|
|
<span class="line"></span>
|
|
|
<span class="title">后台管理系统</span>
|
|
|
</div>
|
|
@@ -15,25 +18,13 @@
|
|
|
<el-form ref="loginRef" :model="loginForm" :rules="loginRules" class="login-form">
|
|
|
<h3 class="title">系统登录</h3>
|
|
|
<el-form-item prop="username">
|
|
|
- <el-input
|
|
|
- v-model="loginForm.username"
|
|
|
- type="text"
|
|
|
- size="large"
|
|
|
- auto-complete="off"
|
|
|
- placeholder="账号"
|
|
|
- >
|
|
|
+ <el-input v-model="loginForm.username" type="text" size="large" auto-complete="off" placeholder="账号">
|
|
|
<template #prefix><svg-icon icon-class="user" class="el-input__icon input-icon" /></template>
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="password">
|
|
|
- <el-input
|
|
|
- v-model="loginForm.password"
|
|
|
- type="password"
|
|
|
- size="large"
|
|
|
- auto-complete="off"
|
|
|
- placeholder="密码"
|
|
|
- @keyup.enter="handleLogin"
|
|
|
- >
|
|
|
+ <el-input v-model="loginForm.password" type="password" size="large" auto-complete="off" placeholder="密码"
|
|
|
+ @keyup.enter="handleLogin">
|
|
|
<template #prefix><svg-icon icon-class="password" class="el-input__icon input-icon" /></template>
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
@@ -54,13 +45,7 @@
|
|
|
</el-form-item> -->
|
|
|
<el-checkbox v-model="loginForm.rememberMe" style="margin:0px 0px 25px 0px;">记住密码</el-checkbox>
|
|
|
<el-form-item style="width:100%;">
|
|
|
- <el-button
|
|
|
- :loading="loading"
|
|
|
- size="large"
|
|
|
- type="primary"
|
|
|
- style="width:100%;"
|
|
|
- @click.prevent="handleLogin"
|
|
|
- >
|
|
|
+ <el-button :loading="loading" size="large" type="primary" style="width:100%;" @click.prevent="handleLogin">
|
|
|
<span v-if="!loading">登 录</span>
|
|
|
<span v-else>登 录 中...</span>
|
|
|
</el-button>
|
|
@@ -111,7 +96,7 @@ const register = ref(false);
|
|
|
const redirect = ref(undefined);
|
|
|
|
|
|
watch(route, (newRoute) => {
|
|
|
- redirect.value = newRoute.query && newRoute.query.redirect;
|
|
|
+ redirect.value = newRoute.query && newRoute.query.redirect;
|
|
|
}, { immediate: true });
|
|
|
|
|
|
function handleLogin() {
|
|
@@ -176,6 +161,16 @@ getCookie();
|
|
|
</script>
|
|
|
|
|
|
<style lang='scss' scoped>
|
|
|
+@font-face {
|
|
|
+ font-display: swap;
|
|
|
+ font-family: 'AlimamaShuHeiTi';
|
|
|
+ src: url('@/assets/fonts/AlimamaShuHeiTi-Bold.woff2') format('woff2'),
|
|
|
+ url('@/assets/fonts/AlimamaShuHeiTi-Bold.woff') format('woff'),
|
|
|
+ url('@/assets/fonts/AlimamaShuHeiTi-Bold.ttf') format('ttf');
|
|
|
+ font-weight: normal;
|
|
|
+ font-style: normal;
|
|
|
+}
|
|
|
+
|
|
|
.login {
|
|
|
position: relative;
|
|
|
display: flex;
|
|
@@ -198,6 +193,20 @@ getCookie();
|
|
|
font-weight: bold;
|
|
|
color: #000;
|
|
|
|
|
|
+ .logo_inner {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ font-family: AlimamaShuHeiTi;
|
|
|
+ font-size: 12px;
|
|
|
+ span {
|
|
|
+ display: inline-block;
|
|
|
+ width: 90px;
|
|
|
+ line-height: 14px;
|
|
|
+ padding-left: 6px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
.logo {
|
|
|
width: 106px;
|
|
|
height: 28px;
|
|
@@ -242,30 +251,36 @@ getCookie();
|
|
|
|
|
|
.el-input {
|
|
|
height: 40px;
|
|
|
+
|
|
|
input {
|
|
|
height: 40px;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.input-icon {
|
|
|
height: 39px;
|
|
|
width: 14px;
|
|
|
margin-left: 0px;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.login-tip {
|
|
|
font-size: 13px;
|
|
|
text-align: center;
|
|
|
color: #bfbfbf;
|
|
|
}
|
|
|
+
|
|
|
.login-code {
|
|
|
width: 33%;
|
|
|
height: 40px;
|
|
|
float: right;
|
|
|
+
|
|
|
img {
|
|
|
cursor: pointer;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.el-login-footer {
|
|
|
height: 40px;
|
|
|
line-height: 40px;
|
|
@@ -278,6 +293,7 @@ getCookie();
|
|
|
font-size: 12px;
|
|
|
letter-spacing: 1px;
|
|
|
}
|
|
|
+
|
|
|
.login-code-img {
|
|
|
height: 40px;
|
|
|
padding-left: 12px;
|