perf: 完善新用户引导

This commit is contained in:
richarjiang
2026-04-06 15:50:22 +08:00
parent 66d47ec162
commit f8268cb6f6
15 changed files with 483 additions and 119 deletions

View File

@@ -299,8 +299,10 @@ async function handleBuy() {
success: async (res) => {
if (res.confirm) {
try {
await userStore.login()
handleBuy()
const { isNewUser } = await userStore.loginWithSetup()
if (!isNewUser) {
handleBuy()
}
} catch {
uni.showToast({ title: '登录失败', icon: 'none' })
}