Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
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
zhengke
jz_Travel
Commits
b536f4c8
Commit
b536f4c8
authored
Mar 06, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
机票
parent
8b6ff7a8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
4 deletions
+57
-4
TicketOrderList.vue
pages/airTicket/components/TicketOrderList.vue
+57
-4
No files found.
pages/airTicket/components/TicketOrderList.vue
View file @
b536f4c8
...
...
@@ -62,10 +62,23 @@
<text
class=
"fz32"
>
¥
</text>
{{item.preferPrice}}
</view>
<!-- #ifdef MP-DI -->
<view
v-if=
"index==1&&(item.orderState==1||item.orderState==2||item.orderState==3)"
class=
"fz32 relative TicketOrderListCard-PrQx"
:class=
"[item.loading?'color9999A5':'colorDEBF7B']"
@
click
.
stop=
"cancelOrderZK(item,i)"
>
取 消
</view>
<view
v-if=
"index==1&&(item.orderState==1||item.orderState==2||item.orderState==3)"
class=
"fz32 relative TicketOrderListCard-PrQx"
:class=
"[item.loading?'color9999A5':'colorDEBF7B']"
@
click
.
stop=
"getDetail(item.orderId,item.orderState)"
>
立即支付
</view>
<!-- #endif -->
<!-- #ifdef MP-AG -->
<view
v-if=
"index==1&&(item.orderState==1||item.orderState==2||item.orderState==3)"
class=
"fz32 relative TicketOrderListCard-PrQx"
:class=
"[item.loading?'color9999A5':'colorDEBF7B']"
@
click
.
stop=
"cancelOrder(item,i)"
>
取 消
</view>
<!-- #endif -->
</view>
</view>
<view
class=
"row-w"
>
...
...
@@ -204,6 +217,46 @@
);
}
},
cancelOrderZK
(
item
,
i
){
let
that
=
this
this
.
i
=
i
if
(
this
.
DataLists
[
this
.
i
].
loading
){
return
}
//未付款-调用后台取消
uni
.
showLoading
({
title
:
"请稍等片刻..."
,
})
this
.
DataLists
[
this
.
i
].
loading
=
true
if
(
(
item
.
paymentTime
==
null
||
item
.
paymentTime
==
""
)
&&
(
item
.
orderState
==
1
||
item
.
orderState
==
2
)
)
{
this
.
apipost
(
"GetCancelOrder_post"
,
{
OrderNo
:
''
,
ErpOrderId
:
item
.
orderId
,
OrderTypeStr
:
'DMC'
,
},
(
res
)
=>
{
if
(
res
.
resultCode
==
1
)
{
uni
.
showToast
({
title
:
"操作成功"
,
icon
:
"success"
,
});
that
.
$emit
(
'research'
,
that
.
dataMsg
.
orderState
)
}
uni
.
hideLoading
()
this
.
DataLists
[
this
.
i
].
loading
=
false
},
(
err
)
=>
{
uni
.
hideLoading
()
this
.
DataLists
[
this
.
i
].
loading
=
false
}
);
}
},
getDetail
(
orderId
,
s
){
const
status
=
s
==
1
?
1
:(
s
==
4
?
2
:
0
)
// #ifdef MP-DI
...
...
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