|
|
@@ -1,25 +1,106 @@
|
|
|
<template>
|
|
|
<div class="dashboard-editor-container">
|
|
|
- <panel-group @handle-set-line-chart-data="handleSetLineChartData" />
|
|
|
+ <!-- 新增Banner区域 - 轮播图 -->
|
|
|
+ <el-row class="banner-section" >
|
|
|
+ <el-col :span="24">
|
|
|
+ <div class="carousel-container">
|
|
|
+ <!-- 轮播图 -->
|
|
|
+ <div class="carousel-wrapper">
|
|
|
+ <!-- 图片列表 -->
|
|
|
+ <div
|
|
|
+ class="carousel-slide"
|
|
|
+ :style="{ transform: `translateX(-${currentIndex * 100}%)` }"
|
|
|
+ >
|
|
|
+ <div
|
|
|
+ v-for="(item, index) in bannerList"
|
|
|
+ :key="index"
|
|
|
+ class="carousel-item"
|
|
|
+ @click="handleBannerClick(item)"
|
|
|
+ >
|
|
|
+ <!-- 背景图片 -->
|
|
|
+ <img
|
|
|
+ :src="item.image"
|
|
|
+ :alt="item.title"
|
|
|
+ class="carousel-bg-img"
|
|
|
+ />
|
|
|
+ <!-- 遮罩层 -->
|
|
|
+ <div class="carousel-overlay"></div>
|
|
|
+
|
|
|
+ <!-- 内容 -->
|
|
|
+ <div class="carousel-content">
|
|
|
+ <h2 class="carousel-title">{{ item.title }}</h2>
|
|
|
+ <p class="carousel-desc">{{ item.desc }}</p>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ size="large"
|
|
|
+ class="carousel-button"
|
|
|
+ @click.stop="handleQueryClick(item)"
|
|
|
+ >
|
|
|
+ <span style="font-weight: 500;">立即查询</span>
|
|
|
+ <el-icon style="margin-left: 8px;">
|
|
|
+ <ArrowRight />
|
|
|
+ </el-icon>
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
|
|
|
- <el-row style="background:#fff;padding:16px 16px 0;margin-bottom:32px;">
|
|
|
- <line-chart :chart-data="lineChartData" />
|
|
|
+ <!-- 导航箭头 -->
|
|
|
+ <div class="carousel-nav">
|
|
|
+ <el-button
|
|
|
+ circle
|
|
|
+ class="nav-btn prev-btn"
|
|
|
+ @click="prevSlide"
|
|
|
+ >
|
|
|
+ <el-icon><ArrowLeft /></el-icon>
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ circle
|
|
|
+ class="nav-btn next-btn"
|
|
|
+ @click="nextSlide"
|
|
|
+ >
|
|
|
+ <el-icon><ArrowRight /></el-icon>
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- 指示器 -->
|
|
|
+ <div class="carousel-indicators">
|
|
|
+ <div
|
|
|
+ v-for="(item, index) in bannerList"
|
|
|
+ :key="index"
|
|
|
+ class="indicator-item"
|
|
|
+ :class="{ active: currentIndex === index }"
|
|
|
+ @click="goToSlide(index)"
|
|
|
+ >
|
|
|
+ <div class="indicator-dot"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
|
|
|
- <el-row :gutter="32">
|
|
|
- <el-col :xs="24" :sm="24" :lg="8">
|
|
|
+ <panel-group @handle-set-line-chart-data="handleSetLineChartData" />
|
|
|
+
|
|
|
+ <el-row :gutter="32" class="chart-continer">
|
|
|
+ <el-col :xs="24" :sm="24" :lg="8" class="chart-section">
|
|
|
<div class="chart-wrapper">
|
|
|
- <raddar-chart />
|
|
|
+ <div class="chart-title">123</div>
|
|
|
+<!-- <raddar-chart />-->
|
|
|
+ <pie-chart-one />
|
|
|
</div>
|
|
|
</el-col>
|
|
|
- <el-col :xs="24" :sm="24" :lg="8">
|
|
|
+ <el-col :xs="24" :sm="24" :lg="8" class="chart-section">
|
|
|
<div class="chart-wrapper">
|
|
|
+ <div class="chart-title">123</div>
|
|
|
<pie-chart />
|
|
|
</div>
|
|
|
</el-col>
|
|
|
- <el-col :xs="24" :sm="24" :lg="8">
|
|
|
+ <el-col :xs="24" :sm="24" :lg="8" class="chart-section">
|
|
|
<div class="chart-wrapper">
|
|
|
- <bar-chart />
|
|
|
+ <div class="chart-title">123</div>
|
|
|
+<!-- <bar-chart />-->
|
|
|
+ <line-chart :chart-data="lineChartData"/>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
@@ -27,13 +108,67 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
-import { ref } from 'vue'
|
|
|
+import { ref, onMounted, onUnmounted } from 'vue'
|
|
|
+import { ArrowRight, ArrowLeft } from '@element-plus/icons-vue'
|
|
|
import PanelGroup from './dashboard/PanelGroup.vue'
|
|
|
import LineChart from './dashboard/LineChart.vue'
|
|
|
import RaddarChart from './dashboard/RaddarChart.vue'
|
|
|
import PieChart from './dashboard/PieChart.vue'
|
|
|
+import PieChartOne from "./dashboard/PieChart-one.vue";
|
|
|
import BarChart from './dashboard/BarChart.vue'
|
|
|
|
|
|
+// 轮播图数据
|
|
|
+const bannerList = ref([
|
|
|
+ {
|
|
|
+ id: 1,
|
|
|
+ image: 'https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80',
|
|
|
+ title: '全程货物跟踪',
|
|
|
+ desc: '查询不限口岸,节点提醒、ETA/ETD延误,微信实时推送',
|
|
|
+ link: '/tracking',
|
|
|
+ queryType: 'all'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 2,
|
|
|
+ image: 'https://images.unsplash.com/photo-1562887189-e5d078343de4?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80',
|
|
|
+ title: '海运货物跟踪',
|
|
|
+ desc: '海运货物实时位置查询,ETA准确率高达99%',
|
|
|
+ link: '/tracking?type=sea',
|
|
|
+ queryType: 'sea'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 3,
|
|
|
+ image: 'https://images.unsplash.com/photo-1518548419970-58e3b4079ab2?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80',
|
|
|
+ title: '空运货物跟踪',
|
|
|
+ desc: '空运货物快速查询,航班动态实时更新',
|
|
|
+ link: '/tracking?type=air',
|
|
|
+ queryType: 'air'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 4,
|
|
|
+ image: 'https://images.unsplash.com/photo-1542744094-3a31f272c490?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80',
|
|
|
+ title: '多式联运跟踪',
|
|
|
+ desc: '支持海运、空运、铁路、公路多式联运全程跟踪',
|
|
|
+ link: '/tracking?type=multimodal',
|
|
|
+ queryType: 'multimodal'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 5,
|
|
|
+ image: 'https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80',
|
|
|
+ title: '跨境电商物流',
|
|
|
+ desc: '专为跨境电商打造的物流跟踪解决方案',
|
|
|
+ link: '/tracking?type=ecommerce',
|
|
|
+ queryType: 'ecommerce'
|
|
|
+ }
|
|
|
+])
|
|
|
+
|
|
|
+// 当前轮播索引
|
|
|
+const currentIndex = ref(0)
|
|
|
+// 轮播定时器
|
|
|
+let autoPlayTimer = null
|
|
|
+// 轮播间隔(毫秒)
|
|
|
+const interval = 5000
|
|
|
+
|
|
|
+// 图表数据
|
|
|
const lineChartDataMap = {
|
|
|
newVisitis: {
|
|
|
expectedData: [100, 120, 161, 134, 105, 160, 165],
|
|
|
@@ -60,24 +195,475 @@ const handleSetLineChartData = (type) => {
|
|
|
lineChartData.value = lineChartDataMap[type]
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+// 轮播图方法
|
|
|
+const nextSlide = () => {
|
|
|
+ currentIndex.value = (currentIndex.value + 1) % bannerList.value.length
|
|
|
+ resetAutoPlay()
|
|
|
+}
|
|
|
+
|
|
|
+const prevSlide = () => {
|
|
|
+ currentIndex.value = (currentIndex.value - 1 + bannerList.value.length) % bannerList.value.length
|
|
|
+ resetAutoPlay()
|
|
|
+}
|
|
|
+
|
|
|
+const goToSlide = (index) => {
|
|
|
+ currentIndex.value = index
|
|
|
+ resetAutoPlay()
|
|
|
+}
|
|
|
+
|
|
|
+const startAutoPlay = () => {
|
|
|
+ stopAutoPlay()
|
|
|
+ autoPlayTimer = setInterval(nextSlide, interval)
|
|
|
+}
|
|
|
+
|
|
|
+const stopAutoPlay = () => {
|
|
|
+ if (autoPlayTimer) {
|
|
|
+ clearInterval(autoPlayTimer)
|
|
|
+ autoPlayTimer = null
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+const resetAutoPlay = () => {
|
|
|
+ stopAutoPlay()
|
|
|
+ startAutoPlay()
|
|
|
+}
|
|
|
+
|
|
|
+// 点击事件
|
|
|
+const handleBannerClick = (item) => {
|
|
|
+ console.log('Banner clicked:', item)
|
|
|
+ // 这里可以添加跳转逻辑
|
|
|
+ // window.location.href = item.link
|
|
|
+}
|
|
|
+
|
|
|
+const handleQueryClick = (item) => {
|
|
|
+ console.log('Query button clicked:', item)
|
|
|
+ // 这里可以触发查询事件
|
|
|
+ // 例如:emit('query', item.queryType)
|
|
|
+}
|
|
|
+
|
|
|
+// 生命周期
|
|
|
+onMounted(() => {
|
|
|
+ startAutoPlay()
|
|
|
+})
|
|
|
+
|
|
|
+onUnmounted(() => {
|
|
|
+ stopAutoPlay()
|
|
|
+})
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
.dashboard-editor-container {
|
|
|
- padding: 32px;
|
|
|
+ padding: 16px;
|
|
|
background-color: rgb(240, 242, 245);
|
|
|
position: relative;
|
|
|
|
|
|
+ .banner-section {
|
|
|
+ .carousel-container {
|
|
|
+ position: relative;
|
|
|
+ border-radius: 8px;
|
|
|
+ overflow: hidden;
|
|
|
+ box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
|
|
|
+
|
|
|
+ .carousel-wrapper {
|
|
|
+ position: relative;
|
|
|
+ overflow: hidden;
|
|
|
+ min-height: 230px;
|
|
|
+
|
|
|
+ .carousel-slide {
|
|
|
+ display: flex;
|
|
|
+ transition: transform 0.5s ease-in-out;
|
|
|
+ height: 100%;
|
|
|
+
|
|
|
+ .carousel-item {
|
|
|
+ flex: 0 0 100%;
|
|
|
+ position: relative;
|
|
|
+ cursor: pointer;
|
|
|
+ min-height: 230px;
|
|
|
+
|
|
|
+ .carousel-bg-img {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ object-fit: cover;
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ .carousel-overlay {
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ background: linear-gradient(
|
|
|
+ 135deg,
|
|
|
+ rgba(0, 0, 0, 0.7) 0%,
|
|
|
+ rgba(0, 0, 0, 0.4) 50%,
|
|
|
+ rgba(0, 0, 0, 0.2) 100%
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ .carousel-content {
|
|
|
+ position: relative;
|
|
|
+ z-index: 2;
|
|
|
+ padding: 20px;
|
|
|
+ height: 100%;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ justify-content: center;
|
|
|
+ color: white;
|
|
|
+
|
|
|
+ .carousel-title {
|
|
|
+ font-size: 42px;
|
|
|
+ font-weight: 700;
|
|
|
+ margin-bottom: 20px;
|
|
|
+ line-height: 1.2;
|
|
|
+ text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
|
|
|
+ background: linear-gradient(135deg, #fff 0%, #e6f7ff 100%);
|
|
|
+ -webkit-background-clip: text;
|
|
|
+ -webkit-text-fill-color: transparent;
|
|
|
+ background-clip: text;
|
|
|
+ }
|
|
|
+
|
|
|
+ .carousel-desc {
|
|
|
+ font-size: 20px;
|
|
|
+ margin-bottom: 36px;
|
|
|
+ line-height: 1.6;
|
|
|
+ color: rgba(255, 255, 255, 0.95);
|
|
|
+ max-width: 600px;
|
|
|
+ text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
|
|
|
+ }
|
|
|
+
|
|
|
+ .carousel-button {
|
|
|
+ background: linear-gradient(135deg, #409EFF 0%, #66b1ff 100%);
|
|
|
+ color: white;
|
|
|
+ border: none;
|
|
|
+ padding: 16px 42px;
|
|
|
+ font-size: 18px;
|
|
|
+ transition: all 0.3s ease;
|
|
|
+ box-shadow: 0 6px 20px rgba(64, 158, 255, 0.4);
|
|
|
+ border-radius: 10px;
|
|
|
+ border: 2px solid rgba(255, 255, 255, 0.3);
|
|
|
+ align-self: flex-start;
|
|
|
+
|
|
|
+ &:hover {
|
|
|
+ background: linear-gradient(135deg, #66b1ff 0%, #409EFF 100%);
|
|
|
+ transform: translateY(-3px);
|
|
|
+ box-shadow: 0 10px 25px rgba(64, 158, 255, 0.5);
|
|
|
+ }
|
|
|
+
|
|
|
+ &:active {
|
|
|
+ transform: translateY(-1px);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ &:hover {
|
|
|
+ .carousel-bg-img {
|
|
|
+ transform: scale(1.05);
|
|
|
+ transition: transform 0.8s ease;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .carousel-nav {
|
|
|
+ position: absolute;
|
|
|
+ top: 50%;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ transform: translateY(-50%);
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ padding: 0 20px;
|
|
|
+ z-index: 3;
|
|
|
+
|
|
|
+ .nav-btn {
|
|
|
+ background: rgba(255, 255, 255, 0.2);
|
|
|
+ border: 2px solid rgba(255, 255, 255, 0.3);
|
|
|
+ color: white;
|
|
|
+ width: 48px;
|
|
|
+ height: 48px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+
|
|
|
+ &:hover {
|
|
|
+ background: rgba(255, 255, 255, 0.3);
|
|
|
+ border-color: rgba(255, 255, 255, 0.5);
|
|
|
+ }
|
|
|
+
|
|
|
+ .el-icon {
|
|
|
+ font-size: 20px;
|
|
|
+ font-weight: bold;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .carousel-indicators {
|
|
|
+ position: absolute;
|
|
|
+ bottom: 24px;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ gap: 12px;
|
|
|
+ z-index: 3;
|
|
|
+
|
|
|
+ .indicator-item {
|
|
|
+ cursor: pointer;
|
|
|
+ padding: 8px;
|
|
|
+
|
|
|
+ .indicator-dot {
|
|
|
+ width: 12px;
|
|
|
+ height: 12px;
|
|
|
+ border-radius: 50%;
|
|
|
+ background: rgba(255, 255, 255, 0.4);
|
|
|
+ transition: all 0.3s ease;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.active {
|
|
|
+ .indicator-dot {
|
|
|
+ background: white;
|
|
|
+ width: 32px;
|
|
|
+ border-radius: 6px;
|
|
|
+ box-shadow: 0 0 8px rgba(64, 158, 255, 0.6);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ &:hover:not(.active) {
|
|
|
+ .indicator-dot {
|
|
|
+ background: rgba(255, 255, 255, 0.7);
|
|
|
+ transform: scale(1.2);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .chart-continer{
|
|
|
+ padding: 0px 20px 0px 0px;
|
|
|
+
|
|
|
+ .chart-title{
|
|
|
+ height: 26px;
|
|
|
+ font-weight: 400;
|
|
|
+ font-size: 18px;
|
|
|
+ color: #333333;
|
|
|
+ line-height: 26px;
|
|
|
+
|
|
|
+ &::before{
|
|
|
+ content: ''; /* 必须设置content,否则伪元素不会显示 */
|
|
|
+ display: inline-block; /* 伪元素默认是行内,设置为块级以控制宽高 */
|
|
|
+ width: 4px;
|
|
|
+ height: 16px;
|
|
|
+ line-height: 26px;
|
|
|
+ background: #2D71FF;
|
|
|
+ border-radius: 2px 2px 2px 2px;
|
|
|
+ margin-right: 6px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .chart-section{
|
|
|
+ marging:0px !important;
|
|
|
+ padding:0px !important;
|
|
|
+ padding-left: 20px !important;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
.chart-wrapper {
|
|
|
background: #fff;
|
|
|
- padding: 16px 16px 0;
|
|
|
- margin-bottom: 32px;
|
|
|
+ padding: 16px;
|
|
|
+ margin-bottom: 16px;
|
|
|
+ border-radius: 8px;
|
|
|
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-@media (max-width:1024px) {
|
|
|
- .chart-wrapper {
|
|
|
- padding: 8px;
|
|
|
+@media (max-width: 1200px) {
|
|
|
+ .dashboard-editor-container {
|
|
|
+ .banner-section {
|
|
|
+ .carousel-container {
|
|
|
+ .carousel-wrapper {
|
|
|
+ min-height: 190px;
|
|
|
+
|
|
|
+ .carousel-slide {
|
|
|
+ .carousel-item {
|
|
|
+ min-height: 190px;
|
|
|
+
|
|
|
+ .carousel-content {
|
|
|
+ padding: 10px;
|
|
|
+
|
|
|
+ .carousel-title {
|
|
|
+ font-size: 36px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .carousel-desc {
|
|
|
+ font-size: 18px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+@media (max-width: 1024px) {
|
|
|
+ .dashboard-editor-container {
|
|
|
+ padding: 20px;
|
|
|
+
|
|
|
+ .banner-section {
|
|
|
+ .carousel-container {
|
|
|
+ .carousel-wrapper {
|
|
|
+ min-height: 240px;
|
|
|
+
|
|
|
+ .carousel-slide {
|
|
|
+ .carousel-item {
|
|
|
+ min-height: 240px;
|
|
|
+
|
|
|
+ .carousel-content {
|
|
|
+ padding: 32px;
|
|
|
+
|
|
|
+ .carousel-title {
|
|
|
+ font-size: 32px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .carousel-desc {
|
|
|
+ font-size: 16px;
|
|
|
+ margin-bottom: 30px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .carousel-button {
|
|
|
+ padding: 14px 36px;
|
|
|
+ font-size: 16px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .carousel-nav {
|
|
|
+ .nav-btn {
|
|
|
+ width: 40px;
|
|
|
+ height: 40px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .chart-wrapper {
|
|
|
+ padding: 12px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+@media (max-width: 768px) {
|
|
|
+ .dashboard-editor-container {
|
|
|
+ .banner-section {
|
|
|
+ .carousel-container {
|
|
|
+ .carousel-wrapper {
|
|
|
+ min-height: 200px;
|
|
|
+
|
|
|
+ .carousel-slide {
|
|
|
+ .carousel-item {
|
|
|
+ min-height: 200px;
|
|
|
+
|
|
|
+ .carousel-content {
|
|
|
+ padding: 24px;
|
|
|
+
|
|
|
+ .carousel-title {
|
|
|
+ font-size: 28px;
|
|
|
+ margin-bottom: 16px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .carousel-desc {
|
|
|
+ font-size: 15px;
|
|
|
+ margin-bottom: 24px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .carousel-button {
|
|
|
+ padding: 12px 32px;
|
|
|
+ font-size: 15px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .carousel-nav {
|
|
|
+ padding: 0 12px;
|
|
|
+
|
|
|
+ .nav-btn {
|
|
|
+ width: 36px;
|
|
|
+ height: 36px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+@media (max-width: 480px) {
|
|
|
+ .dashboard-editor-container {
|
|
|
+ padding: 16px;
|
|
|
+
|
|
|
+ .banner-section {
|
|
|
+ .carousel-container {
|
|
|
+ .carousel-wrapper {
|
|
|
+ min-height: 180px;
|
|
|
+
|
|
|
+ .carousel-slide {
|
|
|
+ .carousel-item {
|
|
|
+ min-height: 180px;
|
|
|
+
|
|
|
+ .carousel-content {
|
|
|
+ padding: 20px;
|
|
|
+
|
|
|
+ .carousel-title {
|
|
|
+ font-size: 24px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .carousel-desc {
|
|
|
+ font-size: 14px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .carousel-button {
|
|
|
+ padding: 10px 28px;
|
|
|
+ font-size: 14px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .carousel-nav {
|
|
|
+ display: none; /* 小屏幕隐藏导航箭头 */
|
|
|
+ }
|
|
|
+
|
|
|
+ .carousel-indicators {
|
|
|
+ bottom: 16px;
|
|
|
+
|
|
|
+ .indicator-item {
|
|
|
+ .indicator-dot {
|
|
|
+ width: 8px;
|
|
|
+ height: 8px;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.active {
|
|
|
+ .indicator-dot {
|
|
|
+ width: 24px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</style>
|