Commit 67cc52b3 authored by spc's avatar spc

act915

parent 25d95f93
......@@ -124,10 +124,7 @@
<DrawSucModal :visible="showDrawSucModal" :award-name="currentAwardName" @close="handleDrawSucModalClose"
@happy-get="handleHappyGet" />
</view>
<!-- 加载状态 -->
<view v-else class="loading-container">
<text>加载中...</text>
</view>
</template>
<script setup>
......@@ -345,7 +342,6 @@ const fetchAct915HomeData = async () => {
isLogin: isLogin.value,
notLogin: data.notLogin
})
// 检查是否有未领取的奖品需要弹窗
if (unclaimedPrizes.value.length > 0) {
showPrizeModal()
......@@ -423,10 +419,10 @@ const handleGoods3Click = (productId) => {
jump(product.link)
} else {
// 使用默认处理
uni.showToast({
title: `商品${productId}暂无跳转链接`,
icon: 'none'
})
// uni.showToast({
// title: `商品${productId}暂无跳转链接`,
// icon: 'none'
// })
}
}
......@@ -443,11 +439,11 @@ const handleGoodsList1Click = (productId) => {
// 直接处理跳转链接
jump(product.link)
} else {
// 使用默认处理
uni.showToast({
title: `商品列表1-商品${productId}暂无跳转链接`,
icon: 'none'
})
// // 使用默认处理
// uni.showToast({
// title: `商品列表1-商品${productId}暂无跳转链接`,
// icon: 'none'
// })
}
}
......@@ -465,10 +461,10 @@ const handleGoodsList2Click = (productId) => {
jump(product.link)
} else {
// 使用默认处理
uni.showToast({
title: `商品列表2-商品${productId}暂无跳转链接`,
icon: 'none'
})
// uni.showToast({
// title: `商品列表2-商品${productId}暂无跳转链接`,
// icon: 'none'
// })
}
}
......@@ -489,10 +485,10 @@ const handleBannerClick = (index) => {
if (bannerLinks && bannerLinks[index]) {
jump(bannerLinks[index])
} else {
uni.showToast({
title: `Banner ${index + 1} 暂无跳转链接`,
icon: 'none'
})
// uni.showToast({
// title: `Banner ${index + 1} 暂无跳转链接`,
// icon: 'none'
// })
}
}
}
......@@ -502,7 +498,7 @@ const handleInvitationAssist = async (incomingCode) => {
try {
console.log('处理助力邀请码:', incomingCode)
const unionId = uni.getStorageSync('unionId');
const res = await invitationAssist(incomingCode,unionId);
const res = await invitationAssist(incomingCode, unionId);
if (res && res.success) {
uni.showToast({
title: '助力成功',
......@@ -623,10 +619,10 @@ const handleDrawSucModalClose = () => {
const handleHappyGet = () => {
console.log('点击开心领取');
showDrawSucModal.value = false;
uni.showToast({
title: '奖品领取成功',
icon: 'success'
});
// uni.showToast({
// title: '奖品领取成功',
// icon: 'success'
// });
};
// 暴露给 Options API 使用
......
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