Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
educationStu
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
向伟
educationStu
Commits
280273c7
Commit
280273c7
authored
Jan 12, 2022
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
a58d2bd8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
choiceQuestion.vue
src/components/word/choiceQuestion.vue
+3
-2
test.vue
src/pages/word/test.vue
+9
-5
No files found.
src/components/word/choiceQuestion.vue
View file @
280273c7
...
@@ -148,13 +148,14 @@
...
@@ -148,13 +148,14 @@
},
500
)
},
500
)
}
else
{
}
else
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
emit
(
'next'
)
emit
(
'next'
,
1
)
},
500
)
},
500
)
}
}
},
},
todo
()
{
todo
()
{
emit
(
'next'
)
emit
(
'next'
,
0
)
}
}
}
}
onMounted
(()
=>
{
onMounted
(()
=>
{
...
...
src/pages/word/test.vue
View file @
280273c7
<
template
>
<
template
>
<view
class=
"wordTest"
>
<view
class=
"wordTest"
>
<button
class=
""
>
交卷
</button>
<swiper
class=
"swiper"
@
change=
"changeSwiper"
:current=
"curTest"
>
<swiper
class=
"swiper"
@
change=
"changeSwiper"
:current=
"curTest"
>
<swiper-item
v-for=
"(item,index) in reviewGroupList"
:key=
"index"
class=
"swiper-item"
>
<swiper-item
v-for=
"(item,index) in reviewGroupList"
:key=
"index"
class=
"swiper-item"
>
<Choice
v-if=
"item.QuestionTypeId==1"
:item=
"item"
@
next=
"next"
></Choice>
<Choice
v-if=
"item.QuestionTypeId==1"
:item=
"item"
@
next=
"next
($event,item)
"
></Choice>
<FillIn
v-if=
"item.QuestionTypeId==3"
:item=
"item"
@
next=
"next"
></FillIn>
<FillIn
v-if=
"item.QuestionTypeId==3"
:item=
"item"
@
next=
"next
($event,item)
"
></FillIn>
</swiper-item>
</swiper-item>
<swiper-item
v-for=
"(item,index) in prepGroupList"
:key=
"index"
class=
"swiper-item"
>
<swiper-item
v-for=
"(item,index) in prepGroupList"
:key=
"index"
class=
"swiper-item"
>
<Choice
v-if=
"item.QuestionTypeId==1"
:item=
"item"
@
next=
"next"
></Choice>
<Choice
v-if=
"item.QuestionTypeId==1"
:item=
"item"
@
next=
"next
($event,item)
"
></Choice>
<FillIn
v-if=
"item.QuestionTypeId==3"
:item=
"item"
@
next=
"next"
></FillIn>
<FillIn
v-if=
"item.QuestionTypeId==3"
:item=
"item"
@
next=
"next
($event,item)
"
></FillIn>
</swiper-item>
</swiper-item>
<swiper-item></swiper-item>
<swiper-item></swiper-item>
</swiper>
</swiper>
...
@@ -53,7 +56,8 @@
...
@@ -53,7 +56,8 @@
changeSwiper
(
val
){
changeSwiper
(
val
){
data
.
curTest
=
val
.
detail
.
current
data
.
curTest
=
val
.
detail
.
current
},
},
next
(){
next
(
val
,
item
){
item
.
IsTrue
=
val
data
.
curTest
+=
1
data
.
curTest
+=
1
}
}
}
}
...
...
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