Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
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
hujun
tl_estate
Commits
3c954e64
Commit
3c954e64
authored
Mar 23, 2018
by
xishifeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
暂存1
parent
7a52b405
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
1 deletion
+47
-1
common.js
public/app/js/common.js
+46
-0
customer_gj.js
public/app/js/customer_gj.js
+1
-1
No files found.
public/app/js/common.js
View file @
3c954e64
...
@@ -106,6 +106,52 @@ function h5Page(token, fn) {
...
@@ -106,6 +106,52 @@ function h5Page(token, fn) {
// });
// });
}
}
function
h5PageB
(
token
,
fn
)
{
localStorage
.
setItem
(
'token'
,
token
);
fn
();
$
.
ajax
({
type
:
"post"
,
url
:
ServerHost
+
"/AppTab5/about_Token"
,
data
:
{
'token'
:
token
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
){
if
(
data
[
'status'
]
==
'0'
){
console
.
log
(
data
.
msg
);
setLoginStorage
(
data
,
token
,
'agents'
);
fn
(
data
);
}
else
{
try
{
layer
.
open
({
content
:
data
.
msg
,
skin
:
'msg'
,
time
:
2
});
}
catch
(
e
){
alert
(
data
.
msg
);
}
}
}
else
{
try
{
layer
.
open
({
content
:
'token验证接口数据错误'
,
skin
:
'msg'
,
time
:
2
});
}
catch
(
e
){
alert
(
'token验证接口数据错误'
);
}
};
},
error
:
function
()
{
console
.
warn
(
"获取token失败"
);
}
});
}
//验证C端token
//验证C端token
function
h5PageC
(
token
,
fn
)
{
function
h5PageC
(
token
,
fn
)
{
$
.
ajax
({
$
.
ajax
({
...
...
public/app/js/customer_gj.js
View file @
3c954e64
...
@@ -12,7 +12,7 @@ $(function(){
...
@@ -12,7 +12,7 @@ $(function(){
var
_tokenB
=
getUrlParam
(
"token"
);
var
_tokenB
=
getUrlParam
(
"token"
);
if
(
_token
!==
null
)
{
if
(
_token
!==
null
)
{
h5Page
(
_token
,
function
(
data
)
{
h5Page
C
(
_token
,
function
(
data
)
{
loadMain
();
loadMain
();
});
});
}
else
{
}
else
{
...
...
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