|
@@ -59,6 +59,7 @@ export default defineComponent({
|
|
|
const route = useRoute();
|
|
|
const router = useRouter();
|
|
|
const isScreenScroll = ref(false)
|
|
|
+ const creationHeight = ref(0)
|
|
|
const lottieDom = ref()
|
|
|
const lottieDom1 = ref()
|
|
|
const lottieDom2 = ref()
|
|
@@ -318,6 +319,7 @@ export default defineComponent({
|
|
|
};
|
|
|
// 滚动事件
|
|
|
const cleanScrollEvent = useEventListener('scroll', () => {
|
|
|
+ creationHeight.value = window.innerHeight
|
|
|
const height =
|
|
|
window.scrollY ||
|
|
|
document.documentElement.scrollTop
|
|
@@ -451,7 +453,7 @@ export default defineComponent({
|
|
|
browser().isTablet ? styles.creationTablet : '',
|
|
|
isScreenScroll.value && styles.isShareScreenScroll
|
|
|
]}>
|
|
|
- <div class={styles.creationBg}></div>
|
|
|
+ <div style={ creationHeight.value ? {"--creationHeight":creationHeight.value + "px"} : {}} class={styles.creationBg}></div>
|
|
|
<MSticky position="top"
|
|
|
onBarHeight={(height: any) => {
|
|
|
console.log(height, 'height', height)
|