Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
activities
/
web-lottery
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
67b44efa
authored
May 26, 2025
by
陆志强
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/question' into test
parents
89f81cc2
42b8da16
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
src/components/Lottery/Question/QuestionForm.vue
+10
-9
No files found.
src/components/Lottery/Question/QuestionForm.vue
View file @
67b44efa
...
...
@@ -173,21 +173,22 @@ export default {
}
},
submitAnswer
(
data
)
{
if
(
this
.
info
.
question
.
options
[
Number
(
this
.
answer
)].
isRight
)
{
this
.
$toast
(
'回答正确!点击抽奖进行抽奖'
)
}
else
{
this
.
$toast
(
'回答错误!谢谢参与'
)
}
saveAnswer
(
data
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
&&
res
.
errorCode
===
0
)
{
if
(
this
.
info
.
question
.
options
[
Number
(
this
.
answer
)].
isRight
)
{
this
.
$toast
(
'回答正确!点击抽奖进行抽奖'
)
}
else
{
this
.
$toast
(
'回答错误!谢谢参与'
)
}
this
.
info
.
answerStatus
=
1
Bus
.
$emit
(
'LotteryInfoUpdate'
,
{
id
:
this
.
$route
.
query
.
id
,
playId
:
this
.
$route
.
query
.
sessionId
,
})
setTimeout
(()
=>
{
if
(
this
.
$route
.
query
.
backUrl
)
{
window
.
location
.
href
=
this
.
$route
.
query
.
backUrl
}
Bus
.
$emit
(
'LotteryInfoUpdate'
,
{
id
:
this
.
$route
.
query
.
id
,
playId
:
this
.
$route
.
query
.
sessionId
,
})
},
1500
)
}
else
{
this
.
$toast
(
res
.
errorMessage
)
...
...
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