Commit b842b42d by fengzhaoyu

fix: 首次进入日程页定位到当天问题

parent 3fab171c
......@@ -34,7 +34,7 @@ create.Page({
$data: null,
iconDay: currentDate.getDate(),
scheduleList: [],
todayStr: toLocaleDateString(currentDate),
todayStr: '',
currentData: toLocaleDateString(currentDate),
currentDataIndex: 0,
offset: "stop",
......@@ -170,7 +170,9 @@ create.Page({
loading: false
});
this.isLoaded = true;
setTimeout(() => {
this.backToToday('first')
}, 300)
return;
}
......@@ -181,7 +183,9 @@ create.Page({
sign: res.data.data.sign
})
if (this.isFirstLoad) {
setTimeout(() => {
this.backToToday('first')
}, 300)
this.isFirstLoad = false;
}
return
......
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