删除
This commit is contained in:
@@ -1,43 +1,380 @@
|
||||
<template>
|
||||
<div class="gi_page container">
|
||||
<a-space direction="vertical" :size="14" fill>
|
||||
<div>
|
||||
<DataOverview />
|
||||
</div>
|
||||
<div>
|
||||
<a-grid :cols="24" :col-gap="14" :row-gap="14">
|
||||
<a-grid-item :span="{ xs: 24, sm: 24, md: 24, lg: 24, xl: 18, xxl: 18 }">
|
||||
<Geo />
|
||||
</a-grid-item>
|
||||
<a-grid-item :span="{ xs: 24, sm: 24, md: 24, lg: 24, xl: 6, xxl: 6 }">
|
||||
<Os style="margin-bottom: 16px" />
|
||||
<Browser />
|
||||
</a-grid-item>
|
||||
</a-grid>
|
||||
</div>
|
||||
<div>
|
||||
<a-grid :cols="24" :col-gap="16" :row-gap="16">
|
||||
<a-grid-item :span="{ xs: 24, sm: 24, md: 24, lg: 24, xl: 18, xxl: 18 }">
|
||||
<AccessTimeslot />
|
||||
</a-grid-item>
|
||||
<a-grid-item :span="{ xs: 24, sm: 24, md: 24, lg: 24, xl: 6, xxl: 6 }">
|
||||
<Module />
|
||||
</a-grid-item>
|
||||
</a-grid>
|
||||
<!-- 图片和按钮区域 -->
|
||||
<div class="guide-section full-background">
|
||||
<div class="guide-content full-height">
|
||||
<!-- 标题 -->
|
||||
<h1 class="page-title">物料领取流程</h1>
|
||||
|
||||
<!-- 图片和按钮卡片 - 确保在任何比例下完全显示 -->
|
||||
<div class="guide-card centered">
|
||||
<!-- 图片展示区 -->
|
||||
<div class="image-wrapper">
|
||||
<img src="@/assets/images/guide.png" alt="guide" class="guide-image enlarged" />
|
||||
</div>
|
||||
|
||||
<!-- 右侧按钮区域 -->
|
||||
<div class="button-wrapper">
|
||||
<span class="button-hint">点击开始按钮启动流程</span>
|
||||
<a-button type="primary" size="large" class="start-button enlarged" @click="handleStart">
|
||||
开始
|
||||
</a-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a-space>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import DataOverview from './components/DataOverview/index.vue'
|
||||
import Geo from './components/Geo.vue'
|
||||
import Os from './components/Os.vue'
|
||||
import Browser from './components/Browser.vue'
|
||||
import Module from './components/Module.vue'
|
||||
import AccessTimeslot from './components/AccessTimeslot.vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
|
||||
defineOptions({ name: 'Analysis' })
|
||||
|
||||
const router = useRouter()
|
||||
|
||||
const handleStart = () => {
|
||||
router.push('')
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss"></style>
|
||||
<style scoped lang="scss">
|
||||
.gi_page.container {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
|
||||
:deep(.arco-space) {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
:deep(.arco-space-item) {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
&:first-child {
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.guide-section.full-background {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: #f5f7fa;
|
||||
padding: 10px; // 减小内边距
|
||||
box-sizing: border-box;
|
||||
|
||||
.guide-content.full-height {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
max-width: 100%;
|
||||
margin: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
.page-title {
|
||||
text-align: center;
|
||||
font-size: 42px; // 稍微减小字体
|
||||
font-weight: 800;
|
||||
color: #1e293b;
|
||||
margin-bottom: 15px;
|
||||
letter-spacing: 2px;
|
||||
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
|
||||
position: relative;
|
||||
flex-shrink: 0;
|
||||
padding: 0 10px;
|
||||
|
||||
&::after {
|
||||
content: '';
|
||||
display: block;
|
||||
width: 80px; // 减小下划线宽度
|
||||
height: 4px;
|
||||
background: linear-gradient(90deg, #165dff, #6aa1ff);
|
||||
margin: 10px auto 0;
|
||||
border-radius: 2px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.guide-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 40px; // 减小间距
|
||||
background: white;
|
||||
border-radius: 30px; // 减小圆角
|
||||
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
|
||||
padding: 20px 30px; // 减小内边距
|
||||
flex-wrap: wrap;
|
||||
border: 1px solid rgba(0, 0, 0, 0.05);
|
||||
min-height: 400px; // 减小最小高度
|
||||
width: auto;
|
||||
max-width: 90vw; // 使用视口宽度的90%,确保有边距
|
||||
margin: 0 auto;
|
||||
|
||||
&.centered {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.image-wrapper {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
min-width: 300px; // 减小最小宽度
|
||||
max-width: 600px; // 减小最大宽度
|
||||
height: 100%;
|
||||
|
||||
.guide-image.enlarged {
|
||||
max-width: 100%;
|
||||
width: auto;
|
||||
height: auto;
|
||||
max-height: 50vh; // 减小最大高度
|
||||
min-height: 250px; // 减小最小高度
|
||||
object-fit: contain;
|
||||
border-radius: 16px;
|
||||
filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.08));
|
||||
transition: all 0.3s ease;
|
||||
|
||||
&:hover {
|
||||
transform: scale(1.01);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.button-wrapper {
|
||||
flex: 0 0 auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 12px;
|
||||
min-width: 180px; // 减小最小宽度
|
||||
|
||||
.button-hint {
|
||||
font-size: 14px; // 减小字体
|
||||
color: #475569;
|
||||
background: #f1f5f9;
|
||||
padding: 6px 18px; // 减小内边距
|
||||
border-radius: 24px;
|
||||
white-space: nowrap;
|
||||
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
|
||||
border: 1px solid #e2e8f0;
|
||||
font-weight: 500;
|
||||
|
||||
&::before {
|
||||
content: '👉';
|
||||
margin-right: 4px;
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.start-button.enlarged {
|
||||
min-width: 160px; // 减小按钮宽度
|
||||
height: 56px; // 减小按钮高度
|
||||
font-size: 22px; // 减小字体
|
||||
border-radius: 40px;
|
||||
box-shadow: 0 10px 20px rgba(22, 93, 255, 0.2);
|
||||
transition: all 0.3s ease;
|
||||
font-weight: 600;
|
||||
letter-spacing: 2px;
|
||||
background: linear-gradient(145deg, #165dff, #3c7eff);
|
||||
border: none;
|
||||
color: white;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
transform: scale(1.03) translateY(-1px);
|
||||
box-shadow: 0 15px 25px rgba(22, 93, 255, 0.3);
|
||||
}
|
||||
|
||||
&:active {
|
||||
transform: scale(0.98);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 针对不同屏幕尺寸的精细调整
|
||||
@media (min-width: 1920px) {
|
||||
.guide-card {
|
||||
max-width: 1600px; // 超大屏幕限制最大宽度
|
||||
padding: 30px 50px;
|
||||
|
||||
.image-wrapper {
|
||||
max-width: 800px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1366px) {
|
||||
.guide-card {
|
||||
gap: 30px;
|
||||
padding: 20px 25px;
|
||||
|
||||
.image-wrapper {
|
||||
min-width: 280px;
|
||||
max-width: 500px;
|
||||
|
||||
.guide-image.enlarged {
|
||||
max-height: 45vh;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.guide-section.full-background {
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
.guide-card {
|
||||
gap: 25px;
|
||||
padding: 15px 20px;
|
||||
max-width: 95vw; // 在小屏幕上使用更宽的百分比
|
||||
|
||||
.image-wrapper {
|
||||
min-width: 250px;
|
||||
max-width: 450px;
|
||||
|
||||
.guide-image.enlarged {
|
||||
max-height: 40vh;
|
||||
min-height: 200px;
|
||||
}
|
||||
}
|
||||
|
||||
.button-wrapper {
|
||||
min-width: 160px;
|
||||
|
||||
.button-hint {
|
||||
font-size: 13px;
|
||||
padding: 5px 15px;
|
||||
}
|
||||
|
||||
.start-button.enlarged {
|
||||
min-width: 150px;
|
||||
height: 50px;
|
||||
font-size: 20px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.guide-section.full-background {
|
||||
padding: 5px;
|
||||
|
||||
.guide-content.full-height {
|
||||
.page-title {
|
||||
font-size: 28px;
|
||||
margin-bottom: 10px;
|
||||
|
||||
&::after {
|
||||
width: 60px;
|
||||
height: 3px;
|
||||
margin: 8px auto 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.guide-card {
|
||||
flex-direction: column;
|
||||
padding: 20px 15px;
|
||||
gap: 20px;
|
||||
min-height: auto;
|
||||
max-width: 98vw; // 移动端几乎占满宽度
|
||||
|
||||
.image-wrapper {
|
||||
min-width: auto;
|
||||
max-width: 100%;
|
||||
width: 100%;
|
||||
|
||||
.guide-image.enlarged {
|
||||
max-height: 35vh;
|
||||
min-height: 180px;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.button-wrapper {
|
||||
width: 100%;
|
||||
min-width: auto;
|
||||
|
||||
.button-hint {
|
||||
white-space: normal;
|
||||
text-align: center;
|
||||
font-size: 13px;
|
||||
padding: 5px 12px;
|
||||
}
|
||||
|
||||
.start-button.enlarged {
|
||||
width: 100%;
|
||||
max-width: 200px;
|
||||
height: 48px;
|
||||
font-size: 18px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 针对左侧菜单栏的特别优化
|
||||
:deep(.layout-has-sider) {
|
||||
.guide-section.full-background {
|
||||
.guide-card {
|
||||
@media (min-width: 1025px) {
|
||||
margin-left: 5%; // 在有侧边栏时左移
|
||||
margin-right: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 确保父容器占满且无滚动问题
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.gi_page.container {
|
||||
height: 100vh;
|
||||
width: 100vw;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
// 针对100%缩放比例的特殊处理
|
||||
@media screen and (min-width: 1280px) and (max-width: 1366px) {
|
||||
.guide-card {
|
||||
max-width: 85vw; // 在常见笔记本屏幕上使用85%宽度
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 1367px) and (max-width: 1440px) {
|
||||
.guide-card {
|
||||
max-width: 80vw; // 在1440p屏幕上使用80%宽度
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 1441px) and (max-width: 1680px) {
|
||||
.guide-card {
|
||||
max-width: 75vw; // 在更大屏幕上使用75%宽度
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user