diff --git a/JY-Salon-WeChat/pages/employee-detail/index.js b/JY-Salon-WeChat/pages/employee-detail/index.js
index 9cb32d4c..75af4419 100644
--- a/JY-Salon-WeChat/pages/employee-detail/index.js
+++ b/JY-Salon-WeChat/pages/employee-detail/index.js
@@ -25,7 +25,9 @@ Page({
deleteConfirmVisible: false,
deletingEmployee: false,
resetConfirmVisible: false,
- resettingPassword: false
+ resettingPassword: false,
+ moreInfoVisible: false,
+ dangerExpanded: false
},
onLoad(options) {
@@ -82,6 +84,14 @@ Page({
wx.navigateTo({ url: `${event.currentTarget.dataset.url}?id=${this.data.id}` })
},
+ toggleMoreInfo() {
+ this.setData({ moreInfoVisible: !this.data.moreInfoVisible })
+ },
+
+ toggleDangerZone() {
+ this.setData({ dangerExpanded: !this.data.dangerExpanded })
+ },
+
requestDeleteEmployee() {
if (this.data.deletingEmployee) {
return
diff --git a/JY-Salon-WeChat/pages/employee-detail/index.wxml b/JY-Salon-WeChat/pages/employee-detail/index.wxml
index 852700c5..28c104fa 100644
--- a/JY-Salon-WeChat/pages/employee-detail/index.wxml
+++ b/JY-Salon-WeChat/pages/employee-detail/index.wxml
@@ -44,26 +44,10 @@
角色
{{employee.roleText}}
-
- 登录账号
- {{employee.accountText}}
-
-
- 手机号
- {{employee.phoneText}}
-
联系电话
{{employee.contactPhoneText}}
-
- 微信号
- {{employee.wechatIdText}}
-
-
- 身份
- {{employee.identityText}}
-
当前状态
{{employee.currentStatusText}}
@@ -72,6 +56,28 @@
参与制作美甲
{{employee.participateProductionText}}
+
+ 更多资料
+ {{moreInfoVisible ? '收起' : '展开'}}
+
+
+
+ 登录账号
+ {{employee.accountText}}
+
+
+ 手机号
+ {{employee.phoneText}}
+
+
+ 微信号
+ {{employee.wechatIdText}}
+
+
+ 身份
+ {{employee.identityText}}
+
+
@@ -87,43 +93,57 @@
-
+
重置登录密码
- 重置后使用系统默认密码登录,建议员工首次登录后修改。
+
-
-
- !
-
-
- 删除员工
- 危险操作
+
+
+ !
+
+ 危险操作
+ 删除员工与当前店铺的关系
- 只会解除该员工与当前店铺的关系,登录账号和历史订单会继续保留。
+ {{dangerExpanded ? '收起' : '展开'}}
-
-
- 员工列表
- 移除
-
-
- 登录账号
- 保留
+
+ 登录账号和历史订单会继续保留,删除后仅解除该员工与当前店铺的关系。
+
+
+ 员工列表
+ 移除
+
+
+ 登录账号
+ 保留
+
+
-
diff --git a/JY-Salon-WeChat/pages/employee-detail/index.wxss b/JY-Salon-WeChat/pages/employee-detail/index.wxss
index 66bcfe7a..aea86ae8 100644
--- a/JY-Salon-WeChat/pages/employee-detail/index.wxss
+++ b/JY-Salon-WeChat/pages/employee-detail/index.wxss
@@ -81,7 +81,7 @@
}
.info-card {
- padding: 8rpx 24rpx;
+ padding: 8rpx 24rpx 0;
}
.info-row {
@@ -119,6 +119,32 @@
overflow-wrap: anywhere;
}
+.info-more-toggle {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ min-height: 76rpx;
+ color: #5b8d69;
+ font-size: 24rpx;
+ font-weight: 800;
+}
+
+.info-more-toggle.open {
+ border-bottom: 1rpx solid #eee8df;
+}
+
+.info-more-arrow,
+.danger-summary-arrow,
+.menu-arrow {
+ color: #9c9187;
+ font-size: 22rpx;
+ font-weight: 700;
+}
+
+.info-more-body .info-row:first-child {
+ padding-top: 18rpx;
+}
+
.menu-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
@@ -128,61 +154,48 @@
.menu-card {
display: flex;
align-items: center;
- min-height: 148rpx;
- padding: 24rpx;
+ justify-content: space-between;
+ min-height: 100rpx;
+ padding: 18rpx 22rpx;
color: #302c27;
- font-size: 30rpx;
+ font-size: 26rpx;
font-weight: 800;
}
.reset-card {
- display: flex;
- flex-direction: column;
- align-items: stretch;
- gap: 24rpx;
margin-top: 24rpx;
- padding: 28rpx;
+ padding: 8rpx 24rpx;
}
-.reset-copy {
- flex: 1;
- min-width: 0;
-}
-
-.reset-title,
-.reset-desc {
- display: block;
+.reset-row {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 18rpx;
+ min-height: 82rpx;
}
.reset-title {
color: #302c27;
- font-size: 28rpx;
+ font-size: 26rpx;
font-weight: 800;
}
-.reset-desc {
- margin-top: 10rpx;
- color: #7b6f66;
- font-size: 22rpx;
- line-height: 1.5;
-}
-
.reset-btn {
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
- width: 70%;
- max-width: 360rpx;
- min-width: 0;
- min-height: 78rpx;
- margin: 0 auto;
- padding: 0;
+ width: 132rpx;
+ min-width: 132rpx;
+ min-height: 58rpx;
+ margin: 0;
+ padding: 0 18rpx;
border: 1rpx solid #b9d9c2;
- border-radius: 14rpx;
+ border-radius: 12rpx;
background: #eef8f0;
color: #3f7950;
- font-size: 26rpx;
+ font-size: 24rpx;
font-weight: 800;
}
@@ -255,11 +268,37 @@
.delete-card {
margin-top: 24rpx;
- padding: 28rpx;
+ padding: 8rpx 24rpx;
border-color: rgba(191, 73, 73, 0.18);
background: linear-gradient(180deg, #fffdf8 0%, #fff5f2 100%);
}
+.danger-summary {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 18rpx;
+ min-height: 82rpx;
+}
+
+.danger-summary-main {
+ display: flex;
+ align-items: center;
+ gap: 16rpx;
+ min-width: 0;
+}
+
+.danger-summary-desc {
+ display: block;
+ margin-top: 6rpx;
+ color: #8e8077;
+ font-size: 21rpx;
+}
+
+.danger-body {
+ padding: 0 0 20rpx;
+}
+
.delete-shell {
display: flex;
align-items: flex-start;
@@ -283,6 +322,12 @@
line-height: 1;
}
+.danger-summary .delete-icon {
+ width: 46rpx;
+ height: 46rpx;
+ font-size: 28rpx;
+}
+
.delete-copy {
flex: 1;
min-width: 0;
diff --git a/docs/项目变更记录.md b/docs/项目变更记录.md
index c068096f..bf02d1ec 100644
--- a/docs/项目变更记录.md
+++ b/docs/项目变更记录.md
@@ -703,3 +703,11 @@
- 数据库说明:本次不新增 SQL,不修改初始化 SQL,不需要执行数据库迁移。
- 影响范围:仅影响 `JY-Salon-Front/src/views/EmployeeDetailView.vue` 员工详情页布局与样式,不改变员工资料接口、密码重置、删除员工和业务入口行为。
- 验证方式:运行店务 Web `vue-tsc` 类型检查并确认 `git diff --check` 通过。
+
+## 2026-07-26 店务小程序员工详情页信息层级同步
+
+- 变更原因:店务小程序员工详情页仍以多张大卡片展示资料和操作,页面纵向较长,与店务 Web 的优化不一致。
+- 处理方式:基础信息保留角色、联系电话、当前状态和参与制作美甲状态,账号、手机号、微信号和身份收进“更多资料”;排班、工时、颜色和订单改为紧凑快捷操作;重置密码改为单行操作;删除员工改为默认折叠的危险操作区。
+- 数据库说明:本次不新增 SQL,不修改初始化 SQL,不需要执行数据库迁移。
+- 影响范围:仅影响 `JY-Salon-WeChat/pages/employee-detail/` 员工详情页布局、样式和折叠交互,不改变员工资料接口、密码重置、删除员工和状态维护逻辑。
+- 验证方式:运行员工详情页 JavaScript 语法检查,并确认目标文件 `git diff --check` 通过;GitNexus 影响分析因当前 Node 版本与依赖不兼容未能执行。