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
c30b7411
Commit
c30b7411
authored
4 years ago
by
leiqingsong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试token
parent
6c1550fc
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
bridgeToAppFun.js
H5/src/utils/bridgeToAppFun.js
+2
-1
wallet.vue
H5/src/views/income/wallet.vue
+1
-2
router.vue
H5/src/views/router.vue
+3
-3
No files found.
H5/src/utils/bridgeToAppFun.js
View file @
c30b7411
...
...
@@ -3,12 +3,13 @@ import jsBridge from "./bridge";
// 获取Token
export
function
getAuthToken
()
{
console
.
log
(
"去调用"
);
return
new
Promise
((
resolve
,
reject
)
=>
{
console
.
log
(
"调用1"
);
jsBridge
.
callhandler
(
"getAuthToken"
,
null
,
data
=>
{
console
.
log
(
"调用2"
);
console
.
log
(
data
);
localStorage
.
setItem
(
'token'
,
data
);
console
.
log
(
"--------------"
);
if
(
data
)
{
alert
(
"获取到的token"
+
data
);
resolve
();
...
...
This diff is collapsed.
Click to expand it.
H5/src/views/income/wallet.vue
View file @
c30b7411
...
...
@@ -106,14 +106,13 @@ export default {
getMoneyPackage
(
params
)
.
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
// console.log("res", res);
this
.
walletInfo
=
res
.
data
;
}
else
{
this
.
$toast
.
fail
(
res
.
message
);
}
})
.
catch
(
error
=>
{
console
.
log
(
error
);
console
.
log
(
'catch'
,
error
);
});
}
}
...
...
This diff is collapsed.
Click to expand it.
H5/src/views/router.vue
View file @
c30b7411
...
...
@@ -38,9 +38,9 @@ export default {
}
}
});
this
.
routes
.
forEach
(
item
=>
{
console
.
log
(
item
.
meta
.
title
+
"http://8.131.244.76:81/front"
+
item
.
path
);
})
//
this.routes.forEach(item => {
//
console.log(item.meta.title + "http://8.131.244.76:81/front" + item.path);
//
})
},
methods
:
{
to
(
path
)
{
...
...
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