提交 Salon 小程序现有调整
This commit is contained in:
@@ -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"
|
||||
},
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<view wx:else class="product-selector-list">
|
||||
<view wx:for="{{items}}" wx:key="id" class="product-selector-item {{selectedId == item.id ? 'selected' : ''}}" data-index="{{index}}" bindtap="selectItem">
|
||||
<image wx:if="{{item.coverImage}}" class="product-selector-cover" src="{{item.coverImage}}" mode="aspectFill"></image><view wx:else class="product-selector-cover placeholder">图</view>
|
||||
<view class="product-selector-copy"><view class="product-selector-name-row"><text class="product-selector-name">{{item.title}}</text><text class="product-selector-price">{{item.priceText || (item.price == null ? '价格待定' : '¥' + item.price)}}</text></view><text class="product-selector-meta">{{item.durationText || '时长待定'}} · {{item.artistText || '全部员工'}}</text><view class="product-selector-tags"><text wx:for="{{item.tagList}}" wx:for-item="tag" wx:key="*this">{{tag}}</text></view></view><text class="product-selector-check">{{selectedId == item.id ? '✓' : '›'}}</text>
|
||||
<view class="product-selector-copy"><view class="product-selector-name-row"><text class="product-selector-name">{{item.title}}</text><text class="product-selector-price">{{item.priceText || (item.price == null ? '价格待定' : '¥' + item.price)}}</text></view><text class="product-selector-meta">{{item.durationText || '时长待定'}} · {{item.artistText || '全部美甲师'}}</text><view class="product-selector-tags"><text wx:for="{{item.tagList}}" wx:for-item="tag" wx:key="*this">{{tag}}</text></view></view><text class="product-selector-check">{{selectedId == item.id ? '✓' : '›'}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
|
||||
@@ -6,6 +6,6 @@
|
||||
</view>
|
||||
<view class="card about-list">
|
||||
<view class="row between"><text>版本</text><text class="muted">0.0.1</text></view>
|
||||
<view class="row between"><text>定位</text><text class="muted">规划 / 客户 / 员工 / 我的</text></view>
|
||||
<view class="row between"><text>定位</text><text class="muted">日程 / 客户 / 美甲师 / 我的</text></view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<view class="card phone-card">
|
||||
<view class="section-title">手机号</view>
|
||||
<view class="phone-status"><text>{{profile.phoneVerified == 1 ? (profile.maskedPhone || profile.phone) : '尚未绑定'}}</text><text class="status-tag {{profile.phoneVerified == 1 ? 'done' : ''}}">{{profile.phoneVerified == 1 ? '已验证' : '待绑定'}}</text></view>
|
||||
<button class="wechat-phone-btn" open-type="getPhoneNumber" loading="{{binding}}" bindgetphonenumber="bindWechatPhone">微信一键{{profile.phoneVerified == 1 ? '更换' : '绑定'}}</button>
|
||||
<button class="wechat-phone-btn" open-type="getPhoneNumber" loading="{{binding}}" bindgetphonenumber="bindWechatPhone">快速{{profile.phoneVerified == 1 ? '更换' : '绑定'}}手机号</button>
|
||||
<view class="sms-entry" bindtap="toggleSms"><text>{{profile.phoneVerified == 1 ? '使用短信验证码更换' : '使用短信验证码绑定'}}</text><text class="sms-arrow {{smsExpanded ? 'expanded' : ''}}">›</text></view>
|
||||
<view wx:if="{{smsExpanded}}" class="sms-panel">
|
||||
<view class="field"><input value="{{smsForm.phone}}" data-field="phone" bindinput="onInput" type="number" maxlength="11" placeholder="请输入手机号" /></view>
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<view class="detail-actions">
|
||||
<text wx:if="{{appointment.historicalBackfill}}" class="tag">历史补单 · {{appointment.statusText}}</text>
|
||||
<text wx:else class="tag">{{appointment.statusText}}</text>
|
||||
<button wx:if="{{!appointment.historicalBackfill}}" class="small-action" bindtap="goTransfer">{{isUnassigned ? '分配员工' : '改派'}}</button>
|
||||
<button wx:if="{{!appointment.historicalBackfill}}" class="small-action" bindtap="goTransfer">{{isUnassigned ? '分配美甲师' : '改派'}}</button>
|
||||
</view>
|
||||
</view>
|
||||
<view class="detail-grid">
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -10,16 +10,18 @@
|
||||
<view class="card form-card style-section">
|
||||
<view class="section-heading">
|
||||
<view class="section-title-row"><text class="section-title-main">美甲款式</text><text class="required-mark">*</text></view>
|
||||
<button class="link-action" bindtap="openProductModal">{{form.productId ? '更换款式' : '选择已有'}}</button>
|
||||
<view class="btn-wrap">
|
||||
<button class="link-action" bindtap="openProductModal">款式库</button>
|
||||
</view>
|
||||
</view>
|
||||
<button wx:if="{{!form.productId}}" class="field-card appointment-field-card" bindtap="openManualProduct">
|
||||
<button wx:if="{{!form.productId}}" class="field-card appointment-field-card full" bindtap="openManualProduct">
|
||||
<image wx:if="{{form.manualProductImageUrl}}" class="field-icon style-entry-image" src="{{form.manualProductImageUrl}}" mode="aspectFill"></image>
|
||||
<view wx:else class="field-icon">✦</view>
|
||||
<view class="field-text">
|
||||
<text class="field-label">手动录入为主,提交预约后自动加入作品库</text>
|
||||
<text wx:if="{{form.manualProductTitle}}" class="field-value">{{form.manualProductTitle}}</text>
|
||||
<text wx:elif="{{form.manualProductImageUrl}}" class="field-value">已添加款式图片</text>
|
||||
<text wx:else class="field-value placeholder">填写款式名称或添加图片</text>
|
||||
<text class="field-label">点击可手动录入,提交预约后自动加入款式库</text>
|
||||
</view>
|
||||
<text class="chevron">›</text>
|
||||
</button>
|
||||
@@ -39,7 +41,7 @@
|
||||
|
||||
<view class="card form-card appointment-info-section">
|
||||
<view class="section-heading">
|
||||
<view><text class="section-title-main">预约信息</text><text class="section-caption">员工可暂不分配,之后再安排</text></view>
|
||||
<view><text class="section-title-main">预约信息</text><text class="section-caption">美甲师可暂不分配,之后再安排</text></view>
|
||||
</view>
|
||||
<picker mode="date" value="{{form.appointmentDate}}" bindchange="onDateChange">
|
||||
<view class="field-card appointment-field-card">
|
||||
@@ -50,19 +52,19 @@
|
||||
</picker>
|
||||
<view class="field-card appointment-field-card" bindtap="openTimeSheet">
|
||||
<view class="field-icon">◷</view>
|
||||
<view class="field-text"><text class="field-label">预约时间</text><text wx:if="{{form.appointmentTime}}" class="field-value">{{appointmentDayLabel}} {{form.appointmentTime}} · {{form.durationMinutes}}分钟</text><text wx:else class="field-value placeholder">{{timeSelectTip}}</text><text wx:if="{{form.appointmentTime}}" class="field-meta">{{selectedArtist.name || '暂不分配员工'}}</text></view>
|
||||
<view class="field-text"><text class="field-label">预约时间</text><text wx:if="{{form.appointmentTime}}" class="field-value">{{appointmentDayLabel}} {{form.appointmentTime}} · {{form.durationMinutes}}分钟</text><text wx:else class="field-value placeholder">{{timeSelectTip}}</text><text wx:if="{{form.appointmentTime}}" class="field-meta">{{selectedArtist.name || '暂不分配美甲师'}}</text></view>
|
||||
<text class="chevron">›</text>
|
||||
</view>
|
||||
<view class="field-card appointment-field-card" bindtap="openArtistSheet">
|
||||
<view class="field-icon">♙</view>
|
||||
<view class="field-text"><text class="field-label">服务员工</text><text class="field-value {{selectedArtist.name ? '' : 'placeholder'}}">{{selectedArtist.name || '请选择员工或暂不分配'}}</text></view>
|
||||
<view class="field-text"><text class="field-label">服务美甲师</text><text class="field-value {{selectedArtist.name ? '' : 'placeholder'}}">{{selectedArtist.name || '请选择美甲师或暂不分配'}}</text></view>
|
||||
<text class="chevron">›</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="card form-card customer-section">
|
||||
<view class="section-heading">
|
||||
<view><text class="section-title-main">客户</text><text class="section-caption">可留空;姓名和手机号都为空时按散客提交</text></view>
|
||||
<view><text class="section-title-main">客户</text><text class="section-caption">可留空,留空时系统会生成临时客户以便报表查询</text></view>
|
||||
</view>
|
||||
<view class="customer-entry">
|
||||
<view class="customer-fields">
|
||||
@@ -79,7 +81,7 @@
|
||||
<view wx:if="{{conflictTip}}" class="availability-tip card {{conflictLevel}}"><text class="tip-title">时段检查</text><text class="tip-text">{{conflictTip}}</text></view>
|
||||
|
||||
<entity-selector-sheet visible="{{customerSheetVisible}}" title="选择客户" keyword="{{customerKeyword}}" placeholder="搜索客户姓名或手机号" items="{{customerOptions}}" selected-id="{{form.customerUserId}}" loading="{{customerLoading}}" error-text="{{customerError}}" empty-text="暂无匹配客户" show-view-switch="{{true}}" view-mode="{{customerViewMode}}" sort-label="{{customerNewestFirst ? '最新添加' : '最早添加'}}" bind:search="onCustomerSearch" bind:select="selectCustomer" bind:retry="retryCustomerSearch" bind:changeview="changeCustomerView" bind:sort="toggleCustomerSort" bind:close="closeCustomerSheet" />
|
||||
<entity-selector-sheet visible="{{artistSheetVisible}}" title="选择员工" keyword="{{artistKeyword}}" placeholder="搜索员工姓名" items="{{artistSelectorItems}}" selected-id="{{form.artistId}}" loading="{{false}}" error-text="{{artistError}}" empty-text="暂无匹配员工" action-text="快速新增员工" bind:search="onArtistSearch" bind:select="selectArtist" bind:retry="retryArtists" bind:action="addEmployeeFromSelector" bind:close="closeArtistSheet" />
|
||||
<entity-selector-sheet visible="{{artistSheetVisible}}" title="选择美甲师" keyword="{{artistKeyword}}" placeholder="搜索美甲师姓名" items="{{artistSelectorItems}}" selected-id="{{form.artistId}}" loading="{{false}}" error-text="{{artistError}}" empty-text="暂无匹配美甲师" action-text="快速新增美甲师" bind:search="onArtistSearch" bind:select="selectArtist" bind:retry="retryArtists" bind:action="addEmployeeFromSelector" bind:close="closeArtistSheet" />
|
||||
<product-selector-sheet visible="{{productModalVisible}}" mode="list" title="选择已有款式" keyword="{{productKeyword}}" placeholder="搜索款式、标签、美甲师" items="{{filteredProducts}}" selected-id="{{form.productId}}" loading="{{loadingProducts}}" error-text="{{productError}}" empty-text="暂无匹配款式" show-manual-action="{{true}}" bind:search="onProductSearch" bind:select="selectProduct" bind:openmanual="openManualProduct" bind:retry="loadOptions" bind:close="closeProductModal" />
|
||||
|
||||
<view wx:if="{{manualProductSheetVisible}}" class="modal-mask manual-product-mask" bindtap="closeManualProduct" catchtouchmove="stopTouchMove">
|
||||
@@ -96,7 +98,7 @@
|
||||
</view>
|
||||
<text class="manual-style-hint">没有填写名称时,会使用客户姓名;散客预约会使用“散客款式”。</text>
|
||||
</scroll-view>
|
||||
<view class="manual-style-footer"><button class="manual-style-confirm" bindtap="confirmManualProduct">用于本次预约</button><button class="manual-style-library-link" bindtap="openProductModal">选择已有作品</button></view>
|
||||
<view class="manual-style-footer"><button class="manual-style-confirm" bindtap="confirmManualProduct">用于本次预约</button><button class="manual-style-library-link" bindtap="openProductModal">从款式库中选择</button></view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "改派员工",
|
||||
"navigationBarTitleText": "改派美甲师",
|
||||
"usingComponents": {
|
||||
"entity-selector-sheet": "/components/entity-selector-sheet/index"
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<view class="page no-tab">
|
||||
<view class="card form-card section">
|
||||
<view class="field">
|
||||
<text class="field-label required">{{isUnassigned ? '分配员工' : '改派员工'}}</text>
|
||||
<text class="field-label required">{{isUnassigned ? '分配美甲师' : '改派美甲师'}}</text>
|
||||
<view class="field-value transfer-reference" bindtap="openArtistSheet">
|
||||
<view>
|
||||
<text>{{selectedArtist.name || '请选择员工'}}</text>
|
||||
<text>{{selectedArtist.name || '请选择美甲师'}}</text>
|
||||
<text wx:if="{{loadError}}" class="transfer-error">{{loadError}}</text>
|
||||
</view>
|
||||
<text class="transfer-arrow">›</text>
|
||||
@@ -26,15 +26,15 @@
|
||||
|
||||
<entity-selector-sheet
|
||||
visible="{{artistSheetVisible}}"
|
||||
title="{{isUnassigned ? '选择分配员工' : '选择改派员工'}}"
|
||||
title="{{isUnassigned ? '选择分配美甲师' : '选择改派美甲师'}}"
|
||||
keyword="{{artistKeyword}}"
|
||||
placeholder="搜索员工姓名"
|
||||
placeholder="搜索美甲师姓名"
|
||||
items="{{artistItems}}"
|
||||
selected-id="{{selectedArtistId}}"
|
||||
loading="{{false}}"
|
||||
error-text="{{loadError}}"
|
||||
empty-text="暂无可选员工"
|
||||
action-text="快速新增员工"
|
||||
empty-text="暂无可选美甲师"
|
||||
action-text="快速新增美甲师"
|
||||
bind:search="onArtistSearch"
|
||||
bind:select="selectArtist"
|
||||
bind:retry="retryArtists"
|
||||
|
||||
@@ -16,11 +16,11 @@ Page({
|
||||
try {
|
||||
const result = await employeesApi.list({ page: 1, size: 100 })
|
||||
const list = result.list || result || []
|
||||
const normalized = list.map(item => ({ ...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) }
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<view class="page no-tab">
|
||||
<view class="card form-card">
|
||||
<view class="page-hint">历史补单不校验员工排班,也不会占用预约时段。</view>
|
||||
<view class="page-hint">历史补单不校验美甲师排班,也不会占用预约时段。</view>
|
||||
<view class="field"><text class="field-label required">服务日期</text><picker mode="date" value="{{form.serviceDate}}" bindchange="onDateChange"><view class="field-value">{{form.serviceDate}}</view></picker></view>
|
||||
<view class="field product-field" bindtap="openProductSelector"><text class="field-label required">项目</text><button class="product-picker-button" bindtap="openProductSelector"><text>{{selectedProductTitle || form.manualProductTitle || '选择项目'}}</text><text wx:if="{{selectedProductPriceText}}" class="selected-amount">参考价 {{selectedProductPriceText}}</text><text class="product-picker-arrow">›</text></button></view>
|
||||
<view class="field"><text class="field-label required">金额</text><input type="digit" value="{{form.amount}}" data-field="amount" bindinput="onInput" placeholder="请输入实际金额" /></view>
|
||||
<view class="field"><text class="field-label required">员工</text><view class="field-value" bindtap="openArtistSelector">{{selectedArtistName || '请选择员工'}}</view></view>
|
||||
<view class="field"><text class="field-label required">美甲师</text><view class="field-value" bindtap="openArtistSelector">{{selectedArtistName || '请选择美甲师'}}</view></view>
|
||||
<view class="field"><text class="field-label">客户</text><view class="field-value" bindtap="openCustomerSelector">{{form.customerName || '请选择客户(可选)'}}</view><input value="{{form.customerName}}" data-field="customerName" bindinput="onCustomerNameInput" placeholder="或填写散客姓名" /></view>
|
||||
<view class="field"><text class="field-label">手机号</text><input type="number" maxlength="11" value="{{form.phone}}" data-field="phone" bindinput="onInput" placeholder="选填" /></view>
|
||||
<view class="field"><text class="field-label">服务时间</text><picker mode="time" value="{{form.serviceTime}}" bindchange="onTimeChange"><view class="field-value">{{form.serviceTime || '时间未记录'}}</view></picker></view>
|
||||
@@ -14,6 +14,6 @@
|
||||
<view class="card submit-tip">提交后订单会直接进入所选状态,不创建预约占用。</view>
|
||||
<button class="primary-btn" loading="{{submitting}}" disabled="{{submitting}}" bindtap="submit">保存历史补单</button>
|
||||
<product-selector-sheet visible="{{productSelectorVisible}}" mode="{{productSelectorMode}}" title="选择项目" keyword="{{productKeyword}}" placeholder="搜索项目名称" items="{{productOptions}}" selected-id="{{form.productId}}" loading="{{loadingProducts}}" error-text="{{productError}}" empty-text="暂无项目" manual-form="{{manualProductDraft}}" show-manual-extra="{{false}}" bind:search="searchProducts" bind:select="selectProduct" bind:openmanual="openManualProduct" bind:backtolist="backToProductList" bind:manualinput="onManualProductInput" bind:togglemore="toggleManualProductMore" bind:confirmmanual="useManualProduct" bind:close="closeProductSelector" bind:retry="loadProducts" />
|
||||
<entity-selector-sheet visible="{{artistSelectorVisible}}" title="选择员工" keyword="{{artistKeyword}}" placeholder="搜索员工姓名" items="{{artistOptions}}" selected-id="{{form.artistId}}" loading="{{loadingArtists}}" error-text="{{artistError}}" empty-text="暂无可选员工" bind:search="searchArtists" bind:select="selectArtist" bind:retry="loadArtists" bind:close="closeArtistSelector" />
|
||||
<entity-selector-sheet visible="{{artistSelectorVisible}}" title="选择美甲师" keyword="{{artistKeyword}}" placeholder="搜索美甲师姓名" items="{{artistOptions}}" selected-id="{{form.artistId}}" loading="{{loadingArtists}}" error-text="{{artistError}}" empty-text="暂无可选美甲师" bind:search="searchArtists" bind:select="selectArtist" bind:retry="loadArtists" bind:close="closeArtistSelector" />
|
||||
<entity-selector-sheet visible="{{customerSelectorVisible}}" title="选择客户" keyword="{{customerKeyword}}" placeholder="搜索客户姓名或手机号" items="{{customerOptions}}" selected-id="{{form.customerUserId}}" loading="{{loadingCustomers}}" error-text="{{customerError}}" empty-text="暂无客户,可留空记为散客" action-text="按散客记录" bind:search="searchCustomers" bind:select="selectCustomer" bind:retry="loadCustomers" bind:action="useWalkIn" bind:close="closeCustomerSelector" />
|
||||
</view>
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"navigationBarTitleText": "新增员工"
|
||||
"navigationBarTitleText": "新增美甲师"
|
||||
}
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
<view class="page no-tab employee-create-page">
|
||||
<view class="create-intro">
|
||||
<text class="create-title">录入员工账号</text>
|
||||
<text class="create-subtitle">{{pickerMode ? '保存后自动选择该员工' : '保存后即可用于预约指定和员工管理'}}</text>
|
||||
<text class="create-title">录入美甲师账号</text>
|
||||
<text class="create-subtitle">{{pickerMode ? '保存后自动选择该美甲师' : '保存后即可用于预约指定和美甲师管理'}}</text>
|
||||
</view>
|
||||
|
||||
<view class="card avatar-card" bindtap="chooseAvatar">
|
||||
<image wx:if="{{form.avatarUrl}}" class="avatar-preview" src="{{form.avatarUrl}}" mode="aspectFill"></image>
|
||||
<image wx:else class="avatar-preview" src="/assets/images/default-user-avatar.png" mode="aspectFit"></image>
|
||||
<view class="avatar-copy">
|
||||
<text class="avatar-title">员工头像</text>
|
||||
<text class="avatar-title">美甲师头像</text>
|
||||
<text class="avatar-tip">点击选择图片,可稍后补充</text>
|
||||
</view>
|
||||
<text class="avatar-action">{{avatarUploading ? '上传中' : '更换'}}</text>
|
||||
@@ -18,7 +18,7 @@
|
||||
<view class="card form-card create-form">
|
||||
<view class="field">
|
||||
<text class="field-label required">姓名</text>
|
||||
<input value="{{form.nickname}}" data-field="nickname" bindinput="onInput" placeholder="请输入员工姓名" />
|
||||
<input value="{{form.nickname}}" data-field="nickname" bindinput="onInput" placeholder="请输入美甲师姓名" />
|
||||
</view>
|
||||
<view class="field">
|
||||
<text class="field-label required">手机号</text>
|
||||
@@ -39,14 +39,14 @@
|
||||
</view>
|
||||
|
||||
<view class="fixed-bottom">
|
||||
<button class="primary-btn" loading="{{creating}}" disabled="{{avatarUploading || creating}}" bindtap="submit">保存员工</button>
|
||||
<button class="primary-btn" loading="{{creating}}" disabled="{{avatarUploading || creating}}" bindtap="submit">保存美甲师</button>
|
||||
</view>
|
||||
|
||||
<view wx:if="{{onboardingVisible}}" class="onboarding-mask" catchtouchmove="stopTouchMove">
|
||||
<view class="onboarding-card">
|
||||
<view class="onboarding-icon">✓</view>
|
||||
<text class="onboarding-title">员工已创建</text>
|
||||
<text class="onboarding-desc">{{pickerMode ? '设置常规排班后,可继续把当前预约分配给该员工。' : '为新员工设置首个常规排班,之后即可正常承接预约。'}}</text>
|
||||
<text class="onboarding-title">美甲师已创建</text>
|
||||
<text class="onboarding-desc">{{pickerMode ? '设置常规排班后,可继续把当前预约分配给该美甲师。' : '为新美甲师设置首个常规排班,之后即可正常承接预约。'}}</text>
|
||||
<button class="primary-btn onboarding-primary" bindtap="setupFirstSchedule">{{pickerMode ? '设置排班并分配' : '立即设置排班'}}</button>
|
||||
<button class="onboarding-skip" bindtap="skipFirstSchedule">{{pickerMode ? '暂不设置' : '稍后设置'}}</button>
|
||||
</view>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"navigationBarTitleText": "员工详情"
|
||||
"navigationBarTitleText": "美甲师详情"
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<view class="avatar" style="background: {{employee.color}};">{{employee.shortName}}</view>
|
||||
<view>
|
||||
<text class="employee-name">{{employee.name}}</text>
|
||||
<text class="tag" style="background: {{employee.color}}; color: #fff;">员工色</text>
|
||||
<text class="tag" style="background: {{employee.color}}; color: #fff;">美甲师色</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
@@ -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: '请输入驳回原因',
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"navigationBarTitleText": "员工"
|
||||
"navigationBarTitleText": "美甲师"
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
<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>
|
||||
<view><text class="review-title">美甲师申请审核</text><text class="review-subtitle">仅显示当前门店待处理申请</text></view>
|
||||
<text class="review-count">{{reviewPendingCount}} 项</text>
|
||||
</view>
|
||||
<view wx:if="{{reviewLoading}}" class="review-state">正在加载申请…</view>
|
||||
@@ -17,7 +17,7 @@
|
||||
<text>{{reviewError}}</text>
|
||||
<button class="secondary-btn review-retry" bindtap="loadReviewApplications">重试</button>
|
||||
</view>
|
||||
<view wx:elif="{{reviewApplications.length === 0}}" class="review-state">暂无待审核员工申请</view>
|
||||
<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"></image>
|
||||
|
||||
@@ -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
|
||||
})
|
||||
},
|
||||
|
||||
@@ -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()
|
||||
},
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"navigationBarTitleText": "规划"
|
||||
"navigationBarTitleText": "日程"
|
||||
}
|
||||
|
||||
@@ -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__')
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<view wx:for="{{viewModes}}" wx:key="value" class="segment {{viewMode === item.value ? 'active' : ''}}" data-mode="{{item.value}}" bindtap="switchView">{{item.label}}</view>
|
||||
</view>
|
||||
<scroll-view class="artist-filter" scroll-x enable-flex>
|
||||
<view class="artist-chip {{!selectedArtistId ? 'active' : ''}}" data-id="" bindtap="selectArtist">全部员工</view>
|
||||
<view class="artist-chip {{!selectedArtistId ? 'active' : ''}}" data-id="" bindtap="selectArtist">全部美甲师</view>
|
||||
<view wx:for="{{artists}}" wx:key="id" class="artist-chip {{selectedArtistId == item.id ? 'active' : ''}}" data-id="{{item.id}}" bindtap="selectArtist">
|
||||
<view class="chip-dot" style="background: {{item.color}};"></view>
|
||||
<text>{{item.name}}</text>
|
||||
@@ -30,7 +30,7 @@
|
||||
</scroll-view>
|
||||
<view wx:if="{{!selectedArtistId && rangeUnassignedCount > 0}}" class="unassigned-notice" bindtap="openNearestUnassigned">
|
||||
<view class="chip-dot unassigned-dot"></view>
|
||||
<text>有 {{rangeUnassignedCount}} 个预约待分配员工</text>
|
||||
<text>有 {{rangeUnassignedCount}} 个预约待分配美甲师</text>
|
||||
<text class="unassigned-link">立即处理 ›</text>
|
||||
</view>
|
||||
</view>
|
||||
@@ -49,7 +49,7 @@
|
||||
|
||||
<view wx:if="{{calendarError}}" class="calendar-error-card">
|
||||
<view class="calendar-error-copy">
|
||||
<text class="calendar-error-title">规划数据加载失败</text>
|
||||
<text class="calendar-error-title">日程数据加载失败</text>
|
||||
<text class="calendar-error-message">{{calendarError}}</text>
|
||||
</view>
|
||||
<button class="calendar-error-action" bindtap="loadCalendar">重试</button>
|
||||
@@ -71,7 +71,7 @@
|
||||
</view>
|
||||
<view class="summary-item card">
|
||||
<text class="summary-value">{{freeArtistCount}}</text>
|
||||
<text class="summary-label">可插单员工</text>
|
||||
<text class="summary-label">可插单美甲师</text>
|
||||
</view>
|
||||
<view class="summary-item card">
|
||||
<text class="summary-value">{{pendingCount}}</text>
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
</view>
|
||||
<view class="overview-item">
|
||||
<text class="overview-value">{{overview.availableEmployees}}</text>
|
||||
<text class="overview-label">今日可预约员工</text>
|
||||
<text class="overview-label">今日可预约美甲师</text>
|
||||
</view>
|
||||
<view class="overview-item overview-item--warning" data-action="scheduleExceptions" bindtap="goOverviewAction">
|
||||
<text class="overview-value">{{overview.scheduleExceptions}}</text>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<view class="page no-tab">
|
||||
<view wx:if="{{onboarding}}" class="onboarding-context card">
|
||||
<text class="onboarding-context-title">首次排班设置</text>
|
||||
<text class="onboarding-context-desc">{{appointmentContextText ? '待承接预约:' + appointmentContextText : '保存常规排班后,员工即可开始承接预约。'}}</text>
|
||||
<text class="onboarding-context-desc">{{appointmentContextText ? '待承接预约:' + appointmentContextText : '保存常规排班后,美甲师即可开始承接预约。'}}</text>
|
||||
</view>
|
||||
<view class="section">
|
||||
<view class="section-title">常规排班</view>
|
||||
|
||||
@@ -18,7 +18,7 @@ Page({
|
||||
explainBookingRule() {
|
||||
wx.showModal({
|
||||
title: '预约规则',
|
||||
content: '这是店铺给员工看的预约备注或说明文案,不参与自动排班、容量或冲突校验。',
|
||||
content: '这是店铺给美甲师看的预约备注或说明文案,不参与自动排班、容量或冲突校验。',
|
||||
showCancel: false,
|
||||
confirmText: '知道了'
|
||||
})
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
}
|
||||
},
|
||||
"condition": {},
|
||||
"projectname": "甲屿店务",
|
||||
"projectname": "甲屿手纪",
|
||||
"simulatorType": "wechat",
|
||||
"simulatorPluginLibVersion": {},
|
||||
"editorSetting": {},
|
||||
|
||||
@@ -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中心店')
|
||||
|
||||
@@ -3,7 +3,7 @@ module.exports = {
|
||||
requestTimeout: 10000,
|
||||
enableRequestSigning: true,
|
||||
brand: {
|
||||
appName: '甲屿店务',
|
||||
appName: '甲屿手纪',
|
||||
productName: 'Salon',
|
||||
defaultShopName: 'Salon',
|
||||
registerShopPlaceholder: '例如:Salon中心店'
|
||||
|
||||
Reference in New Issue
Block a user