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
93e4ca29
Commit
93e4ca29
authored
Jul 28, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 【ID1001313】【小程序-首页-答题页面】:答题模式下,回答正确后未自动跳转到下一题。
parent
a4e313af
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
index.vue
src/components/swiper-limited-load/index.vue
+6
-1
answer.vue
src/pages/learn/answer.vue
+5
-2
No files found.
src/components/swiper-limited-load/index.vue
View file @
93e4ca29
...
@@ -178,9 +178,14 @@ export default {
...
@@ -178,9 +178,14 @@ export default {
if
(
currentItem
==
null
)
return
if
(
currentItem
==
null
)
return
info
.
current
=
currentItem
.
index
info
.
current
=
currentItem
.
index
this
.
$emit
(
"change"
,
info
)
// 记录滑过来的位置,此值对于下一次滑动的计算很重要
// 记录滑过来的位置,此值对于下一次滑动的计算很重要
this
.
swiperIndex
=
current
this
.
swiperIndex
=
current
this
.
$emit
(
"change"
,
info
)
this
.
$nextTick
(()
=>
{
this
.
swiperCurrent
=
current
})
if
(
this
.
model
===
2
)
{
if
(
this
.
model
===
2
)
{
this
.
changeModel
()
this
.
changeModel
()
}
}
...
...
src/pages/learn/answer.vue
View file @
93e4ca29
...
@@ -179,7 +179,7 @@ export default {
...
@@ -179,7 +179,7 @@ export default {
current
:
0
,
current
:
0
,
// 仅仅记录swiper的位置
// 仅仅记录swiper的位置
currentIndex
:
0
,
currentIndex
:
0
,
swiperDuration
:
'
10
00'
,
swiperDuration
:
'
8
00'
,
// 分页数据
// 分页数据
currentPage
:
1
,
currentPage
:
1
,
pageSize
:
100
,
pageSize
:
100
,
...
@@ -465,7 +465,10 @@ export default {
...
@@ -465,7 +465,10 @@ export default {
}
}
return
return
}
}
this
.
current
=
this
.
currentIndex
+
1
this
.
$nextTick
(()
=>
{
this
.
current
=
this
.
currentIndex
+
1
console
.
log
(
"this.current"
,
this
.
current
)
})
}
}
},
},
// 保存答案
// 保存答案
...
...
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