style(小程序): 我的页身份胶囊与菜单重组、审核面板重构、客户新增悬浮按钮等页面视觉对齐设计稿
自动发布开发环境 Nacos 配置 / publish (push) Successful in 22s

This commit is contained in:
2026-11-06 11:36:04 +08:00
parent 3e51247312
commit 70f5462d88
14 changed files with 238 additions and 83 deletions
@@ -43,7 +43,7 @@ function createPage() {
async function run() {
const styles = fs.readFileSync(path.join(__dirname, 'index.wxss'), 'utf8')
assert(styles.includes('min-width: 0;'))
assert(styles.includes('flex-wrap: wrap;'))
assert(styles.includes('.review-main'))
assert(styles.includes('@media (max-width: 390px)'))
assert(styles.includes('text-overflow: ellipsis;'))
const employeesApi = require('../../api/employees')
+17 -9
View File
@@ -9,8 +9,14 @@
<view wx:if="{{isManager && reviewExpanded}}" class="review-panel card">
<view class="review-panel-head">
<view><text class="review-title">美甲师申请审核</text><text class="review-subtitle">仅显示当前门店待处理申请</text></view>
<text class="review-count">{{reviewPendingCount}} 项</text>
<view class="review-head-text">
<text class="review-title">美甲师申请审核</text>
<text class="review-subtitle">仅显示当前门店待处理申请</text>
</view>
<view class="review-head-actions">
<text class="review-count">{{reviewPendingCount}} 项</text>
<view class="review-collapse" bindtap="toggleReview"><text class="review-collapse-icon">︿</text></view>
</view>
</view>
<view wx:if="{{reviewLoading}}" class="review-state">正在加载申请…</view>
<view wx:elif="{{reviewError}}" class="review-state review-error">
@@ -20,13 +26,15 @@
<view wx:elif="{{reviewApplications.length === 0}}" class="review-state">暂无待审核美甲师申请</view>
<view wx:else class="review-list">
<view wx:for="{{reviewApplications}}" wx:key="id" class="review-item">
<image class="review-avatar" src="{{item.applicantAvatar || '/assets/images/default-user-avatar.png'}}" mode="aspectFill" data-index="{{index}}" binderror="onReviewAvatarError"></image>
<view class="review-info">
<text class="review-name">{{item.applicantDisplayName}}</text>
<text wx:if="{{item.targetArtistUserId}}" class="review-meta">已预关联美甲师</text>
<text wx:if="{{item.applicantMaskedPhone}}" class="review-meta">{{item.applicantMaskedPhone}}</text>
<text class="review-meta">{{item.shopName || '当前门店'}} · {{item.applicationTimeText}}</text>
<text class="review-number">申请编号 {{item.applicationNo}}</text>
<view class="review-main">
<image class="review-avatar" src="{{item.applicantAvatar || '/assets/images/default-user-avatar.png'}}" mode="aspectFill" data-index="{{index}}" binderror="onReviewAvatarError"></image>
<view class="review-info">
<text class="review-name">{{item.applicantDisplayName}}</text>
<text wx:if="{{item.targetArtistUserId}}" class="review-meta">已预关联美甲师</text>
<text wx:if="{{item.applicantMaskedPhone}}" class="review-meta">{{item.applicantMaskedPhone}}</text>
<text class="review-meta">{{item.shopName || '当前门店'}} · {{item.applicationTimeText}}</text>
<text class="review-number">申请编号 {{item.applicationNo}}</text>
</view>
</view>
<view class="review-actions">
<button class="review-action reject" data-id="{{item.id}}" disabled="{{reviewingId}}" bindtap="rejectApplication">驳回</button>
+58 -34
View File
@@ -21,12 +21,13 @@
position: relative;
margin-right: 12rpx;
margin-left: 0;
border-color: #c9d8d2;
background: #eef5f2;
color: #247b63;
border-color: #247b63;
background: #247b63;
color: #fff;
}
.list-heading .review-toggle.is-open {
border-color: #247b63;
background: #247b63;
color: #fff;
}
@@ -48,23 +49,47 @@
.review-panel {
margin-bottom: 22rpx;
padding: 22rpx;
padding: 24rpx;
border: 1rpx solid #dce8e3;
background: #f8fcfa;
}
.review-panel-head,
.review-item,
.review-actions {
.review-panel-head {
display: flex;
align-items: center;
}
.review-panel-head {
justify-content: space-between;
margin-bottom: 16rpx;
}
.review-head-text {
min-width: 0;
flex: 1;
}
.review-head-actions {
display: flex;
align-items: center;
flex-shrink: 0;
gap: 12rpx;
}
.review-collapse {
display: flex;
align-items: center;
justify-content: center;
width: 48rpx;
height: 48rpx;
border-radius: 24rpx;
background: #e5f4ed;
}
.review-collapse-icon {
color: #247b63;
font-size: 22rpx;
font-weight: 700;
line-height: 1;
}
.review-title,
.review-subtitle,
.review-name,
@@ -87,8 +112,8 @@
.review-count {
color: #247b63;
font-size: 23rpx;
font-weight: 800;
font-size: 24rpx;
font-weight: 700;
}
.review-list {
@@ -99,19 +124,23 @@
.review-item {
box-sizing: border-box;
width: 100%;
gap: 14rpx;
min-width: 0;
flex-wrap: wrap;
padding: 18rpx;
border-radius: 20rpx;
background: #fff;
box-shadow: 0 5rpx 18rpx rgba(47, 111, 98, 0.07);
box-shadow: 0 6rpx 18rpx rgba(47, 111, 98, 0.07);
}
.review-main {
display: flex;
align-items: flex-start;
gap: 15rpx;
min-width: 0;
}
.review-avatar {
flex: 0 0 auto;
width: 72rpx;
height: 72rpx;
width: 75rpx;
height: 75rpx;
border-radius: 50%;
background: #e7ece9;
}
@@ -147,10 +176,12 @@
.review-actions {
box-sizing: border-box;
flex: 0 0 auto;
display: flex;
align-items: center;
max-width: 100%;
gap: 8rpx;
margin-left: auto;
margin-top: 15rpx;
padding-left: 0;
}
.review-action {
@@ -194,14 +225,7 @@
}
.review-info {
max-width: calc(100% - 100rpx);
}
.review-actions {
width: 100%;
justify-content: flex-end;
padding-left: 86rpx;
box-sizing: border-box;
max-width: calc(100% - 90rpx);
}
}
@@ -241,11 +265,11 @@
display: flex;
align-items: center;
justify-content: center;
width: 78rpx;
height: 78rpx;
width: 81rpx;
height: 81rpx;
border-radius: 50%;
color: #fff;
font-size: 28rpx;
font-size: 29rpx;
font-weight: 900;
overflow: hidden;
}
@@ -285,9 +309,9 @@
}
.color-pill {
width: 44rpx;
height: 18rpx;
border-radius: 999rpx;
width: 46rpx;
height: 20rpx;
border-radius: 10rpx;
}
.retry-btn {