保存客户资料与员工排班改造阶段成果
This commit is contained in:
@@ -90,8 +90,21 @@ async function run() {
|
||||
assert.strictEqual(dayState.timelineHeight, 2934)
|
||||
assert.strictEqual(dayState.hours.find(item => item.label === '14:00').top, 1014)
|
||||
assert.strictEqual(dayState.dayLanes[0].blocks[0].height, 240)
|
||||
assert.match(planningWxss, /background-size:\s*100% 240rpx/)
|
||||
assert.match(planningWxss, /\.control-card\s*\{[^}]*padding:\s*12rpx 16rpx;/)
|
||||
const shortAppointmentState = dayPage.buildDayView({
|
||||
businessStartTime: '10:30',
|
||||
businessEndTime: '11:30',
|
||||
artists: [{ id: 1, name: '美甲师', color: '#000' }],
|
||||
appointments: [{ orderItemId: 9, date: '2026-10-12', startTime: '2026-10-12 10:45:00', durationMinutes: 15, artistId: 1 }]
|
||||
})
|
||||
assert.strictEqual(shortAppointmentState.hours[0].top, 54)
|
||||
assert.strictEqual(shortAppointmentState.hours[1].top, 294)
|
||||
const shortAppointmentLane = shortAppointmentState.dayLanes.find(lane => lane.artistId === 1)
|
||||
assert.strictEqual(shortAppointmentLane.blocks[0].height, 60)
|
||||
assert.strictEqual(shortAppointmentLane.blocks[0].compact, true)
|
||||
assert.match(planningWxml, /class="hour-line" style="top: \{\{hour\.top\}\}rpx;"/)
|
||||
assert.match(planningWxml, /class="time-label" style="top: \{\{item\.top\}\}rpx;"/)
|
||||
assert.doesNotMatch(planningWxss, /background-size:\s*100% 240rpx/)
|
||||
assert.match(planningWxss, /\.control-card\s*\{[^}]*padding:\s*8rpx 14rpx;/)
|
||||
|
||||
const requestPage = createPage({ viewMode: 'day', currentDateText: '2026-10-11' })
|
||||
let calendarRequests = 0
|
||||
|
||||
Reference in New Issue
Block a user