From 9a3126f465479620379d3cca40915422355b95e0 Mon Sep 17 00:00:00 2001 From: xiexiaoqin <xie.xiaoqin@mingwork.com> Date: Tue, 14 Apr 2020 18:45:13 +0800 Subject: [PATCH] fix: backtotoday --- pages/scheduleList/scheduleList.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pages/scheduleList/scheduleList.js b/pages/scheduleList/scheduleList.js index a8a32de..58d2024 100644 --- a/pages/scheduleList/scheduleList.js +++ b/pages/scheduleList/scheduleList.js @@ -56,6 +56,7 @@ create.Page({ this.getPages(1); //获取日程列表 this.getData(); + this.isFirstLoad = true; }, //动态列表侧滑的时候禁止页面上下滑动 setBodyDisableScroll(isStopBodyScroll) { @@ -608,5 +609,9 @@ create.Page({ if (tabbar == '1' && lastTimeTabBarIndex == tabbar) { this.backToToday(); } + if (this.isFirstLoad) { + this.backToToday(); + this.isFirstLoad = false; + } } }); -- libgit2 0.26.0