From c99a662edbd0c23e5c88e8a1531f9b10af6539d8 Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期五, 21 一月 2022 16:47:03 +0800 Subject: [PATCH] Fixed#134576 修正 [ 顧問管理流程 ] 未聯絡預約單資訊明細 : 應只顯示「傳送約訪通知」按鈕,目前畫面顯示結案、約訪紀錄、系統通知紀錄編輯 --- PAMapp/components/Ui/UiGoToTop.vue | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/PAMapp/components/Ui/UiGoToTop.vue b/PAMapp/components/Ui/UiGoToTop.vue index 803cf3f..8ceb2f7 100644 --- a/PAMapp/components/Ui/UiGoToTop.vue +++ b/PAMapp/components/Ui/UiGoToTop.vue @@ -16,11 +16,19 @@ export default class UiGoToTop extends Vue { buttonDisplay = 'none'; + ////////////////////////////////////////////////////////////////// + created() { if (process.browser) { - window.onscroll = () => { this.scrollFunction() }; + document.body.addEventListener('scroll', this.scrollFunction); } } + + destroyed() { + document.body.removeEventListener('scroll', this.scrollFunction); + } + + ////////////////////////////////////////////////////////////////// scrollFunction() { if (document.body.scrollTop > 300 || document.documentElement.scrollTop > 300) { @@ -62,4 +70,4 @@ background-color: $MID_GREY; } } -</style> \ No newline at end of file +</style> -- Gitblit v1.8.0