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
d84e18eb
Commit
d84e18eb
authored
Jan 12, 2022
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
594ea149
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
test.vue
src/pages/word/test.vue
+5
-7
word.vue
src/pages/word/word.vue
+2
-1
No files found.
src/pages/word/test.vue
View file @
d84e18eb
<
template
>
<view
class=
"wordTest"
>
<swiper
class=
"swiper"
@
change=
"changeSwiper"
:current=
"curTest"
>
<swiper-item
v-for=
"(item, index) in reviewGroupList"
:key=
"index"
class=
"swiper-item"
>
<van-skeleton
title
row=
"10"
v-if=
"reviewGroupList.length===0&&prepGroupList.length===0"
/>
<swiper
class=
"swiper"
@
change=
"changeSwiper"
:current=
"curTest"
v-else
>
<swiper-item
v-for=
"(item, index) in reviewGroupList"
:key=
"index"
class=
"swiper-item"
v-if=
"item"
>
<Choice
v-if=
"item.QuestionTypeId == 1"
:item=
"item"
@
next=
"next($event, item)"
></Choice>
<FillIn
v-if=
"item.QuestionTypeId == 3"
:item=
"item"
@
next=
"next($event, item)"
></FillIn>
</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"
v-if=
"item"
>
<Choice
v-if=
"item.QuestionTypeId == 1"
:item=
"item"
@
next=
"next($event, item)"
></Choice>
<FillIn
v-if=
"item.QuestionTypeId == 3"
:item=
"item"
@
next=
"next($event, item)"
></FillIn>
</swiper-item>
...
...
@@ -47,7 +48,7 @@
NextChapterId
:
0
,
},
startTime
:
""
,
curTest
:
33
,
curTest
:
0
,
reviewGroupList
:
[],
prepGroupList
:
[],
});
...
...
@@ -63,13 +64,10 @@
changeSwiper
(
val
)
{
data
.
curTest
=
val
.
detail
.
current
;
const
total
=
data
.
reviewGroupList
.
length
+
data
.
prepGroupList
.
length
if
(
data
.
curTest
==
total
)
{
console
.
log
(
'wan'
,
data
.
curTest
,
total
)
methods
.
submitWordsTest
()
data
.
curTest
=
total
-
1
}
console
.
log
(
2
,
data
.
curTest
,
total
)
},
next
(
val
,
item
)
{
if
(
val
)
{
...
...
src/pages/word/word.vue
View file @
d84e18eb
<
template
>
<view
class=
"word"
>
<swiper
class=
"swiper"
next-margin=
"60rpx"
@
change=
"swiperChange"
:current=
"current"
>
<van-skeleton
title
row=
"10"
v-if=
"StudyList.length===0&&ReviewList.length===0"
/>
<swiper
class=
"swiper"
next-margin=
"60rpx"
@
change=
"swiperChange"
:current=
"current"
v-else
>
<swiper-item
v-for=
"(item,index) in StudyList"
:key=
"index"
class=
"swiper-item"
>
<Pronunciation
:item=
"item"
:cur=
"index+1"
:total=
"StudyList.length"
></Pronunciation>
</swiper-item>
...
...
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