2023-12-19 00:21:25 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<div class="login">
|
|
|
|
|
|
<div class="login-box">
|
|
|
|
|
|
<div class="left"></div>
|
|
|
|
|
|
<div class="right">
|
2023-12-19 23:00:43 +08:00
|
|
|
|
<div class="header-box">
|
|
|
|
|
|
<div class="text" @click="guestlogin" v-if="isRegister">返回首页</div>
|
|
|
|
|
|
<div class="text" @click="handleSignInNow" v-else>
|
|
|
|
|
|
已有账号立即登录
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<el-icon size="15"><DArrowRight /></el-icon>
|
|
|
|
|
|
</div>
|
2023-12-19 00:21:25 +08:00
|
|
|
|
<div class="top">
|
2023-12-24 15:07:47 +08:00
|
|
|
|
<div class="title" v-if="isRegister">意社区登录 | SIGN IN</div>
|
|
|
|
|
|
<div class="title" v-else>意社区注册 | REGISTER</div>
|
2023-12-19 00:21:25 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="center">
|
|
|
|
|
|
<div class="login-form">
|
2023-12-19 23:00:43 +08:00
|
|
|
|
<el-form
|
|
|
|
|
|
ref="loginFormRef"
|
|
|
|
|
|
:model="loginForm"
|
|
|
|
|
|
:rules="rules"
|
|
|
|
|
|
v-if="isRegister"
|
|
|
|
|
|
>
|
2023-12-24 15:07:47 +08:00
|
|
|
|
<el-form-item label="用户名" class="title-item"></el-form-item>
|
2023-12-19 23:00:43 +08:00
|
|
|
|
<el-form-item prop="userName">
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
size="large"
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
v-model="loginForm.userName"
|
|
|
|
|
|
placeholder="请输入用户名"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="密码" class="title-item"></el-form-item>
|
|
|
|
|
|
<el-form-item prop="password">
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
size="large"
|
|
|
|
|
|
type="password"
|
|
|
|
|
|
v-model="loginForm.password"
|
|
|
|
|
|
placeholder="请输入密码"
|
|
|
|
|
|
show-password
|
|
|
|
|
|
/>
|
|
|
|
|
|
</el-form-item>
|
2023-12-20 22:51:24 +08:00
|
|
|
|
<el-form-item label="验证码" class="title-item"></el-form-item>
|
|
|
|
|
|
<div class="flex-between">
|
|
|
|
|
|
<el-col :span="18">
|
|
|
|
|
|
<el-form-item prop="phone">
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
size="large"
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
v-model.trim="loginForm.code"
|
|
|
|
|
|
placeholder="请输入验证码"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-image
|
2023-12-22 22:25:37 +08:00
|
|
|
|
@click="handleGetCodeImage"
|
2023-12-20 22:51:24 +08:00
|
|
|
|
style="width: 120px; height: 40px; cursor: pointer"
|
|
|
|
|
|
:src="codeImageURL"
|
|
|
|
|
|
:fit="fit"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</div>
|
2023-12-19 23:00:43 +08:00
|
|
|
|
</el-form>
|
|
|
|
|
|
<el-form
|
2023-12-20 21:05:16 +08:00
|
|
|
|
class="registerForm"
|
2023-12-19 23:00:43 +08:00
|
|
|
|
ref="registerFormRef"
|
|
|
|
|
|
:model="registerForm"
|
|
|
|
|
|
:rules="registerRules"
|
|
|
|
|
|
v-else
|
|
|
|
|
|
>
|
2023-12-24 15:07:47 +08:00
|
|
|
|
<el-form-item label="用户名" class="title-item"></el-form-item>
|
2023-12-19 23:00:43 +08:00
|
|
|
|
<el-form-item prop="userName">
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
v-model.trim="registerForm.userName"
|
|
|
|
|
|
placeholder="请输入用户名"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="手机号" class="title-item"></el-form-item>
|
|
|
|
|
|
<div class="flex-between">
|
|
|
|
|
|
<el-col :span="18">
|
|
|
|
|
|
<el-form-item prop="phone">
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
v-model.trim="registerForm.phone"
|
|
|
|
|
|
placeholder="请输入手机号"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
2023-12-20 23:50:28 +08:00
|
|
|
|
<el-button
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
@click="captcha"
|
|
|
|
|
|
:disabled="isDisabledCode"
|
|
|
|
|
|
>
|
|
|
|
|
|
{{ codeInfo }}
|
2023-12-19 23:00:43 +08:00
|
|
|
|
</el-button>
|
2023-12-19 00:21:25 +08:00
|
|
|
|
</div>
|
2023-12-19 23:00:43 +08:00
|
|
|
|
<el-form-item label="验证码" class="title-item"></el-form-item>
|
|
|
|
|
|
<el-form-item prop="code">
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
v-model.trim="registerForm.code"
|
|
|
|
|
|
placeholder="请输入验证码"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="新密码" class="title-item"></el-form-item>
|
|
|
|
|
|
<el-form-item prop="password">
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
type="password"
|
|
|
|
|
|
v-model.trim="registerForm.password"
|
|
|
|
|
|
placeholder="请输入新密码"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="确认密码" class="title-item"></el-form-item>
|
|
|
|
|
|
<el-form-item>
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
type="password"
|
|
|
|
|
|
v-model.trim="passwordConfirm"
|
|
|
|
|
|
placeholder="请确认密码"
|
|
|
|
|
|
show-password
|
|
|
|
|
|
/>
|
|
|
|
|
|
</el-form-item>
|
2023-12-19 00:21:25 +08:00
|
|
|
|
</el-form>
|
2023-12-24 16:23:32 +08:00
|
|
|
|
<!-- <div class="link" v-if="isRegister">
|
2023-12-19 00:21:25 +08:00
|
|
|
|
<div class="text" @click="handleRegister">没有账号?前往注册</div>
|
2023-12-24 16:23:32 +08:00
|
|
|
|
</div> -->
|
2023-12-19 23:00:43 +08:00
|
|
|
|
<div
|
|
|
|
|
|
class="login-btn"
|
|
|
|
|
|
@click="login(loginFormRef)"
|
|
|
|
|
|
v-if="isRegister"
|
|
|
|
|
|
>
|
|
|
|
|
|
登 录
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="login-btn" @click="register(registerFormRef)" v-else>
|
|
|
|
|
|
注 册
|
|
|
|
|
|
</div>
|
2023-12-19 00:21:25 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2023-12-19 23:00:43 +08:00
|
|
|
|
<div class="bottom" v-if="isRegister">
|
2023-12-19 00:21:25 +08:00
|
|
|
|
<div class="title">
|
|
|
|
|
|
<div>或者</div>
|
|
|
|
|
|
<div>其他方式登录</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="icon-list">
|
|
|
|
|
|
<div class="icon">
|
|
|
|
|
|
<img src="@/assets/login_images/QQ.png" alt="" />
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="icon">
|
|
|
|
|
|
<img src="@/assets/login_images/WeChat.png" alt="" />
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2023-12-24 19:13:30 +08:00
|
|
|
|
<div class="login-footer">
|
|
|
|
|
|
<div class="info">站长:{{ configStore.author }}</div>
|
|
|
|
|
|
<div class="info btn">联系我们</div>
|
|
|
|
|
|
<div class="info btn">关于本站</div>
|
|
|
|
|
|
<div class="info btn">建议反馈</div>
|
|
|
|
|
|
</div>
|
2023-12-19 00:21:25 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
2023-12-22 22:25:37 +08:00
|
|
|
|
import { ref, reactive, onMounted, computed } from "vue";
|
2023-12-19 00:21:25 +08:00
|
|
|
|
import { useRouter, useRoute } from "vue-router";
|
|
|
|
|
|
import useAuths from "@/hooks/useAuths";
|
2023-12-19 23:00:43 +08:00
|
|
|
|
import { getCodePhone } from "@/apis/accountApi";
|
2023-12-22 22:25:37 +08:00
|
|
|
|
import useUserStore from "@/stores/user";
|
2023-12-24 19:13:30 +08:00
|
|
|
|
import useConfigStore from "@/stores/config";
|
2023-12-19 00:21:25 +08:00
|
|
|
|
|
2023-12-24 19:13:30 +08:00
|
|
|
|
const configStore = useConfigStore();
|
2023-12-19 23:00:43 +08:00
|
|
|
|
const { loginFun, registerFun } = useAuths();
|
2023-12-19 00:21:25 +08:00
|
|
|
|
const router = useRouter();
|
|
|
|
|
|
const route = useRoute();
|
|
|
|
|
|
const loginFormRef = ref();
|
|
|
|
|
|
const rules = reactive({
|
2023-12-19 23:00:43 +08:00
|
|
|
|
userName: [{ required: true, message: "请输入用户名", trigger: "blur" }],
|
2023-12-19 00:21:25 +08:00
|
|
|
|
password: [{ required: true, message: "请输入密码", trigger: "blur" }],
|
|
|
|
|
|
});
|
|
|
|
|
|
const loginForm = reactive({
|
|
|
|
|
|
userName: "",
|
|
|
|
|
|
password: "",
|
|
|
|
|
|
uuid: "",
|
|
|
|
|
|
code: "",
|
|
|
|
|
|
});
|
|
|
|
|
|
const guestlogin = async () => {
|
|
|
|
|
|
const redirect = route.query?.redirect ?? "/index";
|
|
|
|
|
|
router.push(redirect);
|
|
|
|
|
|
};
|
2023-12-22 22:25:37 +08:00
|
|
|
|
const codeUUid = computed(() => useUserStore().codeUUid);
|
2023-12-19 00:21:25 +08:00
|
|
|
|
const login = async (formEl) => {
|
|
|
|
|
|
if (!formEl) return;
|
|
|
|
|
|
await formEl.validate((valid) => {
|
|
|
|
|
|
if (valid) {
|
|
|
|
|
|
try {
|
2023-12-22 22:25:37 +08:00
|
|
|
|
loginForm.uuid = codeUUid.value;
|
2023-12-19 00:21:25 +08:00
|
|
|
|
loginFun(loginForm);
|
|
|
|
|
|
} catch (error) {
|
2023-12-22 22:25:37 +08:00
|
|
|
|
console.log(error.message, "error.message");
|
2023-12-19 00:21:25 +08:00
|
|
|
|
ElMessage({
|
|
|
|
|
|
message: error.message,
|
|
|
|
|
|
type: "error",
|
|
|
|
|
|
duration: 2000,
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// 注册逻辑
|
2023-12-19 23:00:43 +08:00
|
|
|
|
const isRegister = ref(true);
|
|
|
|
|
|
const registerFormRef = ref();
|
|
|
|
|
|
// 确认密码
|
|
|
|
|
|
const passwordConfirm = ref("");
|
|
|
|
|
|
const registerForm = reactive({
|
|
|
|
|
|
userName: "",
|
|
|
|
|
|
phone: "",
|
|
|
|
|
|
password: "",
|
|
|
|
|
|
uuid: "",
|
|
|
|
|
|
code: "",
|
|
|
|
|
|
});
|
|
|
|
|
|
const registerRules = reactive({
|
2023-12-24 15:07:47 +08:00
|
|
|
|
userName: [
|
|
|
|
|
|
{ required: true, message: "请输入用户名", trigger: "blur" },
|
|
|
|
|
|
{ min: 2, message: "用户名需大于两位", trigger: "blur" },
|
|
|
|
|
|
],
|
2023-12-19 23:00:43 +08:00
|
|
|
|
phone: [{ required: true, message: "请输入手机号", trigger: "blur" }],
|
|
|
|
|
|
code: [{ required: true, message: "请输入验证码", trigger: "blur" }],
|
2023-12-24 15:07:47 +08:00
|
|
|
|
password: [
|
|
|
|
|
|
{ required: true, message: "请输入新的密码", trigger: "blur" },
|
|
|
|
|
|
{ min: 6, message: "密码需大于六位", trigger: "blur" },
|
|
|
|
|
|
],
|
2023-12-19 23:00:43 +08:00
|
|
|
|
});
|
2023-12-23 22:16:00 +08:00
|
|
|
|
const handleRegister = () => {
|
|
|
|
|
|
isRegister.value = !isRegister.value;
|
|
|
|
|
|
};
|
2023-12-19 23:00:43 +08:00
|
|
|
|
const register = async (formEl) => {
|
|
|
|
|
|
if (!formEl) return;
|
2023-12-24 15:07:47 +08:00
|
|
|
|
await formEl.validate(async (valid) => {
|
2023-12-19 23:00:43 +08:00
|
|
|
|
if (valid) {
|
|
|
|
|
|
try {
|
|
|
|
|
|
if (registerForm.password != passwordConfirm.value) {
|
|
|
|
|
|
ElMessage.error("两次密码输入不一致");
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
2023-12-24 15:07:47 +08:00
|
|
|
|
await registerFun(registerForm);
|
|
|
|
|
|
handleRegister();
|
2023-12-19 23:00:43 +08:00
|
|
|
|
} catch (error) {
|
|
|
|
|
|
ElMessage({
|
|
|
|
|
|
message: error.message,
|
|
|
|
|
|
type: "error",
|
|
|
|
|
|
duration: 2000,
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
//验证码
|
2023-12-20 23:50:28 +08:00
|
|
|
|
const codeInfo = ref("发送验证码");
|
|
|
|
|
|
const isDisabledCode = ref(false);
|
2023-12-19 23:00:43 +08:00
|
|
|
|
const captcha = async () => {
|
|
|
|
|
|
if (registerForm.phone !== "") {
|
2023-12-20 23:50:28 +08:00
|
|
|
|
const { data } = await getCodePhone(registerForm.phone);
|
|
|
|
|
|
registerForm.uuid = data.uuid;
|
2023-12-19 23:00:43 +08:00
|
|
|
|
ElMessage({
|
|
|
|
|
|
message: `已向${registerForm.phone}发送验证码,请注意查收`,
|
|
|
|
|
|
type: "success",
|
|
|
|
|
|
});
|
2023-12-20 23:50:28 +08:00
|
|
|
|
isDisabledCode.value = true;
|
|
|
|
|
|
let time = 60; //定义剩下的秒数
|
|
|
|
|
|
let timer = setInterval(function () {
|
|
|
|
|
|
if (time == 0) {
|
|
|
|
|
|
//清除定时器和复原按钮
|
|
|
|
|
|
clearInterval(timer);
|
|
|
|
|
|
codeInfo.value = "发送验证码";
|
|
|
|
|
|
time = 60; //这个10是重新开始
|
|
|
|
|
|
} else {
|
|
|
|
|
|
codeInfo.value = "剩余" + time + "秒";
|
|
|
|
|
|
time--;
|
|
|
|
|
|
}
|
|
|
|
|
|
}, 1000);
|
2023-12-19 23:00:43 +08:00
|
|
|
|
} else {
|
|
|
|
|
|
ElMessage({
|
|
|
|
|
|
message: `清先输入手机号`,
|
|
|
|
|
|
type: "warning",
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// 立即登录
|
|
|
|
|
|
const handleSignInNow = () => {
|
|
|
|
|
|
isRegister.value = !isRegister.value;
|
2023-12-19 00:21:25 +08:00
|
|
|
|
};
|
2023-12-22 22:25:37 +08:00
|
|
|
|
// 获取图片验证码
|
|
|
|
|
|
const codeImageURL = computed(() => useUserStore().codeImageURL);
|
|
|
|
|
|
const handleGetCodeImage = () => {
|
|
|
|
|
|
useUserStore().updateCodeImage();
|
2023-12-20 22:51:24 +08:00
|
|
|
|
};
|
|
|
|
|
|
onMounted(async () => {
|
2023-12-22 22:25:37 +08:00
|
|
|
|
await useUserStore().updateCodeImage();
|
2023-12-20 22:51:24 +08:00
|
|
|
|
});
|
2023-12-19 00:21:25 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
|
.login {
|
|
|
|
|
|
display: flex;
|
2023-12-24 19:13:30 +08:00
|
|
|
|
flex-direction: column;
|
2023-12-19 00:21:25 +08:00
|
|
|
|
align-items: center;
|
2023-12-24 19:13:30 +08:00
|
|
|
|
justify-content: center;
|
2023-12-19 00:21:25 +08:00
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
background: url("@/assets/login_images/login_bg.jpg") no-repeat;
|
|
|
|
|
|
&-box {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
width: 70%;
|
|
|
|
|
|
height: 80%;
|
|
|
|
|
|
border-radius: 20px;
|
2023-12-19 23:00:43 +08:00
|
|
|
|
background-color: #fff;
|
|
|
|
|
|
box-shadow: 15px 15px 30px -10px rgba(0, 0, 0, 0.2),
|
|
|
|
|
|
inset 20px 20px 15px rgba(255, 255, 255, 0.7);
|
2023-12-19 00:21:25 +08:00
|
|
|
|
.left {
|
|
|
|
|
|
width: 55%;
|
2023-12-19 23:00:43 +08:00
|
|
|
|
height: 100%;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
background: url("@/assets/login_images/welcome.jpg") no-repeat;
|
|
|
|
|
|
background-size: 100% auto;
|
|
|
|
|
|
background-position: 50%;
|
|
|
|
|
|
border-right: 2px solid #eeefef;
|
2023-12-19 00:21:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
.right {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
width: 45%;
|
2023-12-19 23:00:43 +08:00
|
|
|
|
padding: 40px 30px 40px 30px;
|
2023-12-19 00:21:25 +08:00
|
|
|
|
border-radius: 20px;
|
2023-12-19 23:00:43 +08:00
|
|
|
|
// color: #06035a;
|
2023-12-19 00:21:25 +08:00
|
|
|
|
|
|
|
|
|
|
background-color: #fff;
|
2023-12-19 23:00:43 +08:00
|
|
|
|
.header-box {
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
|
height: 10px;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
color: #409eff;
|
|
|
|
|
|
}
|
2023-12-19 00:21:25 +08:00
|
|
|
|
.top {
|
2023-12-19 23:00:43 +08:00
|
|
|
|
height: 40px;
|
2023-12-19 00:21:25 +08:00
|
|
|
|
.title {
|
2023-12-19 23:00:43 +08:00
|
|
|
|
font-size: 25px;
|
2023-12-19 00:21:25 +08:00
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
}
|
|
|
|
|
|
.text {
|
|
|
|
|
|
margin-top: 10px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
.center {
|
2023-12-19 23:00:43 +08:00
|
|
|
|
flex: 1;
|
2023-12-19 00:21:25 +08:00
|
|
|
|
.login-form {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 100%;
|
2023-12-19 23:05:26 +08:00
|
|
|
|
padding: 10px 0;
|
2023-12-19 00:21:25 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
2023-12-19 23:00:43 +08:00
|
|
|
|
justify-content: space-around;
|
2023-12-19 00:21:25 +08:00
|
|
|
|
.input-item {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 45px;
|
|
|
|
|
|
outline: none;
|
|
|
|
|
|
border: 2px solid #dde0df;
|
|
|
|
|
|
border-radius: 5px;
|
|
|
|
|
|
padding: 0 10px;
|
|
|
|
|
|
&:hover {
|
|
|
|
|
|
outline: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
.login-btn {
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 45px;
|
|
|
|
|
|
color: #fff;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
line-height: 50px;
|
|
|
|
|
|
border-radius: 5px;
|
|
|
|
|
|
background-color: #2282fe;
|
|
|
|
|
|
}
|
|
|
|
|
|
.link {
|
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
.text {
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
.visitor {
|
|
|
|
|
|
margin-top: 10px;
|
|
|
|
|
|
}
|
2023-12-20 21:05:16 +08:00
|
|
|
|
.registerForm {
|
|
|
|
|
|
:deep(.el-form-item) {
|
2023-12-24 15:07:47 +08:00
|
|
|
|
margin-bottom: 5px;
|
2023-12-20 21:05:16 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2023-12-19 00:21:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
.bottom {
|
|
|
|
|
|
width: 100%;
|
2023-12-19 23:05:26 +08:00
|
|
|
|
height: 150px;
|
2023-12-19 00:21:25 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
2023-12-19 23:00:43 +08:00
|
|
|
|
justify-content: center;
|
2023-12-19 00:21:25 +08:00
|
|
|
|
.title {
|
|
|
|
|
|
> div {
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
margin: 10px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
.icon-list {
|
|
|
|
|
|
margin-top: 10px;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
.icon {
|
2023-12-19 23:00:43 +08:00
|
|
|
|
width: 25px;
|
|
|
|
|
|
height: 25px;
|
2023-12-19 00:21:25 +08:00
|
|
|
|
margin: 0 10px;
|
|
|
|
|
|
img {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2023-12-24 19:13:30 +08:00
|
|
|
|
&-footer {
|
|
|
|
|
|
width: 70%;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
|
margin-top: 20px;
|
|
|
|
|
|
color: #eee;
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
.info {
|
|
|
|
|
|
margin: 0 10px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.btn {
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
&:hover {
|
|
|
|
|
|
color: #fff;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2023-12-19 23:00:43 +08:00
|
|
|
|
|
|
|
|
|
|
:deep(.title-item) {
|
|
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
.flex-between {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
}
|
2023-12-19 00:21:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
</style>
|