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
fdbcfc81
Commit
fdbcfc81
authored
Jun 03, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
7973f272
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
89 additions
and
5 deletions
+89
-5
jz_Line.vue
pages/jiuzhai/jz_Line.vue
+6
-3
jz_LineDetail.vue
pages/jiuzhai/jz_LineDetail.vue
+83
-2
No files found.
pages/jiuzhai/jz_Line.vue
View file @
fdbcfc81
...
...
@@ -514,6 +514,7 @@
"天数日期"
,
"出发城市"
],
CityId
:
0
};
},
created
()
{
...
...
@@ -534,8 +535,9 @@
this
.
branchList
=
res
.
data
.
SiteList
;
this
.
startCitys
=
res
.
data
.
CityList
;
this
.
lineList
=
res
.
data
.
linePlaceList
;
this
.
msg
.
companyId
=
this
.
branchList
[
0
].
BId
this
.
currentBrachName
=
this
.
branchList
[
0
].
BName
this
.
msg
.
companyId
=
this
.
branchList
[
0
].
BId
;
this
.
currentBrachName
=
this
.
branchList
[
0
].
BName
;
this
.
CityId
=
this
.
branchList
[
0
].
CityId
;
}
},
null
...
...
@@ -544,6 +546,7 @@
changeBranch
(
val
)
{
this
.
msg
.
companyId
=
this
.
branchList
[
val
].
BId
this
.
currentBrachName
=
this
.
branchList
[
val
].
BName
this
.
CityId
=
this
.
branchList
[
val
].
CityId
;
this
.
research
();
},
setDays
(
day
)
{
...
...
@@ -707,7 +710,7 @@
//跳转至详情
goJzDetail
(
tcid
,
configId
)
{
uni
.
navigateTo
({
url
:
"/pages/jiuzhai/jz_LineDetail?tcid="
+
tcid
+
'&configId='
+
configId
url
:
"/pages/jiuzhai/jz_LineDetail?tcid="
+
tcid
+
'&configId='
+
configId
+
'&cityId='
+
this
.
CityId
});
},
//获取第一张图
...
...
pages/jiuzhai/jz_LineDetail.vue
View file @
fdbcfc81
...
...
@@ -138,6 +138,41 @@
</view>
<view
class=
"jz_Zhankai"
style=
"display:none;"
>
展开全部
</view>
</view>
<view
class=
"jz_TripDays"
>
<span
style=
"display: inline-block;position: relative;margin-bottom:40rpx;"
>
<text
style=
"position: relative;z-index: 2; color:#1F1F1F;font-size:36rpx;font-weight:bold;"
>
往返交通
</text>
<span
style=
"width:40px;background-color: #DFBE6E;height: 6px;bottom: 2px;left: 0;right: 0;position: absolute;z-index: 1;"
></span>
</span>
<view
class=
"jz_TripMain"
>
<view>
<view
class=
"jz_Flight"
v-for=
"(fItem,fIndex) in dataList.currentPriceInfo.priceFlight"
:key=
"fIndex"
>
<view
class=
"jz_FlightItem"
>
<view
style=
"width:150rpx;"
>
<view
class=
"jz_FlightTitle"
>
{{fItem.departureAirPortName}}
</view>
<view
class=
"jz_FlightBottom"
>
{{fItem.departureTime}}
</view>
</view>
<view
class=
"jz_FlightIcon"
>
<view
style=
"display: flex;align-items: center;font-size:24rpx;"
>
<img
v-if=
"fItem.trafficType==1"
style=
"width:30rpx;height:30rpx;"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/CustomizedCar/airfly.png"
alt=
""
/>
<img
v-if=
"fItem.trafficType==2"
style=
"width:30rpx;height:30rpx;"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/CustomizedCar/train.png"
alt=
""
/>
<view
style=
"margin-left:10rpx;"
>
{{fItem.flightNumber}}
</view>
</view>
<view
class=
"jz_Arrow"
>
<img
style=
"width:110rpx;height:8rpx;"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/CustomizedCar/b_arrow.png"
/>
</view>
<view
class=
"jz_StartDate"
>
{{getFlightDay(fItem.startDate)}}
</view>
</view>
<view
style=
"width:150rpx;"
>
<view
class=
"jz_FlightTitle"
>
{{fItem.arrivalAirPortName}}
</view>
<view
class=
"jz_FlightBottom"
>
{{fItem.arrivalTime}}
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"jz_TripDays"
>
<span
style=
"display: inline-block;position: relative;margin-bottom:40rpx;"
>
<text
style=
"position: relative;z-index: 2; color:#1F1F1F;font-size:36rpx;font-weight:bold;"
>
行程特色
</text>
...
...
@@ -336,7 +371,8 @@
delMsg
:
{
tcid
:
0
,
configId
:
0
,
tcnum
:
''
tcnum
:
''
,
cityId
:
0
},
scenicNum
:
0
,
// 景点数量
breakfastNum
:
0
,
//早餐数
...
...
@@ -354,9 +390,10 @@
},
onLoad
(
option
)
{
if
(
option
.
tcid
&&
option
.
configId
)
{
if
(
option
.
tcid
&&
option
.
configId
&&
option
.
cityId
)
{
this
.
delMsg
.
tcid
=
option
.
tcid
;
this
.
delMsg
.
configId
=
option
.
configId
;
this
.
delMsg
.
cityId
=
option
.
cityId
;
this
.
getDetails
();
}
let
that
=
this
...
...
@@ -466,6 +503,12 @@
return
Myday
[
1
]
+
'-'
+
Myday
[
2
]
}
},
getFlightDay
(
day
){
if
(
day
)
{
let
Myday
=
day
.
split
(
'-'
);
return
Myday
[
1
]
+
'月'
+
Myday
[
2
]
+
'日'
}
},
//点击切换
getDayInfo
(
item
){
if
(
this
.
crCount
+
this
.
etCount
>
this
.
currentPrice
.
totalSeat
){
...
...
@@ -508,6 +551,40 @@
};
</
script
>
<
style
>
.jz_FlightItem
{
display
:
flex
;
justify-content
:
space-between
;
width
:
90%
;
margin
:
auto
;
margin-bottom
:
45
rpx
;
}
.jz_FlightTitle
{
color
:
#999999
;
font-size
:
24
rpx
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
word-break
:
break-all
;
}
.jz_Arrow
{
position
:
absolute
;
top
:
17
rpx
;
}
.jz_StartDate
{
color
:
#999999
;
font-size
:
24
rpx
;
margin-top
:
25
rpx
;
}
.jz_FlightBottom
{
color
:
#111111
;
font-size
:
26
rpx
;
margin-top
:
10
rpx
;
}
.jz_FlightIcon
{
text-align
:
center
;
position
:
relative
;
flex-shrink
:
0
;
}
.jz_LineDetail
{
background-color
:
#ECF1F4
;
padding-bottom
:
70px
;
...
...
@@ -957,4 +1034,8 @@
border
:
none
!important
;
height
:
auto
!important
;
}
.jz_Flight
{
display
:
flex
;
justify-content
:
space-between
;
}
</
style
>
\ No newline at end of file
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