This commit is contained in:
@@ -485,17 +485,15 @@ Page({
|
||||
remark: '新建美甲师默认全年全天排班,预约仍受门店营业时间限制,可在排班设置中调整'
|
||||
}).then(() => {
|
||||
this.finishCreated(this.data.pickerMode, true)
|
||||
}).catch(error => {
|
||||
wx.showModal({
|
||||
}).catch(async error => {
|
||||
const result = await showActionModal(this, {
|
||||
title: '默认排班设置失败',
|
||||
content: toUserMessage(error, '未设置排班前,该美甲师暂不可预约。请重试或返回排班设置。'),
|
||||
confirmText: '重试',
|
||||
cancelText: '稍后设置',
|
||||
success: result => {
|
||||
if (result.confirm) this.skipFirstSchedule()
|
||||
else this.setData({ savingDefaultSchedule: false })
|
||||
}
|
||||
cancelText: '稍后设置'
|
||||
})
|
||||
if (result.confirm) this.skipFirstSchedule()
|
||||
else this.setData({ savingDefaultSchedule: false })
|
||||
}).finally(() => {
|
||||
if (this.data.onboardingVisible) this.setData({ savingDefaultSchedule: false })
|
||||
})
|
||||
|
||||
@@ -24,23 +24,24 @@
|
||||
<text class="field-label required">手机号</text>
|
||||
<input value="{{form.phone}}" data-field="phone" bindinput="onInput" type="number" maxlength="11" placeholder="请输入手机号" />
|
||||
</view>
|
||||
<view class="login-unlinked" bindtap="openUserPicker">
|
||||
<text class="login-unlinked-label">微信账号</text>
|
||||
<text class="login-unlinked-status">{{selectedWechatUser ? '已绑定' : '未绑定'}}</text>
|
||||
<text class="login-unlinked-note">{{selectedWechatUser ? selectedWechatUser.title : '点击可选择当前店铺中未绑定身份的微信身份进行绑定'}}</text>
|
||||
</view>
|
||||
<view class="field">
|
||||
<text class="field-label">微信号</text>
|
||||
<input value="{{form.wechatId}}" data-field="wechatId" bindinput="onInput" placeholder="选填" />
|
||||
</view>
|
||||
<view class="field color-field">
|
||||
<text class="field-label required">日程中排班展示颜色</text>
|
||||
<text class="field-label required">日程排班
|
||||
展示颜色</text>
|
||||
<view class="color-current">
|
||||
<view class="color-current-chip" style="background: {{form.color}};"></view>
|
||||
<text class="color-current-value">{{form.color}}</text>
|
||||
<view class="color-select-btn" bindtap="openColorSheet">选择颜色<text class="color-select-arrow">›</text></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="login-unlinked" bindtap="openUserPicker">
|
||||
<text class="login-unlinked-label">微信账号</text>
|
||||
<text class="login-unlinked-status">{{selectedWechatUser ? '已绑定' : '未绑定'}}</text>
|
||||
<text class="login-unlinked-note">{{selectedWechatUser ? selectedWechatUser.title : '点击可选择当前店铺中未绑定身份的微信身份进行绑定'}}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="fixed-bottom">
|
||||
|
||||
Reference in New Issue
Block a user