2026-01-26 10:11:17 +08:00
|
|
|
<template>
|
|
|
|
|
<div class="home">
|
2026-01-30 15:44:50 +08:00
|
|
|
<div class="home-container">
|
|
|
|
|
<!-- 背景网格 -->
|
|
|
|
|
<div class="grid-background"></div>
|
|
|
|
|
|
|
|
|
|
<!-- 主要内容 -->
|
|
|
|
|
<div class="home-content">
|
|
|
|
|
<div class="home-tag-wrapper">
|
|
|
|
|
<el-icon class="tag-icon"><Message /></el-icon>
|
|
|
|
|
<span class="home-tag">短信发送系统 · 首页</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
2026-01-26 10:11:17 +08:00
|
|
|
<h1 class="home-title">
|
2026-01-30 15:44:50 +08:00
|
|
|
<span class="title-line">欢迎进入</span>
|
|
|
|
|
<span class="title-line highlight">短信发送管理系统</span>
|
2026-01-26 10:11:17 +08:00
|
|
|
</h1>
|
2026-01-30 15:44:50 +08:00
|
|
|
|
|
|
|
|
<!-- 装饰性图标 -->
|
|
|
|
|
<div class="decorative-icons">
|
|
|
|
|
<div
|
|
|
|
|
class="icon-item"
|
|
|
|
|
v-for="(icon, index) in icons"
|
|
|
|
|
:key="index"
|
|
|
|
|
:style="{ animationDelay: `${index * 0.2}s` }"
|
|
|
|
|
>
|
|
|
|
|
<el-icon :size="24"><component :is="icon" /></el-icon>
|
2026-01-27 15:17:28 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2026-01-30 15:44:50 +08:00
|
|
|
</div>
|
2026-01-26 10:11:17 +08:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
2026-01-27 15:17:28 +08:00
|
|
|
<script setup name="Index">
|
2026-02-02 11:10:40 +08:00
|
|
|
import { ref, markRaw } from 'vue'
|
2026-01-27 15:17:28 +08:00
|
|
|
import { useRouter } from 'vue-router'
|
2026-01-30 15:44:50 +08:00
|
|
|
import { Message, Bell, Document, Setting, DataAnalysis, Connection } from '@element-plus/icons-vue'
|
2026-01-27 15:17:28 +08:00
|
|
|
|
|
|
|
|
const router = useRouter()
|
|
|
|
|
|
2026-02-02 11:10:40 +08:00
|
|
|
// 装饰性图标列表 - 使用 markRaw 避免组件被响应式化
|
|
|
|
|
const icons = ref([
|
|
|
|
|
markRaw(Message),
|
|
|
|
|
markRaw(Bell),
|
|
|
|
|
markRaw(Document),
|
|
|
|
|
markRaw(Setting),
|
|
|
|
|
markRaw(DataAnalysis),
|
|
|
|
|
markRaw(Connection),
|
|
|
|
|
])
|
2026-01-27 15:17:28 +08:00
|
|
|
</script>
|
2026-01-26 10:11:17 +08:00
|
|
|
|
2026-01-27 15:17:28 +08:00
|
|
|
<style lang="scss" scoped>
|
2026-01-26 10:11:17 +08:00
|
|
|
.home {
|
2026-01-30 15:44:50 +08:00
|
|
|
// height: 100vh;
|
|
|
|
|
height: 100%;
|
|
|
|
|
position: relative;
|
2026-01-26 10:11:17 +08:00
|
|
|
display: flex;
|
2026-01-30 15:44:50 +08:00
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
background: linear-gradient(135deg, #f0f7ff 0%, #e6f4ff 50%, #d6e4ff 100%);
|
|
|
|
|
overflow: hidden;
|
2026-01-26 10:11:17 +08:00
|
|
|
}
|
|
|
|
|
|
2026-01-30 15:44:50 +08:00
|
|
|
// 网格背景
|
|
|
|
|
.grid-background {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
background-image: linear-gradient(rgba(22, 119, 255, 0.08) 1px, transparent 1px),
|
|
|
|
|
linear-gradient(90deg, rgba(22, 119, 255, 0.08) 1px, transparent 1px);
|
|
|
|
|
background-size: 50px 50px;
|
|
|
|
|
animation: gridMove 20s linear infinite;
|
|
|
|
|
opacity: 0.4;
|
2026-01-26 10:11:17 +08:00
|
|
|
}
|
|
|
|
|
|
2026-01-30 15:44:50 +08:00
|
|
|
@keyframes gridMove {
|
|
|
|
|
0% {
|
|
|
|
|
transform: translate(0, 0);
|
|
|
|
|
}
|
|
|
|
|
100% {
|
|
|
|
|
transform: translate(50px, 50px);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.home-container {
|
|
|
|
|
position: relative;
|
|
|
|
|
z-index: 1;
|
|
|
|
|
width: 100%;
|
|
|
|
|
max-width: 1200px;
|
|
|
|
|
padding: 20px;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
height: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.home-content {
|
|
|
|
|
text-align: center;
|
|
|
|
|
animation: fadeInUp 0.8s ease-out;
|
|
|
|
|
width: 100%;
|
|
|
|
|
max-height: 100vh;
|
2026-01-26 10:11:17 +08:00
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
justify-content: center;
|
2026-01-30 15:44:50 +08:00
|
|
|
align-items: center;
|
2026-01-26 10:11:17 +08:00
|
|
|
}
|
|
|
|
|
|
2026-01-30 15:44:50 +08:00
|
|
|
@keyframes fadeInUp {
|
|
|
|
|
from {
|
|
|
|
|
opacity: 0;
|
|
|
|
|
transform: translateY(30px);
|
|
|
|
|
}
|
|
|
|
|
to {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
transform: translateY(0);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.home-tag-wrapper {
|
2026-01-26 10:11:17 +08:00
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
2026-01-30 15:44:50 +08:00
|
|
|
gap: 8px;
|
|
|
|
|
padding: 8px 20px;
|
|
|
|
|
border-radius: 30px;
|
2026-01-26 10:11:17 +08:00
|
|
|
font-size: 13px;
|
2026-01-30 15:44:50 +08:00
|
|
|
letter-spacing: 0.5px;
|
2026-01-26 10:11:17 +08:00
|
|
|
color: #1677ff;
|
2026-01-27 15:17:28 +08:00
|
|
|
background: rgba(22, 119, 255, 0.1);
|
2026-01-30 15:44:50 +08:00
|
|
|
backdrop-filter: blur(10px);
|
|
|
|
|
border: 1px solid rgba(22, 119, 255, 0.2);
|
|
|
|
|
margin-bottom: 30px;
|
|
|
|
|
animation: pulse 2s ease-in-out infinite;
|
|
|
|
|
box-shadow: 0 2px 8px rgba(22, 119, 255, 0.15);
|
2026-01-26 10:11:17 +08:00
|
|
|
}
|
|
|
|
|
|
2026-01-30 15:44:50 +08:00
|
|
|
@keyframes pulse {
|
|
|
|
|
0%,
|
|
|
|
|
100% {
|
|
|
|
|
box-shadow: 0 2px 8px rgba(22, 119, 255, 0.15);
|
|
|
|
|
}
|
|
|
|
|
50% {
|
|
|
|
|
box-shadow: 0 4px 12px rgba(22, 119, 255, 0.25);
|
2026-01-27 15:17:28 +08:00
|
|
|
}
|
2026-01-26 10:11:17 +08:00
|
|
|
}
|
|
|
|
|
|
2026-01-30 15:44:50 +08:00
|
|
|
.tag-icon {
|
2026-01-27 15:17:28 +08:00
|
|
|
font-size: 16px;
|
2026-01-30 15:44:50 +08:00
|
|
|
animation: rotate 3s linear infinite;
|
2026-01-26 10:11:17 +08:00
|
|
|
}
|
|
|
|
|
|
2026-01-30 15:44:50 +08:00
|
|
|
@keyframes rotate {
|
|
|
|
|
from {
|
|
|
|
|
transform: rotate(0deg);
|
|
|
|
|
}
|
|
|
|
|
to {
|
|
|
|
|
transform: rotate(360deg);
|
2026-01-27 15:17:28 +08:00
|
|
|
}
|
2026-01-26 10:11:17 +08:00
|
|
|
}
|
|
|
|
|
|
2026-01-30 15:44:50 +08:00
|
|
|
.home-tag {
|
2026-01-27 15:17:28 +08:00
|
|
|
font-weight: 500;
|
2026-01-26 10:11:17 +08:00
|
|
|
}
|
|
|
|
|
|
2026-01-30 15:44:50 +08:00
|
|
|
.home-title {
|
|
|
|
|
font-size: 48px;
|
|
|
|
|
line-height: 1.4;
|
2026-01-27 15:17:28 +08:00
|
|
|
font-weight: 700;
|
2026-01-30 15:44:50 +08:00
|
|
|
margin: 0;
|
|
|
|
|
margin-bottom: 40px;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 16px;
|
2026-01-26 10:11:17 +08:00
|
|
|
}
|
|
|
|
|
|
2026-01-30 15:44:50 +08:00
|
|
|
.title-line {
|
|
|
|
|
display: block;
|
|
|
|
|
color: #303133;
|
|
|
|
|
animation: slideInLeft 0.8s ease-out;
|
2026-01-26 10:11:17 +08:00
|
|
|
|
2026-01-30 15:44:50 +08:00
|
|
|
&:nth-child(2) {
|
|
|
|
|
animation-delay: 0.2s;
|
|
|
|
|
animation-fill-mode: both;
|
2026-01-27 15:17:28 +08:00
|
|
|
}
|
2026-01-26 10:11:17 +08:00
|
|
|
}
|
|
|
|
|
|
2026-01-30 15:44:50 +08:00
|
|
|
@keyframes slideInLeft {
|
|
|
|
|
from {
|
|
|
|
|
opacity: 0;
|
|
|
|
|
transform: translateX(-30px);
|
|
|
|
|
}
|
|
|
|
|
to {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
transform: translateX(0);
|
|
|
|
|
}
|
2026-01-26 10:11:17 +08:00
|
|
|
}
|
|
|
|
|
|
2026-01-30 15:44:50 +08:00
|
|
|
.highlight {
|
|
|
|
|
background: linear-gradient(135deg, #1677ff 0%, #4096ff 50%, #69b1ff 100%);
|
|
|
|
|
-webkit-background-clip: text;
|
|
|
|
|
-webkit-text-fill-color: transparent;
|
|
|
|
|
background-clip: text;
|
|
|
|
|
position: relative;
|
|
|
|
|
animation: shimmer 3s ease-in-out infinite;
|
2026-01-27 15:17:28 +08:00
|
|
|
}
|
|
|
|
|
|
2026-01-30 15:44:50 +08:00
|
|
|
@keyframes shimmer {
|
|
|
|
|
0%,
|
|
|
|
|
100% {
|
|
|
|
|
filter: brightness(1);
|
|
|
|
|
}
|
|
|
|
|
50% {
|
|
|
|
|
filter: brightness(1.3);
|
|
|
|
|
}
|
2026-01-27 15:17:28 +08:00
|
|
|
}
|
|
|
|
|
|
2026-01-30 15:44:50 +08:00
|
|
|
// 装饰性图标
|
|
|
|
|
.decorative-icons {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
gap: 24px;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
margin-top: 40px;
|
2026-01-27 15:17:28 +08:00
|
|
|
}
|
|
|
|
|
|
2026-01-30 15:44:50 +08:00
|
|
|
.icon-item {
|
|
|
|
|
width: 56px;
|
|
|
|
|
height: 56px;
|
2026-01-27 15:17:28 +08:00
|
|
|
display: flex;
|
2026-01-30 15:44:50 +08:00
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
2026-01-27 15:17:28 +08:00
|
|
|
border-radius: 12px;
|
2026-01-30 15:44:50 +08:00
|
|
|
background: rgba(255, 255, 255, 0.8);
|
|
|
|
|
border: 1px solid rgba(22, 119, 255, 0.15);
|
|
|
|
|
color: #1677ff;
|
|
|
|
|
cursor: pointer;
|
2026-01-27 15:17:28 +08:00
|
|
|
transition: all 0.3s ease;
|
2026-01-30 15:44:50 +08:00
|
|
|
animation: float 3s ease-in-out infinite;
|
|
|
|
|
backdrop-filter: blur(10px);
|
|
|
|
|
box-shadow: 0 2px 8px rgba(22, 119, 255, 0.1);
|
2026-01-27 15:17:28 +08:00
|
|
|
|
|
|
|
|
&:hover {
|
2026-01-30 15:44:50 +08:00
|
|
|
background: rgba(22, 119, 255, 0.1);
|
|
|
|
|
border-color: rgba(22, 119, 255, 0.3);
|
|
|
|
|
transform: translateY(-5px) scale(1.1);
|
|
|
|
|
box-shadow: 0 6px 16px rgba(22, 119, 255, 0.2);
|
|
|
|
|
color: #0958d9;
|
2026-01-27 15:17:28 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-30 15:44:50 +08:00
|
|
|
@keyframes float {
|
|
|
|
|
0%,
|
|
|
|
|
100% {
|
|
|
|
|
transform: translateY(0);
|
2026-01-26 10:11:17 +08:00
|
|
|
}
|
2026-01-30 15:44:50 +08:00
|
|
|
50% {
|
|
|
|
|
transform: translateY(-10px);
|
2026-01-27 15:17:28 +08:00
|
|
|
}
|
2026-01-30 15:44:50 +08:00
|
|
|
}
|
2026-01-27 15:17:28 +08:00
|
|
|
|
2026-01-30 15:44:50 +08:00
|
|
|
// 响应式设计
|
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
|
.home-container {
|
|
|
|
|
padding: 15px;
|
2026-01-27 15:17:28 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.home-title {
|
2026-01-30 15:44:50 +08:00
|
|
|
font-size: 32px;
|
|
|
|
|
margin-bottom: 30px;
|
|
|
|
|
gap: 12px;
|
2026-01-26 10:11:17 +08:00
|
|
|
}
|
|
|
|
|
|
2026-01-30 15:44:50 +08:00
|
|
|
.home-tag-wrapper {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
padding: 6px 16px;
|
|
|
|
|
margin-bottom: 24px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.decorative-icons {
|
|
|
|
|
gap: 16px;
|
|
|
|
|
margin-top: 30px;
|
2026-01-26 10:11:17 +08:00
|
|
|
}
|
|
|
|
|
|
2026-01-30 15:44:50 +08:00
|
|
|
.icon-item {
|
|
|
|
|
width: 48px;
|
|
|
|
|
height: 48px;
|
2026-01-27 15:17:28 +08:00
|
|
|
}
|
2026-01-30 15:44:50 +08:00
|
|
|
}
|
2026-01-27 15:17:28 +08:00
|
|
|
|
2026-01-30 15:44:50 +08:00
|
|
|
@media (max-width: 480px) {
|
2026-01-27 15:17:28 +08:00
|
|
|
.home-title {
|
2026-01-30 15:44:50 +08:00
|
|
|
font-size: 24px;
|
|
|
|
|
margin-bottom: 24px;
|
|
|
|
|
gap: 10px;
|
2026-01-27 15:17:28 +08:00
|
|
|
}
|
|
|
|
|
|
2026-01-30 15:44:50 +08:00
|
|
|
.home-tag-wrapper {
|
|
|
|
|
margin-bottom: 20px;
|
2026-01-26 10:11:17 +08:00
|
|
|
}
|
|
|
|
|
|
2026-01-30 15:44:50 +08:00
|
|
|
.decorative-icons {
|
|
|
|
|
gap: 12px;
|
|
|
|
|
margin-top: 24px;
|
2026-01-26 10:11:17 +08:00
|
|
|
}
|
|
|
|
|
|
2026-01-30 15:44:50 +08:00
|
|
|
.icon-item {
|
|
|
|
|
width: 44px;
|
|
|
|
|
height: 44px;
|
2026-01-26 10:11:17 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|