Commit 727e576d authored by youjie's avatar youjie

行程绝对定位导航

parent 7b69fddd
<template> <template>
<div style="min-height: 80vh;overflow: hidden;"> <div class="" style="min-height: 80vh;overflow: hidden;">
<div v-if="dataList && !$q.loading.isActive"> <div v-if="dataList && !$q.loading.isActive"
class="relative"
style="max-width: 1200px;margin: auto;">
<div <div
style=" style="
position: fixed; position: fixed;
...@@ -406,20 +408,13 @@ ...@@ -406,20 +408,13 @@
<div <div
v-if="dataList" v-if="dataList"
style="width: 1200px; margin-left: auto; margin-right: auto" style="width: 1200px; margin-left: auto; margin-right: auto"
class="q-mt-xl row relative" class="q-mt-xl row"
:class="{ 'q-px-md': $q.screen.width < 1220 && $q.screen.width > 760 }" :class="{ 'q-px-md': $q.screen.width < 1220 && $q.screen.width > 760 }"
> >
<!-- col q-ml-xl position-relative --> <!-- col q-ml-xl position-relative -->
<!-- dataList.priceList.length > 0 &&
!(dataList.priceList && dataList.priceList[0].teamType == 2) &&
!(dataList.currentPrice && dataList.currentPrice.teamType == 2) &&
currentHeight > days[0].top - 60 &&
currentHeight < navs[2].top &&
$q.platform.is.desktop -->
<div <div
:class="{'fixed':$q.platform.is.desktop}" class="absolute" style="z-index: 999;left: -150px;"
:style="{'top':currentHeight>navs[1].top?'200px':'200px', :style="{'top':currentHeight>navs[1].top?(currentHeight+100)+'px':(currentHeight+200)+'px'}"
'left':currentHeight>navs[1].top?'180px':'180px',}"
v-if=" v-if="
dataList.priceList.length > 0&&$q.platform.is.desktop&&currentHeight>navs[1].top-400 dataList.priceList.length > 0&&$q.platform.is.desktop&&currentHeight>navs[1].top-400
&&currentHeight<navs[2].top &&currentHeight<navs[2].top
...@@ -459,7 +454,7 @@ ...@@ -459,7 +454,7 @@
> >
行程特色 行程特色
</div> </div>
<div class="relative"> <div>
<div class="q-pb-xl" v-if="tripImages&&tripImages.length>0" <div class="q-pb-xl" v-if="tripImages&&tripImages.length>0"
ref="diyContext"> ref="diyContext">
...@@ -651,15 +646,12 @@ ...@@ -651,15 +646,12 @@
</div> --> </div> -->
</div> </div>
<template v-if="$q.platform.is.desktop&&currentHeight>130 <template v-if="$q.platform.is.desktop&&currentHeight>130
&&$refs.journeyLookOut.getBoundingClientRect().top+currentHeight-300>currentHeight"> &&$refs.journeyLookOut.getBoundingClientRect().top+currentHeight-280>currentHeight">
<!-- <div class="col-1"></div> --> <!-- <div class="col-1"></div> -->
<!-- col q-ml-xl position-relative --> <!-- col q-ml-xl position-relative -->
<div <div
:class="{'absolute':currentHeight<1000, class="absolute" style="z-index: 999;right: -150px;"
'fixed':currentHeight>1000}" :style="{'top':currentHeight<1000?'1000px':(currentHeight+100)+'px'}">
:style="{'top':currentHeight<1000?'0':'100px',
'right':currentHeight<1000?'-150px':'170px',}">
<!-- style="position: sticky; top: 100px" --> <!-- style="position: sticky; top: 100px" -->
<div> <div>
<div <div
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment