Files
Neo-ZQYY/tmp/DEMO-miniprogram/miniprogram/pages/notes/notes.wxss

204 lines
3.2 KiB
Plaintext

/* pages/notes/notes.wxss — 备注记录页样式 */
/* ========== 全局设置 ========== */
page {
background-color: #f3f3f3;
line-height: 1.5;
}
view {
line-height: inherit;
}
/* ========== 自定义导航栏 ========== */
.safe-area-top {
background-color: #ffffff;
}
.custom-nav {
display: flex;
align-items: center;
height: 44px;
padding: 0 16px;
position: relative;
border-bottom: 1px solid #eeeeee;
}
.nav-back {
width: 44px;
height: 44px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
}
.nav-back--hover {
background-color: #eeeeee;
}
.nav-title {
position: absolute;
left: 50%;
transform: translateX(-50%);
font-size: 16px;
font-weight: 500;
color: #242424;
line-height: 24px;
}
/* ========== 页面背景 ========== */
.page-loading,
.page-empty-wrap,
.page-normal,
.page-error {
min-height: 100vh;
background-color: #f3f3f3;
}
/* ========== 加载态 / 空态 ========== */
.page-loading,
.page-empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 60vh;
gap: 16px;
}
/* ========== 错误态 ========== */
.page-error {
display: flex;
flex-direction: column;
height: 100vh;
}
.error-content {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 0 40px;
}
.error-icon {
font-size: 54px;
margin-bottom: 16px;
}
.error-text {
font-size: 14px;
color: #777777;
margin-bottom: 20px;
line-height: 20px;
}
.retry-btn {
padding: 10px 30px;
background-color: #0052d9;
border-radius: 8px;
}
.retry-btn--hover {
opacity: 0.8;
}
.retry-btn-text {
font-size: 14px;
color: #ffffff;
line-height: 20px;
}
/* ========== 备注列表 ========== */
.note-list {
padding: 16px;
}
.note-card + .note-card {
margin-top: 12px;
}
/* ========== 备注卡片 ========== */
.note-card {
background-color: #ffffff;
border-radius: 16px;
padding: 16px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.note-content {
display: block;
font-size: 14px;
color: #242424;
line-height: 20px;
margin-bottom: 12px;
}
.note-bottom {
display: flex;
align-items: center;
justify-content: space-between;
}
.note-bottom-right {
display: flex;
align-items: center;
gap: 8px;
}
/* ========== 删除按钮 ========== */
.note-delete-btn {
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
flex-shrink: 0;
}
.note-delete-btn--hover {
background-color: #f3f3f3;
}
/* ========== 标签样式 ========== */
.note-tag {
padding: 4px 10px;
font-size: 12px;
border-radius: 8px;
border: 1px solid;
line-height: 16px;
}
.tag-customer {
background: linear-gradient(135deg, #ecf2fe, #e8eeff);
color: #0052d9;
border-color: #c5d4f7;
}
.tag-coach {
background: linear-gradient(135deg, #e8faf0, #e0f7ea);
color: #00a870;
border-color: #b3e6d0;
}
.note-time {
font-size: 12px;
color: #a6a6a6;
line-height: 16px;
}
/* ========== 底部提示 ========== */
.list-footer {
text-align: center;
padding: 20px 0 40px;
}
.footer-text {
font-size: 12px;
color: #c5c5c5;
line-height: 16px;
}