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
1efc2a4e
Commit
1efc2a4e
authored
Jul 24, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: toast
parent
5e587c42
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
21 deletions
+5
-21
answer.vue
src/pages/learn/answer.vue
+5
-21
No files found.
src/pages/learn/answer.vue
View file @
1efc2a4e
...
@@ -292,25 +292,15 @@ export default {
...
@@ -292,25 +292,15 @@ export default {
this
.
currentIndex
=
current
this
.
currentIndex
=
current
if
(
current
==
NO_PREV_PAGE
||
current
==
NO_NEXT_PAGE
)
{
if
(
current
==
NO_PREV_PAGE
||
current
==
NO_NEXT_PAGE
)
{
if
(
this
.
requesting
)
{
if
(
this
.
requesting
)
{
uni
.
showToast
({
return
this
.
$u
.
toast
(
'数据加载中'
)
title
:
'数据加载中'
,
icon
:
'none'
,
})
return
}
}
if
(
current
==
NO_PREV_PAGE
)
{
if
(
current
==
NO_PREV_PAGE
)
{
return
uni
.
showToast
({
return
this
.
$u
.
toast
(
'已经是第一道试题'
)
title
:
'已经是第一道试题'
,
icon
:
'none'
,
})
}
}
if
(
current
==
NO_NEXT_PAGE
)
{
if
(
current
==
NO_NEXT_PAGE
)
{
return
uni
.
showToast
({
return
this
.
$u
.
toast
(
'已经是最后一道试题'
)
title
:
'已经是最后一道试题'
,
icon
:
'none'
,
})
}
}
}
}
...
@@ -424,10 +414,7 @@ export default {
...
@@ -424,10 +414,7 @@ export default {
},
0
)
},
0
)
if
(
count
===
this
.
total
)
{
if
(
count
===
this
.
total
)
{
return
uni
.
showToast
({
return
this
.
$u
.
toast
(
'您已经答完全部试题'
)
title
:
'您已经答完全部试题'
,
icon
:
'none'
,
})
}
}
}
}
...
@@ -617,10 +604,7 @@ export default {
...
@@ -617,10 +604,7 @@ export default {
this
.
list
=
list
this
.
list
=
list
if
(
this
.
list
.
length
===
0
)
{
if
(
this
.
list
.
length
===
0
)
{
uni
.
showToast
({
this
.
$u
.
toast
(
'暂无数据'
)
title
:
'暂无数据'
,
icon
:
'none'
,
})
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
$u
.
route
({
this
.
$u
.
route
({
delta
:
1
,
delta
:
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