fix(wechat): 协议挂起请求仅在离开页面时结算并集中映射错误文案
自动发布开发环境 Nacos 配置 / publish (push) Successful in 18s

This commit is contained in:
2026-11-05 10:51:40 +08:00
parent 3f825682fb
commit 942718b8d9
20 changed files with 141 additions and 70 deletions
+3 -2
View File
@@ -1,6 +1,7 @@
const { BRAND_CONFIG } = require('../../utils/config')
const profileCache = require('../../utils/profile-cache')
const shopApi = require('../../api/shop')
const { showErrorToast } = require('../../utils/toast')
function resolveNameStatus(value) {
const status = String(value || '').toUpperCase()
@@ -139,7 +140,7 @@ Page({
this.setData({ businessHoursConfigured: normalizedHours.some(day => day.open) })
wx.showToast({ title: '预约设置已生效', icon: 'success' })
} catch (error) {
wx.showToast({ title: error.message || '保存失败,请重试', icon: 'none' })
showErrorToast(error, '保存失败,请重试')
} finally {
this.setData({ settingsSaving: false })
}
@@ -157,7 +158,7 @@ Page({
wx.showToast({ title: '店铺名称已提交审核', icon: 'success' })
await this.loadProfileAndSettings({ force: true })
} catch (error) {
wx.showToast({ title: error.message || '提交审核失败', icon: 'none' })
showErrorToast(error, '提交审核失败')
} finally {
this.setData({ nameSaving: false })
}