M6: 创建 utils/date.ts 统一日期工具函数(formatDate/formatDateTime/toRelativeDate 等) M8: 28 个 SCSS 文件 font-size 20px → 22px 全量适老化 M7: request.ts 增加 403 权限不足/5xx 服务器错误/网络超时异常统一拦截
176 lines
2.5 KiB
SCSS
176 lines
2.5 KiB
SCSS
@import '../../../styles/variables.scss';
|
|
|
|
.prescription-page {
|
|
min-height: 100vh;
|
|
background: $bg;
|
|
padding-bottom: 120px;
|
|
}
|
|
|
|
.search-bar {
|
|
padding: 16px 24px;
|
|
background: $card;
|
|
}
|
|
|
|
.search-input {
|
|
background: $bg;
|
|
border-radius: $r-sm;
|
|
padding: 16px 20px;
|
|
font-size: 28px;
|
|
color: $tx;
|
|
}
|
|
|
|
.tabs {
|
|
display: flex;
|
|
padding: 0 24px;
|
|
background: $card;
|
|
border-bottom: 1px solid $bd-l;
|
|
}
|
|
|
|
.tab {
|
|
flex: 1;
|
|
text-align: center;
|
|
padding: 20px 0;
|
|
position: relative;
|
|
|
|
&--active {
|
|
.tab-text {
|
|
color: $pri;
|
|
font-weight: bold;
|
|
}
|
|
|
|
&::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 25%;
|
|
right: 25%;
|
|
height: 4px;
|
|
background: $pri;
|
|
border-radius: 2px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.tab-text {
|
|
font-size: 26px;
|
|
color: $tx2;
|
|
}
|
|
|
|
.prescription-list {
|
|
padding: 16px 24px;
|
|
}
|
|
|
|
.prescription-count {
|
|
font-size: 24px;
|
|
color: $tx3;
|
|
padding: 8px 0 16px;
|
|
}
|
|
|
|
.prescription-card {
|
|
background: $card;
|
|
border-radius: $r;
|
|
padding: 24px;
|
|
margin-bottom: 16px;
|
|
box-shadow: $shadow-sm;
|
|
|
|
&:active {
|
|
box-shadow: $shadow-md;
|
|
}
|
|
}
|
|
|
|
.prescription-card__header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.prescription-card__model {
|
|
font-size: 28px;
|
|
font-weight: bold;
|
|
color: $tx;
|
|
}
|
|
|
|
.status-tag {
|
|
display: inline-block;
|
|
padding: 4px 12px;
|
|
border-radius: 8px;
|
|
font-size: 22px;
|
|
background: $bd-l;
|
|
color: $tx3;
|
|
|
|
&--active {
|
|
background: $acc-l;
|
|
color: $acc;
|
|
}
|
|
}
|
|
|
|
.prescription-card__body {
|
|
display: flex;
|
|
gap: 16px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.prescription-card__meta {
|
|
font-size: 24px;
|
|
color: $tx2;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.prescription-card__date {
|
|
font-size: 24px;
|
|
color: $tx3;
|
|
display: block;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.pagination {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 16px 0;
|
|
gap: 24px;
|
|
}
|
|
|
|
.page-btn {
|
|
padding: 12px 24px;
|
|
background: $card;
|
|
border-radius: $r-sm;
|
|
font-size: 26px;
|
|
color: $pri;
|
|
|
|
&--disabled {
|
|
opacity: 0.4;
|
|
}
|
|
}
|
|
|
|
.page-info {
|
|
font-size: 24px;
|
|
color: $tx2;
|
|
}
|
|
|
|
.fab {
|
|
position: fixed;
|
|
right: 32px;
|
|
bottom: 120px;
|
|
width: 96px;
|
|
height: 96px;
|
|
border-radius: 48px;
|
|
background: $pri;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-shadow: $shadow-md;
|
|
z-index: 10;
|
|
|
|
&:active {
|
|
background: $pri-d;
|
|
}
|
|
}
|
|
|
|
.fab-text {
|
|
font-size: 40px;
|
|
color: #fff;
|
|
font-weight: bold;
|
|
}
|