2025-07-25 15:41:29 +08:00
|
|
|
<script setup lang="ts">
|
2025-08-29 17:05:25 +08:00
|
|
|
import { Page } from '@vben/common-ui';
|
2025-08-31 00:40:02 +08:00
|
|
|
import { BackTop } from 'ant-design-vue';
|
2025-08-29 17:05:25 +08:00
|
|
|
import { ref, onMounted, onBeforeUnmount, reactive } from 'vue';
|
|
|
|
import FloorTree from '../components/floor-tree.vue';
|
|
|
|
import { meterRecordTrend } from '#/api/property/energyManagement/meterRecord';
|
2025-07-26 18:39:49 +08:00
|
|
|
|
2025-08-31 00:40:02 +08:00
|
|
|
onMounted(() => {});
|
2025-08-26 16:46:54 +08:00
|
|
|
|
2025-08-31 00:40:02 +08:00
|
|
|
onBeforeUnmount(() => {});
|
2025-08-29 17:05:25 +08:00
|
|
|
|
|
|
|
const trendData = ref<any>({});
|
2025-08-31 00:40:02 +08:00
|
|
|
async function handleSelectFloor(selectedKeys, info) {}
|
2025-08-29 17:05:25 +08:00
|
|
|
|
2025-08-31 00:40:02 +08:00
|
|
|
function targetFn () {
|
|
|
|
return document.querySelector('.flex-1')
|
|
|
|
}
|
2025-07-25 15:41:29 +08:00
|
|
|
</script>
|
|
|
|
|
2025-08-26 16:46:54 +08:00
|
|
|
<template>
|
|
|
|
<Page :auto-content-height="true">
|
|
|
|
<div class="flex h-full gap-[8px]">
|
2025-08-29 17:05:25 +08:00
|
|
|
<FloorTree class="w-[260px]" @select="handleSelectFloor"></FloorTree>
|
2025-08-31 00:40:02 +08:00
|
|
|
<div class="flex-1">
|
|
|
|
<div class="cards-container">
|
|
|
|
<div v-for="item in 50" class="plan-card">
|
|
|
|
<h2>4楼电表1号<span>For business sedrvices</span></h2>
|
|
|
|
<div class="etiquet-price">
|
|
|
|
<p>254.99</p>
|
|
|
|
<div></div>
|
2025-08-26 16:46:54 +08:00
|
|
|
</div>
|
2025-08-31 00:40:02 +08:00
|
|
|
<div class="benefits-list">
|
|
|
|
<ul>
|
|
|
|
<li><span>Anlysis</span></li>
|
|
|
|
<li><span>Consulting</span></li>
|
|
|
|
<li><span>Consulting</span></li>
|
|
|
|
</ul>
|
2025-08-26 16:46:54 +08:00
|
|
|
</div>
|
2025-08-31 00:40:02 +08:00
|
|
|
<div class="button-get-plan">
|
|
|
|
<a href="#">
|
|
|
|
<span>START PROJECT</span>
|
|
|
|
</a>
|
2025-08-26 16:46:54 +08:00
|
|
|
</div>
|
2025-08-31 00:40:02 +08:00
|
|
|
</div>
|
2025-08-26 16:46:54 +08:00
|
|
|
</div>
|
2025-08-31 00:40:02 +08:00
|
|
|
<BackTop :target="targetFn"></BackTop>
|
2025-08-26 16:46:54 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</Page>
|
|
|
|
</template>
|
|
|
|
|
2025-07-26 18:39:49 +08:00
|
|
|
<style scoped>
|
2025-08-31 00:40:02 +08:00
|
|
|
/* 右侧内容区域样式 */
|
|
|
|
.flex-1 {
|
|
|
|
flex: 1;
|
|
|
|
overflow-y: auto; /* 添加垂直滚动条 */
|
|
|
|
padding: 10px;
|
|
|
|
height: 100%; /* 确保高度占满父容器 */
|
|
|
|
box-sizing: border-box; /* 包括padding在高度计算中 */
|
2025-07-26 18:39:49 +08:00
|
|
|
}
|
|
|
|
|
2025-08-31 00:40:02 +08:00
|
|
|
/* 卡片容器样式 */
|
|
|
|
.cards-container {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: flex-start;
|
|
|
|
gap: 20px; /* 使用gap替代margin控制间距 */
|
2025-07-26 18:39:49 +08:00
|
|
|
}
|
|
|
|
|
2025-08-31 00:40:02 +08:00
|
|
|
.plan-card {
|
|
|
|
background: #fff;
|
|
|
|
width: 15rem;
|
|
|
|
padding-left: 2rem;
|
|
|
|
padding-right: 2rem;
|
|
|
|
padding-top: 10px;
|
|
|
|
padding-bottom: 20px;
|
|
|
|
border-radius: 10px;
|
|
|
|
border-bottom: 4px solid #87ceeb;
|
|
|
|
box-shadow: 0 6px 30px rgba(173, 216, 230, 0.3);
|
|
|
|
font-family: 'Poppins', sans-serif;
|
|
|
|
height: 306px;
|
|
|
|
margin: 0 5px 20px 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.plan-card h2 {
|
|
|
|
margin-bottom: 15px;
|
|
|
|
font-size: 27px;
|
|
|
|
color: #5faee3;
|
|
|
|
font-weight: 600;
|
2025-07-26 18:39:49 +08:00
|
|
|
}
|
|
|
|
|
2025-08-31 00:40:02 +08:00
|
|
|
.plan-card h2 span {
|
|
|
|
display: block;
|
|
|
|
margin-top: -4px;
|
|
|
|
color: #7eb8da;
|
|
|
|
font-size: 12px;
|
|
|
|
font-weight: 400;
|
2025-07-26 18:39:49 +08:00
|
|
|
}
|
|
|
|
|
2025-08-31 00:40:02 +08:00
|
|
|
.etiquet-price {
|
|
|
|
position: relative;
|
|
|
|
background: #f0f8ff;
|
|
|
|
width: 14.46rem;
|
|
|
|
margin-left: -0.65rem;
|
|
|
|
padding: 0.2rem 1.2rem;
|
|
|
|
border-radius: 5px 0 0 5px;
|
2025-07-26 18:39:49 +08:00
|
|
|
}
|
|
|
|
|
2025-08-31 00:40:02 +08:00
|
|
|
.etiquet-price p {
|
|
|
|
margin: 0;
|
|
|
|
padding-top: 0.4rem;
|
2025-07-26 18:39:49 +08:00
|
|
|
display: flex;
|
2025-08-31 00:40:02 +08:00
|
|
|
font-size: 1.9rem;
|
|
|
|
font-weight: 500;
|
|
|
|
color: #4a8cbb;
|
2025-07-26 18:39:49 +08:00
|
|
|
}
|
|
|
|
|
2025-08-31 00:40:02 +08:00
|
|
|
.etiquet-price p:before {
|
|
|
|
content: '';
|
|
|
|
margin-right: 5px;
|
|
|
|
font-size: 15px;
|
|
|
|
font-weight: 300;
|
2025-07-26 18:39:49 +08:00
|
|
|
}
|
|
|
|
|
2025-08-31 00:40:02 +08:00
|
|
|
.etiquet-price p:after {
|
|
|
|
content: '/ KW.H';
|
|
|
|
margin-left: 5px;
|
|
|
|
font-size: 15px;
|
|
|
|
font-weight: 300;
|
2025-07-26 18:39:49 +08:00
|
|
|
}
|
|
|
|
|
2025-08-31 00:40:02 +08:00
|
|
|
.etiquet-price div {
|
|
|
|
position: absolute;
|
|
|
|
bottom: -23px;
|
|
|
|
right: 0px;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
border-top: 13px solid #87ceeb;
|
|
|
|
border-bottom: 10px solid transparent;
|
|
|
|
border-right: 13px solid transparent;
|
|
|
|
z-index: 1;
|
2025-07-26 18:39:49 +08:00
|
|
|
}
|
|
|
|
|
2025-08-31 00:40:02 +08:00
|
|
|
.benefits-list {
|
|
|
|
margin-top: 16px;
|
2025-07-26 18:39:49 +08:00
|
|
|
}
|
|
|
|
|
2025-08-31 00:40:02 +08:00
|
|
|
.benefits-list ul {
|
|
|
|
padding: 0;
|
|
|
|
font-size: 14px;
|
2025-07-26 18:39:49 +08:00
|
|
|
}
|
|
|
|
|
2025-08-31 00:40:02 +08:00
|
|
|
.benefits-list ul li {
|
|
|
|
color: #5a7d9a;
|
|
|
|
list-style: none;
|
|
|
|
margin-bottom: 0.2rem;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
gap: 0.5rem;
|
2025-07-26 18:39:49 +08:00
|
|
|
}
|
|
|
|
|
2025-08-31 00:40:02 +08:00
|
|
|
.benefits-list ul li svg {
|
|
|
|
width: 0.9rem;
|
|
|
|
fill: currentColor;
|
2025-07-26 18:39:49 +08:00
|
|
|
}
|
|
|
|
|
2025-08-31 00:40:02 +08:00
|
|
|
.benefits-list ul li span {
|
|
|
|
font-weight: 300;
|
2025-07-26 18:39:49 +08:00
|
|
|
}
|
|
|
|
|
2025-08-31 00:40:02 +08:00
|
|
|
.button-get-plan {
|
2025-07-26 18:39:49 +08:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
2025-08-31 00:40:02 +08:00
|
|
|
margin-top: 1.2rem;
|
2025-07-26 18:39:49 +08:00
|
|
|
}
|
2025-08-25 15:46:05 +08:00
|
|
|
|
2025-08-31 00:40:02 +08:00
|
|
|
.button-get-plan a {
|
2025-07-28 10:07:02 +08:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
2025-08-31 00:40:02 +08:00
|
|
|
align-items: center;
|
|
|
|
background: #6bb1e3;
|
|
|
|
color: #fff;
|
|
|
|
padding: 10px 15px;
|
|
|
|
border-radius: 5px;
|
|
|
|
text-decoration: none;
|
|
|
|
font-size: 0.8rem;
|
|
|
|
letter-spacing: 0.05rem;
|
|
|
|
font-weight: 500;
|
|
|
|
transition: all 0.3s ease;
|
2025-07-26 18:39:49 +08:00
|
|
|
}
|
2025-07-25 15:41:29 +08:00
|
|
|
|
2025-08-31 00:40:02 +08:00
|
|
|
.button-get-plan a:hover {
|
|
|
|
transform: translateY(-3%);
|
|
|
|
box-shadow: 0 3px 10px rgba(123, 180, 220, 0.6); /* 浅蓝色阴影 */
|
|
|
|
background: #5fa0d0; /* 悬停时略深的蓝色 */
|
2025-07-26 18:39:49 +08:00
|
|
|
}
|
2025-07-25 15:41:29 +08:00
|
|
|
|
2025-08-31 00:40:02 +08:00
|
|
|
.button-get-plan .svg-rocket {
|
|
|
|
margin-right: 10px;
|
|
|
|
width: 0.9rem;
|
|
|
|
fill: currentColor;
|
2025-07-26 18:39:49 +08:00
|
|
|
}
|
2025-07-25 15:41:29 +08:00
|
|
|
</style>
|