Commit adf35d0c by 张立顺

支付宝授权配置开启

1 parent 65911f00
......@@ -123,12 +123,13 @@ export default {
},
mounted() {
const that = this
console.log(baseConfig)
const { appId } = baseConfig
// console.log(appId)
const { merchantName, merchantId } = this.getHrefParams()
this.merchantId = merchantId
this.merchantName = merchantName
// console.log(merchanInfo)
console.log(appId, 'appId')
// 请求用户授权
ap.getAuthCode({
// appId: '${appId}',
......@@ -137,6 +138,7 @@ export default {
// 主动授权:auth_user,静默授权:auth_base。或者其它scope
scopes: ['auth_base']
}, function (res) {
console.log('res.authCode', 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!