2026-06-15 20:49:34 +08:00
|
|
|
<template>
|
|
|
|
|
<div class="home-container">
|
2026-06-15 23:20:21 +08:00
|
|
|
<!-- 顶部视频横幅 -->
|
|
|
|
|
<div class="video-banner">
|
|
|
|
|
<video src="../../public/蜜雪冰城-雪王百科.mp4" autoplay muted loop class="bg-video"></video>
|
|
|
|
|
<div class="video-overlay">
|
|
|
|
|
<h2 class="banner-title">欢迎使用蜜雪冰城管理系统</h2>
|
|
|
|
|
</div>
|
2026-06-15 20:49:34 +08:00
|
|
|
</div>
|
|
|
|
|
|
2026-06-15 23:20:21 +08:00
|
|
|
<!-- 雪王简介 -->
|
|
|
|
|
<div class="intro-section">
|
|
|
|
|
<div class="section-header">
|
|
|
|
|
<div class="header-line"></div>
|
|
|
|
|
<h2 class="section-title">雪王简介</h2>
|
|
|
|
|
<div class="header-line"></div>
|
2026-06-15 20:49:34 +08:00
|
|
|
</div>
|
2026-06-15 23:20:21 +08:00
|
|
|
|
|
|
|
|
<div class="intro-content">
|
|
|
|
|
<div class="pic-wrapper">
|
|
|
|
|
<img src="../../public/mixue.png" alt="雪王" class="xuewang-img">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="txt-wrapper">
|
|
|
|
|
<div class="quote">
|
|
|
|
|
"我是手拿冰淇凌权杖的雪王"
|
|
|
|
|
<br>
|
|
|
|
|
"一生只爱冰淇凌与茶"
|
|
|
|
|
</div>
|
|
|
|
|
<ul class="info-list">
|
|
|
|
|
<li v-for="(item, index) in snowKingInfo" :key="index">
|
|
|
|
|
<span class="info-label">{{ item.label }}</span>
|
|
|
|
|
<span class="info-divider"></span>
|
|
|
|
|
<span class="info-value">{{ item.value }}</span>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
2026-06-15 20:49:34 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
|
import { ref } from 'vue'
|
|
|
|
|
|
|
|
|
|
const snowKingInfo = ref([
|
|
|
|
|
{ label: '生日', value: '11月22日' },
|
|
|
|
|
{ label: '性格', value: '正直、友善、热情、进取' },
|
|
|
|
|
{ label: '职位', value: '蜜雪冰城首席品控官兼全球品牌代言人' },
|
|
|
|
|
{ label: '口头禅', value: '你爱我,我爱你,蜜雪冰城甜蜜蜜' },
|
|
|
|
|
{ label: '爱好', value: '唱歌跳舞,研究冰淇淋与茶的新奇吃法' }
|
|
|
|
|
])
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
.home-container {
|
2026-06-15 23:20:21 +08:00
|
|
|
min-height: 100%;
|
2026-06-15 20:49:34 +08:00
|
|
|
}
|
|
|
|
|
|
2026-06-15 23:20:21 +08:00
|
|
|
/* ========== 视频横幅 ========== */
|
|
|
|
|
.video-banner {
|
|
|
|
|
position: relative;
|
|
|
|
|
width: calc(100% + 40px);
|
|
|
|
|
margin: -20px -20px 0 -20px;
|
|
|
|
|
height: 300px;
|
|
|
|
|
overflow: hidden;
|
2026-06-15 20:49:34 +08:00
|
|
|
}
|
|
|
|
|
|
2026-06-15 23:20:21 +08:00
|
|
|
.bg-video {
|
2026-06-15 20:49:34 +08:00
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
object-fit: cover;
|
|
|
|
|
}
|
|
|
|
|
|
2026-06-15 23:20:21 +08:00
|
|
|
.video-overlay {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
background: linear-gradient(
|
|
|
|
|
to bottom,
|
|
|
|
|
rgba(230, 0, 18, 0.3) 0%,
|
|
|
|
|
rgba(0, 0, 0, 0.4) 100%
|
|
|
|
|
);
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.banner-title {
|
|
|
|
|
color: #fff;
|
|
|
|
|
font-size: 32px;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
|
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ========== 简介区域 ========== */
|
|
|
|
|
.intro-section {
|
|
|
|
|
padding: 40px 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.section-header {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
gap: 20px;
|
|
|
|
|
margin-bottom: 40px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.header-line {
|
|
|
|
|
flex: 1;
|
|
|
|
|
max-width: 200px;
|
|
|
|
|
height: 2px;
|
|
|
|
|
background: linear-gradient(90deg, transparent, #E60012, transparent);
|
2026-06-15 20:49:34 +08:00
|
|
|
}
|
|
|
|
|
|
2026-06-15 23:20:21 +08:00
|
|
|
.section-title {
|
|
|
|
|
font-size: 32px;
|
2026-06-15 20:49:34 +08:00
|
|
|
font-weight: 700;
|
2026-06-15 23:20:21 +08:00
|
|
|
color: #E60012;
|
|
|
|
|
margin: 0;
|
|
|
|
|
white-space: nowrap;
|
2026-06-15 20:49:34 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.intro-content {
|
|
|
|
|
display: flex;
|
2026-06-15 23:20:21 +08:00
|
|
|
justify-content: center;
|
2026-06-15 20:49:34 +08:00
|
|
|
align-items: center;
|
2026-06-15 23:20:21 +08:00
|
|
|
gap: 60px;
|
|
|
|
|
max-width: 1200px;
|
2026-06-15 20:49:34 +08:00
|
|
|
margin: 0 auto;
|
|
|
|
|
}
|
|
|
|
|
|
2026-06-15 23:20:21 +08:00
|
|
|
/* 雪王图片 */
|
|
|
|
|
.pic-wrapper {
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
width: 400px;
|
|
|
|
|
height: 400px;
|
|
|
|
|
border-radius: 20px;
|
2026-06-15 20:49:34 +08:00
|
|
|
overflow: hidden;
|
2026-06-15 23:20:21 +08:00
|
|
|
box-shadow: 0 8px 30px rgba(230, 0, 18, 0.15);
|
|
|
|
|
transition: transform 0.3s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pic-wrapper:hover {
|
|
|
|
|
transform: translateY(-5px);
|
2026-06-15 20:49:34 +08:00
|
|
|
}
|
|
|
|
|
|
2026-06-15 23:20:21 +08:00
|
|
|
.xuewang-img {
|
2026-06-15 20:49:34 +08:00
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
object-fit: cover;
|
|
|
|
|
}
|
|
|
|
|
|
2026-06-15 23:20:21 +08:00
|
|
|
/* 文字内容 */
|
|
|
|
|
.txt-wrapper {
|
|
|
|
|
flex: 1;
|
|
|
|
|
max-width: 500px;
|
2026-06-15 20:49:34 +08:00
|
|
|
}
|
|
|
|
|
|
2026-06-15 23:20:21 +08:00
|
|
|
.quote {
|
|
|
|
|
font-size: 28px;
|
2026-06-15 20:49:34 +08:00
|
|
|
font-weight: 700;
|
|
|
|
|
color: #E60012;
|
2026-06-15 23:20:21 +08:00
|
|
|
line-height: 1.5;
|
|
|
|
|
margin-bottom: 40px;
|
|
|
|
|
padding-left: 20px;
|
|
|
|
|
border-left: 4px solid #E60012;
|
2026-06-15 20:49:34 +08:00
|
|
|
}
|
|
|
|
|
|
2026-06-15 23:20:21 +08:00
|
|
|
.info-list {
|
2026-06-15 20:49:34 +08:00
|
|
|
list-style: none;
|
|
|
|
|
padding: 0;
|
2026-06-15 23:20:21 +08:00
|
|
|
margin: 0;
|
2026-06-15 20:49:34 +08:00
|
|
|
}
|
|
|
|
|
|
2026-06-15 23:20:21 +08:00
|
|
|
.info-list li {
|
2026-06-15 20:49:34 +08:00
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
2026-06-15 23:20:21 +08:00
|
|
|
padding: 14px 0;
|
|
|
|
|
border-bottom: 1px dashed #eee;
|
|
|
|
|
font-size: 16px;
|
2026-06-15 20:49:34 +08:00
|
|
|
}
|
|
|
|
|
|
2026-06-15 23:20:21 +08:00
|
|
|
.info-list li:last-child {
|
|
|
|
|
border-bottom: none;
|
2026-06-15 20:49:34 +08:00
|
|
|
}
|
|
|
|
|
|
2026-06-15 23:20:21 +08:00
|
|
|
.info-label {
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
color: #303133;
|
|
|
|
|
min-width: 70px;
|
2026-06-15 20:49:34 +08:00
|
|
|
}
|
|
|
|
|
|
2026-06-15 23:20:21 +08:00
|
|
|
.info-divider {
|
2026-06-15 20:49:34 +08:00
|
|
|
width: 1px;
|
2026-06-15 23:20:21 +08:00
|
|
|
height: 16px;
|
|
|
|
|
background: #E60012;
|
|
|
|
|
margin: 0 16px;
|
2026-06-15 20:49:34 +08:00
|
|
|
}
|
|
|
|
|
|
2026-06-15 23:20:21 +08:00
|
|
|
.info-value {
|
|
|
|
|
color: #606266;
|
|
|
|
|
flex: 1;
|
2026-06-15 20:49:34 +08:00
|
|
|
}
|
|
|
|
|
|
2026-06-15 23:20:21 +08:00
|
|
|
/* ========== 响应式适配 ========== */
|
|
|
|
|
@media (max-width: 900px) {
|
2026-06-15 20:49:34 +08:00
|
|
|
.intro-content {
|
|
|
|
|
flex-direction: column;
|
2026-06-15 23:20:21 +08:00
|
|
|
gap: 30px;
|
2026-06-15 20:49:34 +08:00
|
|
|
}
|
|
|
|
|
|
2026-06-15 23:20:21 +08:00
|
|
|
.pic-wrapper {
|
2026-06-15 20:49:34 +08:00
|
|
|
width: 100%;
|
2026-06-15 23:20:21 +08:00
|
|
|
max-width: 400px;
|
2026-06-15 20:49:34 +08:00
|
|
|
height: auto;
|
2026-06-15 23:20:21 +08:00
|
|
|
aspect-ratio: 1;
|
2026-06-15 20:49:34 +08:00
|
|
|
}
|
|
|
|
|
|
2026-06-15 23:20:21 +08:00
|
|
|
.txt-wrapper {
|
2026-06-15 20:49:34 +08:00
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
2026-06-15 23:20:21 +08:00
|
|
|
.banner-title {
|
|
|
|
|
font-size: 24px;
|
2026-06-15 20:49:34 +08:00
|
|
|
}
|
|
|
|
|
|
2026-06-15 23:20:21 +08:00
|
|
|
.video-banner {
|
|
|
|
|
height: 200px;
|
2026-06-15 20:49:34 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|