Commit 4120c5ca authored by spc's avatar spc

act915

parent dc544841
......@@ -368,14 +368,7 @@ const fetchAct915HomeData = async () => {
// 判断是否登录(根据notLogin字段或邀请码)
isLogin.value = !data.notLogin
console.log('邀请数据更新:', {
invitationCode: invitationCode.value,
invitedCount: invitedCount.value,
nextRewardNeedCount: nextRewardNeedCount.value,
unclaimedPrizesCount: unclaimedPrizes.value.length,
isLogin: isLogin.value,
notLogin: data.notLogin
})
// 检查是否有未领取的奖品需要弹窗
if (unclaimedPrizes.value.length > 0) {
showPrizeModal()
......
......@@ -161,7 +161,7 @@ const onGetPhoneNumber = (e, action) => {
console.log('detail', e.detail, 'action:', action);
// 调用手机号授权回调
userStore.phoneCallback(e.detail).then(() => {
userStore.phoneCallback(e.detail, null, null, () => {
// 授权成功后,根据点击的按钮执行相应功能
if (action === 'like') {
handleLikeClick();
......@@ -271,7 +271,7 @@ const handleGoBack = () => {
// 页面初始化逻辑
const initPage = async () => {
md.sensorComponentLogTake({
xcxComponentExposure: "true",
pageName: "星妈lab-藏品详情页",
......@@ -328,7 +328,7 @@ const initPage = async () => {
// 生命周期
onMounted(async (options) => {
console.log('星妈lab详情页面已加载')
// 先进行自动登录获取基础信息,登录成功后执行页面初始化
try {
console.log('开始执行 normalAutoLogin...')
......
......@@ -94,10 +94,9 @@ export const useUserStore = defineStore("userInfo", {
const homeStore = useHomeStore();
await homeStore.setBabyExistence(babyExistence);
cb2 && cb2();
// 授权注册成功后做一次登录
this.wxAutoLogin();
this.wxAutoLogin(cb2);
} else {
uni.showToast({
title: res.errMsg,
......
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