Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
study
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
Damon
study
Commits
4accd242
Commit
4accd242
authored
Jul 27, 2021
by
Facius
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-v1.0.0' of
https://git.banshouhui.com/wuzhenzhe/study
into dev-v1.0.0
parents
ba914bef
a970d48b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
index.vue
src/components/swiper-limited-load/index.vue
+3
-1
answer.vue
src/pages/learn/answer.vue
+17
-1
No files found.
src/components/swiper-limited-load/index.vue
View file @
4accd242
...
...
@@ -86,7 +86,7 @@ export default {
// 此值控制swiper的位置
swiperCurrent
:
0
,
// 当前swiper渲染的items
swiperList
:
[
1
,
2
,
3
],
swiperList
:
[],
}
},
watch
:
{
...
...
@@ -126,6 +126,7 @@ export default {
this
.
swiperCurrent
=
current
},
answerChange
(
status
,
lists
,
userAnswer
)
{
this
.
$set
(
this
.
swiperList
[
this
.
swiperIndex
],
'answerList'
,
lists
)
this
.
$set
(
this
.
swiperList
[
this
.
swiperIndex
],
'errShow'
,
this
.
type
===
2
?
true
:
status
===
'fail'
)
this
.
$set
(
this
.
swiperList
[
this
.
swiperIndex
],
'submitStatus'
,
true
)
this
.
$emit
(
"answerChange"
,
status
,
lists
,
userAnswer
)
...
...
@@ -216,6 +217,7 @@ export default {
swiperList
[
current
]
=
currentItem
swiperList
[
this
.
getLastSwiperChangeIndex
(
current
)]
=
this
.
getLastSwiperNeedItem
(
currentItem
,
list
)
swiperList
[
this
.
getNextSwiperChangeIndex
(
current
)]
=
this
.
getNextSwiperNeedItem
(
currentItem
,
list
)
console
.
log
(
"swiperList"
,
swiperList
)
return
swiperList
;
},
/**
...
...
src/pages/learn/answer.vue
View file @
4accd242
...
...
@@ -5,6 +5,7 @@
background=
"transparent"
titleColor=
"#191C27"
:border-bottom=
"false"
:custom-back=
"customBack"
title=
"答题"
title-bold
></u-navbar>
...
...
@@ -320,7 +321,22 @@ export default {
this
.
loadMore
(
current
)
},
// 返回
customBack
()
{
if
(
this
.
source
===
3
)
{
// 如果已答题,点击返回提示交卷
const
count
=
this
.
list
.
reduce
((
accumulator
,
currentValue
)
=>
{
if
(
currentValue
.
submitStatus
)
accumulator
++
return
accumulator
},
0
)
if
(
count
>
1
)
{
this
.
handPapers
()
return
}
}
this
.
$u
.
route
({
type
:
'back'
})
},
loadMore
(
current
)
{
let
list
=
this
.
list
...
...
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