Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-h5-ailipay
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit adf35d0c
authored
Sep 05, 2022
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
支付宝授权配置开启
1 parent
65911f00
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
src/views/alipay/index.vue
src/views/alipay/index.vue
View file @
adf35d0
...
@@ -123,12 +123,13 @@ export default {
...
@@ -123,12 +123,13 @@ export default {
},
},
mounted
()
{
mounted
()
{
const
that
=
this
const
that
=
this
console
.
log
(
baseConfig
)
const
{
appId
}
=
baseConfig
const
{
appId
}
=
baseConfig
// console.log(appId)
// console.log(appId)
const
{
merchantName
,
merchantId
}
=
this
.
getHrefParams
()
const
{
merchantName
,
merchantId
}
=
this
.
getHrefParams
()
this
.
merchantId
=
merchantId
this
.
merchantId
=
merchantId
this
.
merchantName
=
merchantName
this
.
merchantName
=
merchantName
// console.log(merchanInfo
)
console
.
log
(
appId
,
'appId'
)
// 请求用户授权
// 请求用户授权
ap
.
getAuthCode
({
ap
.
getAuthCode
({
// appId: '${appId}',
// appId: '${appId}',
...
@@ -137,6 +138,7 @@ export default {
...
@@ -137,6 +138,7 @@ export default {
// 主动授权:auth_user,静默授权:auth_base。或者其它scope
// 主动授权:auth_user,静默授权:auth_base。或者其它scope
scopes
:
[
'auth_base'
]
scopes
:
[
'auth_base'
]
},
function
(
res
)
{
},
function
(
res
)
{
console
.
log
(
'res.authCode'
,
res
.
authCode
)
res
.
authCode
&&
that
.
gteOpenId
(
res
.
authCode
)
res
.
authCode
&&
that
.
gteOpenId
(
res
.
authCode
)
})
})
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment