feat(health+miniprogram): 预约/报告/随访/资讯/家庭管理 — Chunk 4-6
后端: - 添加 articles 表迁移 + Entity + Service + Handler - 健康数据趋势 API (get_mini_trend) 注册路由 - article CRUD (list/get) + DTO 前端 (11个新页面 + 5个服务): - 预约挂号: 列表/创建向导/详情页 - 报告管理: 列表/详情页 - 随访管理: 任务列表/记录详情页 - 资讯文章: 文章详情页 - 个人中心: 就诊人管理/新增/我的报告/我的随访/用药提醒/设置 - 更新 app.config.ts 注册全部路由 - 更新 profile/article 页面为真实功能
This commit is contained in:
289
apps/miniprogram/src/pages/appointment/create/index.scss
Normal file
289
apps/miniprogram/src/pages/appointment/create/index.scss
Normal file
@@ -0,0 +1,289 @@
|
||||
@import '../../../styles/variables.scss';
|
||||
|
||||
.create-page {
|
||||
min-height: 100vh;
|
||||
background: $bg;
|
||||
padding-bottom: 140px;
|
||||
}
|
||||
|
||||
/* 步骤指示器 */
|
||||
.step-bar {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
padding: 32px 24px 0;
|
||||
}
|
||||
|
||||
.step-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
opacity: 0.4;
|
||||
transition: opacity 0.3s;
|
||||
}
|
||||
|
||||
.step-item.step-active {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.step-item.step-done {
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.step-dot {
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
border-radius: 50%;
|
||||
background: $bd;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: background 0.3s;
|
||||
}
|
||||
|
||||
.step-active .step-dot {
|
||||
background: $pri;
|
||||
}
|
||||
|
||||
.step-done .step-dot {
|
||||
background: $acc;
|
||||
}
|
||||
|
||||
.step-num {
|
||||
font-size: 28px;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.step-check {
|
||||
font-size: 28px;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.step-label {
|
||||
font-size: 22px;
|
||||
color: $tx2;
|
||||
}
|
||||
|
||||
.step-active .step-label {
|
||||
color: $pri;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* 步骤连接线 */
|
||||
.step-line-wrapper {
|
||||
padding: 12px 80px 0;
|
||||
}
|
||||
|
||||
.step-line {
|
||||
height: 4px;
|
||||
background: $bd;
|
||||
border-radius: 2px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.step-line-fill {
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, $acc, $pri);
|
||||
border-radius: 2px;
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
|
||||
/* 步骤内容 */
|
||||
.step-content {
|
||||
padding: 32px 24px;
|
||||
}
|
||||
|
||||
.step-title {
|
||||
font-size: 32px;
|
||||
font-weight: bold;
|
||||
color: $tx;
|
||||
margin-bottom: 28px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* 选择器卡片 */
|
||||
.picker-card {
|
||||
background: $card;
|
||||
border-radius: $r;
|
||||
padding: 24px 28px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
|
||||
}
|
||||
|
||||
.picker-value {
|
||||
font-size: 28px;
|
||||
color: $tx;
|
||||
}
|
||||
|
||||
.picker-value.placeholder {
|
||||
color: $tx3;
|
||||
}
|
||||
|
||||
.picker-arrow {
|
||||
font-size: 24px;
|
||||
color: $tx3;
|
||||
}
|
||||
|
||||
/* 医生列表 */
|
||||
.doctor-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.doctor-card {
|
||||
background: $card;
|
||||
border-radius: $r;
|
||||
padding: 24px 28px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
|
||||
border: 2px solid transparent;
|
||||
transition: border-color 0.2s;
|
||||
}
|
||||
|
||||
.doctor-card.doctor-selected {
|
||||
border-color: $pri;
|
||||
background: $pri-surface;
|
||||
}
|
||||
|
||||
.doctor-avatar {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
border-radius: 50%;
|
||||
background: $pri-l;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.doctor-avatar-text {
|
||||
font-size: 32px;
|
||||
color: $pri;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.doctor-detail {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.doctor-name {
|
||||
font-size: 30px;
|
||||
font-weight: bold;
|
||||
color: $tx;
|
||||
}
|
||||
|
||||
.doctor-title {
|
||||
font-size: 24px;
|
||||
color: $tx2;
|
||||
}
|
||||
|
||||
.doctor-specialty {
|
||||
font-size: 22px;
|
||||
color: $pri;
|
||||
}
|
||||
|
||||
.doctor-check {
|
||||
font-size: 32px;
|
||||
color: $pri;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* 表单 */
|
||||
.form-group {
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
|
||||
.form-label {
|
||||
font-size: 26px;
|
||||
color: $tx2;
|
||||
margin-bottom: 12px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.form-static {
|
||||
background: $card;
|
||||
border-radius: $r-sm;
|
||||
padding: 24px 28px;
|
||||
}
|
||||
|
||||
.form-static-text {
|
||||
font-size: 28px;
|
||||
color: $tx;
|
||||
}
|
||||
|
||||
.form-input {
|
||||
background: $card;
|
||||
border-radius: $r-sm;
|
||||
padding: 24px 28px;
|
||||
font-size: 28px;
|
||||
color: $tx;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* 空状态 */
|
||||
.empty-state {
|
||||
padding: 80px 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.empty-text {
|
||||
font-size: 28px;
|
||||
color: $tx3;
|
||||
}
|
||||
|
||||
/* 底部操作栏 */
|
||||
.bottom-bar {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
padding: 20px 24px;
|
||||
padding-bottom: constant(safe-area-inset-bottom);
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
background: $card;
|
||||
box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
|
||||
}
|
||||
|
||||
.btn {
|
||||
flex: 1;
|
||||
padding: 24px 0;
|
||||
border-radius: $r-sm;
|
||||
text-align: center;
|
||||
transition: opacity 0.2s;
|
||||
}
|
||||
|
||||
.btn-prev {
|
||||
background: $bd-l;
|
||||
}
|
||||
|
||||
.btn-next,
|
||||
.btn-submit {
|
||||
background: linear-gradient(135deg, $pri 0%, $pri-d 100%);
|
||||
}
|
||||
|
||||
.btn-disabled {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.btn-text {
|
||||
font-size: 30px;
|
||||
font-weight: bold;
|
||||
color: $tx2;
|
||||
}
|
||||
|
||||
.btn-text-white {
|
||||
color: white;
|
||||
}
|
||||
Reference in New Issue
Block a user