From 68533738e09a1feb7748702be68fb258bb08c36f Mon Sep 17 00:00:00 2001 From: xiaowang <2161656029@qq.com> Date: Tue, 20 Oct 2026 18:02:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=20Salon=20=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E7=8E=B0=E6=9C=89=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- JC-Salon-WeChat/app.json | 6 +++--- .../product-selector-sheet/index.wxml | 2 +- JC-Salon-WeChat/pages/about/index.wxml | 2 +- .../pages/account-settings/index.wxml | 2 +- .../pages/appointment-detail/index.js | 2 +- .../pages/appointment-detail/index.wxml | 2 +- .../pages/appointment-form/index.js | 16 +++++++------- .../pages/appointment-form/index.wxml | 20 ++++++++++-------- .../pages/appointment-form/index.wxss | 21 ++++++++++--------- .../pages/appointment-form/unassigned.test.js | 2 +- .../pages/artist-transfer/index.js | 2 +- .../pages/artist-transfer/index.json | 2 +- .../pages/artist-transfer/index.wxml | 12 +++++------ JC-Salon-WeChat/pages/backfill-order/index.js | 8 +++---- .../pages/backfill-order/index.wxml | 6 +++--- .../pages/employee-create/index.js | 4 ++-- .../pages/employee-create/index.json | 2 +- .../pages/employee-create/index.wxml | 14 ++++++------- .../pages/employee-detail/index.json | 2 +- .../pages/employee-detail/index.wxml | 2 +- JC-Salon-WeChat/pages/employees/index.js | 8 +++---- JC-Salon-WeChat/pages/employees/index.json | 2 +- JC-Salon-WeChat/pages/employees/index.wxml | 4 ++-- JC-Salon-WeChat/pages/export/index.js | 6 +++--- JC-Salon-WeChat/pages/planning/index.js | 18 ++++++++-------- JC-Salon-WeChat/pages/planning/index.json | 2 +- JC-Salon-WeChat/pages/planning/index.test.js | 4 ++-- JC-Salon-WeChat/pages/planning/index.wxml | 8 +++---- JC-Salon-WeChat/pages/profile/index.wxml | 2 +- .../pages/schedule-setting/index.wxml | 2 +- JC-Salon-WeChat/pages/shop-settings/index.js | 2 +- JC-Salon-WeChat/project.config.json | 2 +- JC-Salon-WeChat/utils/config.js | 2 +- JC-Salon-WeChat/utils/config.local.example.js | 2 +- 34 files changed, 98 insertions(+), 95 deletions(-) diff --git a/JC-Salon-WeChat/app.json b/JC-Salon-WeChat/app.json index 4858d802..37dbdad6 100644 --- a/JC-Salon-WeChat/app.json +++ b/JC-Salon-WeChat/app.json @@ -26,7 +26,7 @@ ], "lazyCodeLoading": "requiredComponents", "window": { - "navigationBarTitleText": "甲屿店务", + "navigationBarTitleText": "甲屿手纪", "navigationBarBackgroundColor": "#F3F7F4", "navigationBarTextStyle": "black", "backgroundColor": "#F3F7F4", @@ -40,7 +40,7 @@ "list": [ { "pagePath": "pages/planning/index", - "text": "规划", + "text": "日程", "iconPath": "assets/tabbar/planning.png", "selectedIconPath": "assets/tabbar/planning-active.png" }, @@ -52,7 +52,7 @@ }, { "pagePath": "pages/employees/index", - "text": "员工", + "text": "美甲师", "iconPath": "assets/tabbar/employees.png", "selectedIconPath": "assets/tabbar/employees-active.png" }, diff --git a/JC-Salon-WeChat/components/product-selector-sheet/index.wxml b/JC-Salon-WeChat/components/product-selector-sheet/index.wxml index 5c2a40a1..4fa81103 100644 --- a/JC-Salon-WeChat/components/product-selector-sheet/index.wxml +++ b/JC-Salon-WeChat/components/product-selector-sheet/index.wxml @@ -13,7 +13,7 @@ 图 - {{item.title}}{{item.priceText || (item.price == null ? '价格待定' : '¥' + item.price)}}{{item.durationText || '时长待定'}} · {{item.artistText || '全部员工'}}{{tag}}{{selectedId == item.id ? '✓' : '›'}} + {{item.title}}{{item.priceText || (item.price == null ? '价格待定' : '¥' + item.price)}}{{item.durationText || '时长待定'}} · {{item.artistText || '全部美甲师'}}{{tag}}{{selectedId == item.id ? '✓' : '›'}} diff --git a/JC-Salon-WeChat/pages/about/index.wxml b/JC-Salon-WeChat/pages/about/index.wxml index a0996ed1..e43a63be 100644 --- a/JC-Salon-WeChat/pages/about/index.wxml +++ b/JC-Salon-WeChat/pages/about/index.wxml @@ -6,6 +6,6 @@ 版本0.0.1 - 定位规划 / 客户 / 员工 / 我的 + 定位日程 / 客户 / 美甲师 / 我的 diff --git a/JC-Salon-WeChat/pages/account-settings/index.wxml b/JC-Salon-WeChat/pages/account-settings/index.wxml index 00554c21..a784c08b 100644 --- a/JC-Salon-WeChat/pages/account-settings/index.wxml +++ b/JC-Salon-WeChat/pages/account-settings/index.wxml @@ -3,7 +3,7 @@ 手机号 {{profile.phoneVerified == 1 ? (profile.maskedPhone || profile.phone) : '尚未绑定'}}{{profile.phoneVerified == 1 ? '已验证' : '待绑定'}} - + {{profile.phoneVerified == 1 ? '使用短信验证码更换' : '使用短信验证码绑定'}}› diff --git a/JC-Salon-WeChat/pages/appointment-detail/index.js b/JC-Salon-WeChat/pages/appointment-detail/index.js index 7b01fd80..1ca29b59 100644 --- a/JC-Salon-WeChat/pages/appointment-detail/index.js +++ b/JC-Salon-WeChat/pages/appointment-detail/index.js @@ -42,7 +42,7 @@ Page({ async updateStatus(status) { if (status !== 3 && this.data.isUnassigned) { - wx.showToast({ title: '请先分配员工', icon: 'none' }) + wx.showToast({ title: '请先分配美甲师', icon: 'none' }) return } try { diff --git a/JC-Salon-WeChat/pages/appointment-detail/index.wxml b/JC-Salon-WeChat/pages/appointment-detail/index.wxml index da49d540..dd2fab7a 100644 --- a/JC-Salon-WeChat/pages/appointment-detail/index.wxml +++ b/JC-Salon-WeChat/pages/appointment-detail/index.wxml @@ -16,7 +16,7 @@ 历史补单 · {{appointment.statusText}} {{appointment.statusText}} - + diff --git a/JC-Salon-WeChat/pages/appointment-form/index.js b/JC-Salon-WeChat/pages/appointment-form/index.js index 37f8f6e5..bbb90554 100644 --- a/JC-Salon-WeChat/pages/appointment-form/index.js +++ b/JC-Salon-WeChat/pages/appointment-form/index.js @@ -369,7 +369,7 @@ function buildCustomerSelectorItem(customer) { function buildArtistSelectorItem(artist) { return { ...artist, - title: artist.name || '未命名员工', + title: artist.name || '未命名美甲师', subtitle: artist.statusText || '可用于指定预约', meta: artist.workStartTime && artist.workEndTime ? `${artist.workStartTime.slice(0, 5)}-${artist.workEndTime.slice(0, 5)}` : '', avatar: artist.avatar || artist.avatarUrl || '/assets/images/default-user-avatar.png' @@ -555,7 +555,7 @@ Page({ artistSelectorItems: [], selectedArtist: {}, 'form.artistId': '', - artistError: error.message || '员工列表加载失败', + artistError: error.message || '美甲师列表加载失败', conflictTip: error.message || '美甲师列表加载失败', conflictLevel: 'danger' }) @@ -769,7 +769,7 @@ Page({ const result = await new Promise(resolve => { wx.showModal({ title: '历史日期不能新建预约', - content: '之前的日期只能作为历史补单记录,不会校验员工排班,也不会占用预约时段。', + content: '之前的日期只能作为历史补单记录,不会校验美甲师排班,也不会占用预约时段。', cancelText: '取消', confirmText: '去补单', success: resolve, @@ -927,7 +927,7 @@ Page({ .filter(item => !keyword || String(item.name || '').toLowerCase().includes(keyword)) .map(buildArtistSelectorItem) if (!keyword || '暂不分配'.includes(keyword)) { - items.unshift({ id: '__unassigned__', title: '暂不分配', subtitle: '先记录预约,后续再分配员工', badge: '待分配' }) + items.unshift({ id: '__unassigned__', title: '暂不分配', subtitle: '先记录预约,后续再分配美甲师', badge: '待分配' }) } return items }, @@ -1003,7 +1003,7 @@ Page({ selectedArtist: {}, 'form.artistId': '', 'form.appointmentTime': originalTime, - conflictTip: `${availability.tip || '新员工当前排班无法承接'},预约已保持待分配`, + conflictTip: `${availability.tip || '新美甲师当前排班无法承接'},预约已保持待分配`, conflictLevel: 'danger' }) } @@ -1053,7 +1053,7 @@ Page({ ...buildTimeWheelState(timePickerSlots, form.appointmentTime), timeError: '', timeLoading: false, - timeSelectTip: '请选择预约时间,员工可稍后分配' + timeSelectTip: '请选择预约时间,美甲师可稍后分配' }) return } @@ -1187,7 +1187,7 @@ Page({ return { ok: false, tip } } if (!form.artistId) { - const tip = '预约将保存为待分配,当前不会占用员工时间' + const tip = '预约将保存为待分配,当前不会占用美甲师时间' this.setData({ conflictTip: tip, conflictLevel: 'free' }) return { ok: true, tip } } @@ -1362,7 +1362,7 @@ Page({ const result = await new Promise(resolve => { wx.showModal({ title: '保存为待分配预约', - content: '当前未指定员工,预约会正常保存,但不会占用员工时间。可以稍后在预约详情中分配。', + content: '当前未指定美甲师,预约会正常保存,但不会占用美甲师时间。可以稍后在预约详情中分配。', cancelText: '返回选择', confirmText: '继续保存', success: resolve, diff --git a/JC-Salon-WeChat/pages/appointment-form/index.wxml b/JC-Salon-WeChat/pages/appointment-form/index.wxml index 2a7226b1..510e38a9 100644 --- a/JC-Salon-WeChat/pages/appointment-form/index.wxml +++ b/JC-Salon-WeChat/pages/appointment-form/index.wxml @@ -10,16 +10,18 @@ 美甲款式* - + + + - @@ -39,7 +41,7 @@ - 预约信息员工可暂不分配,之后再安排 + 预约信息美甲师可暂不分配,之后再安排 @@ -50,19 +52,19 @@ ◷ - 预约时间{{appointmentDayLabel}} {{form.appointmentTime}} · {{form.durationMinutes}}分钟{{timeSelectTip}}{{selectedArtist.name || '暂不分配员工'}} + 预约时间{{appointmentDayLabel}} {{form.appointmentTime}} · {{form.durationMinutes}}分钟{{timeSelectTip}}{{selectedArtist.name || '暂不分配美甲师'}} › ♙ - 服务员工{{selectedArtist.name || '请选择员工或暂不分配'}} + 服务美甲师{{selectedArtist.name || '请选择美甲师或暂不分配'}} › - 客户可留空;姓名和手机号都为空时按散客提交 + 客户可留空,留空时系统会生成临时客户以便报表查询 @@ -79,7 +81,7 @@ 时段检查{{conflictTip}} - + @@ -96,7 +98,7 @@ 没有填写名称时,会使用客户姓名;散客预约会使用“散客款式”。 - + diff --git a/JC-Salon-WeChat/pages/appointment-form/index.wxss b/JC-Salon-WeChat/pages/appointment-form/index.wxss index d3ad0102..9003e0e0 100644 --- a/JC-Salon-WeChat/pages/appointment-form/index.wxss +++ b/JC-Salon-WeChat/pages/appointment-form/index.wxss @@ -469,16 +469,13 @@ font-size: 21rpx; } -.link-action { - flex: 0 0 auto; - height: 60rpx; - padding: 0 17rpx; - border: 1rpx solid #d7b38e; - border-radius: 14rpx; - background: #fff7ed; - color: #9f5f2d; - font-size: 22rpx; - line-height: 60rpx; + +.btn-wrap { + flex-shrink: 0; /* 不让按钮被压缩 */ +} +button.link-action { + margin:0; + width:auto; } .style-name-row, @@ -511,6 +508,10 @@ font-size: 23rpx; line-height: 72rpx; } +button.image-action { + margin:0; + width:auto; +} .style-image-preview-row { justify-content: flex-start; diff --git a/JC-Salon-WeChat/pages/appointment-form/unassigned.test.js b/JC-Salon-WeChat/pages/appointment-form/unassigned.test.js index 3af39fa2..1ba9c068 100644 --- a/JC-Salon-WeChat/pages/appointment-form/unassigned.test.js +++ b/JC-Salon-WeChat/pages/appointment-form/unassigned.test.js @@ -49,7 +49,7 @@ async function run() { await page.refreshAvailableTimes() assert.strictEqual(page.data.availableTimeGroups.length > 0, true) - assert.strictEqual(page.data.timeSelectTip, '请选择预约时间,员工可稍后分配') + assert.strictEqual(page.data.timeSelectTip, '请选择预约时间,美甲师可稍后分配') const availability = await page.checkAvailability() assert.strictEqual(availability.ok, true) assert.strictEqual(page.data.conflictTip.includes('待分配'), true) diff --git a/JC-Salon-WeChat/pages/artist-transfer/index.js b/JC-Salon-WeChat/pages/artist-transfer/index.js index 751d41a6..51d28295 100644 --- a/JC-Salon-WeChat/pages/artist-transfer/index.js +++ b/JC-Salon-WeChat/pages/artist-transfer/index.js @@ -87,7 +87,7 @@ Page({ .filter(item => !keyword || String(item.name || '').toLowerCase().includes(keyword)) .map(item => ({ ...item, - title: item.name || '未命名员工', + title: item.name || '未命名美甲师', subtitle: item.statusText || '可用于改派', meta: item.workStartTime && item.workEndTime ? `${item.workStartTime.slice(0, 5)}-${item.workEndTime.slice(0, 5)}` : '', avatar: item.avatar || item.avatarUrl || '/assets/images/default-user-avatar.png' diff --git a/JC-Salon-WeChat/pages/artist-transfer/index.json b/JC-Salon-WeChat/pages/artist-transfer/index.json index a29d5ac5..18a3bfc8 100644 --- a/JC-Salon-WeChat/pages/artist-transfer/index.json +++ b/JC-Salon-WeChat/pages/artist-transfer/index.json @@ -1,5 +1,5 @@ { - "navigationBarTitleText": "改派员工", + "navigationBarTitleText": "改派美甲师", "usingComponents": { "entity-selector-sheet": "/components/entity-selector-sheet/index" } diff --git a/JC-Salon-WeChat/pages/artist-transfer/index.wxml b/JC-Salon-WeChat/pages/artist-transfer/index.wxml index 0ee38549..3ce51ae0 100644 --- a/JC-Salon-WeChat/pages/artist-transfer/index.wxml +++ b/JC-Salon-WeChat/pages/artist-transfer/index.wxml @@ -1,10 +1,10 @@ - {{isUnassigned ? '分配员工' : '改派员工'}} + {{isUnassigned ? '分配美甲师' : '改派美甲师'}} - {{selectedArtist.name || '请选择员工'}} + {{selectedArtist.name || '请选择美甲师'}} {{loadError}} › @@ -26,15 +26,15 @@ ({ ...item, name: item.name || item.nickname || item.account || `员工${item.id}` })) + const normalized = list.map(item => ({ ...item, name: item.name || item.nickname || item.account || `美甲师${item.id}` })) const selected = normalized.find(item => String(item.id) === String(preferredArtistId || this.data.form.artistId)) this.setData({ artists: normalized, artistOptions: normalized.map(item => ({ id: item.id, title: item.name, subtitle: item.phone || '' })), selectedArtistName: selected ? selected.name : '', 'form.artistId': selected ? selected.id : '' }) this.refreshProductOptions() - } catch (error) { wx.showToast({ title: error.message || '员工加载失败', icon: 'none' }) } + } catch (error) { wx.showToast({ title: error.message || '美甲师加载失败', icon: 'none' }) } }, async loadProducts() { this.setData({ loadingProducts: true }); try { const result = await productsApi.list({ page: 1, size: 100 }); const list = result.list || result || []; this.setData({ products: list, productError: '' }); this.refreshProductOptions() } catch (error) { this.setData({ products: [], allProductOptions: [], productOptions: [], productError: error.message || '项目加载失败' }) } finally { this.setData({ loadingProducts: false }) } }, refreshProductOptions() { @@ -35,7 +35,7 @@ Page({ priceText: item.price == null ? '价格待定' : `¥${item.price}`, coverImage: Array.isArray(item.imageUrls) ? item.imageUrls[0] || '' : '', durationText: item.approximateDuration || (item.serviceDurationMinutes ? `${item.serviceDurationMinutes}分钟` : '时长待定'), - artistText: artistIds.length ? artistNames.join('、') || `${artistIds.length}位员工可做` : '全部员工', + artistText: artistIds.length ? artistNames.join('、') || `${artistIds.length}位美甲师可做` : '全部美甲师', tagList: tagList.slice(0, 3) } }) @@ -78,7 +78,7 @@ Page({ selectStatus(e) { this.setData({ 'form.status': Number(e.currentTarget.dataset.status) }) }, async submit() { const form = this.data.form - if (!form.serviceDate || (!form.productId && !form.manualProductTitle) || !form.amount || !form.artistId) { wx.showToast({ title: '请填写项目、金额、日期和员工', icon: 'none' }); return } + if (!form.serviceDate || (!form.productId && !form.manualProductTitle) || !form.amount || !form.artistId) { wx.showToast({ title: '请填写项目、金额、日期和美甲师', icon: 'none' }); return } if (form.phone && !/^1[3-9]\d{9}$/.test(form.phone)) { wx.showToast({ title: '手机号格式不正确', icon: 'none' }); return } this.setData({ submitting: true }) try { await planningApi.createBackfillOrder(form); wx.showToast({ title: '补单已保存', icon: 'success' }); const app = getApp(); app.globalData.planningNeedRefresh = true; setTimeout(() => wx.navigateBack(), 500) } diff --git a/JC-Salon-WeChat/pages/backfill-order/index.wxml b/JC-Salon-WeChat/pages/backfill-order/index.wxml index cb628fa1..39cc5d86 100644 --- a/JC-Salon-WeChat/pages/backfill-order/index.wxml +++ b/JC-Salon-WeChat/pages/backfill-order/index.wxml @@ -1,10 +1,10 @@ - 历史补单不校验员工排班,也不会占用预约时段。 + 历史补单不校验美甲师排班,也不会占用预约时段。 服务日期{{form.serviceDate}} 项目 金额 - 员工{{selectedArtistName || '请选择员工'}} + 美甲师{{selectedArtistName || '请选择美甲师'}} 客户{{form.customerName || '请选择客户(可选)'}} 手机号 服务时间{{form.serviceTime || '时间未记录'}} @@ -14,6 +14,6 @@ 提交后订单会直接进入所选状态,不创建预约占用。 - + diff --git a/JC-Salon-WeChat/pages/employee-create/index.js b/JC-Salon-WeChat/pages/employee-create/index.js index 88afb9de..f2565dec 100644 --- a/JC-Salon-WeChat/pages/employee-create/index.js +++ b/JC-Salon-WeChat/pages/employee-create/index.js @@ -75,7 +75,7 @@ Page({ const password = String(form.password || '').trim() const wechatId = String(form.wechatId || '').trim() if (!nickname || !phone || !account || !password || !wechatId) { - wx.showToast({ title: '请补全员工信息', icon: 'none' }) + wx.showToast({ title: '请补全美甲师信息', icon: 'none' }) return } if (!/^1[3-9]\d{9}$/.test(phone)) { @@ -137,7 +137,7 @@ Page({ eventChannel.emit('employeeCreated', { ...employee, autoSelect, scheduleSaved }) } this.setData({ onboardingVisible: false }) - wx.showToast({ title: scheduleSaved ? '排班已保存' : '员工已新增', icon: 'success' }) + wx.showToast({ title: scheduleSaved ? '排班已保存' : '美甲师已新增', icon: 'success' }) setTimeout(() => wx.navigateBack(), 300) } }) diff --git a/JC-Salon-WeChat/pages/employee-create/index.json b/JC-Salon-WeChat/pages/employee-create/index.json index ad893fc0..095564cb 100644 --- a/JC-Salon-WeChat/pages/employee-create/index.json +++ b/JC-Salon-WeChat/pages/employee-create/index.json @@ -1,3 +1,3 @@ { - "navigationBarTitleText": "新增员工" + "navigationBarTitleText": "新增美甲师" } diff --git a/JC-Salon-WeChat/pages/employee-create/index.wxml b/JC-Salon-WeChat/pages/employee-create/index.wxml index 04144979..61c86396 100644 --- a/JC-Salon-WeChat/pages/employee-create/index.wxml +++ b/JC-Salon-WeChat/pages/employee-create/index.wxml @@ -1,14 +1,14 @@ - 录入员工账号 - {{pickerMode ? '保存后自动选择该员工' : '保存后即可用于预约指定和员工管理'}} + 录入美甲师账号 + {{pickerMode ? '保存后自动选择该美甲师' : '保存后即可用于预约指定和美甲师管理'}} - 员工头像 + 美甲师头像 点击选择图片,可稍后补充 {{avatarUploading ? '上传中' : '更换'}} @@ -18,7 +18,7 @@ 姓名 - + 手机号 @@ -39,14 +39,14 @@ - + ✓ - 员工已创建 - {{pickerMode ? '设置常规排班后,可继续把当前预约分配给该员工。' : '为新员工设置首个常规排班,之后即可正常承接预约。'}} + 美甲师已创建 + {{pickerMode ? '设置常规排班后,可继续把当前预约分配给该美甲师。' : '为新美甲师设置首个常规排班,之后即可正常承接预约。'}} diff --git a/JC-Salon-WeChat/pages/employee-detail/index.json b/JC-Salon-WeChat/pages/employee-detail/index.json index 2e453b1b..d70ce8e6 100644 --- a/JC-Salon-WeChat/pages/employee-detail/index.json +++ b/JC-Salon-WeChat/pages/employee-detail/index.json @@ -1,3 +1,3 @@ { - "navigationBarTitleText": "员工详情" + "navigationBarTitleText": "美甲师详情" } diff --git a/JC-Salon-WeChat/pages/employee-detail/index.wxml b/JC-Salon-WeChat/pages/employee-detail/index.wxml index 4a367743..be9a8833 100644 --- a/JC-Salon-WeChat/pages/employee-detail/index.wxml +++ b/JC-Salon-WeChat/pages/employee-detail/index.wxml @@ -8,7 +8,7 @@ {{employee.shortName}} {{employee.name}} - 员工色 + 美甲师色 diff --git a/JC-Salon-WeChat/pages/employees/index.js b/JC-Salon-WeChat/pages/employees/index.js index 2849368d..dd84b779 100644 --- a/JC-Salon-WeChat/pages/employees/index.js +++ b/JC-Salon-WeChat/pages/employees/index.js @@ -55,7 +55,7 @@ Page({ const summary = await employeesApi.reviewSummary() this.setData({ reviewPendingCount: Number(summary.pendingCount || 0) }) } catch (error) { - // 审核摘要失败不影响员工列表。 + // 审核摘要失败不影响美甲师列表。 } }, @@ -73,7 +73,7 @@ Page({ const data = await employeesApi.reviewApplications() const applications = (Array.isArray(data) ? data : []).map(item => ({ ...item, - applicantNickname: item.applicantNickname || '待审核员工', + applicantNickname: item.applicantNickname || '待审核美甲师', applicantAvatar: item.applicantAvatar || '', applicantMaskedPhone: item.applicantMaskedPhone || '', applicationTimeText: formatApplicationTime(item.createTime) @@ -89,7 +89,7 @@ Page({ async approveApplication(event) { const id = event.currentTarget.dataset.id if (!id || this.data.reviewingId) return - const result = await confirmModal({ title: '通过员工申请', content: '确认允许该员工加入当前门店吗?' }) + const result = await confirmModal({ title: '通过美甲师申请', content: '确认允许该美甲师加入当前门店吗?' }) if (!result.confirm) return await this.submitReview(id, () => employeesApi.approveApplication(id), '申请已通过') }, @@ -98,7 +98,7 @@ Page({ const id = event.currentTarget.dataset.id if (!id || this.data.reviewingId) return const result = await confirmModal({ - title: '驳回员工申请', + title: '驳回美甲师申请', content: '', editable: true, placeholderText: '请输入驳回原因', diff --git a/JC-Salon-WeChat/pages/employees/index.json b/JC-Salon-WeChat/pages/employees/index.json index 7f9040e4..3d2dbf96 100644 --- a/JC-Salon-WeChat/pages/employees/index.json +++ b/JC-Salon-WeChat/pages/employees/index.json @@ -1,3 +1,3 @@ { - "navigationBarTitleText": "员工" + "navigationBarTitleText": "美甲师" } diff --git a/JC-Salon-WeChat/pages/employees/index.wxml b/JC-Salon-WeChat/pages/employees/index.wxml index 9842d82c..34d7ddcd 100644 --- a/JC-Salon-WeChat/pages/employees/index.wxml +++ b/JC-Salon-WeChat/pages/employees/index.wxml @@ -9,7 +9,7 @@ - 员工申请审核仅显示当前门店待处理申请 + 美甲师申请审核仅显示当前门店待处理申请 {{reviewPendingCount}} 项 正在加载申请… @@ -17,7 +17,7 @@ {{reviewError}} - 暂无待审核员工申请 + 暂无待审核美甲师申请 diff --git a/JC-Salon-WeChat/pages/export/index.js b/JC-Salon-WeChat/pages/export/index.js index 68dd38b2..dcf6be69 100644 --- a/JC-Salon-WeChat/pages/export/index.js +++ b/JC-Salon-WeChat/pages/export/index.js @@ -25,7 +25,7 @@ function scheduleSummary(item) { Page({ data: { - types: ['订单数据', '客户数据', '员工数据'], + types: ['订单数据', '客户数据', '美甲师数据'], type: '订单数据', startDate: dateUtil.formatDate(dateUtil.startOfMonth(new Date())), endDate: dateUtil.formatDate(new Date()), @@ -56,7 +56,7 @@ Page({ try { if (this.data.type === '客户数据') { await this.loadCustomerPreview() - } else if (this.data.type === '员工数据') { + } else if (this.data.type === '美甲师数据') { await this.loadEmployeePreview() } else { await this.loadOrderPreview() @@ -117,7 +117,7 @@ Page({ status: Number(item.status) === 0 ? '停用' : '启用' })) this.setData({ - previewColumns: ['员工', '手机号', '排班', '状态'], + previewColumns: ['美甲师', '手机号', '排班', '状态'], previewRows: rows }) }, diff --git a/JC-Salon-WeChat/pages/planning/index.js b/JC-Salon-WeChat/pages/planning/index.js index 8657b17d..b5d8adc7 100644 --- a/JC-Salon-WeChat/pages/planning/index.js +++ b/JC-Salon-WeChat/pages/planning/index.js @@ -14,7 +14,7 @@ function canCreateAppointment() { } function resolveCalendarErrorMessage(error) { - return error && error.message ? error.message : '规划数据加载失败' + return error && error.message ? error.message : '日程数据加载失败' } function toLocalDate(value) { @@ -66,7 +66,7 @@ Page({ currentDate: new Date(), currentDateText: dateUtil.formatDate(new Date()), selectedArtistId: '', - selectedArtistName: '全部员工', + selectedArtistName: '全部美甲师', dateTitle: '', rangeText: '', weekRange: '', @@ -132,7 +132,7 @@ Page({ profileForm: { nickname: missingNickname ? '' : profile.nickname, avatar } }) } catch (error) { - // 资料提醒失败不影响规划数据。 + // 资料提醒失败不影响日程数据。 } const navigatedToReview = await this.showEmployeeReviewNotice() if (!navigatedToReview) { @@ -154,8 +154,8 @@ Page({ app.globalData.reviewNoticeShown = true const result = await new Promise(resolve => { wx.showModal({ - title: '有员工申请待审核', - content: `当前有 ${summary.pendingCount} 条员工加入申请,是否立即处理?`, + title: '有美甲师申请待审核', + content: `当前有 ${summary.pendingCount} 条美甲师加入申请,是否立即处理?`, cancelText: '稍后处理', confirmText: '立即审核', success: resolve, @@ -233,7 +233,7 @@ Page({ const artist = this.data.artists.find(item => String(item.id) === String(id)) this.setData({ selectedArtistId: id, - selectedArtistName: artist ? artist.name : '全部员工' + selectedArtistName: artist ? artist.name : '全部美甲师' }) this.loadCalendar() }, @@ -306,9 +306,9 @@ Page({ this.setData({ calendarError: resolveCalendarErrorMessage(error), selectedArtistId: '', - selectedArtistName: '全部员工' + selectedArtistName: '全部美甲师' }) - wx.showToast({ title: '规划数据加载失败', icon: 'none' }) + wx.showToast({ title: '日程数据加载失败', icon: 'none' }) }).finally(() => { if (requestId === this._calendarRequestId) this.setData({ loading: false }) if (this._calendarInflight && this._calendarInflight.promise === promise) { @@ -565,7 +565,7 @@ Page({ currentDate: toLocalDate(target), currentDateText: target, selectedArtistId: '', - selectedArtistName: '全部员工' + selectedArtistName: '全部美甲师' }) this.loadCalendar() }, diff --git a/JC-Salon-WeChat/pages/planning/index.json b/JC-Salon-WeChat/pages/planning/index.json index f242cbd3..13a0b2a4 100644 --- a/JC-Salon-WeChat/pages/planning/index.json +++ b/JC-Salon-WeChat/pages/planning/index.json @@ -1,3 +1,3 @@ { - "navigationBarTitleText": "规划" + "navigationBarTitleText": "日程" } diff --git a/JC-Salon-WeChat/pages/planning/index.test.js b/JC-Salon-WeChat/pages/planning/index.test.js index d92ca181..c78ad9cd 100644 --- a/JC-Salon-WeChat/pages/planning/index.test.js +++ b/JC-Salon-WeChat/pages/planning/index.test.js @@ -59,7 +59,7 @@ async function run() { page.data.viewMode = 'month' page.data.monthDisplayMode = 'count' const monthDays = definition.buildMonthDays.call(page, { - artists: [{ id: 1, name: '员工', shortName: '员', color: '#000' }], + artists: [{ id: 1, name: '美甲师', shortName: '员', color: '#000' }], daySummaries: [{ date: dateUtil.formatDate(dateUtil.startOfMonth(page.data.currentDateText)), totalCount: 2, unassignedCount: 1, artistCounts: [] }] }) assert.strictEqual(monthDays.length, 42) @@ -69,7 +69,7 @@ async function run() { const dayState = dayPage.buildDayView({ businessStartTime: '10:00', businessEndTime: '22:00', - artists: [{ id: 1, name: '员工', color: '#000' }], + artists: [{ id: 1, name: '美甲师', color: '#000' }], appointments: [{ orderItemId: 8, date: '2026-10-12', startTime: '2026-10-12 14:00:00', durationMinutes: 60, artistId: null }] }) assert.strictEqual(dayState.dayLanes[0].artistId, '__unassigned__') diff --git a/JC-Salon-WeChat/pages/planning/index.wxml b/JC-Salon-WeChat/pages/planning/index.wxml index dd656101..8fcf8548 100644 --- a/JC-Salon-WeChat/pages/planning/index.wxml +++ b/JC-Salon-WeChat/pages/planning/index.wxml @@ -21,7 +21,7 @@ {{item.label}} - 全部员工 + 全部美甲师 {{item.name}} @@ -30,7 +30,7 @@ - 有 {{rangeUnassignedCount}} 个预约待分配员工 + 有 {{rangeUnassignedCount}} 个预约待分配美甲师 立即处理 › @@ -49,7 +49,7 @@ - 规划数据加载失败 + 日程数据加载失败 {{calendarError}} @@ -71,7 +71,7 @@ {{freeArtistCount}} - 可插单员工 + 可插单美甲师 {{pendingCount}} diff --git a/JC-Salon-WeChat/pages/profile/index.wxml b/JC-Salon-WeChat/pages/profile/index.wxml index 518dfc01..589376b8 100644 --- a/JC-Salon-WeChat/pages/profile/index.wxml +++ b/JC-Salon-WeChat/pages/profile/index.wxml @@ -34,7 +34,7 @@ {{overview.availableEmployees}} - 今日可预约员工 + 今日可预约美甲师 {{overview.scheduleExceptions}} diff --git a/JC-Salon-WeChat/pages/schedule-setting/index.wxml b/JC-Salon-WeChat/pages/schedule-setting/index.wxml index 1468fd78..33ade346 100644 --- a/JC-Salon-WeChat/pages/schedule-setting/index.wxml +++ b/JC-Salon-WeChat/pages/schedule-setting/index.wxml @@ -1,7 +1,7 @@ 首次排班设置 - {{appointmentContextText ? '待承接预约:' + appointmentContextText : '保存常规排班后,员工即可开始承接预约。'}} + {{appointmentContextText ? '待承接预约:' + appointmentContextText : '保存常规排班后,美甲师即可开始承接预约。'}} 常规排班 diff --git a/JC-Salon-WeChat/pages/shop-settings/index.js b/JC-Salon-WeChat/pages/shop-settings/index.js index 07fde0e0..7cd3ab61 100644 --- a/JC-Salon-WeChat/pages/shop-settings/index.js +++ b/JC-Salon-WeChat/pages/shop-settings/index.js @@ -18,7 +18,7 @@ Page({ explainBookingRule() { wx.showModal({ title: '预约规则', - content: '这是店铺给员工看的预约备注或说明文案,不参与自动排班、容量或冲突校验。', + content: '这是店铺给美甲师看的预约备注或说明文案,不参与自动排班、容量或冲突校验。', showCancel: false, confirmText: '知道了' }) diff --git a/JC-Salon-WeChat/project.config.json b/JC-Salon-WeChat/project.config.json index 033251b7..b151e7df 100644 --- a/JC-Salon-WeChat/project.config.json +++ b/JC-Salon-WeChat/project.config.json @@ -34,7 +34,7 @@ } }, "condition": {}, - "projectname": "甲屿店务", + "projectname": "甲屿手纪", "simulatorType": "wechat", "simulatorPluginLibVersion": {}, "editorSetting": {}, diff --git a/JC-Salon-WeChat/utils/config.js b/JC-Salon-WeChat/utils/config.js index a8ca6b45..d1023a90 100644 --- a/JC-Salon-WeChat/utils/config.js +++ b/JC-Salon-WeChat/utils/config.js @@ -139,7 +139,7 @@ const DEVELOP_TARGET = Object.prototype.hasOwnProperty.call(localOverride, 'deve const BASE_DOMAIN = resolveDomain(DOMAIN_MAP, ENV_VERSION, DEVELOP_TARGET) const brandOverride = localOverride.brand || {} const BRAND_CONFIG = { - appName: String(brandOverride.appName || '甲屿店务'), + appName: String(brandOverride.appName || '甲屿手纪'), productName: String(brandOverride.productName || 'Salon'), defaultShopName: String(brandOverride.defaultShopName || 'Salon'), registerShopPlaceholder: String(brandOverride.registerShopPlaceholder || '例如:Salon中心店') diff --git a/JC-Salon-WeChat/utils/config.local.example.js b/JC-Salon-WeChat/utils/config.local.example.js index cde2091c..20fe4bde 100644 --- a/JC-Salon-WeChat/utils/config.local.example.js +++ b/JC-Salon-WeChat/utils/config.local.example.js @@ -3,7 +3,7 @@ module.exports = { requestTimeout: 10000, enableRequestSigning: true, brand: { - appName: '甲屿店务', + appName: '甲屿手纪', productName: 'Salon', defaultShopName: 'Salon', registerShopPlaceholder: '例如:Salon中心店'