提交 Salon 小程序现有调整
This commit is contained in:
@@ -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()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user