This commit is contained in:
@@ -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 })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user