Commit 7079f49f authored by spc's avatar spc

lottery

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