HomeLease/unpackage/dist/dev/mp-weixin/pages/index/index.wxss

297 lines
6.3 KiB
Plaintext
Raw Normal View History

2025-08-12 16:39:15 +08:00
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
2025-08-12 15:38:25 +08:00
.home-container.data-v-1cf27b2a {
background-color: #f5f5f5;
min-height: 100vh;
2025-08-12 16:39:15 +08:00
padding-bottom: 120rpx;
/* 为底部导航留出空间 */
2025-08-12 15:38:25 +08:00
max-width: 750rpx;
margin: 0 auto;
}
/* 状态栏 */
.status-bar.data-v-1cf27b2a {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20rpx 30rpx;
background-color: #f5f5f5;
font-size: 28rpx;
color: #333;
}
.status-icons.data-v-1cf27b2a {
display: flex;
gap: 10rpx;
}
/* 头部信息 */
.header.data-v-1cf27b2a {
2025-08-12 16:39:15 +08:00
background: linear-gradient(135deg, #FFDDCA 0%, #FFDDCA 100%);
padding: 106rpx 30rpx 20rpx 30rpx;
2025-08-12 15:38:25 +08:00
display: flex;
justify-content: space-between;
align-items: center;
}
2025-08-12 16:39:15 +08:00
.header .location-info.data-v-1cf27b2a {
2025-08-12 15:38:25 +08:00
display: flex;
align-items: center;
gap: 10rpx;
flex: 1;
}
2025-08-12 16:39:15 +08:00
.header .location-info .location.data-v-1cf27b2a {
width: 27rpx;
height: 31rpx;
}
.header .location-info .company-name.data-v-1cf27b2a {
color: #3D3D3D;
font-size: 16px;
2025-08-12 15:38:25 +08:00
font-weight: 500;
}
2025-08-12 16:39:15 +08:00
.header .location-info .arrow.data-v-1cf27b2a {
2025-08-12 15:38:25 +08:00
font-size: 24rpx;
color: #666;
}
/* 公告栏 */
.announcement-bar.data-v-1cf27b2a {
background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
padding: 15rpx 30rpx;
display: flex;
align-items: center;
gap: 15rpx;
overflow: hidden;
}
2025-08-12 16:39:15 +08:00
.announcement-bar .speaker-icon.data-v-1cf27b2a {
2025-08-12 15:38:25 +08:00
font-size: 24rpx;
color: #333;
}
2025-08-12 16:39:15 +08:00
.announcement-bar .announcement-text.data-v-1cf27b2a {
2025-08-12 15:38:25 +08:00
font-size: 24rpx;
color: #333;
white-space: nowrap;
animation: scroll-text-1cf27b2a 20s linear infinite;
}
@keyframes scroll-text-1cf27b2a {
2025-08-12 16:39:15 +08:00
0% {
transform: translateX(100%);
2025-08-12 15:38:25 +08:00
}
2025-08-12 16:39:15 +08:00
100% {
transform: translateX(-100%);
2025-08-12 15:38:25 +08:00
}
}
/* 轮播图 */
.banner-section.data-v-1cf27b2a {
padding: 30rpx;
}
.banner-card.data-v-1cf27b2a {
background: #fff;
border-radius: 20rpx;
padding: 30rpx;
display: flex;
gap: 30rpx;
box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.1);
}
.banner-left.data-v-1cf27b2a {
display: flex;
flex-direction: column;
gap: 20rpx;
flex: 1;
}
.product-info.data-v-1cf27b2a {
display: flex;
align-items: center;
gap: 10rpx;
}
.flame-icon.data-v-1cf27b2a {
font-size: 24rpx;
color: #ff4757;
}
.product-name.data-v-1cf27b2a {
font-size: 28rpx;
font-weight: bold;
color: #333;
}
.product-desc.data-v-1cf27b2a {
font-size: 24rpx;
color: #666;
}
.product-image.data-v-1cf27b2a {
width: 200rpx;
height: 150rpx;
border-radius: 10rpx;
background-color: #f8f9fa;
}
.banner-right.data-v-1cf27b2a {
flex: 1;
}
.product-features.data-v-1cf27b2a {
font-size: 24rpx;
color: #666;
line-height: 1.6;
}
.banner-dots.data-v-1cf27b2a {
display: flex;
justify-content: center;
gap: 10rpx;
margin-top: 20rpx;
}
.dot.data-v-1cf27b2a {
width: 16rpx;
height: 16rpx;
border-radius: 50%;
background-color: #ddd;
}
.dot.active.data-v-1cf27b2a {
background-color: #ff9a9e;
}
/* 设备列表 */
.equipment-section.data-v-1cf27b2a {
padding: 0 30rpx;
}
.section-title.data-v-1cf27b2a {
font-size: 32rpx;
font-weight: bold;
color: #333;
margin-bottom: 20rpx;
padding: 20rpx 0;
border-bottom: 1rpx solid #eee;
}
.equipment-list.data-v-1cf27b2a {
display: flex;
flex-direction: column;
gap: 20rpx;
}
.equipment-item.data-v-1cf27b2a {
background: #fff;
border-radius: 20rpx;
padding: 30rpx;
display: flex;
gap: 30rpx;
box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
}
.equipment-item.data-v-1cf27b2a:active {
transform: scale(0.98);
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.15);
}
.equipment-image.data-v-1cf27b2a {
width: 120rpx;
height: 120rpx;
border-radius: 10rpx;
background-color: #f8f9fa;
flex-shrink: 0;
}
.equipment-info.data-v-1cf27b2a {
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.equipment-header.data-v-1cf27b2a {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15rpx;
}
.equipment-name.data-v-1cf27b2a {
font-size: 28rpx;
font-weight: bold;
color: #333;
}
.status-badge.data-v-1cf27b2a {
padding: 4rpx 12rpx;
border-radius: 20rpx;
font-size: 20rpx;
color: #fff;
}
.status-badge.normal.data-v-1cf27b2a {
background-color: #52c41a;
}
.status-badge.warning.data-v-1cf27b2a {
background-color: #faad14;
}
.status-badge.error.data-v-1cf27b2a {
background-color: #ff4d4f;
}
.equipment-details.data-v-1cf27b2a {
display: flex;
flex-direction: column;
gap: 8rpx;
margin-bottom: 15rpx;
}
.detail-item.data-v-1cf27b2a {
font-size: 24rpx;
color: #666;
}
.renew-btn.data-v-1cf27b2a {
align-self: flex-end;
background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
color: #fff;
border: none;
border-radius: 25rpx;
padding: 15rpx 30rpx;
font-size: 24rpx;
font-weight: 500;
}
/* 底部导航 */
.bottom-nav.data-v-1cf27b2a {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: #fff;
display: flex;
justify-content: space-around;
align-items: center;
padding: 20rpx 0;
box-shadow: 0 -4rpx 20rpx rgba(0, 0, 0, 0.1);
z-index: 1000;
}
.nav-item.data-v-1cf27b2a {
display: flex;
flex-direction: column;
align-items: center;
gap: 8rpx;
padding: 10rpx;
transition: all 0.3s ease;
}
.nav-item.data-v-1cf27b2a:active {
transform: scale(0.95);
}
.nav-icon.data-v-1cf27b2a {
font-size: 40rpx;
color: #999;
}
.nav-text.data-v-1cf27b2a {
font-size: 20rpx;
color: #999;
}
.nav-item.active .nav-icon.data-v-1cf27b2a,
.nav-item.active .nav-text.data-v-1cf27b2a {
color: #ff9a9e;
2025-08-12 16:39:15 +08:00
}