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
9f48f3b1
Commit
9f48f3b1
authored
Aug 04, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 【ID1001530】【小程序-首页-各种提示】:绑卡、收藏、取消收藏、答完试题等提示,统一颜色和样式。
parent
ad95eb5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
6 deletions
+26
-6
answer.vue
src/pages/learn/answer.vue
+26
-6
No files found.
src/pages/learn/answer.vue
View file @
9f48f3b1
...
@@ -123,6 +123,8 @@
...
@@ -123,6 +123,8 @@
>
>
</dailyPop>
</dailyPop>
</view>
</view>
<u-toast
ref=
"uToast"
/>
</view>
</view>
</
template
>
</
template
>
...
@@ -326,15 +328,24 @@ export default {
...
@@ -326,15 +328,24 @@ 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
)
{
return
this
.
$u
.
toast
(
'数据加载中'
)
return
this
.
$refs
.
uToast
.
show
({
title
:
'数据加载中'
,
type
:
'warning'
,
})
}
}
if
(
current
==
NO_PREV_PAGE
)
{
if
(
current
==
NO_PREV_PAGE
)
{
return
this
.
$u
.
toast
(
'已经是第一道试题'
)
return
this
.
$refs
.
uToast
.
show
({
title
:
'已经是第一道试题'
,
type
:
'warning'
,
})
}
}
if
(
current
==
NO_NEXT_PAGE
)
{
if
(
current
==
NO_NEXT_PAGE
)
{
return
this
.
$u
.
toast
(
'已经是最后一道试题'
)
return
this
.
$refs
.
uToast
.
show
({
title
:
'已经是最后一道试题'
,
type
:
'warning'
,
})
}
}
}
}
...
@@ -498,7 +509,10 @@ export default {
...
@@ -498,7 +509,10 @@ export default {
this
.
$u
.
vuex
(
`answerCount.
${
this
.
questionWarehouseId
}
`
,
0
)
this
.
$u
.
vuex
(
`answerCount.
${
this
.
questionWarehouseId
}
`
,
0
)
this
.
$u
.
vuex
(
`lastIndex.
${
this
.
questionWarehouseId
}
`
,
0
)
this
.
$u
.
vuex
(
`lastIndex.
${
this
.
questionWarehouseId
}
`
,
0
)
this
.
$u
.
vuex
(
`questionList.
${
this
.
questionWarehouseId
}
`
,
[])
this
.
$u
.
vuex
(
`questionList.
${
this
.
questionWarehouseId
}
`
,
[])
return
this
.
$u
.
toast
(
'您已经答完全部试题'
)
return
this
.
$refs
.
uToast
.
show
({
title
:
'您已经答完全部试题'
,
type
:
'warning'
,
})
})
})
}
}
}
}
...
@@ -612,7 +626,10 @@ export default {
...
@@ -612,7 +626,10 @@ export default {
this
.
$u
.
api
[
action
]({
questionId
:
info
.
id
}).
then
((
res
)
=>
{
this
.
$u
.
api
[
action
]({
questionId
:
info
.
id
}).
then
((
res
)
=>
{
if
(
res
)
{
if
(
res
)
{
const
msg
=
status
?
'取消收藏成功'
:
'收藏成功'
const
msg
=
status
?
'取消收藏成功'
:
'收藏成功'
this
.
$u
.
toast
(
msg
)
this
.
$refs
.
uToast
.
show
({
title
:
msg
,
type
:
'success'
,
})
if
(
status
&&
this
.
source
===
4
)
{
if
(
status
&&
this
.
source
===
4
)
{
this
.
current
=
this
.
currentIndex
+
1
this
.
current
=
this
.
currentIndex
+
1
}
}
...
@@ -716,7 +733,10 @@ export default {
...
@@ -716,7 +733,10 @@ export default {
this
.
list
=
list
this
.
list
=
list
if
(
this
.
list
.
length
===
0
)
{
if
(
this
.
list
.
length
===
0
)
{
this
.
$u
.
toast
(
'暂无数据'
)
this
.
$refs
.
uToast
.
show
({
title
:
'暂无数据'
,
type
:
'error'
,
})
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