Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
U
uni-pdtravel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
panyongping
uni-pdtravel
Commits
6e62d5e0
Commit
6e62d5e0
authored
Apr 14, 2023
by
潘永坪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
appid参数增加
parent
4fe4c2d3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
3 deletions
+10
-3
App.vue
App.vue
+4
-0
login.vue
pages/login/login.vue
+2
-1
orderPayment.vue
pages/payment/orderPayment/orderPayment.vue
+2
-1
ourPayment.vue
pages/payment/ourPayment/ourPayment.vue
+2
-1
No files found.
App.vue
View file @
6e62d5e0
...
...
@@ -28,6 +28,10 @@ export default {
})
},
300
)
}
//#ifdef MP-WEIXIN
uni
.
setStorageSync
(
'appid'
,
'wxe678d5240e98a7b8'
)
//#endif
//#ifdef MP-ALIPAY
if
(
options
.
query
&&
options
.
query
.
qrCode
)
{
uni
.
setStorageSync
(
'alipayQrCode'
,
options
.
query
.
qrCode
)
...
...
pages/login/login.vue
View file @
6e62d5e0
...
...
@@ -40,7 +40,8 @@ export default {
let
data
=
{
code
:
res
.
code
,
source
,
//微信小程序3,支付宝小程序4
companyId
:
uni
.
getStorageSync
(
'enterOptions'
).
query
.
companyId
companyId
:
uni
.
getStorageSync
(
'enterOptions'
).
query
.
companyId
||
''
,
appid
:
uni
.
getStorageSync
(
'appid'
)
||
''
}
_this
.
$request
(
'wechat/wx/getUserInfoByCode'
,
data
).
then
(
res
=>
{
if
(
res
.
code
==
'00'
)
{
...
...
pages/payment/orderPayment/orderPayment.vue
View file @
6e62d5e0
...
...
@@ -140,7 +140,8 @@ export default {
let
data
=
{
code
:
res
.
code
,
source
,
//微信小程序3,支付宝小程序4
companyId
:
uni
.
getStorageSync
(
'enterOptions'
).
query
.
companyId
companyId
:
uni
.
getStorageSync
(
'enterOptions'
).
query
.
companyId
||
''
,
appid
:
uni
.
getStorageSync
(
'appid'
)
||
''
}
_this
.
$request
(
'wechat/wx/getUserInfoByCode'
,
data
)
.
then
(
res
=>
{
...
...
pages/payment/ourPayment/ourPayment.vue
View file @
6e62d5e0
...
...
@@ -217,7 +217,8 @@
let
data
=
{
code
:
res
.
code
,
source
,
//微信小程序3,支付宝小程序4
companyId
:
uni
.
getStorageSync
(
'enterOptions'
).
query
.
companyId
companyId
:
uni
.
getStorageSync
(
'enterOptions'
).
query
.
companyId
||
''
,
appid
:
uni
.
getStorageSync
(
'appid'
)
||
''
}
_this
.
$request
(
'wechat/wx/getUserInfoByCode'
,
data
).
then
(
res
=>
{
if
(
res
.
code
==
'00'
){
...
...
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