bugfix:ui

This commit is contained in:
2026-09-13 02:44:41 +08:00
parent e65d4f5189
commit fe3cd08229
9 changed files with 256 additions and 3 deletions
+7 -1
View File
@@ -187,9 +187,15 @@ Page({
cancelText: '稍后再说',
success: (res) => {
if (res.confirm) {
// switchTab 不支持 query 传参,用 storage 标记让「我的」页 onShow 自动弹出编辑弹窗
wx.setStorageSync(STORAGE_KEYS.OPEN_PROFILE_EDIT, 1)
wx.switchTab({
url: '/pages/profile/profile',
fail: (e) => logger.warn(LOG, 'switchTab 个人资料失败, err=', e && e.errMsg),
fail: (e) => {
logger.warn(LOG, 'switchTab 个人资料失败, err=', e && e.errMsg)
// 跳转失败时清除标记,避免下次进入「我的」页意外弹窗
wx.removeStorageSync(STORAGE_KEYS.OPEN_PROFILE_EDIT)
},
})
} else {
this.goAfterLogin()