|
|
|
@ -107,8 +107,11 @@ Page({ |
|
|
|
dateArr.push({date: util.formatDate(new Date(date))}) |
|
|
|
} |
|
|
|
|
|
|
|
dateArr.forEach(v=>{ |
|
|
|
dateArr.forEach((v,index)=>{ |
|
|
|
v.short_date = v.date.split("-").splice(1, 2).join("-") |
|
|
|
if (index == 0) v.short_date = "今天 "+v.short_date |
|
|
|
if (index == 1) v.short_date = "明天 "+v.short_date |
|
|
|
if (index == 2) v.short_date = "后天 "+v.short_date |
|
|
|
}) |
|
|
|
this.setData({dateArr: dateArr}) |
|
|
|
// 默认选中第一天
|
|
|
|
|