小程序浮层动作项按钮化并统一按钮样式
自动发布开发环境 Nacos 配置 / publish (push) Successful in 27s

This commit is contained in:
2026-11-07 00:38:22 +08:00
parent a5f050286b
commit 1482bda1fa
31 changed files with 322 additions and 78 deletions
@@ -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 })
}
},