fix: 样式统一优化提取。
This commit is contained in:
@@ -249,63 +249,10 @@ function handleDelete(item) {
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
page { height: 100%; overflow: auto; }
|
||||
.search-view {
|
||||
padding: 12rpx 32rpx; background-color: #ffffff; display: flex; justify-content: space-between; align-items: center;
|
||||
position: relative; z-index: 100; box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.05); gap: 10rpx;
|
||||
.search-input { flex: 1; }
|
||||
.filter-btn, .add-btn {
|
||||
display: flex; align-items: center; gap: 6rpx; padding: 12rpx 24rpx;
|
||||
background: rgba(102,126,234,0.08); border-radius: 24rpx; border: 2rpx solid rgba(102,126,234,0.3); flex-shrink: 0;
|
||||
text { color: #667eea; font-size: 28rpx; font-weight: 600; }
|
||||
}
|
||||
.filter-panel {
|
||||
width: 100%; position: absolute; left: 0; top: 96rpx; background-color: rgba(0,0,0,0.5); z-index: 999;
|
||||
.filter-panel-content {
|
||||
background-color: #ffffff; padding: 0 30rpx 30rpx;
|
||||
.filter-title { color: #2c3e50; font-size: 32rpx; font-weight: 600; padding: 32rpx 0 24rpx 20rpx; }
|
||||
.state-list {
|
||||
display: flex; flex-wrap: wrap; gap: 16rpx;
|
||||
.state-item { padding: 0 32rpx; height: 68rpx; border: 2rpx solid #e8edf3; border-radius: 34rpx; text-align: center; line-height: 68rpx; font-size: 28rpx; color: #666; background: #fff; }
|
||||
.active { background: linear-gradient(135deg,#667eea 0%,#764ba2 100%); border: 2rpx solid transparent; color: #fff; font-weight: 600; }
|
||||
}
|
||||
}
|
||||
.btn-box {
|
||||
display: flex; gap: 20rpx; padding: 24rpx 30rpx; background-color: #fff;
|
||||
.btn-reset, .btn-confirm { display: flex; align-items: center; justify-content: center; gap: 8rpx; height: 88rpx; border-radius: 12rpx; font-size: 30rpx; font-weight: 600; flex: 1; text { line-height: 1; } }
|
||||
.btn-reset { background: #f5f7fa; border: 2rpx solid #dcdfe6; text { color: #606266; } }
|
||||
.btn-confirm { background: #667eea; border: none; text { color: #fff; } }
|
||||
}
|
||||
}
|
||||
@import '@/styles/health-common.scss';
|
||||
|
||||
// 筛选面板位置补充(单行模式)
|
||||
.search-view .filter-panel {
|
||||
top: 96rpx;
|
||||
}
|
||||
.list-item {
|
||||
margin: 10rpx 24rpx; background-color: #fff; border-radius: 16rpx; overflow: hidden; box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.08);
|
||||
.item-header {
|
||||
display: flex; justify-content: space-between; align-items: center; padding: 16rpx 24rpx;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
.card-name-section { display: flex; align-items: center; flex: 1; min-width: 0; }
|
||||
.card-icon { width: 40rpx; height: 40rpx; background: rgba(255,255,255,0.25); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 12rpx; flex-shrink: 0; }
|
||||
.card-info { flex: 1; min-width: 0; .card-name { color: #fff; font-size: 30rpx; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
|
||||
}
|
||||
.card-body { padding: 24rpx; background: #fafbfc; border: 2rpx solid #f0f2f5; margin: 15rpx 16rpx 2rpx; border-radius: 12rpx; }
|
||||
.info-row {
|
||||
display: flex; flex-wrap: wrap; margin: 0 -12rpx;
|
||||
.info-item {
|
||||
width: 50%; padding: 0 12rpx; box-sizing: border-box; display: flex; flex-direction: column; margin-bottom: 20rpx;
|
||||
&.info-item-full { width: 100%; }
|
||||
.info-label { font-size: 24rpx; color: #667eea; font-weight: 500; background: rgba(102,126,234,0.08); padding: 6rpx 12rpx; border-radius: 8rpx; align-self: flex-start; margin-bottom: 8rpx; }
|
||||
.info-value { font-size: 26rpx; color: #333; font-weight: 500; line-height: 1.5; word-break: break-all; }
|
||||
}
|
||||
}
|
||||
.operate {
|
||||
display: flex; justify-content: flex-end; padding: 16rpx 24rpx 24rpx; gap: 16rpx;
|
||||
.btn-edit, .btn-delete { display: flex; align-items: center; justify-content: center; gap: 6rpx; padding: 0 24rpx; height: 64rpx; border-radius: 12rpx; font-size: 26rpx; font-weight: 500; }
|
||||
.btn-edit { background: rgba(102,126,234,0.1); color: #667eea; border: 1rpx solid rgba(102,126,234,0.3); }
|
||||
.btn-delete { background: rgba(245,87,108,0.1); color: #f5576c; border: 1rpx solid rgba(245,87,108,0.3); }
|
||||
}
|
||||
}
|
||||
.status-tag { font-size: 22rpx; padding: 4rpx 16rpx; border-radius: 8rpx; font-weight: 600; }
|
||||
.status-1 { background: rgba(82,196,26,0.2); color: #52c41a; }
|
||||
.status-2 { background: rgba(250,140,22,0.2); color: #fa8c16; }
|
||||
.status-3 { background: rgba(245,87,108,0.2); color: #f5576c; }
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user