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
c4ee8e14
authored
May 27, 2025
by
陆志强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 优化答案显示逻辑
parent
f4b92974
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/components/Lottery/Question/QuestionForm.vue
+3
-2
No files found.
src/components/Lottery/Question/QuestionForm.vue
View file @
c4ee8e14
...
...
@@ -13,7 +13,7 @@
</div>
<div
class=
"question-form-item__content"
@
click=
"judgeLogin"
>
<van-field
v-model=
"answer"
class=
"ques-radio ques-radio--tag"
>
<template
v-if=
"!
isJoined
"
#
input
>
<template
v-if=
"!
showResult
"
#
input
>
<van-radio-group
v-if=
"info.question.options.length"
:value=
"answer"
@
input=
"input"
>
<van-radio
v-for=
"(item, index) in info.question.options"
:key=
"index"
:disabled=
"isJoined"
:name=
"`$
{index}`" :style="{
'--textColor': isJoined ? '#fff' : '#2C7AFA',
...
...
@@ -133,6 +133,7 @@ export default {
isShowStatement
:
null
,
userInfo
:
{},
answer
:
null
,
showResult
:
false
,
}
},
computed
:
{
...
...
@@ -180,7 +181,7 @@ export default {
}
else
{
this
.
$toast
(
'回答错误!谢谢参与'
)
}
this
.
info
.
answerStatus
=
1
this
.
showResult
=
true
setTimeout
(()
=>
{
if
(
this
.
$route
.
query
.
backUrl
)
{
window
.
location
.
href
=
this
.
$route
.
query
.
backUrl
...
...
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