调整预约日期时间选择入口样式

This commit is contained in:
2026-07-23 17:56:45 +08:00
parent ffc6c7afca
commit 1aaaac986d
4 changed files with 41 additions and 6 deletions
@@ -22,8 +22,8 @@
</view>
<view class="field">
<text class="field-label required">预约日期</text>
<picker mode="date" value="{{form.appointmentDate}}" bindchange="onDateChange">
<view class="field-value">{{form.appointmentDate}}</view>
<picker class="date-native-picker" mode="date" value="{{form.appointmentDate}}" bindchange="onDateChange">
<view class="field-value date-value">{{form.appointmentDate}}</view>
</picker>
</view>
<view class="field">
@@ -62,7 +62,7 @@
<picker class="time-native-picker" mode="time" value="{{timePickerValue || form.appointmentTime || '00:00'}}" start="00:00" end="23:59" disabled="{{pageMaskVisible || timePickerConfirming}}" bindchange="onNativeTimeChange">
<view class="field-value time-value {{form.appointmentTime ? '' : 'placeholder'}}">
<view>
<text>{{form.appointmentTime || timeSelectTip}}</text>
<text class="{{form.appointmentTime ? 'time-main-text' : 'time-placeholder-text'}}">{{form.appointmentTime || timeSelectTip}}</text>
<text wx:if="{{form.appointmentTime}}" class="time-range">{{form.appointmentDate}} · {{selectedArtist.name}} · {{form.durationMinutes}}分钟</text>
</view>
<text class="time-arrow">›</text>
@@ -269,6 +269,8 @@
align-items: center;
justify-content: space-between;
gap: 16rpx;
border-color: #cfe1d8;
background: #eef7f2;
}
.time-value > view {
@@ -279,15 +281,39 @@
gap: 6rpx;
}
.time-main-text {
color: #2f2923;
font-size: 30rpx;
font-weight: 900;
line-height: 1.2;
}
.time-placeholder-text {
color: #7f8b84;
font-size: 28rpx;
font-weight: 800;
line-height: 1.2;
}
.time-value.placeholder {
color: #aaa096;
}
.date-native-picker,
.time-native-picker {
display: block;
min-width: 0;
flex: 1;
}
.date-value {
border-color: #cfe1d8;
background: #eef7f2;
color: #2f2923;
font-size: 30rpx;
font-weight: 900;
}
.time-range {
overflow: hidden;
color: #9a9288;
+8
View File
@@ -378,3 +378,11 @@
- 数据库说明:本次不新增 SQL,不修改初始化 SQL,不需要执行数据库迁移。
- 影响范围:仅影响 `JY-Salon-WeChat/pages/appointment-form/` 的预约时间选择交互;不影响后端、接口契约、SQL 和预约提交 payload。
- 验证方式:已执行预约表单 JS 语法检查、旧 `picker-view/time-picker` 引用检索、`git diff --check` 和 GitNexus staged `detect-changes`;微信开发者工具连接与当前路由验证通过,元素查询通道超时且 `mp_healthCheck` 显示 `needsRecovery=false`,运行态元素断言以工具通道缺口记录。
## 2026-07-23 店务小程序预约日期时间选择入口主题样式调整
- 变更原因:预约时间改为原生时间选择器后,日期和时间选择入口的数字字号与背景色需要更贴近当前小程序主题。
- 处理方式:预约日期和预约时间选择入口统一使用浅绿色主题背景与绿色系边框;日期数字和已选时间数字字号略放大并加粗,时间未选择占位文案保持次级颜色。
- 数据库说明:本次不新增 SQL,不修改初始化 SQL,不需要执行数据库迁移。
- 影响范围:仅影响 `JY-Salon-WeChat/pages/appointment-form/` 日期和时间选择入口的视觉样式;不影响选择器类型、预约时间校验、预约提交 payload 和后端接口。
- 验证方式:执行预约表单 JS 语法检查、相关页面 `git diff --check`、GitNexus staged `detect-changes`,并确认本次暂存只包含预约表单样式和项目记录。
+4 -3
View File
@@ -2,7 +2,7 @@
## 当前任务
店务小程序预约时间改为原生时间选择器。
店务小程序预约日期和时间选择入口主题样式调整。
## 已完成
@@ -12,10 +12,11 @@
- 已删除旧时间底部弹窗、自定义小时/分钟滚轮模板和相关样式。
- 已完成 JS 语法检查、旧引用检索、`git diff --check` 和 GitNexus staged 检测,检测结果为低风险、影响流程 0。
- 已补充 `docs/项目变更记录.md`。
- 已按用户确认调整预约日期和预约时间选择入口:数字略放大,背景改为主题一致的浅绿色。
## 下一步
- 提交本次相关改动。
- 运行本次样式改动检查、GitNexus staged 变更检测并提交。
## 当前阻塞点
@@ -23,7 +24,7 @@
## 最近一次重要操作结果
2026-07-23 已完成源码层和静态验证:旧 `timeSheetVisible`、`picker-view`、`time-picker` 样式和旧确认方法引用检索为空;微信开发者工具可确认路由在 `pages/appointment-form/index`,但元素查询通道超时。
2026-07-23 已完成日期/时间选择入口样式改造:预约日期和预约时间入口使用同一套主题浅绿色背景,日期数字和已选时间数字放大到 30rpx。
## 2026-07-23 预约图片链路检查
- 已完成:梳理新建预约手工作品上传、预约详情上传/删除、后端 `PlanningServiceImpl` 回显链路,并修复详情页旧字段回退隐患。
- 下一步:无,等待用户验收预约图片链路。