Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
X
XiTianSenMall
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
leiqingsong
XiTianSenMall
Commits
8126112d
Commit
8126112d
authored
Mar 26, 2021
by
leiqingsong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试ios的问题
parent
30bc2452
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
bridgeToAppFun.js
H5/src/utils/bridgeToAppFun.js
+2
-0
No files found.
H5/src/utils/bridgeToAppFun.js
View file @
8126112d
...
@@ -18,6 +18,7 @@ class bridgeToAppFun {
...
@@ -18,6 +18,7 @@ class bridgeToAppFun {
}
}
// 获取Token
// 获取Token
getAuthToken
()
{
getAuthToken
()
{
console
.
log
(
'系统:'
,
this
.
userAgent
);
if
(
this
.
userAgent
===
"android"
)
{
if
(
this
.
userAgent
===
"android"
)
{
// android
// android
let
token
=
null
;
let
token
=
null
;
...
@@ -37,6 +38,7 @@ class bridgeToAppFun {
...
@@ -37,6 +38,7 @@ class bridgeToAppFun {
}
else
if
(
this
.
userAgent
===
"ios"
)
{
}
else
if
(
this
.
userAgent
===
"ios"
)
{
// ios
// ios
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
console
.
log
(
'调ios的方法'
);
jsBridge
.
callhandler
(
"getAuthToken"
,
null
,
data
=>
{
jsBridge
.
callhandler
(
"getAuthToken"
,
null
,
data
=>
{
localStorage
.
setItem
(
"token"
,
data
);
localStorage
.
setItem
(
"token"
,
data
);
if
(
data
)
{
if
(
data
)
{
...
...
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