Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
飞
飞鹤小程序
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
FH
飞鹤小程序
Commits
7079f49f
Commit
7079f49f
authored
Sep 08, 2025
by
spc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lottery
parent
6894edac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
13 deletions
+6
-13
lottery.vue
activity0915/lottery/lottery.vue
+6
-13
No files found.
activity0915/lottery/lottery.vue
View file @
7079f49f
...
@@ -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
||
'抽奖失败'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment