Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mingPayMobile
Overview
Overview
Details
Activity
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
fengzhaoyu
mingPayMobile
Commits
14bfed81
Commit
14bfed81
authored
Oct 28, 2019
by
fengzhaoyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MOD: 去掉loading
parent
93a3dbac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
2 deletions
+1
-2
http.js
API/http.js
+1
-1
payment.js
pages/payment/payment.js
+0
-1
No files found.
API/http.js
View file @
14bfed81
...
@@ -7,7 +7,7 @@ const $http = (url, data, type, loadingType) => {
...
@@ -7,7 +7,7 @@ const $http = (url, data, type, loadingType) => {
// content: '加载中...'
// content: '加载中...'
// });
// });
// }
// }
dd
.
showLoading
({
content
:
'加载中...'
});
//
dd.showLoading({content: '加载中...'});
let
hasToken
=
dd
.
getStorageSync
({
key
:
'token'
}).
data
;
// token
let
hasToken
=
dd
.
getStorageSync
({
key
:
'token'
}).
data
;
// token
let
expires_in
=
hasToken
.
expires_in
||
''
;
// 过期时效
let
expires_in
=
hasToken
.
expires_in
||
''
;
// 过期时效
let
loginTime
=
hasToken
.
loginTime
||
''
;
// 用户登陆时间
let
loginTime
=
hasToken
.
loginTime
||
''
;
// 用户登陆时间
...
...
pages/payment/payment.js
View file @
14bfed81
...
@@ -54,7 +54,6 @@ Page({
...
@@ -54,7 +54,6 @@ Page({
let
expires_in
=
dd
.
getStorageSync
({
key
:
'token'
}).
data
.
expires_in
;
let
expires_in
=
dd
.
getStorageSync
({
key
:
'token'
}).
data
.
expires_in
;
let
refresh_token
=
dd
.
getStorageSync
({
key
:
'token'
}).
data
.
refresh_token
;
let
refresh_token
=
dd
.
getStorageSync
({
key
:
'token'
}).
data
.
refresh_token
;
let
mingUserId
=
dd
.
getStorageSync
({
key
:
'mingUserId'
}).
data
let
mingUserId
=
dd
.
getStorageSync
({
key
:
'mingUserId'
}).
data
console
.
log
(
dd
.
getStorageSync
({
key
:
'token'
}).
data
.
refresh_token
,
1111111111
)
if
(
!!
hasToken
&&
(
new
Date
().
getTime
()
-
hasToken
.
loginTime
<
(
hasToken
.
expires_in
-
300
)
*
1000
))
{
if
(
!!
hasToken
&&
(
new
Date
().
getTime
()
-
hasToken
.
loginTime
<
(
hasToken
.
expires_in
-
300
)
*
1000
))
{
// if(!!hasToken && ((new Date()).getTime() - hasToken.loginTime < 30* 1000)) {
// if(!!hasToken && ((new Date()).getTime() - hasToken.loginTime < 30* 1000)) {
...
...
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