feat: 完成管理员密码登录修复和项目清理

- 修复BCryptPasswordEncoder密码验证问题
- 实现密码设置提示弹窗功能(仅对无密码用户显示一次)
- 优化修改密码逻辑和验证流程
- 更新Welcome页面背景样式
- 清理临时SQL文件和测试代码
- 移动数据库备份文件到database/backups目录
- 删除不必要的MD文档和临时文件
This commit is contained in:
AIGC Developer
2025-11-21 16:10:00 +08:00
parent 2961d2b0d0
commit dbd06435cb
384 changed files with 8064 additions and 5080 deletions

View File

@@ -10,9 +10,11 @@
<a href="#" class="nav-link" @click.prevent="goToTextToVideo">{{ $t('welcome.textToVideo') }}</a>
<a href="#" class="nav-link" @click.prevent="goToImageToVideo">{{ $t('welcome.imageToVideo') }}</a>
<a href="#" class="nav-link" @click.prevent="goToStoryboardVideo">{{ $t('welcome.storyboardVideo') }}</a>
<a href="#" class="nav-link" @click="scrollToSection('features')">{{ $t('welcome.pricing') }}</a>
</nav>
<button class="nav-button" @click="goToLogin">{{ $t('welcome.startExperience') }}</button>
<div class="nav-actions">
<LanguageSwitcher />
<button class="nav-button" @click="goToLogin">{{ $t('welcome.startExperience') }}</button>
</div>
</div>
</header>
@@ -20,46 +22,20 @@
<main class="content">
<h1 class="title">
<span class="title-line">
<span class="bright-text">{{ $t('welcome.title1') }}</span><span class="fade-text">{{ $t('welcome.title2') }}</span>
<span class="bright-text">智创</span><span class="gradient-text">无限</span>
</span>
<span class="title-line">
<span class="bright-text">{{ $t('welcome.title3') }}</span><span class="fade-text">{{ $t('welcome.title4') }}</span>
<span class="bright-text">灵感</span><span class="gradient-text">变现</span>
</span>
</h1>
<p class="subtitle">{{ $t('welcome.subtitle') }}</p>
<button class="main-button" @click="goToLogin">{{ $t('welcome.tryNow') }}</button>
<button class="main-button" @click="goToLogin">立即体验</button>
</main>
<!-- 功能说明 -->
<section id="features" class="features-section">
<div class="features-container">
<h2 class="features-title">{{ $t('welcome.coreFeatures') }}</h2>
<div class="features-grid">
<div class="feature-card" @click="goToTextToVideo" style="cursor: pointer;">
<h3>{{ $t('welcome.textToVideo') }}</h3>
<p>{{ $t('welcome.textToVideoDesc') }}</p>
</div>
<div class="feature-card" @click="goToImageToVideo" style="cursor: pointer;">
<h3>{{ $t('welcome.imageToVideo') }}</h3>
<p>{{ $t('welcome.imageToVideoDesc') }}</p>
</div>
<div class="feature-card" @click="goToStoryboardVideo" style="cursor: pointer;">
<h3>{{ $t('welcome.storyboardVideo') }}</h3>
<p>{{ $t('welcome.storyboardVideoDesc') }}</p>
</div>
<div class="feature-card">
<h3>{{ $t('welcome.pricing') }}</h3>
<p>{{ $t('welcome.pricingDesc') }}</p>
</div>
</div>
<button class="features-button" @click="goToLogin">{{ $t('welcome.startCreating') }}</button>
</div>
</section>
</div>
</template>
<script setup>
import { useRouter } from 'vue-router'
import LanguageSwitcher from '@/components/LanguageSwitcher.vue'
const router = useRouter()
@@ -82,25 +58,29 @@ const goToImageToVideo = () => {
const goToStoryboardVideo = () => {
router.push('/storyboard-video/create')
}
// 滚动到功能说明部分
const scrollToSection = (sectionId) => {
const element = document.getElementById(sectionId)
if (element) {
element.scrollIntoView({ behavior: 'smooth' })
}
}
</script>
<style scoped>
.welcome-page {
min-height: 100vh;
background: url('/images/backgrounds/welcome.jpg') center/cover no-repeat;
position: relative;
width: 100%;
min-height: 100vh;
overflow: hidden;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.welcome-page::before {
content: '';
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
width: 2156px;
height: 1394px;
background: url('/images/backgrounds/27.jpg') center/cover no-repeat;
z-index: -1;
}
/* 导航栏 */
.navbar {
position: fixed;
@@ -157,6 +137,12 @@ const scrollToSection = (sectionId) => {
color: #4a9eff;
}
.nav-actions {
display: flex;
align-items: center;
gap: 15px;
}
.nav-button {
background: rgba(74, 158, 255, 0.8);
border: 1px solid rgba(255, 255, 255, 0.3);
@@ -219,17 +205,26 @@ const scrollToSection = (sectionId) => {
.bright-text {
color: white;
opacity: 1;
font-weight: 700;
}
.gradient-text {
color: rgba(255, 255, 255, 0.5);
font-weight: 700;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.fade-text {
color: white;
opacity: 0.6;
color: rgba(255, 255, 255, 0.5);
font-weight: 700;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.main-button {
background: linear-gradient(90deg, rgba(74, 158, 255, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
background: rgba(255, 255, 255, 0.5);
border: none;
color: white;
padding: 22px 60px;
border-radius: 50px;
font-size: 22px;
@@ -238,8 +233,12 @@ const scrollToSection = (sectionId) => {
transition: all 0.3s ease;
box-shadow: 0 6px 25px rgba(74, 158, 255, 0.3);
position: relative;
overflow: hidden;
backdrop-filter: blur(10px);
color: #2563EB;
}
.main-button::after {
content: none;
}
.main-button:hover {
@@ -290,82 +289,4 @@ const scrollToSection = (sectionId) => {
font-size: 16px;
}
}
/* 功能说明部分 */
.features-section {
background: rgba(0, 0, 0, 0.8);
padding: 80px 20px;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
.features-container {
max-width: 1200px;
width: 100%;
text-align: center;
}
.features-title {
font-size: 3rem;
color: white;
margin-bottom: 60px;
font-weight: 700;
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 30px;
margin-bottom: 60px;
}
.feature-card {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 20px;
padding: 40px 30px;
transition: all 0.3s ease;
}
.feature-card:hover {
transform: translateY(-10px);
background: rgba(255, 255, 255, 0.15);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.feature-card h3 {
font-size: 1.5rem;
color: white;
margin-bottom: 15px;
font-weight: 600;
}
.feature-card p {
color: rgba(255, 255, 255, 0.8);
line-height: 1.6;
font-size: 1rem;
}
.features-button {
background: linear-gradient(135deg, #4A9EFF 0%, #6B73FF 100%);
color: white;
border: none;
padding: 18px 40px;
font-size: 1.1rem;
font-weight: 600;
border-radius: 50px;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 10px 30px rgba(74, 158, 255, 0.3);
}
.features-button:hover {
background: linear-gradient(135deg, #6B73FF 0%, #4A9EFF 100%);
transform: translateY(-3px);
box-shadow: 0 15px 40px rgba(74, 158, 255, 0.4);
}
</style>