回溯点:保存注册预约客户流程修复进度

This commit is contained in:
2026-10-30 13:02:38 +08:00
parent 7b40ee1650
commit 53b6fcaa11
45 changed files with 960 additions and 132 deletions
@@ -14,17 +14,22 @@ Page({
timer: null,
smsExpanded: false,
unbindMode: false,
closureRequest: null
closureRequest: null,
closureLoading: true,
closureError: ''
},
onShow() { this.loadProfile(); this.loadClosureRequest() },
async loadClosureRequest() {
this.setData({ closureLoading: true, closureError: '' })
try {
const closureRequest = await userApi.getAccountClosure()
this.setData({ closureRequest: closureRequest || null })
} catch (error) {
this.setData({ closureRequest: null })
this.setData({ closureError: error.message || '注销状态加载失败' })
} finally {
this.setData({ closureLoading: false })
}
},
@@ -62,7 +67,7 @@ Page({
this.setData({ loading: true })
try {
const profile = await profileCache.getProfile(options)
this.setData({ profile, 'smsForm.phone': profile.phone || '' })
this.setData({ profile, 'smsForm.phone': '' })
const app = getApp()
const session = auth.getSession()
app.setSession({ ...session, userInfo: { ...(session.userInfo || {}), ...profile } })