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
657f90ba
authored
Jun 17, 2020
by
展昭
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update
parent
26d27669
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
19 deletions
src/api/More/index.js
src/api/More/urls.js
src/api/http.js
src/api/More/index.js
View file @
657f90ba
...
@@ -16,18 +16,6 @@ export default {
...
@@ -16,18 +16,6 @@ export default {
async
getPayUrl
()
{
async
getPayUrl
()
{
const
url
=
urls
.
getPayUrlUrl
();
const
url
=
urls
.
getPayUrlUrl
();
return
AjaxRequest
.
get
(
url
);
return
AjaxRequest
.
get
(
url
);
},
async
getAccessToken
(
authcode
)
{
const
url
=
urls
.
getAccessTokenUrl
();
let
params
=
{
"client_id"
:
"hrs-bill-web-mobile"
,
"client_secret"
:
"123456"
,
"grant_type"
:
"auth_code"
,
"scope"
:
"openid offline_access"
,
"code"
:
authcode
}
return
AjaxRequest
.
post
(
url
,
params
);
}
}
};
};
src/api/More/urls.js
View file @
657f90ba
var
VUE_APP_API_BASEURL
=
process
.
env
.
VUE_APP_API_BASEURL
;
var
VUE_APP_API_BASEURL
=
process
.
env
.
VUE_APP_API_BASEURL
;
var
TEAMMIXURL
=
process
.
env
.
VUE_APP_API_TEAMMIXURL
;
export
default
{
export
default
{
getMoreList
()
{
getMoreList
()
{
...
@@ -13,9 +12,5 @@ export default {
...
@@ -13,9 +12,5 @@ export default {
getPayUrlUrl
()
{
getPayUrlUrl
()
{
let
url
=
VUE_APP_API_BASEURL
+
'api/common/pay/getPaymentUrl'
;
let
url
=
VUE_APP_API_BASEURL
+
'api/common/pay/getPaymentUrl'
;
return
url
;
return
url
;
},
getAccessTokenUrl
()
{
let
url
=
TEAMMIXURL
+
'connect/token'
;
return
url
;
}
}
};
};
src/api/http.js
View file @
657f90ba
...
@@ -25,7 +25,7 @@ http.interceptors.response.use(
...
@@ -25,7 +25,7 @@ http.interceptors.response.use(
console
.
log
(
'response='
,
response
);
console
.
log
(
'response='
,
response
);
if
(
response
.
error
==
400
||
response
.
status
==
400
)
{
if
(
response
.
error
==
400
||
response
.
status
==
400
)
{
Toast
.
fail
({
Toast
.
fail
({
message
:
'授权失
败!
'
,
message
:
'授权失
效!请先退出。
'
,
position
:{
top
:
200
}
position
:{
top
:
200
}
});
});
}
}
...
@@ -52,7 +52,7 @@ http.interceptors.response.use(
...
@@ -52,7 +52,7 @@ http.interceptors.response.use(
};
};
console
.
log
(
info
);
console
.
log
(
info
);
Toast
.
fail
({
Toast
.
fail
({
message
:
'授权失
败!
'
,
message
:
'授权失
效!请先退出。
'
,
duration
:
0
,
duration
:
0
,
overlay
:
true
,
overlay
:
true
,
position
:{
top
:
200
}
position
:{
top
:
200
}
...
...
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