154 lines
2.5 KiB
Plaintext
154 lines
2.5 KiB
Plaintext
/* pages/device_management/index.wxss */
|
||
page {
|
||
background-color: #f7f8fa;
|
||
}
|
||
|
||
.device-container {
|
||
padding: 24rpx 0;
|
||
}
|
||
|
||
/* 骨架屏样式 */
|
||
.skeleton-item {
|
||
background-color: #fff;
|
||
border-radius: 8rpx;
|
||
padding: 24rpx;
|
||
margin: 16rpx 24rpx;
|
||
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
|
||
}
|
||
|
||
/* 设备列表样式 */
|
||
.device-list {
|
||
padding: 0 24rpx;
|
||
}
|
||
|
||
/* 滑动单元格容器 */
|
||
.swipe-cell-container {
|
||
margin-bottom: 16rpx;
|
||
border-radius: 8rpx;
|
||
overflow: hidden;
|
||
display: block;
|
||
}
|
||
|
||
.device-card {
|
||
background-color: #ffffff;
|
||
border-radius: 8rpx;
|
||
padding: 24rpx;
|
||
position: relative;
|
||
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.device-title {
|
||
font-size: 32rpx;
|
||
font-weight: 500;
|
||
color: #333;
|
||
margin-bottom: 16rpx;
|
||
padding-right: 100rpx;
|
||
}
|
||
|
||
.device-info {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8rpx;
|
||
}
|
||
|
||
.info-item {
|
||
font-size: 28rpx;
|
||
color: #666;
|
||
line-height: 1.5;
|
||
}
|
||
|
||
/* 使用次数样式 */
|
||
.usage {
|
||
margin-top: 8rpx;
|
||
}
|
||
|
||
.usage text {
|
||
font-size: 28rpx;
|
||
color: #0052d9;
|
||
background-color: #eef4ff;
|
||
padding: 4rpx 12rpx;
|
||
border-radius: 4rpx;
|
||
display: inline-block;
|
||
}
|
||
|
||
/* 子设备数量样式 */
|
||
.subdevice-count {
|
||
margin-top: 8rpx;
|
||
}
|
||
|
||
.subdevice-count .count {
|
||
font-size: 28rpx;
|
||
color: #06a56c;
|
||
background-color: #e8f6f1;
|
||
padding: 4rpx 12rpx;
|
||
border-radius: 4rpx;
|
||
display: inline-block;
|
||
}
|
||
|
||
.device-id-tag {
|
||
position: absolute;
|
||
top: 24rpx;
|
||
right: 24rpx;
|
||
font-size: 24rpx;
|
||
color: #999;
|
||
}
|
||
|
||
/* 空状态和错误容器 */
|
||
.empty-container,
|
||
.error-container {
|
||
padding: 100rpx 24rpx;
|
||
}
|
||
|
||
/* 侧滑按钮样式 */
|
||
.swipe-cell-btn {
|
||
height: 100% !important;
|
||
width: 120rpx !important;
|
||
display: flex !important;
|
||
align-items: center !important;
|
||
justify-content: center !important;
|
||
font-size: 28rpx !important;
|
||
}
|
||
|
||
.edit-btn {
|
||
background-color: #0052d9 !important;
|
||
color: white !important;
|
||
}
|
||
|
||
.delete-btn {
|
||
background-color: #e34d59 !important;
|
||
color: white !important;
|
||
}
|
||
|
||
/* 修改TDesign原生样式,确保按钮高度与卡片一致 */
|
||
.device-list .t-swipe-cell__right {
|
||
height: 100% !important;
|
||
display: flex !important;
|
||
align-items: stretch !important;
|
||
}
|
||
|
||
/* 对话框内容样式 */
|
||
.dialog-content {
|
||
padding: 20rpx 0;
|
||
}
|
||
|
||
.t-input {
|
||
margin-bottom: 20rpx;
|
||
}
|
||
|
||
/* 悬浮按钮样式 */
|
||
.t-fab {
|
||
position: fixed !important;
|
||
bottom: 120rpx !important;
|
||
right: 32rpx !important;
|
||
}
|
||
|
||
/* 对话框内容样式 */
|
||
.dialog-content {
|
||
padding: 20rpx 0;
|
||
}
|
||
|
||
.t-input {
|
||
margin-bottom: 20rpx;
|
||
} |