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

新增预约详情作品图片轮播字段与组装;新增订单预览与未关联微信用户候选接口;补齐请假记录查询接口;订单数据预览改为四列;请假管理接入真实排班例外并支持新增;日程、我的、美甲师详情与改派选择器按设计稿微调;注册结果页与申请提交时间对齐设计稿。
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
@@ -18,6 +18,8 @@ Page({
data: {
id: '',
appointment: {},
coverImages: [],
coverIndex: 0,
avatarText: '',
timeText: '',
isUnassigned: false,
@@ -74,8 +76,13 @@ Page({
remarkText: displayValue(safeAppointment.remark, '暂无备注'),
cancelReasonText: displayValue(safeAppointment.cancelReason, '')
}
const coverImages = Array.isArray(safeAppointment.coverImages)
? safeAppointment.coverImages.filter(item => Boolean(item))
: []
this.setData({
appointment: normalizedAppointment,
coverImages,
coverIndex: 0,
isUnassigned,
avatarText: normalizedAppointment.customerNameText.slice(0, 1),
timeText,
@@ -87,6 +94,10 @@ Page({
})
},
onCoverChange(event) {
this.setData({ coverIndex: Number(event.detail.current) || 0 })
},
async updateStatus(status) {
if (this.data.updating || !this.data.appointment.orderId) return
if (status !== 3 && this.data.isUnassigned) {
@@ -56,6 +56,24 @@
</view>
</view>
<view wx:if="{{!loadError && coverImages.length}}" class="section cover-section">
<view class="cover-head">
<text class="section-title">项目图片</text>
<text class="cover-count">{{coverIndex + 1}} / {{coverImages.length}}</text>
</view>
<view class="cover-card">
<swiper class="cover-swiper" circular="{{coverImages.length > 1}}" bindchange="onCoverChange">
<swiper-item wx:for="{{coverImages}}" wx:key="*this">
<image class="cover-image" src="{{item}}" mode="aspectFill" />
</swiper-item>
</swiper>
<view class="cover-dots">
<view wx:for="{{coverImages}}" wx:key="*this" class="cover-dot {{index === coverIndex ? 'active' : ''}}"></view>
</view>
</view>
<text class="cover-hint">左滑查看更多项目图</text>
</view>
<view wx:if="{{!loadError}}" class="section">
<view class="section-title">备注</view>
<view class="card note-card">{{appointment.remarkText}}</view>
@@ -164,6 +164,75 @@
overflow-wrap: anywhere;
}
.cover-section {
margin-top: 28rpx;
}
.cover-head {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 16rpx;
}
.cover-count {
color: #71807a;
font-size: 22rpx;
}
.cover-card {
box-sizing: border-box;
width: 100%;
height: 304rpx;
padding: 20rpx;
border-radius: 24rpx;
background: #fbfdfb;
border: 1rpx solid #e7ece9;
}
.cover-swiper {
width: 100%;
height: 208rpx;
border-radius: 16rpx;
overflow: hidden;
}
.cover-image {
width: 100%;
height: 208rpx;
border-radius: 16rpx;
background: #e5f4ed;
}
.cover-dots {
display: flex;
align-items: center;
justify-content: center;
gap: 10rpx;
height: 56rpx;
}
.cover-dot {
width: 10rpx;
height: 10rpx;
border-radius: 50%;
background: #d5ddd9;
transition: width 0.2s;
}
.cover-dot.active {
width: 26rpx;
border-radius: 6rpx;
background: #247b63;
}
.cover-hint {
display: block;
margin-top: 12rpx;
color: #a1aca6;
font-size: 20rpx;
}
.note-card {
padding: 24rpx;
color: #71807a;