小程序页面视觉对齐二期:预约图片轮播、订单数据预览、微信用户关联与请假管理

新增预约详情作品图片轮播字段与组装;新增订单预览与未关联微信用户候选接口;补齐请假记录查询接口;订单数据预览改为四列;请假管理接入真实排班例外并支持新增;日程、我的、美甲师详情与改派选择器按设计稿微调;注册结果页与申请提交时间对齐设计稿。
This commit is contained in:
2026-11-06 14:34:02 +08:00
parent 2ff83a5ec1
commit 60d9bba61a
33 changed files with 939 additions and 105 deletions
+7 -3
View File
@@ -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__',
+5 -1
View File
@@ -110,7 +110,7 @@
<text wx:if="{{item.isUnassigned}}" class="lane-unassigned-tag">不占档期</text>
</view>
<view wx:for="{{hours}}" wx:for-item="hour" wx:key="value" class="hour-line" style="top: {{hour.top}}rpx;"></view>
<view wx:for="{{item.blocks}}" wx:for-item="block" wx:key="orderItemId" class="appointment-block {{item.isUnassigned ? 'unassigned-block' : ''}} {{block.status === 0 ? 'pending' : ''}} {{block.compact ? 'compact' : ''}}" style="top: {{block.top}}rpx; left: {{block.left}}rpx; width: {{block.width}}rpx; height: {{block.height}}rpx; border-left-color: {{item.color}};" data-id="{{block.orderItemId}}" bindtap="openAppointment">
<view wx:for="{{item.blocks}}" wx:for-item="block" wx:key="orderItemId" class="appointment-block {{item.isUnassigned ? 'unassigned-block' : ''}} {{block.status === 0 ? 'pending' : ''}} {{block.compact ? 'compact' : ''}}" style="top: {{block.top}}rpx; left: {{block.left}}rpx; width: {{block.width}}rpx; height: {{block.height}}rpx; background: {{block.tint || '#ffffff'}}; border-left-color: {{item.color}};" data-id="{{block.orderItemId}}" bindtap="openAppointment">
<text class="block-title">{{block.customerName}}</text>
<text class="block-meta">{{block.timeText}} · {{block.productTitle}}</text>
<view class="block-footer">
@@ -132,6 +132,10 @@
</view>
<view wx:if="{{viewMode === 'week'}}" class="section">
<view class="week-head">
<text class="week-head-title">本周概览</text>
<text class="week-head-range">{{weekRange}}</text>
</view>
<view class="week-strip">
<view wx:for="{{weekDays}}" wx:key="date" class="week-day-card card {{item.date === currentDateText ? 'active' : ''}}" data-date="{{item.date}}" bindtap="selectWeekDate" aria-label="查看{{item.date}}日程">
<view class="week-card-head"><text class="week-name">{{item.weekName}}</text><text class="week-status {{item.statusText === '休' ? 'rest' : ''}}">{{item.statusText}}</text></view>
+11 -5
View File
@@ -341,13 +341,14 @@
}
.summary-item {
min-height: 116rpx;
padding: 16rpx;
}
.summary-value {
display: block;
color: #17211f;
font-size: 34rpx;
font-size: 36rpx;
font-weight: 800;
}
@@ -457,8 +458,8 @@
gap: 2rpx;
overflow: hidden;
padding: 6rpx 10rpx;
border-left: 8rpx solid #7ba7c7;
border-radius: 10px;
border-left: 6rpx solid #7ba7c7;
border-radius: 16rpx;
background: #fff7ee;
border-top: 1rpx solid rgba(58, 48, 34, 0.06);
border-right: 1rpx solid rgba(58, 48, 34, 0.06);
@@ -554,6 +555,10 @@
font-size: 22rpx;
}
.week-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12rpx; }
.week-head-title { color: #17211f; font-size: 25rpx; font-weight: 600; }
.week-head-range { color: #71807a; font-size: 20rpx; }
.week-strip {
display: grid;
grid-template-columns: repeat(7, minmax(0, 1fr));
@@ -572,7 +577,8 @@
}
.week-day-card.active {
outline: 3rpx solid #8fb89a;
background: #e5f4ed;
border-color: #cfe4d9;
}
.week-name,
@@ -796,7 +802,7 @@
}
.month-cell {
min-height: 168rpx;
min-height: 136rpx;
padding: 8rpx 5rpx;
border-right: 1rpx solid #e7ece9;
border-bottom: 1rpx solid #e7ece9;