Commit e3ab3ac2 authored by spc's avatar spc

phoneCallback

parent 821b80a8
...@@ -573,20 +573,21 @@ const onGetPhoneNumber = async (e) => { ...@@ -573,20 +573,21 @@ const onGetPhoneNumber = async (e) => {
try { try {
// 隐藏授权弹窗 // 隐藏授权弹窗
showMask.value = false; showMask.value = false;
userStore.phoneCallback(e.detail).then(async () => {
// 重新获取用户信息(登录后) // 重新获取用户信息(登录后)
await fetchAct915HomeData(); await fetchAct915HomeData();
// 检查是否有邀请码需要处理助力 // 检查是否有邀请码需要处理助力
const pages = getCurrentPages(); const pages = getCurrentPages();
const currentPage = pages[pages.length - 1]; const currentPage = pages[pages.length - 1];
const options = currentPage.options; const options = currentPage.options;
const incomingCode = options.invitationCode; const incomingCode = options.invitationCode;
if (incomingCode) { if (incomingCode) {
// 使用统一的助力处理函数 // 使用统一的助力处理函数
await handleInvitationAssist(incomingCode); await handleInvitationAssist(incomingCode);
} }
})
} catch (error) { } catch (error) {
console.error('授权后处理失败:', error) console.error('授权后处理失败:', error)
uni.showToast({ title: '授权失败', icon: 'none' }); uni.showToast({ title: '授权失败', icon: 'none' });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment