feat: 电子药箱小程序 - 4Tab药品管理
- 电子药箱: 药品库存管理 + 手动录入 + 今日用药打卡 - 药品百科: 搜索 + 分类筛选 + 20种药品静态数据 - 惠教中心: 4条药品使用指南课程 - 我的: 家庭成员信息管理 - 自定义TabBar + navigation-bar组件 - SVG药品分类插图
This commit is contained in:
@@ -0,0 +1,105 @@
|
||||
.page {
|
||||
min-height: 100vh;
|
||||
background: #f5f5f5;
|
||||
padding: 20rpx 30rpx 60rpx;
|
||||
box-sizing: border-box;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.form-section {
|
||||
background: #ffffff; border-radius: 24rpx;
|
||||
padding: 30rpx; box-shadow: 0 2rpx 16rpx rgba(0, 0, 0, 0.04);
|
||||
}
|
||||
|
||||
.avatar-row {
|
||||
display: flex; align-items: flex-start; margin-bottom: 30rpx;
|
||||
}
|
||||
|
||||
.avatar-label {
|
||||
font-size: 28rpx; font-weight: 600; color: #333;
|
||||
width: 100rpx; padding-top: 10rpx; flex-shrink: 0;
|
||||
}
|
||||
|
||||
.avatar-options {
|
||||
flex: 1; display: flex; flex-wrap: wrap; gap: 14rpx;
|
||||
}
|
||||
|
||||
.avatar-opt {
|
||||
width: 68rpx; height: 68rpx;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
background: #f7f8fa; border-radius: 50%; font-size: 34rpx;
|
||||
border: 3rpx solid transparent;
|
||||
}
|
||||
|
||||
.avatar-opt.selected {
|
||||
border-color: #4A90D9; background: #e8f0fa; transform: scale(1.1);
|
||||
}
|
||||
|
||||
.form-group { margin-bottom: 28rpx; }
|
||||
.form-label { font-size: 28rpx; font-weight: 600; color: #333; margin-bottom: 14rpx; }
|
||||
|
||||
.form-input {
|
||||
width: 100%; height: 80rpx; background: #f7f8fa;
|
||||
border-radius: 14rpx; padding: 0 24rpx; font-size: 28rpx; box-sizing: border-box;
|
||||
}
|
||||
|
||||
.form-picker {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
width: 100%; height: 80rpx; background: #f7f8fa;
|
||||
border-radius: 14rpx; padding: 0 24rpx; font-size: 28rpx;
|
||||
box-sizing: border-box; color: #333;
|
||||
}
|
||||
|
||||
.form-picker.placeholder { color: #bbb; }
|
||||
.arrow { font-size: 22rpx; color: #999; }
|
||||
|
||||
.form-row { display: flex; gap: 20rpx; }
|
||||
.form-row .half { flex: 1; }
|
||||
|
||||
.gender-row { display: flex; gap: 14rpx; }
|
||||
|
||||
.gender-btn {
|
||||
flex: 1; text-align: center; height: 80rpx; line-height: 80rpx;
|
||||
background: #f7f8fa; border-radius: 14rpx; font-size: 26rpx;
|
||||
color: #666; border: 2rpx solid transparent;
|
||||
}
|
||||
|
||||
.gender-btn.active.male {
|
||||
background: #e8f0fa; color: #4A90D9; border-color: #4A90D9; font-weight: 600;
|
||||
}
|
||||
|
||||
.gender-btn.active.female {
|
||||
background: #fce8ec; color: #E85D75; border-color: #E85D75; font-weight: 600;
|
||||
}
|
||||
|
||||
.blood-row { display: flex; gap: 14rpx; }
|
||||
|
||||
.blood-chip {
|
||||
flex: 1; text-align: center; height: 72rpx; line-height: 72rpx;
|
||||
background: #f7f8fa; border-radius: 14rpx; font-size: 26rpx;
|
||||
color: #666; border: 2rpx solid transparent;
|
||||
}
|
||||
|
||||
.blood-chip.active {
|
||||
background: #fff0e8; color: #FF6B35; border-color: #FF6B35; font-weight: 600;
|
||||
}
|
||||
|
||||
.divider {
|
||||
text-align: center; font-size: 26rpx; color: #999;
|
||||
padding: 10rpx 0 24rpx; margin-bottom: 24rpx;
|
||||
border-bottom: 1rpx solid #f0f0f0;
|
||||
}
|
||||
|
||||
.form-textarea {
|
||||
width: 100%; height: 140rpx; background: #f7f8fa;
|
||||
border-radius: 14rpx; padding: 20rpx 24rpx; font-size: 28rpx; box-sizing: border-box;
|
||||
}
|
||||
|
||||
.btn-area { margin-top: 40rpx; }
|
||||
|
||||
.save-btn {
|
||||
width: 100%; height: 90rpx; line-height: 90rpx;
|
||||
background: linear-gradient(135deg, #4A90D9, #357ABD);
|
||||
color: #fff; font-size: 32rpx; font-weight: 600;
|
||||
border-radius: 18rpx; border: none;
|
||||
}
|
||||
Reference in New Issue
Block a user