Commit adf35d0c by 张立顺

支付宝授权配置开启

1 parent 65911f00
...@@ -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)
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!