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
ca5bd923
Commit
ca5bd923
authored
Oct 23, 2023
by
18224442217
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
47defa81
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
8 deletions
+22
-8
TicketOrderDetails.vue
pages/airTicket/TicketOrderDetails.vue
+6
-3
airTicketDetails.vue
pages/airTicket/airTicketDetails.vue
+6
-3
airTicketList.vue
pages/airTicket/airTicketList.vue
+10
-2
No files found.
pages/airTicket/TicketOrderDetails.vue
View file @
ca5bd923
...
...
@@ -460,9 +460,12 @@
}
this
.
NewDetailsList
.
push
(
obj
)
}
this
.
NewDetailsList
.
forEach
(
x
=>
{
if
(
x
.
FlightList
.
length
>
1
){
x
.
show
=
false
this
.
NewDetailsList
.
forEach
((
y
,
index
)
=>
{
if
(
y
.
FlightList
.
length
>
1
){
y
.
show
=
false
}
if
(
index
){
y
.
duration
=
`
${
y
.
ArrivalTime
.
Days
>
0
?
y
.
ArrivalTime
.
Days
+
'd '
:
''
}${
y
.
ArrivalTime
.
Hours
>
0
?
y
.
ArrivalTime
.
Hours
+
'h '
:
''
}${
y
.
ArrivalTime
.
Minutes
>
0
?
y
.
ArrivalTime
.
Minutes
+
'm '
:
''
}
`
}
})
}
...
...
pages/airTicket/airTicketDetails.vue
View file @
ca5bd923
...
...
@@ -455,12 +455,15 @@
}
arr
(
res
.
data
.
FlightList
)
this
.
DetailsList
=
res
.
data
.
FlightList
this
.
DetailsList
.
forEach
(
y
=>
{
this
.
DetailsList
.
forEach
(
(
y
,
index
)
=>
{
let
date
=
y
.
FlightDate
.
split
(
'-'
)
y
.
time
=
`
${
date
[
1
]}
-
${
date
[
2
]}
`
y
.
week
=
getDateWeek
(
y
.
FlightDate
)
y
.
duration
=
`
${
y
.
DepartureTime
.
Days
>
0
?
y
.
DepartureTime
.
Days
+
'd '
:
''
}${
y
.
DepartureTime
.
Hours
>
0
?
y
.
DepartureTime
.
Hours
+
'h '
:
''
}${
y
.
DepartureTime
.
Minutes
>
0
?
y
.
DepartureTime
.
Minutes
+
'm '
:
''
}
`
// y.frequency = this.DetailsList.length-2>1?this.DetailsList.length-2:0
if
(
index
){
y
.
duration
=
`
${
y
.
ArrivalTime
.
Days
>
0
?
y
.
ArrivalTime
.
Days
+
'd '
:
''
}${
y
.
ArrivalTime
.
Hours
>
0
?
y
.
ArrivalTime
.
Hours
+
'h '
:
''
}${
y
.
ArrivalTime
.
Minutes
>
0
?
y
.
ArrivalTime
.
Minutes
+
'm '
:
''
}
`
}
else
{
y
.
duration
=
`
${
y
.
DepartureTime
.
Days
>
0
?
y
.
DepartureTime
.
Days
+
'd '
:
''
}${
y
.
DepartureTime
.
Hours
>
0
?
y
.
DepartureTime
.
Hours
+
'h '
:
''
}${
y
.
DepartureTime
.
Minutes
>
0
?
y
.
DepartureTime
.
Minutes
+
'm '
:
''
}
`
}
})
let
FlightList
=
[]
let
NewFlightList
=
[]
...
...
pages/airTicket/airTicketList.vue
View file @
ca5bd923
...
...
@@ -288,12 +288,20 @@
y
.
Price
=
this
.
isToken
?
y
.
B2BPrice
:
y
.
B2CPrice
y
.
NewFlightList
=
[]
if
(
y
.
FlightList
.
length
>
0
&&
y
.
FlightList
.
length
<
3
){
y
.
FlightList
.
forEach
(
z
=>
{
let
obj
=
{
y
.
FlightList
.
forEach
((
z
,
index
)
=>
{
let
obj
=
{}
obj
=
{
duration
:
`
${
y
.
DepartureTime
.
Days
>
0
?
y
.
DepartureTime
.
Days
+
'd '
:
''
}${
y
.
DepartureTime
.
Hours
>
0
?
y
.
DepartureTime
.
Hours
+
'h '
:
''
}${
y
.
DepartureTime
.
Minutes
>
0
?
y
.
DepartureTime
.
Minutes
+
'm '
:
''
}
`
,
Days
:
1
,
...
z
}
if
(
index
){
obj
=
{
duration
:
`
${
y
.
ArrivalTime
.
Days
>
0
?
y
.
ArrivalTime
.
Days
+
'd '
:
''
}${
y
.
ArrivalTime
.
Hours
>
0
?
y
.
ArrivalTime
.
Hours
+
'h '
:
''
}${
y
.
ArrivalTime
.
Minutes
>
0
?
y
.
ArrivalTime
.
Minutes
+
'm '
:
''
}
`
,
Days
:
1
,
...
z
}
}
y
.
NewFlightList
.
push
(
obj
)
})
}
else
if
(
y
.
FlightList
.
length
>
2
){
...
...
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