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
13f24301
Commit
13f24301
authored
Mar 06, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
机票
parent
088c517e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
107 additions
and
19 deletions
+107
-19
airTicketOrderDetail.vue
pages/airTicket/airTicketOrderDetail.vue
+93
-14
TicketOrderList.vue
pages/airTicket/components/TicketOrderList.vue
+11
-3
flightDetail.vue
pages/airTicket/flightDetail.vue
+3
-2
No files found.
pages/airTicket/airTicketOrderDetail.vue
View file @
13f24301
...
...
@@ -303,7 +303,10 @@
cancelVisible
:
false
,
priceVisible
:
false
,
dielineTime
:
''
,
guest
:[]
guest
:[],
submit
:
false
,
OrderTypeStr
:
''
,
OrderNo
:
''
,
}
},
computed
:{
...
...
@@ -334,7 +337,18 @@
},
components
:{
Flight
},
onLoad
(
options
)
{
if
(
options
.
id
)
{
if
(
options
.
OrderNo
||
(
options
.
id
&&
options
.
OrderTypeStr
)){
this
.
id
=
options
.
id
this
.
order
.
status
=
options
.
status
?
options
.
status
:
1
this
.
OrderTypeStr
=
options
.
OrderTypeStr
this
.
OrderNo
=
options
.
OrderNo
uni
.
setNavigationBarTitle
({
title
:
'特价机票订单详细信息'
})
this
.
setThemeHandle
()
this
.
getOrderInfoHandler
()
return
}
else
if
(
options
.
id
){
this
.
id
=
options
.
id
this
.
order
.
status
=
options
.
status
?
options
.
status
:
1
uni
.
setNavigationBarTitle
({
...
...
@@ -342,12 +356,77 @@
})
this
.
setThemeHandle
()
this
.
getOrderDetailHandle
()
return
}
this
.
navigatorToHomeHandle
()
},
methods
:
{
submitGetCodeByOrderNo
()
{
if
(
this
.
submit
)
return
;
this
.
submit
=
true
this
.
apipost
(
"GetCodeByOrderNo_post"
,
{
OrderNo
:
this
.
OrderNo
,
MallBaseId
:
uni
.
getStorageSync
(
"mall_UserInfo"
).
MallBaseId
},
(
res
)
=>
{
if
(
res
.
resultCode
==
1
)
{
this
.
orderInfo
=
JSON
.
parse
(
res
.
data
.
sPayInfo
)
this
.
goPayHandler
();
}
else
{
uni
.
showToast
({
title
:
res
.
message
,
icon
:
'none'
,
duration
:
3000
})
this
.
submit
=
false
;
}
});
},
goPayHandler
()
{
let
that
=
this
;
uni
.
requestPayment
({
provider
:
"wxpay"
,
timeStamp
:
this
.
orderInfo
.
timeStamp
,
nonceStr
:
this
.
orderInfo
.
nonceStr
,
package
:
this
.
orderInfo
.
package
,
signType
:
this
.
orderInfo
.
signType
,
paySign
:
this
.
orderInfo
.
sign
,
success
:
function
(
res
)
{
console
.
log
(
"success"
,
res
);
that
.
submit
=
false
;
uni
.
showToast
({
title
:
"支付成功"
,
});
setTimeout
(()
=>
{
uni
.
redirectTo
({
url
:
"/pages/jiuzhai/paysuccess?PreferPrice="
+
that
.
price
+
"&isFrom=4"
,
});
},
100
);
},
fail
:
function
(
err
)
{
console
.
log
(
"fail:"
,
err
);
that
.
submit
=
false
;
uni
.
showToast
({
title
:
"支付失败"
,
icon
:
"none"
,
});
},
});
},
getOrderInfoHandler
(){
this
.
apipost
(
"GetDetailsByErpOrderId_post"
,{
OrderNo
:
this
.
OrderNo
,
ErpOrderId
:
this
.
id
,
OrderTypeStr
:
this
.
OrderTypeStr
,
},
res
=>
{
if
(
res
.
resultCode
==
1
){
this
.
id
=
res
.
data
.
id
}
else
{
}
})
},
calcSafeArea
()
{
const
{
safeAreaInsets
}
=
uni
.
getSystemInfoSync
()
this
.
bottomSafeHeight
=
safeAreaInsets
.
bottom
>
0
?
(
safeAreaInsets
.
bottom
*
2
)
:
30
...
...
@@ -610,13 +689,13 @@
.f-order
.small
{
font-size
:
22
rpx
;
}
.f-order
.flight-status
{
background
:
#E1C278
;
border-radius
:
8
rpx
;
font-size
:
24
rpx
;
color
:
#111111
;
font-weight
:
400
;
padding
:
7
rpx
14
rpx
;
.f-order
.flight-status
{
background
:
#E1C278
;
border-radius
:
8
rpx
;
font-size
:
24
rpx
;
color
:
#111111
;
font-weight
:
400
;
padding
:
7
rpx
14
rpx
;
}
.f-order
.flight-time
{
font-weight
:
bold
;
...
...
@@ -734,9 +813,9 @@
box-shadow
:
0
0
20
rpx
#00000014
;
background-color
:
#FFF
;
}
.price-list-details
{
margin-bottom
:
40
rpx
;
color
:
#999
;
font-size
:
24
rpx
;
.price-list-details
{
margin-bottom
:
40
rpx
;
color
:
#999
;
font-size
:
24
rpx
;
}
</
style
>
pages/airTicket/components/TicketOrderList.vue
View file @
13f24301
...
...
@@ -206,9 +206,17 @@
},
getDetail
(
orderId
,
s
){
const
status
=
s
==
1
?
1
:(
s
==
4
?
2
:
0
)
uni
.
navigateTo
({
url
:
`/pages/airTicket/airTicketOrderDetail?id=
${
orderId
}
&status=
${
status
}
`
});
// #ifdef MP-DI
uni
.
navigateTo
({
url
:
`/pages/airTicket/airTicketOrderDetail?id=
${
orderId
}
&status=
${
status
}
&OrderTypeStr=DMC`
,
});
// #endif
// #ifdef MP-AG
uni
.
navigateTo
({
url
:
`/pages/airTicket/airTicketOrderDetail?id=
${
orderId
}
&status=
${
status
}
`
});
// #endif
},
//微信支付
queren
(
OrderId
,
i
)
{
...
...
pages/airTicket/flightDetail.vue
View file @
13f24301
...
...
@@ -520,6 +520,7 @@
let
PriceNum
=
0
var
CreateBy
=
0
var
DirectCustomerId
=
0
var
CustomerId
=
0
//#ifdef MP-DI
PriceNum
=
this
.
flight
.
B2CPrice
DirectCustomerId
=
this
.
createBy
.
CreateBy
...
...
@@ -527,6 +528,7 @@
//#ifdef MP-AG
PriceNum
=
this
.
flight
.
B2CPrice
CreateBy
=
this
.
createBy
.
CreateBy
CustomerId
=
this
.
customer
.
customerId
//#endif
const
p
=
{
OrderId
:
0
,
...
...
@@ -540,7 +542,7 @@
GroupType
:
5
,
ContactName
:
this
.
contactName
,
ContactMobile
:
this
.
contactPhone
,
CustomerId
:
this
.
customer
.
c
ustomerId
,
CustomerId
:
C
ustomerId
,
OrderSource
:
5
,
Unit_Price
:
PriceNum
,
TC_Price
:
PriceNum
,
...
...
@@ -554,7 +556,6 @@
GuestNum
:
this
.
crCount
+
this
.
etCount
+
this
.
babyCount
,
PlaceOrderFrom
:
2
,
MiniAppUserId
:
mallUser
.
UserId
,
DirectCustomerId
:
DirectCustomerId
,
EnterID
:
0
,
GuestList
:
list
,
CreateBy
:
CreateBy
,
...
...
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