Commit 7079f49f authored by spc's avatar spc

lottery

parent 6894edac
......@@ -353,13 +353,6 @@ const stopNoticeCarousel = () => {
}
}
// 重置轮播
const resetNoticeCarousel = () => {
stopNoticeCarousel()
if (recentNotices.value.length > 0) {
startNoticeCarousel()
}
}
// 抽奖按钮点击处理
const handleDrawClick = async () => {
......@@ -376,10 +369,10 @@ const handleDrawClick = async () => {
selectedPrizeIndex.value = -1 // 重置选中状态
currentHighlightIndex.value = -1 // 重置高亮状态
uni.showLoading({
title: '抽奖中...',
mask: true
})
// uni.showLoading({
// title: '抽奖中...',
// mask: true
// })
try {
const response = await getAct915LotteryDraw()
......@@ -397,12 +390,12 @@ const handleDrawClick = async () => {
startHighlightAnimation(prizeIndex, response.data.isWin)
} else {
// 如果找不到对应奖品,显示失败
uni.hideLoading()
// uni.hideLoading()
isDrawing.value = false
showDrawFailModal.value = true
}
} else {
uni.hideLoading()
// uni.hideLoading()
isDrawing.value = false
uni.showToast({
title: response.msg || '抽奖失败',
......
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