Commit 045a7a4e by xiexiaoqin

日程添加时间排序

parent bdc841c4
......@@ -453,6 +453,9 @@ create.Page({
}
// 有日程长度
if (value.length !== 0) {
value.sort(function (a, b) {
return a.startTime.getTime() - b.startTime.getTime();
});
value.forEach((item, index) => {
if (index === 0) {
DateList.push({
......
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