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
6251094e
Commit
6251094e
authored
Feb 21, 2025
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改样式
parent
9d41d1be
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
8 deletions
+23
-8
airCity.vue
pages/airTicket/airCity.vue
+18
-3
airIndex.vue
pages/airTicket/airIndex.vue
+3
-3
ticketList.vue
pages/airTicket/ticketList/ticketList.vue
+2
-2
No files found.
pages/airTicket/airCity.vue
View file @
6251094e
...
...
@@ -34,14 +34,14 @@
mode="aspectFill">
</image>
<view
class=
"city-list-item col"
>
<view
@
click=
"goListHandle('')"
style=
"margin-bottom: 30rpx;"
class=
" row items-center"
>
<view
@
click=
"goListHandle(''
,x
)"
style=
"margin-bottom: 30rpx;"
class=
" row items-center"
>
<view
class=
"bold col"
>
{{
x
.
DepartureName
}}
-
{{
x
.
ArrivalCityName
}}
</view>
<view
class=
"row items-center"
>
<view
style=
"font-size: 22rpx;"
>
更多日期
</view>
<u-icon
name=
'arrow_right'
custom-prefix=
"tffont"
color=
"#00000066"
size=
"28"
></u-icon>
</view>
</view>
<view
@
click=
"goListHandle(f.FlightDate)"
class=
"flights row items-center"
v-for=
"(f,fi) in x.TicketProductList"
>
<view
@
click=
"goListHandle(f.FlightDate
,x
)"
class=
"flights row items-center"
v-for=
"(f,fi) in x.TicketProductList"
>
<image
style=
"width: 30rpx;"
:src=
"`https://static.tripcdn.com/packages/flight/airline-logo/latest/airline/48/$
{f.AlCode}.png`" mode="widthFix">
</image>
<view
style=
"font-size: 22rpx;width:50rpx;margin:0 4px"
>
{{
f
.
DayCount
}}
天
...
...
@@ -252,7 +252,22 @@
})
this
.
getTopLowTicketHandle
()
},
goListHandle
(
val
){
goListHandle
(
val
,
x
){
const
newCityInfo
=
[{
type
:
0
,
ID
:
x
.
DepartureCity
,
Name
:
x
.
DepartureName
},
{
type
:
1
,
ID
:
x
.
ArrivalCityId
,
Name
:
x
.
ArrivalCityName
}
]
uni
.
setStorageSync
(
'scf'
,{
cities
:
newCityInfo
,
dateRange
:
this
.
dateRangeValue
})
let
url
=
'/pages/airTicket/ticketList/ticketList'
if
(
val
!=
''
){
url
+=
`?dv=
${
encodeURIComponent
(
val
)}
`
...
...
pages/airTicket/airIndex.vue
View file @
6251094e
...
...
@@ -164,9 +164,9 @@
},
components
:{
CityList
,
DateRange
},
created
()
{
if
(
uni
.
getStorageSync
(
"tdr"
)){
this
.
dateRangeValue
=
uni
.
getStorageSync
(
"tdr"
)
}
//
if(uni.getStorageSync("tdr")){
//
this.dateRangeValue = uni.getStorageSync("tdr")
//
}
this
.
getTopLowTicketHandle
()
},
mounted
()
{
...
...
pages/airTicket/ticketList/ticketList.vue
View file @
6251094e
...
...
@@ -28,7 +28,7 @@
</view>
<template
v-else
>
<view
class=
"time-list row"
style=
"padding:0 12rpx;"
>
<scroll-view
:scroll-left=
"scrollLeft"
scroll-x
class=
"col header-scroll"
style=
"padding:12rpx 0;width:1px"
>
<scroll-view
:scroll-left=
"scrollLeft"
scroll-x
class=
"col header-scroll"
style=
"padding:12rpx 0;width:1px
;
"
>
<view
class=
"row items-center"
>
<view
class=
"time-item"
:id=
"'a'+x.FlightDate.replaceAll('-','')"
@
click=
"flightDateChangeHandle(x.FlightDate)"
:class=
"
{'active':currentDate==x.FlightDate}" v-for="(x,i) in lowHeadData" :key="i">
...
...
@@ -40,7 +40,7 @@
</scroll-view>
<view
class=
"time-item more row items-center justify-center"
>
<date-select
@
change=
"dateFilterChange"
:default-value=
"[filterDate.start,filterDate.end]"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638753835239709518.png"
mode=
"widthFix"
style=
"width: 30rpx;"
></image>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638753835239709518.png"
mode=
"widthFix"
style=
"width: 30rpx;
max-height: 60px;
"
></image>
</date-select>
</view>
</view>
...
...
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