|
@@ -53,10 +53,11 @@
|
|
if(res.data.code===0){
|
|
if(res.data.code===0){
|
|
this.list = res.data.data;
|
|
this.list = res.data.data;
|
|
let n = new Date().Format('yyyy-MM-dd');
|
|
let n = new Date().Format('yyyy-MM-dd');
|
|
|
|
+ let y = new Date(new Date().setDate(new Date().getDate()-1)).Format('yyyy-MM-dd');
|
|
this.list.forEach(l=>{
|
|
this.list.forEach(l=>{
|
|
let w = new Date(l.dateDay).getDay();
|
|
let w = new Date(l.dateDay).getDay();
|
|
l.yr = new Date(l.dateDay).Format('MM-dd');
|
|
l.yr = new Date(l.dateDay).Format('MM-dd');
|
|
- l.week = n==l.dateDay?'今天':this.weekCfg[w];
|
|
|
|
|
|
+ l.week = y==l.dateDay?'昨天':(n==l.dateDay?'今天':this.weekCfg[w]);
|
|
l.color = n==l.dateDay?'c_today':([6,0].includes(w)?'c_week':'c_normal');
|
|
l.color = n==l.dateDay?'c_today':([6,0].includes(w)?'c_week':'c_normal');
|
|
})
|
|
})
|
|
}else this.$showToast(res.data.msg)
|
|
}else this.$showToast(res.data.msg)
|