Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
million
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
viitto
million
Commits
77dd57b7
Commit
77dd57b7
authored
Feb 17, 2023
by
沈良进
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/viitto/million
parents
8d7211d9
d33c2887
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
49 deletions
+43
-49
allDay.vue
src/components/trip/block/allDay.vue
+14
-18
index.vue
src/components/trip/block/index.vue
+5
-6
detailsNew.vue
src/pages/detailsNew.vue
+24
-25
No files found.
src/components/trip/block/allDay.vue
View file @
77dd57b7
<
template
>
<div
class=
"block-item"
>
<!-- transition-prev="scale"
transition-next="scale" -->
<!-- transition-prev="slide-right"
transition-next="slide-left" -->
<q-carousel
v-model=
"slide"
<q-carousel
swipeable
animated
v-model=
"slide"
infinite
:autoplay=
"autoplay"
transition-prev=
"slide-right"
transition-next=
"slide-left"
swipeable
animated
control-color=
"white"
infinite
arrows
height=
"100%"
class=
"my-bg-grey text-black shadow-1 no-shadow"
control-type=
"regular"
:arrows=
"day.details.length>0?false:false"
control-text-color=
"primary"
ref=
"carousel"
>
ref=
"carousel"
>
<template
v-for=
"(x, i) in day.details"
>
<q-carousel-slide
:name=
"i"
class=
"column no-wrap"
>
<div
class=
"bg-white row"
>
...
...
@@ -29,12 +23,11 @@
></video>
</
template
>
<
template
v-else
>
<q-img
<q-img
@
click=
"showPreview(day.details,i)"
v-if=
"x.img"
:src=
"x.img"
:ratio=
" 16/9 "
style=
"width: 100%"
@
click=
"showPreview(day.details,i)"
>
<template
v-slot:error
>
<div
...
...
@@ -44,7 +37,7 @@
</div>
</
template
>
</q-img>
<q-img
<q-img
@
click=
"showPreview(day.details,i)"
v-else
src=
"../../../assets/img/nll.jpg"
:ratio=
" 16/9 "
...
...
@@ -179,6 +172,9 @@
};
</
script
>
<
style
scoped
>
.q-carousel
{
height
:
auto
!important
;
}
.q-carousel__slide
{
padding
:
0
!important
;
}
...
...
src/components/trip/block/index.vue
View file @
77dd57b7
...
...
@@ -9,10 +9,10 @@
</
style
>
<
template
>
<div
class=
"trip-box"
>
<div
:class=
"
{'trip-block':$q.platform.is.desktop,'q-pb-lg':$q.platform.is.mobile,'q-pt-lg':$q.platform.is.mobile
&&
i==0}" v-for="(item,i) in trips" :key="i
">
<div
:class=
"
{'trip-block':$q.platform.is.desktop,'q-pb-lg':$q.platform.is.mobile,'q-pt-lg':$q.platform.is.mobile
&&
i==0}"
v-for="(item,i) in trips" :key="i" :id="`days_${i}`
">
<template
v-if=
"$q.platform.is.desktop"
>
<div
class=
"trip-title"
:id=
"`days_$
{i}`"
>
<div
class=
"trip-title"
>
<div>
<p
class=
"day"
>
第
<span
v-if=
'item.dayNum
<10
'
>
0
</span>
{{
item
.
dayNum
}}
天
</p>
<!--
<p>
{{
item
.
dateTime
}}
</p>
-->
...
...
@@ -26,7 +26,7 @@
<fiveday
v-if=
"item.details && item.details.length>=5"
:day=
'item'
:isDirect=
"isDirect"
></fiveday>
</
template
>
<
template
v-else
>
<div
:id=
"`days_$
{i}`"
>
<div>
<div
class=
"bg-grey-3 q-px-lg q-py-md"
>
<div>
<div
class=
"fz28 text-red"
>
第
<span
class=
"fz28"
style=
"font-weight: bold;"
><span
v-if=
'item.dayNum
<10
'
>
0
</span>
{{
item
.
dayNum
}}
</span>
天
</div>
...
...
@@ -69,8 +69,7 @@
try
{
this
.
daysClass
.
forEach
((
x
,
i
)
=>
{
var
object
=
document
.
getElementById
(
`days_
${
i
}
`
);
x
.
top
=
object
.
getBoundingClientRect
().
top
+
100
x
.
top
=
object
.
getBoundingClientRect
().
top
+
60
})
}
catch
(
error
)
{
console
.
log
(
'----异常'
)
...
...
src/pages/detailsNew.vue
View file @
77dd57b7
...
...
@@ -244,10 +244,12 @@
></calendar>
</q-popup-proxy>
</q-field>
<template
v-if=
"currentPrice&¤tPrice.startDate"
>
<order-preview
class=
"q-pa-md"
:price=
"currentPrice"
@
reset=
"resetHandler"
></order-preview>
</
template
>
</div>
<div
class=
"text-h6 q-pt-lg"
v-if=
"$q.platform.is.mobile"
>
所選方案詳情
</div>
...
...
@@ -353,7 +355,7 @@
class=
"trip-module text-subtitle2 cursor-pointer q-mb-lg"
v-for=
"(x, i) in days"
:key=
"i"
@
click=
"goScrollHandler(x.top +
2
0)"
@
click=
"goScrollHandler(x.top +
10
0)"
:class=
"{
'active-trip-moduleDay text-red active':
currentHeight >= x.top &&
...
...
@@ -384,7 +386,7 @@
行程介紹
</div>
<div
class=
"q-pb-xl"
>
<smaple
:trip=
"dataList"
:class=
"
{'q-px-md': $q.screen.width
<
1220
&&$
q
.
platform
.
is
.
mobile
}"
></smaple>
<smaple
:trip=
"dataList"
:class=
"{'q-px-md': $q.screen.width < 1220&&$q.platform.is.
desktop
}"
></smaple>
<
template
v-if=
"dataList.dayList.length<=3"
>
<trip
:trip=
"dataList"
@
change=
"changeTripShowHandler"
></trip>
</
template
>
...
...
@@ -584,8 +586,6 @@ export default {
priceListHeight
:
0
,
stickyHeight
:
0
,
zoomDiyContext
:
1
,
currentHeightDay
:
0
,
stickyHeightDay
:
0
};
},
components
:
{
...
...
@@ -598,12 +598,6 @@ export default {
block
},
watch
:
{
currentHeightDay
:{
handler
:
function
(
val
,
oldval
)
{
this
.
currentHeightDay
=
val
},
deep
:
true
},
days
:
{
handler
:
function
(
val
,
oldval
)
{
this
.
days
=
val
...
...
@@ -670,7 +664,7 @@ export default {
// }
this
.
stickyHeight
=
document
.
querySelector
(
".q-header--hidden"
)
?
"translateY(0px)"
:
"translateY(
60
px)"
;
:
"translateY(
85
px)"
;
this
.
currentHeight
=
temp
;
if
(
this
.
videoPosition
>
0
&&
...
...
@@ -734,6 +728,7 @@ export default {
//console.log(e)
},
resetHandler
()
{
this
.
currentPrice
.
startDate
=
''
this
.
$refs
.
calendar
.
reset
();
},
changeChosenDateHandler
(
val
)
{
...
...
@@ -789,12 +784,16 @@ export default {
}
this
.
$nextTick
(()
=>
{
if
(
this
.
dataList
.
feature
.
featureHtml
!=
''
){
let
tw
=
this
.
$q
.
platform
.
is
.
desktop
?
parseFloat
(
this
.
$refs
.
diyContext
.
getBoundingClientRect
().
width
)
/
1123.0
:
parseFloat
(
let
tw
=
parseFloat
(
this
.
$refs
.
diyContext
.
getBoundingClientRect
().
width
)
/
975.0
;
)
/
1123.0
if
(
this
.
$q
.
platform
.
is
.
mobile
){
let
divArr
=
document
.
querySelectorAll
(
"#setZoom>div"
)
for
(
let
i
=
0
;
i
<
divArr
.
length
;
i
++
){
let
div
=
divArr
[
i
]
div
.
style
.
zoom
=
div
.
offsetWidth
>
1000
?
0.999
:
document
.
documentElement
.
clientWidth
/
1123.0
}
}
this
.
zoomDiyContext
=
tw
>
1
?
1
:
tw
.
toFixed
(
2
);
}
...
...
@@ -894,7 +893,8 @@ export default {
background
:
var
(
--q-color-primary
);
}
.trip-module
{
color
:
#9E9E9E
;
transition
:
all
.3s
;
font-weight
:
100
;
text-align
:
center
;
line-height
:
38px
;
...
...
@@ -905,10 +905,6 @@ export default {
border-radius
:
50%
;
font-family
:
lettergothicstd
;
}
.trip-module
{
color
:
#9E9E9E
;
transition
:
all
.3s
;
}
.active-trip-moduleDay
{
position
:
relative
;
border
:
0
;
...
...
@@ -929,4 +925,7 @@ export default {
line-height
:
58px
;
opacity
:
0
;
}
#setZoom
>
div
{
zoom
:
calc
(
100
/
1000
)
}
</
style
>
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