Commit 9a3126f4 by xiexiaoqin

fix: backtotoday

parent f15357ea
...@@ -56,6 +56,7 @@ create.Page({ ...@@ -56,6 +56,7 @@ create.Page({
this.getPages(1); this.getPages(1);
//获取日程列表 //获取日程列表
this.getData(); this.getData();
this.isFirstLoad = true;
}, },
//动态列表侧滑的时候禁止页面上下滑动 //动态列表侧滑的时候禁止页面上下滑动
setBodyDisableScroll(isStopBodyScroll) { setBodyDisableScroll(isStopBodyScroll) {
...@@ -608,5 +609,9 @@ create.Page({ ...@@ -608,5 +609,9 @@ create.Page({
if (tabbar == '1' && lastTimeTabBarIndex == tabbar) { if (tabbar == '1' && lastTimeTabBarIndex == tabbar) {
this.backToToday(); this.backToToday();
} }
if (this.isFirstLoad) {
this.backToToday();
this.isFirstLoad = false;
}
} }
}); });
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