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
e27d7b24
Commit
e27d7b24
authored
Oct 21, 2021
by
潘永坪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付成功后指定页面跳转
parent
a6c5d23a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
orderPayment.vue
pages/payment/orderPayment/orderPayment.vue
+4
-2
No files found.
pages/payment/orderPayment/orderPayment.vue
View file @
e27d7b24
...
@@ -117,11 +117,13 @@
...
@@ -117,11 +117,13 @@
paySign
:
""
,
paySign
:
""
,
background
:
""
,
//去支付的背景颜色
background
:
""
,
//去支付的背景颜色
orderId
:
""
,
//订单Id
orderId
:
""
,
//订单Id
openid
:
""
//用户Id
openid
:
""
,
//用户Id
afterBuyUrl
:
""
,
//支付成功后地址跳转
}
}
},
},
onLoad
(
option
){
onLoad
(
option
){
this
.
orderId
=
option
.
orderId
this
.
orderId
=
option
.
orderId
this
.
afterBuyUrl
=
option
.
afterBuyUrl
||
"/pages/my/order/orderList/orderList"
this
.
openid
=
uni
.
getStorageSync
(
"openid"
)
||
""
this
.
openid
=
uni
.
getStorageSync
(
"openid"
)
||
""
if
(
this
.
openid
){
if
(
this
.
openid
){
this
.
initDetail
()
this
.
initDetail
()
...
@@ -244,7 +246,7 @@
...
@@ -244,7 +246,7 @@
paySign
:
this
.
paySign
,
paySign
:
this
.
paySign
,
success
:
function
(
res
)
{
success
:
function
(
res
)
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
"/pages/my/order/orderList/orderList"
url
:
_this
.
afterBuyUrl
+
"?orderId="
+
_this
.
orderId
})
})
},
},
fail
:
function
(
err
)
{
fail
:
function
(
err
)
{
...
...
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