Commit aaf5f809 authored by youjie's avatar youjie

修复bug

parent 27908996
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
(currentHeight > navs[0].top + 100 && $q.platform.is.desktop) || (currentHeight > navs[0].top + 100 && $q.platform.is.desktop) ||
(currentHeight > priceListHeight && (currentHeight > priceListHeight &&
currentHeight < navs[0].top currentHeight < navs[0].top
)||$q.platform.is.mobile )
" :style="{ transform: $q.platform.is.mobile?'':stickyHeight }"> " :style="{ transform: stickyHeight}">
<div style="max-width: 1200px; margin-left: auto; margin-right: auto" <div style="max-width: 1200px; margin-left: auto; margin-right: auto"
:class="{ 'q-px-md': $q.screen.width < 1220 }" class="q-py-sm row items-center"> :class="{ 'q-px-md': $q.screen.width < 1220 }" class="q-py-sm row items-center">
<span class="col product-price text-subtitle1 text-weight-bold" style="text-align: left" <span class="col product-price text-subtitle1 text-weight-bold" style="text-align: left"
...@@ -739,6 +739,9 @@ ...@@ -739,6 +739,9 @@
this.stickyHeight = document.querySelector(".q-header--hidden") ? this.stickyHeight = document.querySelector(".q-header--hidden") ?
"translateY(0px)" : "translateY(0px)" :
"translateY(54px)"; "translateY(54px)";
if(this.$q.platform.is.mobile&&temp>54){
this.stickyHeight = "translateY(0px)";
}
this.currentHeight = temp; this.currentHeight = temp;
if ( if (
this.videoPosition > 0 && this.videoPosition > 0 &&
......
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