Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
hrs_app_h5
/
bill
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
baaf907a
authored
Jun 17, 2020
by
展昭
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update
parent
657f90ba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
README.md
src/router/index.js
README.md
View file @
baaf907a
...
@@ -30,9 +30,14 @@ usermemberId 206484 1822782
...
@@ -30,9 +30,14 @@ usermemberId 206484 1822782
appid=app_register_id
appid=app_register_id
authcode
authcode
测试线账号及参数
appId=70770
userName=13522476236
password=qqxb123456
发布方式
发布方式
测试线
测试线
git push dev
git push dev
正式线
正式线
?
找杨哥
\ No newline at end of file
\ No newline at end of file
src/router/index.js
View file @
baaf907a
...
@@ -46,9 +46,7 @@ function getAccessToken(authcode) {
...
@@ -46,9 +46,7 @@ function getAccessToken(authcode) {
}
}
axios
.
post
(
url
,
qs
.
stringify
(
pms
)).
then
(
res
=>
{
axios
.
post
(
url
,
qs
.
stringify
(
pms
)).
then
(
res
=>
{
if
(
res
&&
res
.
status
)
{
if
(
res
&&
res
.
status
)
{
console
.
log
(
'res.data='
,
res
.
data
);
const
accessToken
=
res
.
data
.
access_token
;
const
accessToken
=
res
.
data
.
access_token
;
console
.
log
(
'accessToken='
,
accessToken
);
resolve
(
accessToken
);
resolve
(
accessToken
);
}
}
else
{
else
{
...
@@ -79,7 +77,6 @@ async function getToken(access_token, appid, redirectPath) {
...
@@ -79,7 +77,6 @@ async function getToken(access_token, appid, redirectPath) {
if
(
res
.
status
==
200
)
{
if
(
res
.
status
==
200
)
{
const
accessToken
=
res
.
data
.
access_token
;
const
accessToken
=
res
.
data
.
access_token
;
localStorage
.
setItem
(
"token"
,
accessToken
);
localStorage
.
setItem
(
"token"
,
accessToken
);
console
.
log
(
'redirectPath='
,
redirectPath
);
window
.
location
.
href
=
redirectPath
;
window
.
location
.
href
=
redirectPath
;
}
}
},
},
...
...
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