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 65911f00
authored
Sep 05, 2022
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
支付宝授权打开
1 parent
1efbbfb5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
src/views/alipay/index.vue
vue.config.js
src/views/alipay/index.vue
View file @
65911f0
...
@@ -130,15 +130,15 @@ export default {
...
@@ -130,15 +130,15 @@ export default {
this
.
merchantName
=
merchantName
this
.
merchantName
=
merchantName
// console.log(merchanInfo)
// console.log(merchanInfo)
// 请求用户授权
// 请求用户授权
//
ap.getAuthCode({
ap
.
getAuthCode
({
//
// appId: '${appId}',
// appId: '${appId}',
//
appId,
appId
,
//
// scopes: ['auth_user']
// scopes: ['auth_user']
//
// 主动授权:auth_user,静默授权:auth_base。或者其它scope
// 主动授权:auth_user,静默授权:auth_base。或者其它scope
//
scopes: ['auth_base']
scopes
:
[
'auth_base'
]
//
}, function (res) {
},
function
(
res
)
{
//
res.authCode && that.gteOpenId(res.authCode)
res
.
authCode
&&
that
.
gteOpenId
(
res
.
authCode
)
//
})
})
// this.gteOpenId('ab3aa51e466140b5b96475706653UX72')
// this.gteOpenId('ab3aa51e466140b5b96475706653UX72')
...
...
vue.config.js
View file @
65911f0
...
@@ -55,7 +55,7 @@ const spritesmithFunction = data => {
...
@@ -55,7 +55,7 @@ const spritesmithFunction = data => {
module
.
exports
=
{
module
.
exports
=
{
// publicPath: IS_PROD ? './' : '/dj-scrm-wx-work-lwk/', // 本地调试时需登录时使用
// publicPath: IS_PROD ? './' : '/dj-scrm-wx-work-lwk/', // 本地调试时需登录时使用
// publicPath: './',
// publicPath: './',
publicPath
:
'
./
'
,
// 署应用包时的基本 URL。 vue-router history模式使用
publicPath
:
'
/dj-carlife-web-alipay
'
,
// 署应用包时的基本 URL。 vue-router history模式使用
// publicPath: '/dj-carlife-web-alipay/', // 署应用包时的基本 URL。 vue-router history模式使用
// publicPath: '/dj-carlife-web-alipay/', // 署应用包时的基本 URL。 vue-router history模式使用
outputDir
:
'dist'
,
// 生产环境构建文件的目录
outputDir
:
'dist'
,
// 生产环境构建文件的目录
// assetsDir: 'static', // outputDir的静态资源(js、css、img、fonts)目录
// assetsDir: 'static', // outputDir的静态资源(js、css、img、fonts)目录
...
...
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