Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
h5
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9e4aee6e
authored
Feb 25, 2020
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
js
parent
2bd5ac90
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
9 deletions
src/store/modules/sample/index.js
view/app.js
src/store/modules/sample/index.js
View file @
9e4aee6e
...
...
@@ -95,9 +95,10 @@ const actions = {
Services
.
ZiYingIndex
(
params
).
then
((
res
)
=>
{
Toast
.
clear
();
let
data
=
res
.
data
;
state
.
loading
=
false
;
Toast
.
clear
();
if
(
data
.
error_code
==
0
)
{
...
...
@@ -107,7 +108,7 @@ const actions = {
totalPage
=
Math
.
ceil
(
data
.
data
.
total
*
1
/
10
);
}
if
(
payload
.
params
.
p
=
=
totalPage
||
!
totalPage
)
{
if
(
payload
.
params
.
p
>
=
totalPage
||
!
totalPage
)
{
state
.
finished
=
true
;
}
...
...
@@ -117,15 +118,8 @@ const actions = {
});
}
else
if
(
data
.
error_code
==
3
)
{
}
else
{
Toast
({
message
:
data
.
error_msg
,
duration
:
3000
});
state
.
loading
=
false
;
state
.
finished
=
true
;
...
...
view/app.js
View file @
9e4aee6e
This diff is collapsed.
Click to expand it.
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