小程序浮层动作项按钮化并统一按钮样式
自动发布开发环境 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
@@ -5,6 +5,7 @@ const customersApi = require('../../api/customers')
const dateUtil = require('../../utils/date')
const { uploadObjectFile } = require('../../utils/upload')
const { showErrorToast, toUserMessage } = require('../../utils/toast')
const { showActionModal } = require('../../utils/action-modal')
function normalizeProduct(product, artists) {
const artistIds = String(product.bookableArtists || '').split(',').map(id => id.trim()).filter(Boolean)
@@ -42,14 +43,13 @@ Page({
wx.showToast({ title: '图片上传中,请稍后再恢复默认值', icon: 'none' })
return
}
const result = await new Promise(resolve => wx.showModal({
const result = await showActionModal(this, {
title: '恢复默认值',
content: '将清除本次补录内容,但不会删除已上传图片文件。保留入口带入的日期和美甲师,确定继续吗?',
cancelText: '继续填写',
confirmText: '恢复默认',
success: resolve,
fail: () => resolve({ confirm: false })
}))
confirmType: 'danger'
})
if (!result.confirm) return
const defaults = this._entryDefaults || {}
const artistId = defaults.artistId || ''