Dev #106

Merged
xiaowang merged 8 commits from dev into sit 2026-11-08 01:40:09 +08:00
4 changed files with 13 additions and 5 deletions
Showing only changes of commit 0dfa3bc5a8 - Show all commits
+4 -1
View File
@@ -21,6 +21,9 @@ function resolveCalendarErrorMessage(error) {
const LANE_TINTS = ['#EAF3FA', '#FBF1EB', '#EEF5EF']
// 日视图时间轴末尾留白(rpx):避免末条时间刻度与末个预约卡片贴住滚动容器底边
const TIMELINE_BOTTOM_SPACE = 64
const DESIGN_ARTIST_COLORS = {
张小雨: '#43789E',
林小满: '#96684B',
@@ -747,7 +750,7 @@ Page({
hours,
hasTimedAppointments: timedAppointments.length > 0,
timelineHeight: timelineHeight + laneHeaderHeight,
timelineViewportHeight: Math.min(820, timelineHeight + laneHeaderHeight),
timelineViewportHeight: Math.min(820, timelineHeight + laneHeaderHeight + TIMELINE_BOTTOM_SPACE),
laneHeaderHeight,
laneItemWidth: 248,
laneWidth: Math.max(720, lanes.reduce((width, lane) => width + (lane.width || 248), 0)),
+1 -1
View File
@@ -135,7 +135,7 @@ async function run() {
})
assert.strictEqual(shortAppointmentState.hours[0].top, 54)
assert.strictEqual(shortAppointmentState.hours[1].top, 204)
assert.strictEqual(shortAppointmentState.timelineViewportHeight, 204)
assert.strictEqual(shortAppointmentState.timelineViewportHeight, 268)
const shortAppointmentLane = shortAppointmentState.dayLanes.find(lane => lane.artistId === 1)
assert.strictEqual(shortAppointmentLane.blocks[0].height, 40)
assert.strictEqual(shortAppointmentLane.blocks[0].compact, true)
@@ -128,6 +128,7 @@
</view>
</scroll-view>
</view>
<view class="timeline-bottom-space"></view>
</scroll-view>
</view>
+7 -3
View File
@@ -371,12 +371,16 @@
position: relative;
}
.timeline-bottom-space {
height: calc(64rpx + env(safe-area-inset-bottom));
}
.time-axis {
position: absolute;
top: 0;
left: 0;
z-index: 4;
width: 92rpx;
width: 104rpx;
height: 100%;
border-right: 1rpx solid #e7ece9;
background: #ffffff;
@@ -390,7 +394,7 @@
.time-label {
position: absolute;
right: 12rpx;
right: 16rpx;
color: #71807a;
font-size: 20rpx;
line-height: 1;
@@ -402,7 +406,7 @@
position: absolute;
top: 0;
right: 0;
left: 104rpx;
left: 124rpx;
height: 100%;
}