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
4f4a87e8
Commit
4f4a87e8
authored
Jan 23, 2025
by
潘永坪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
显示问题处理
parent
ebb5e922
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
paySuccess.vue
pages/payment/paySuccess/paySuccess.vue
+6
-10
No files found.
pages/payment/paySuccess/paySuccess.vue
View file @
4f4a87e8
...
...
@@ -29,15 +29,12 @@ export default {
this
.
ticketStatus
()
let
intFun
=
()
=>
{
//页面初始化
this
.
timer
=
setTimeout
(()
=>
{
if
(
this
.
status
==
'2'
||
this
.
status
==
'4'
||
this
.
status
==
'5'
)
{
return
}
if
(
this
.
status
==
'3'
)
{
if
(
this
.
status
==
'2'
||
this
.
status
==
'3'
||
this
.
status
==
'4'
||
this
.
status
==
'5'
)
{
return
}
this
.
ticketStatus
()
intFun
()
},
2
000
)
},
3
000
)
}
intFun
()
},
...
...
@@ -57,6 +54,7 @@ export default {
let
data
=
{
orderId
:
this
.
orderId
}
this
.
loadImg
=
true
this
.
$request
(
'order/userOrder/getStatusById'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
'00'
)
{
//如果是组合票,直接跳订单列表页面
...
...
@@ -68,17 +66,15 @@ export default {
return
}
this
.
status
=
res
.
main
.
orderStatus
this
.
loadImg
=
false
if
(
this
.
status
==
'2'
||
this
.
status
==
'4'
||
this
.
status
==
'5'
)
{
//1.跳订单列表,2.订单详情,3.停留该页面显示支付成功(ourPayment页面跳入时,无afterBuyUrl,停留在该页面)
this
.
title
=
'支付成功!'
this
.
loadImg
=
false
uni
.
reLaunch
({
url
:
this
.
afterBuyUrl
+
'?orderId='
+
this
.
orderId
+
'&ifyukuaiCode='
+
this
.
ifyukuaiCode
})
}
if
(
this
.
status
==
'3'
)
{
this
.
title
=
'失败...'
this
.
loadImg
=
false
}
else
{
this
.
title
=
res
.
main
.
errorMessage
||
'预订失败'
}
}
else
{
uni
.
showToast
({
...
...
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