Commit 67cc52b3 authored by spc's avatar spc

act915

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