Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
施宇
/
icsalesProgram
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
d1eb2306
authored
Aug 06, 2019
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
css
parent
3c0f0d24
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
utils/util.js
utils/util.js
View file @
d1eb2306
...
...
@@ -11,7 +11,7 @@ const getData = (url, type, param, callBack, loading, isheader, istoken) => {
if
(
istoken
)
{
var
params
=
Object
.
assign
({},
param
,
{
source
:
1
,
token
:
token
token
:
token
});
}
else
{
var
params
=
Object
.
assign
({},
param
,
{
...
...
@@ -45,7 +45,7 @@ const getData = (url, type, param, callBack, loading, isheader, istoken) => {
//处理token失效的情况
if
(
res
.
data
.
hasOwnProperty
(
'data'
))
{
if
(
res
.
data
.
data
.
err_code
===
501
||
res
.
data
.
data
.
errcode
===
501
)
{
if
(
res
.
data
.
err_code
===
501
||
res
.
data
.
errcode
===
501
)
{
wx
.
navigateTo
({
url
:
'/pages/person/login/index'
});
...
...
@@ -53,7 +53,13 @@ const getData = (url, type, param, callBack, loading, isheader, istoken) => {
typeof
callBack
==
"function"
&&
callBack
(
res
.
data
,
""
);
}
}
else
{
typeof
callBack
==
"function"
&&
callBack
(
res
.
data
,
""
);
if
(
res
.
data
.
err_code
===
501
||
res
.
data
.
errcode
===
501
)
{
wx
.
navigateTo
({
url
:
'/pages/person/login/index'
});
}
else
{
typeof
callBack
==
"function"
&&
callBack
(
res
.
data
,
""
);
}
}
wx
.
hideNavigationBarLoading
();
...
...
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