Sfoglia il codice sorgente

feat: 底部下载提示添加是否有footer判断

zhangsiya 1 anno fa
parent
commit
a848f46551

+ 2 - 2
apps/bigmember_pc/src/components/download-report/DownloadBottomTip.vue

@@ -26,7 +26,7 @@
 </template>
 
 <script>
-import { debounce, throttle } from 'lodash'
+import { throttle } from 'lodash'
 export default {
   props: {
     typeText:{
@@ -52,6 +52,7 @@ export default {
     }
   },
   mounted () {
+    this.windowScrollFn()
     this.$on('hook:mounted', () => {
       // dom插入到根元素
       window.addEventListener('scroll', this.windowScrollFn)
@@ -74,7 +75,6 @@ export default {
     },
     windowScrollFn: throttle (function () {
       const $ = this.$querySelector.bind(this)
-      const stickyFooter = $(this.$el)
       // 吸底
       // 如果距离底部
       const bottomFooter = document.querySelector('.j-bottom')