2026-01-15 15:05:29 +08:00

241 lines
4.2 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* pages/surgery/index.wxss */
page {
background-color: #f7f8fa;
}
.surgery-searchbar {
position: fixed;
display: flex;
z-index: 10;
width: 100%;
background: white;
padding: 0 10px;
gap: 0 10px;
align-items: center;
box-sizing: border-box;
top: 0;
}
.surgery-radio {
border-radius: 10px;
}
.surgery-search {
flex: 1;
}
.surgery-container {
padding: 24rpx 0;
margin-top: 50px;
}
/* 骨架屏样式 */
.skeleton-item {
background-color: #fff;
border-radius: 8rpx;
padding: 24rpx;
margin: 16rpx 24rpx;
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
}
/* 手术列表样式 */
.surgery-list {
padding: 0 24rpx;
}
/* 滑动单元格容器 */
.swipe-cell-container {
margin-bottom: 16rpx;
border-radius: 8rpx;
overflow: hidden;
display: block;
}
.surgery-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;
}
/* 有未完成设备的卡片样式 - 淡黄色背景 */
.surgery-card--unfinished {
background-color: #fff8e6;
border-left: 6rpx solid #faad14;
box-shadow: 0 2rpx 12rpx rgba(250, 173, 20, 0.15);
}
/* 淡黄色卡片内的文本颜色调整 */
.surgery-card--unfinished .surgery-title {
color: #8b6914;
}
.surgery-card--unfinished .info-item {
color: #666;
}
.surgery-card--unfinished .doctor {
background-color: rgba(250, 173, 20, 0.15);
color: #8b6914;
}
.surgery-card--unfinished .dept {
background-color: rgba(250, 173, 20, 0.1);
color: #8b6914;
}
.surgery-title {
font-size: 32rpx;
font-weight: 500;
color: #333;
margin-bottom: 16rpx;
padding-right: 100rpx;
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
}
/* 未完成设备状态指示器 */
.unfinished-indicator {
margin-left: 16rpx;
flex-shrink: 0;
}
.unfinished-text {
font-size: 22rpx;
color: #faad14;
background-color: rgba(250, 173, 20, 0.1);
padding: 4rpx 12rpx;
border-radius: 12rpx;
border: 1rpx solid rgba(250, 173, 20, 0.3);
font-weight: normal;
}
.surgery-info {
display: flex;
flex-direction: column;
gap: 8rpx;
}
.info-item {
font-size: 28rpx;
color: #666;
line-height: 1.5;
}
.doctor-dept {
margin-top: 8rpx;
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 16rpx;
}
.doctor {
font-size: 28rpx;
color: #0052d9;
background-color: #eef4ff;
padding: 4rpx 12rpx;
border-radius: 4rpx;
display: inline-block;
}
.dept {
font-size: 28rpx;
color: #06a56c;
background-color: #e8f6f1;
padding: 4rpx 12rpx;
border-radius: 4rpx;
display: inline-block;
}
/* 设备数量样式 */
.device-count {
margin-top: 8rpx;
}
.device-count .count {
font-size: 28rpx;
color: #e54d42;
background-color: #feecea;
padding: 4rpx 12rpx;
border-radius: 4rpx;
display: inline-block;
}
.surgery-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;
}
/* 加载更多样式 */
.loading-more {
display: flex;
justify-content: center;
align-items: center;
padding: 40rpx 0;
}
/* 没有更多数据样式 */
.no-more {
display: flex;
align-items: center;
justify-content: center;
padding: 40rpx 24rpx;
margin: 20rpx 0;
}
.no-more-line {
flex: 1;
height: 1px;
background-color: #e0e0e0;
}
.no-more-text {
margin: 0 24rpx;
font-size: 24rpx;
color: #999;
}
/* TDesign pull-down-refresh 容器调整 */
.surgery-container {
min-height: 100vh;
padding: 24rpx 0;
}
/* 修改TDesign原生样式确保按钮高度与卡片一致 */
.surgery-list .t-swipe-cell__right {
height: 100% !important;
display: flex !important;
align-items: stretch !important;
}