小程序页面视觉对齐二期:预约图片轮播、订单数据预览、微信用户关联与请假管理
新增预约详情作品图片轮播字段与组装;新增订单预览与未关联微信用户候选接口;补齐请假记录查询接口;订单数据预览改为四列;请假管理接入真实排班例外并支持新增;日程、我的、美甲师详情与改派选择器按设计稿微调;注册结果页与申请提交时间对齐设计稿。
This commit is contained in:
@@ -18,6 +18,8 @@ function resolveCalendarErrorMessage(error) {
|
||||
return toUserMessage(error, '日程数据加载失败')
|
||||
}
|
||||
|
||||
const LANE_TINTS = ['#EAF3FA', '#FBF1EB', '#EEF5EF']
|
||||
|
||||
function toLocalDate(value) {
|
||||
return value instanceof Date ? new Date(value.getTime()) : new Date(String(value).replace(/-/g, '/'))
|
||||
}
|
||||
@@ -657,7 +659,8 @@ Page({
|
||||
top: (cursor - startMinute) * minuteScale + laneHeaderHeight
|
||||
})
|
||||
}
|
||||
const employeeLanes = filteredArtists.map(artist => {
|
||||
const employeeLanes = filteredArtists.map((artist, artistIndex) => {
|
||||
const tint = LANE_TINTS[artistIndex % LANE_TINTS.length]
|
||||
const blocks = dayAppointments
|
||||
.filter(item => String(item.artistId) === String(artist.id))
|
||||
.filter(item => item.startTime)
|
||||
@@ -670,7 +673,8 @@ Page({
|
||||
left: 12,
|
||||
width: 224,
|
||||
compact: Number(item.durationMinutes || 60) <= 15,
|
||||
timeText: resolveAppointmentTimeText(item)
|
||||
timeText: resolveAppointmentTimeText(item),
|
||||
tint
|
||||
}
|
||||
})
|
||||
return { ...artist, artistId: artist.id, blocks, width: 248 }
|
||||
@@ -682,7 +686,7 @@ Page({
|
||||
laneHeaderHeight,
|
||||
248
|
||||
)
|
||||
const unassignedBlocks = unassignedLayout.blocks
|
||||
const unassignedBlocks = unassignedLayout.blocks.map(block => ({ ...block, tint: '#FFF3E7' }))
|
||||
const lanes = this.data.selectedArtistId ? employeeLanes : [{
|
||||
id: '__unassigned__',
|
||||
artistId: '__unassigned__',
|
||||
|
||||
Reference in New Issue
Block a user