2025-07-31 13:55:29 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<div class="container">
|
|
|
|
|
|
<div class="spacer"></div>
|
2025-08-01 09:34:06 +08:00
|
|
|
|
|
2025-07-31 13:55:29 +08:00
|
|
|
|
<div class="main-content">
|
2025-09-04 15:15:04 +08:00
|
|
|
|
|
|
|
|
|
|
<p class="welcome">{{userName}},欢迎来到炬融圈</p>
|
2025-07-31 13:55:29 +08:00
|
|
|
|
<!-- 轮播图 -->
|
|
|
|
|
|
<div class="carousel">
|
|
|
|
|
|
<swiper
|
|
|
|
|
|
:modules="modules"
|
|
|
|
|
|
:slides-per-view="1"
|
|
|
|
|
|
:space-between="0"
|
|
|
|
|
|
:autoplay="{ delay: 3000, disableOnInteraction: false }"
|
|
|
|
|
|
:pagination="{ clickable: true }"
|
|
|
|
|
|
:loop="true"
|
|
|
|
|
|
>
|
|
|
|
|
|
<swiper-slide v-for="(item, index) in carouselItems" :key="index">
|
2025-08-01 09:34:06 +08:00
|
|
|
|
<img :src="item.image" :alt="item.title" class="carousel-img" />
|
2025-07-31 13:55:29 +08:00
|
|
|
|
<div class="carousel-title">{{ item.title }}</div>
|
|
|
|
|
|
</swiper-slide>
|
|
|
|
|
|
</swiper>
|
|
|
|
|
|
</div>
|
2025-08-01 09:34:06 +08:00
|
|
|
|
|
2025-07-31 13:55:29 +08:00
|
|
|
|
<!-- 头部导航 -->
|
|
|
|
|
|
<div class="header">
|
2025-08-01 09:34:06 +08:00
|
|
|
|
<router-link
|
|
|
|
|
|
v-for="(item, index) in headerItems"
|
|
|
|
|
|
:key="index"
|
|
|
|
|
|
:to="item.path"
|
2025-07-31 13:55:29 +08:00
|
|
|
|
class="header-item"
|
|
|
|
|
|
custom
|
|
|
|
|
|
v-slot="{ navigate }"
|
|
|
|
|
|
>
|
|
|
|
|
|
<div @click="navigate" class="header-item-content">
|
2025-08-01 09:34:06 +08:00
|
|
|
|
<img :src="item.image" :alt="item.text" class="header-image" />
|
2025-07-31 13:55:29 +08:00
|
|
|
|
<div class="header-text">{{ item.text }}</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</router-link>
|
|
|
|
|
|
</div>
|
2025-08-01 09:34:06 +08:00
|
|
|
|
|
2025-09-04 14:38:27 +08:00
|
|
|
|
<!-- 修改后的操作区域 - 三个图片并排 -->
|
2025-07-31 13:55:29 +08:00
|
|
|
|
<div class="action-area">
|
2025-09-04 14:38:27 +08:00
|
|
|
|
<div class="action-grid-horizontal">
|
|
|
|
|
|
<router-link to="/matching?quantitative=true" class="action-item">
|
2025-09-04 15:15:04 +08:00
|
|
|
|
<img src="/imgs/mainpage/dinglianghuoqu1.png" alt="定量获取" class="action-image1" />
|
2025-09-04 14:38:27 +08:00
|
|
|
|
</router-link>
|
|
|
|
|
|
<router-link to="/matching" class="action-item">
|
2025-09-04 15:15:04 +08:00
|
|
|
|
<img src="/imgs/mainpage/huoqurongdou1.png" alt="获取融豆" class="action-image2" />
|
2025-09-04 14:38:27 +08:00
|
|
|
|
</router-link>
|
|
|
|
|
|
<router-link to="/myshop" class="action-item">
|
2025-09-04 15:15:04 +08:00
|
|
|
|
<img src="/imgs/mainpage/shangcheng1.png" alt="商城" class="action-image3" />
|
2025-07-31 17:43:58 +08:00
|
|
|
|
</router-link>
|
2025-07-31 13:55:29 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2025-08-01 09:34:06 +08:00
|
|
|
|
|
2025-07-31 13:55:29 +08:00
|
|
|
|
<!-- 热门资讯 -->
|
|
|
|
|
|
<div class="hot-news">
|
|
|
|
|
|
<div class="news-title">热门资讯</div>
|
|
|
|
|
|
<div class="news-list">
|
2025-08-01 09:34:06 +08:00
|
|
|
|
<div
|
|
|
|
|
|
class="news-item"
|
|
|
|
|
|
v-for="(item, index) in newsItems"
|
|
|
|
|
|
:key="index"
|
|
|
|
|
|
>
|
2025-07-31 13:55:29 +08:00
|
|
|
|
<span class="news-dot">•</span> {{ item }}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2025-09-03 14:19:45 +08:00
|
|
|
|
|
|
|
|
|
|
<!-- 欢迎弹窗 -->
|
2025-09-04 15:15:04 +08:00
|
|
|
|
<!-- <el-dialog
|
2025-09-03 14:19:45 +08:00
|
|
|
|
v-model="showWelcomeDialog"
|
|
|
|
|
|
width="90%"
|
2025-09-03 14:44:04 +08:00
|
|
|
|
:style="{ height: '425px' }"
|
2025-09-03 14:19:45 +08:00
|
|
|
|
:show-close="true"
|
|
|
|
|
|
:close-on-click-modal="true"
|
|
|
|
|
|
:close-on-press-escape="true"
|
|
|
|
|
|
center
|
|
|
|
|
|
class="welcome-dialog"
|
|
|
|
|
|
>
|
|
|
|
|
|
<div class="welcome-content">
|
|
|
|
|
|
<div class="welcome-icon">🎉</div>
|
|
|
|
|
|
<h3>融汇通更新</h3>
|
|
|
|
|
|
<div class="welcome-features">
|
|
|
|
|
|
<div class="feature-item">
|
|
|
|
|
|
<span class="feature-icon">💎</span>
|
|
|
|
|
|
<span>获取融豆赚取积分</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="feature-item">
|
|
|
|
|
|
<span class="feature-icon">🛒</span>
|
|
|
|
|
|
<span>积分商城兑换好礼</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<template #footer>
|
|
|
|
|
|
<span class="dialog-footer">
|
|
|
|
|
|
<el-button @click="showWelcomeDialog = false">关闭</el-button>
|
|
|
|
|
|
</span>
|
|
|
|
|
|
</template>
|
2025-09-04 15:15:04 +08:00
|
|
|
|
</el-dialog> -->
|
2025-07-31 13:55:29 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
2025-08-01 09:34:06 +08:00
|
|
|
|
import { Swiper, SwiperSlide } from 'swiper/vue';
|
|
|
|
|
|
import { Autoplay, Pagination } from 'swiper';
|
2025-09-04 15:15:04 +08:00
|
|
|
|
import { ref, onMounted, onUnmounted, computed } from 'vue';
|
2025-09-03 14:19:45 +08:00
|
|
|
|
import { ElMessage, ElDialog, ElButton } from 'element-plus';
|
2025-08-01 09:34:06 +08:00
|
|
|
|
import { transferAPI } from '../utils/api';
|
2025-09-04 15:15:04 +08:00
|
|
|
|
import { useUserStore } from '../stores/user';
|
2025-08-01 09:34:06 +08:00
|
|
|
|
import 'swiper/css';
|
|
|
|
|
|
import 'swiper/css/autoplay';
|
|
|
|
|
|
import 'swiper/css/pagination';
|
2025-07-31 13:55:29 +08:00
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
|
components: {
|
|
|
|
|
|
Swiper,
|
2025-08-01 09:34:06 +08:00
|
|
|
|
SwiperSlide,
|
2025-07-31 13:55:29 +08:00
|
|
|
|
},
|
2025-07-31 17:43:58 +08:00
|
|
|
|
setup() {
|
2025-09-04 15:15:04 +08:00
|
|
|
|
// 用户store
|
|
|
|
|
|
const userStore = useUserStore();
|
|
|
|
|
|
|
2025-07-31 13:55:29 +08:00
|
|
|
|
// 响应式数据
|
2025-08-01 09:34:06 +08:00
|
|
|
|
const userPoints = ref(0);
|
2025-09-03 14:19:45 +08:00
|
|
|
|
const showWelcomeDialog = ref(false);
|
2025-09-04 15:15:04 +08:00
|
|
|
|
|
|
|
|
|
|
// 计算属性 - 获取用户名
|
|
|
|
|
|
const userName = computed(() => {
|
|
|
|
|
|
return userStore.user?.username || '用户';
|
|
|
|
|
|
});
|
2025-07-31 13:55:29 +08:00
|
|
|
|
const carouselItems = ref([
|
2025-07-31 17:43:58 +08:00
|
|
|
|
{ image: '/imgs/top/1.jpg', title: '限时优惠活动' },
|
|
|
|
|
|
{ image: '/imgs/top/2.jpg', title: '新用户专享' },
|
2025-08-01 09:34:06 +08:00
|
|
|
|
{ image: '/imgs/top/3.jpg', title: '积分兑换' },
|
|
|
|
|
|
]);
|
2025-07-31 13:55:29 +08:00
|
|
|
|
const headerItems = ref([
|
2025-08-01 09:34:06 +08:00
|
|
|
|
{
|
2025-09-03 11:00:08 +08:00
|
|
|
|
image: '/imgs/mainpage/jiaoyijilu.png',
|
2025-08-01 09:34:06 +08:00
|
|
|
|
text: '交易记录',
|
|
|
|
|
|
path: '/transfers',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
2025-09-03 11:00:08 +08:00
|
|
|
|
image: '/imgs/mainpage/dingdanchaxun.png',
|
2025-08-01 09:34:06 +08:00
|
|
|
|
text: '订单查询',
|
|
|
|
|
|
path: '/points-history',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
2025-09-03 11:00:08 +08:00
|
|
|
|
image: '/imgs/mainpage/kefuzhongxin.png',
|
2025-08-01 09:34:06 +08:00
|
|
|
|
text: '客服中心',
|
2025-08-05 09:59:22 +08:00
|
|
|
|
path: '/customerservice',
|
2025-08-01 09:34:06 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2025-09-03 11:00:08 +08:00
|
|
|
|
image: '/imgs/mainpage/xitonggonggao.png',
|
2025-08-01 09:34:06 +08:00
|
|
|
|
text: '系统公告',
|
2025-08-05 09:59:22 +08:00
|
|
|
|
path: '#',
|
2025-08-01 09:34:06 +08:00
|
|
|
|
},
|
|
|
|
|
|
]);
|
2025-07-31 13:55:29 +08:00
|
|
|
|
const newsItems = ref([
|
2025-09-03 12:02:56 +08:00
|
|
|
|
'最新活动:商城特惠',
|
2025-08-01 09:34:06 +08:00
|
|
|
|
'商城新品上架',
|
|
|
|
|
|
]);
|
2025-07-31 13:55:29 +08:00
|
|
|
|
|
|
|
|
|
|
// 获取用户积分
|
|
|
|
|
|
const getUserPoints = async () => {
|
|
|
|
|
|
try {
|
|
|
|
|
|
// 使用封装好的API获取用户账户信息
|
2025-08-01 09:34:06 +08:00
|
|
|
|
const {data} = await transferAPI.getUserAccount();
|
|
|
|
|
|
console.log(data);
|
|
|
|
|
|
|
2025-07-31 13:55:29 +08:00
|
|
|
|
// 根据实际API响应结构调整,以下是几种可能的取值方式
|
2025-08-01 09:34:06 +08:00
|
|
|
|
userPoints.value = data.data.points || 0;
|
2025-07-31 13:55:29 +08:00
|
|
|
|
} catch (error) {
|
2025-08-01 09:34:06 +08:00
|
|
|
|
console.error('获取积分信息失败', error);
|
|
|
|
|
|
userPoints.value = 0;
|
|
|
|
|
|
ElMessage.error('获取积分信息失败,请稍后重试');
|
2025-07-31 13:55:29 +08:00
|
|
|
|
}
|
2025-08-01 09:34:06 +08:00
|
|
|
|
};
|
2025-07-31 13:55:29 +08:00
|
|
|
|
|
|
|
|
|
|
// 定时刷新积分
|
2025-08-01 09:34:06 +08:00
|
|
|
|
let refreshInterval;
|
|
|
|
|
|
|
2025-07-31 13:55:29 +08:00
|
|
|
|
onMounted(() => {
|
2025-08-01 09:34:06 +08:00
|
|
|
|
getUserPoints();
|
2025-07-31 13:55:29 +08:00
|
|
|
|
// 每5分钟刷新一次积分(可根据需求调整时间)
|
2025-08-01 09:34:06 +08:00
|
|
|
|
refreshInterval = setInterval(getUserPoints, 5 * 60 * 1000);
|
2025-09-03 14:19:45 +08:00
|
|
|
|
|
|
|
|
|
|
// 显示欢迎弹窗
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
|
showWelcomeDialog.value = true;
|
|
|
|
|
|
}, 500); // 延迟500ms显示,让页面先加载完成
|
2025-08-01 09:34:06 +08:00
|
|
|
|
});
|
2025-07-31 13:55:29 +08:00
|
|
|
|
|
|
|
|
|
|
onUnmounted(() => {
|
2025-08-01 09:34:06 +08:00
|
|
|
|
clearInterval(refreshInterval);
|
|
|
|
|
|
});
|
2025-07-31 13:55:29 +08:00
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
modules: [Autoplay, Pagination],
|
|
|
|
|
|
userPoints,
|
2025-09-04 15:15:04 +08:00
|
|
|
|
userName,
|
2025-07-31 13:55:29 +08:00
|
|
|
|
carouselItems,
|
|
|
|
|
|
headerItems,
|
|
|
|
|
|
newsItems,
|
2025-09-03 14:19:45 +08:00
|
|
|
|
showWelcomeDialog,
|
2025-08-01 09:34:06 +08:00
|
|
|
|
getUserPoints, // 如果需要外部调用可以暴露
|
|
|
|
|
|
};
|
|
|
|
|
|
},
|
|
|
|
|
|
};
|
2025-07-31 13:55:29 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
/* 基础样式 */
|
|
|
|
|
|
:root {
|
|
|
|
|
|
--primary-color: #4361ee;
|
|
|
|
|
|
--secondary-color: #3f37c9;
|
|
|
|
|
|
--accent-color: #4895ef;
|
|
|
|
|
|
--light-color: #f8f9fa;
|
|
|
|
|
|
--dark-color: #212529;
|
|
|
|
|
|
--success-color: #4cc9f0;
|
|
|
|
|
|
--warning-color: #f8961e;
|
|
|
|
|
|
--danger-color: #f72585;
|
|
|
|
|
|
--border-radius: 12px;
|
|
|
|
|
|
--box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
|
|
|
|
--transition: all 0.3s ease;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* 容器布局 */
|
|
|
|
|
|
.container {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
min-height: 100vh;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
|
|
|
|
position: relative;
|
2025-09-04 11:28:49 +08:00
|
|
|
|
background-image: url('/imgs/mainpage/jingganglan-1.png'), url('/imgs/mainpage/jingganglan-2.png');
|
|
|
|
|
|
background-size: 100% 10%, 100% 100%;
|
2025-09-04 15:15:04 +08:00
|
|
|
|
background-position: center 28%, center 100%;
|
2025-09-04 11:28:49 +08:00
|
|
|
|
background-repeat: no-repeat, no-repeat;
|
2025-07-31 13:55:29 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.main-content {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
padding: 16px;
|
|
|
|
|
|
gap: 16px;
|
|
|
|
|
|
width: 100%;
|
2025-09-04 16:52:57 +08:00
|
|
|
|
max-width: 100%;
|
|
|
|
|
|
margin: 0 auto;
|
2025-07-31 13:55:29 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-09-04 15:15:04 +08:00
|
|
|
|
/* 欢迎文字 */
|
|
|
|
|
|
.welcome {
|
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
color: white;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-07-31 13:55:29 +08:00
|
|
|
|
.spacer {
|
|
|
|
|
|
height: 40px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* 轮播图样式 */
|
|
|
|
|
|
.carousel {
|
2025-09-04 16:52:57 +08:00
|
|
|
|
width: 100%;
|
|
|
|
|
|
max-width: 343px;
|
2025-07-31 13:55:29 +08:00
|
|
|
|
height: 148px;
|
|
|
|
|
|
border-radius: 12px;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
box-shadow: var(--box-shadow);
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
|
opacity: 1;
|
2025-09-04 11:28:49 +08:00
|
|
|
|
z-index: 1; /* 设置较低的z-index,让背景图显示在上面 */
|
2025-07-31 13:55:29 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.carousel-img {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
object-fit: cover;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.carousel-title {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
bottom: 0;
|
|
|
|
|
|
left: 0;
|
|
|
|
|
|
right: 0;
|
|
|
|
|
|
background: rgba(0, 0, 0, 0.5);
|
|
|
|
|
|
color: white;
|
|
|
|
|
|
padding: 8px 16px;
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* 头部导航样式 */
|
|
|
|
|
|
.header {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between; /* 保持元素均匀分布 */
|
2025-09-04 16:52:57 +08:00
|
|
|
|
width: 100%;
|
|
|
|
|
|
max-width: 343px;
|
2025-07-31 13:55:29 +08:00
|
|
|
|
height: 50px;
|
|
|
|
|
|
padding: 0; /* 移除内边距 */
|
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
|
position: relative; /* 为伪元素定位做准备 */
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.header-item {
|
|
|
|
|
|
flex: 0 0 60px; /* 固定每个项目宽度为60px */
|
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.header-item-content {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
transition: var(--transition);
|
|
|
|
|
|
width: 100%; /* 确保内容占满整个项目宽度 */
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.header-image {
|
|
|
|
|
|
width: 24px;
|
|
|
|
|
|
height: 24px;
|
|
|
|
|
|
margin-bottom: 2px;
|
|
|
|
|
|
object-fit: contain;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.header-text {
|
|
|
|
|
|
font-size: 10px;
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
color: var(--dark-color);
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* 操作区域样式 */
|
|
|
|
|
|
.action-area {
|
2025-09-04 16:52:57 +08:00
|
|
|
|
width: 100%;
|
|
|
|
|
|
max-width: 343px;
|
2025-07-31 13:55:29 +08:00
|
|
|
|
margin: 0 auto;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-09-04 14:38:27 +08:00
|
|
|
|
.action-grid-horizontal {
|
2025-07-31 13:55:29 +08:00
|
|
|
|
display: flex;
|
2025-09-04 14:38:27 +08:00
|
|
|
|
justify-content: space-between;
|
2025-07-31 13:55:29 +08:00
|
|
|
|
align-items: center;
|
2025-09-04 14:38:27 +08:00
|
|
|
|
gap: 10px;
|
|
|
|
|
|
width: 100%;
|
2025-07-31 13:55:29 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-09-04 14:38:27 +08:00
|
|
|
|
.action-item {
|
|
|
|
|
|
flex: 1;
|
2025-07-31 13:55:29 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: center;
|
2025-09-04 14:38:27 +08:00
|
|
|
|
align-items: center;
|
|
|
|
|
|
text-decoration: none;
|
2025-07-31 13:55:29 +08:00
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
transition: var(--transition);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-09-04 14:38:27 +08:00
|
|
|
|
.action-item:hover {
|
|
|
|
|
|
transform: scale(1.05);
|
2025-07-31 13:55:29 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-09-04 15:15:04 +08:00
|
|
|
|
.action-image1 {
|
|
|
|
|
|
width: 300%;
|
|
|
|
|
|
height: auto;
|
|
|
|
|
|
max-width: 180px;
|
|
|
|
|
|
object-fit: contain;
|
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
|
margin-left: 40px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.action-image2 {
|
|
|
|
|
|
width: 300%;
|
2025-09-04 14:38:27 +08:00
|
|
|
|
height: auto;
|
2025-09-04 15:15:04 +08:00
|
|
|
|
max-width: 180px;
|
2025-09-04 14:38:27 +08:00
|
|
|
|
object-fit: contain;
|
|
|
|
|
|
border-radius: 8px;
|
2025-09-04 15:15:04 +08:00
|
|
|
|
margin-left: 20px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.action-image3 {
|
|
|
|
|
|
width: 300%;
|
|
|
|
|
|
height: auto;
|
|
|
|
|
|
max-width: 180px;
|
|
|
|
|
|
object-fit: contain;
|
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
|
margin-left: 40px;
|
2025-07-31 13:55:29 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* 热门资讯 */
|
|
|
|
|
|
.hot-news {
|
2025-09-04 16:52:57 +08:00
|
|
|
|
width: 100%;
|
|
|
|
|
|
max-width: 343px;
|
2025-07-31 13:55:29 +08:00
|
|
|
|
padding: 16px;
|
|
|
|
|
|
background-color: white;
|
2025-08-25 13:55:56 +08:00
|
|
|
|
border-radius: 12px;
|
2025-09-04 15:15:04 +08:00
|
|
|
|
border: 1px solid #e0e0e0;
|
|
|
|
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
2025-07-31 13:55:29 +08:00
|
|
|
|
margin: 0 auto;
|
|
|
|
|
|
opacity: 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.news-title {
|
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
color: var(--dark-color);
|
|
|
|
|
|
margin-bottom: 12px;
|
|
|
|
|
|
padding-bottom: 8px;
|
|
|
|
|
|
border-bottom: 1px solid #f0f0f0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.news-list {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
gap: 10px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.news-item {
|
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
color: #555;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
line-height: 1.4;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.news-dot {
|
|
|
|
|
|
color: var(--primary-color);
|
|
|
|
|
|
margin-right: 8px;
|
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Swiper分页样式 */
|
|
|
|
|
|
:deep(.swiper-pagination-bullet-active) {
|
|
|
|
|
|
background: var(--primary-color) !important;
|
|
|
|
|
|
}
|
2025-09-03 14:19:45 +08:00
|
|
|
|
|
|
|
|
|
|
/* 欢迎弹窗样式 */
|
|
|
|
|
|
:deep(.welcome-dialog .el-dialog__body) {
|
|
|
|
|
|
background-image: url('/imgs/mainpage/gengxintishi.png');
|
2025-09-03 14:44:04 +08:00
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|
|
background-position: center bottom;
|
2025-09-03 14:19:45 +08:00
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
/* 调整背景图透明度,值范围0-1,0为完全透明,1为完全不透明 */
|
|
|
|
|
|
opacity: 1;
|
2025-09-03 14:44:04 +08:00
|
|
|
|
padding-bottom: 60px;
|
2025-09-03 14:19:45 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
:deep(.welcome-dialog .el-dialog__body::before) {
|
|
|
|
|
|
content: '';
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 0;
|
|
|
|
|
|
left: 0;
|
|
|
|
|
|
right: 0;
|
|
|
|
|
|
bottom: 0;
|
|
|
|
|
|
/* 调整遮罩层透明度,最后一个数值控制透明度(0-1) */
|
|
|
|
|
|
background: rgba(255, 255, 255, 0.3);
|
|
|
|
|
|
z-index: 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.welcome-content {
|
|
|
|
|
|
text-align: center;
|
2025-09-03 14:44:04 +08:00
|
|
|
|
padding: 40px 20px 0 20px;
|
2025-09-03 14:19:45 +08:00
|
|
|
|
position: relative;
|
|
|
|
|
|
z-index: 2;
|
2025-09-03 14:44:04 +08:00
|
|
|
|
height: calc(100% - 80px);
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
align-items: center;
|
2025-09-03 14:19:45 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.welcome-icon {
|
|
|
|
|
|
font-size: 48px;
|
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
|
animation: bounce 2s infinite;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.welcome-content h3 {
|
|
|
|
|
|
color: var(--primary-color);
|
2025-09-03 14:44:04 +08:00
|
|
|
|
font-size: 26px;
|
2025-09-03 14:19:45 +08:00
|
|
|
|
font-weight: 600;
|
2025-09-03 14:44:04 +08:00
|
|
|
|
margin: 0 0 20px 0;
|
2025-09-03 14:19:45 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.welcome-content p {
|
|
|
|
|
|
color: #666;
|
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
margin: 0 0 24px 0;
|
|
|
|
|
|
line-height: 1.5;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.welcome-features {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
2025-09-03 14:44:04 +08:00
|
|
|
|
gap: 20px;
|
|
|
|
|
|
margin-top: 30px;
|
2025-09-03 14:19:45 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.feature-item {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
|
padding: 12px 16px;
|
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
|
transition: var(--transition);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.feature-item:hover {
|
|
|
|
|
|
background: #e9ecef;
|
|
|
|
|
|
transform: translateX(4px);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.feature-icon {
|
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
|
margin-right: 12px;
|
|
|
|
|
|
width: 24px;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-09-03 14:44:04 +08:00
|
|
|
|
:deep(.welcome-dialog .el-dialog__footer) {
|
|
|
|
|
|
padding: 15px 20px;
|
|
|
|
|
|
border-top: none;
|
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
bottom: 10;
|
|
|
|
|
|
left: 0;
|
|
|
|
|
|
right: 0;
|
|
|
|
|
|
z-index: 3;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-09-03 14:19:45 +08:00
|
|
|
|
.dialog-footer {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
gap: 12px;
|
2025-09-03 14:44:04 +08:00
|
|
|
|
padding: 0;
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
bottom: 10;
|
|
|
|
|
|
left: 0;
|
|
|
|
|
|
right: 0;
|
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
z-index: 3;
|
2025-09-03 14:19:45 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@keyframes bounce {
|
|
|
|
|
|
0%, 20%, 50%, 80%, 100% {
|
|
|
|
|
|
transform: translateY(0);
|
|
|
|
|
|
}
|
|
|
|
|
|
40% {
|
|
|
|
|
|
transform: translateY(-10px);
|
|
|
|
|
|
}
|
|
|
|
|
|
60% {
|
|
|
|
|
|
transform: translateY(-5px);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* 弹窗响应式样式 */
|
|
|
|
|
|
@media (max-width: 480px) {
|
|
|
|
|
|
.welcome-content {
|
2025-09-03 14:44:04 +08:00
|
|
|
|
padding: 30px 15px 0 15px;
|
|
|
|
|
|
height: calc(100% - 70px);
|
2025-09-03 14:19:45 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.welcome-icon {
|
|
|
|
|
|
font-size: 40px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.welcome-content h3 {
|
2025-09-03 14:44:04 +08:00
|
|
|
|
font-size: 22px;
|
|
|
|
|
|
margin: 0 0 15px 0;
|
2025-09-03 14:19:45 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.welcome-content p {
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-09-03 14:44:04 +08:00
|
|
|
|
.welcome-features {
|
|
|
|
|
|
gap: 15px;
|
|
|
|
|
|
margin-top: 25px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-09-03 14:19:45 +08:00
|
|
|
|
.feature-item {
|
|
|
|
|
|
padding: 10px 12px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.feature-icon {
|
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
|
margin-right: 10px;
|
|
|
|
|
|
}
|
2025-09-03 14:44:04 +08:00
|
|
|
|
|
|
|
|
|
|
:deep(.welcome-dialog .el-dialog__footer) {
|
|
|
|
|
|
padding: 10px 15px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
:deep(.welcome-dialog .el-dialog__body) {
|
|
|
|
|
|
padding-bottom: 50px;
|
|
|
|
|
|
}
|
2025-09-03 14:19:45 +08:00
|
|
|
|
}
|
2025-08-01 09:34:06 +08:00
|
|
|
|
</style>
|