Commit 179c66db by fengzhaoyu

冲突解决

parent 9c558144
...@@ -66,24 +66,10 @@ create.Component({ ...@@ -66,24 +66,10 @@ create.Component({
} }
// 第一次加载 // 第一次加载
const today = new Date(); const today = new Date();
// finalDate 是用来定位到今天的
const finalDate = new Date(today);
// finalDate.setDate(today.getDate() - today.getDay())
// <<<<<<< HEAD
// that.setData({
// scheduleList: scheduleList,
// todayStr: finalDate.toLocaleDateString(),
// thisYear: year,
// maxYear: year,
// canClick: true,
// startPageOnShow: true,
// isFirstLoad: false
// });
// =======
that.setData( that.setData(
{ {
scheduleList: scheduleList, scheduleList: scheduleList,
todayStr: finalDate.toLocaleDateString(), todayStr: today.toLocaleDateString(),
thisYear: year, thisYear: year,
maxYear: year maxYear: year
}, },
...@@ -91,7 +77,6 @@ create.Component({ ...@@ -91,7 +77,6 @@ create.Component({
console.log(new Date().getTime()); console.log(new Date().getTime());
} }
); );
// >>>>>>> 8548e2b26ad549008cdd8c9e5e2bf83d67124e7d
} }
); );
}); });
...@@ -176,16 +161,7 @@ create.Component({ ...@@ -176,16 +161,7 @@ create.Component({
let rule = RRule.fromString( let rule = RRule.fromString(
`${item.recurrenceModel.recurrenceRule};DTSTART=${DTSTART}` `${item.recurrenceModel.recurrenceRule};DTSTART=${DTSTART}`
); );
// rule.options.tzid = "Asia/Hong_Kong"; rule.options.tzid = "Asia/Hong_Kong";
// 改变时区
// <<<<<<< HEAD
// let rullAll = rule.all()
// rule.all().map(item => {
// console.log(item.toLocaleDateString())
// })
// =======
// >>>>>>> 8548e2b26ad549008cdd8c9e5e2bf83d67124e7d
// 判断是否需要剔除某一天 // 判断是否需要剔除某一天
if (item.excludePlanDates) { if (item.excludePlanDates) {
// 拿到剔除日期的list // 拿到剔除日期的list
......
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