This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
const employeesApi = require('../../api/employees')
|
||||
const { chooseImageFilePath, uploadObjectFile } = require('../../utils/upload')
|
||||
const { showErrorToast, toUserMessage } = require('../../utils/toast')
|
||||
const { showActionModal } = require('../../utils/action-modal')
|
||||
|
||||
const EMPLOYEE_COLORS = ['#7BA7C7', '#8FB89A', '#A894C7', '#D7A86E', '#D98DA5', '#79A6A3', '#B9A16B', '#9BA9C8']
|
||||
const COLOR_WHEEL_RADIUS = 110
|
||||
@@ -372,16 +373,15 @@ Page({
|
||||
wx.showToast({ title: '已关联并通过审核', icon: 'success' })
|
||||
} catch (error) {
|
||||
this.setData({ associatingApplication: false })
|
||||
wx.showModal({
|
||||
const result = await showActionModal(this, {
|
||||
title: '关联审核未完成',
|
||||
content: toUserMessage(error, '美甲师档案已创建,可重试关联申请。'),
|
||||
icon: 'warning',
|
||||
confirmText: '重试',
|
||||
cancelText: '稍后处理',
|
||||
success: result => {
|
||||
if (result.confirm) this.associateCreatedEmployee()
|
||||
else this.setData({ onboardingVisible: true })
|
||||
}
|
||||
cancelText: '稍后处理'
|
||||
})
|
||||
if (result.confirm) this.associateCreatedEmployee()
|
||||
else this.setData({ onboardingVisible: true })
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user