|
|
|
@ -104,6 +104,13 @@ Page({
|
|
|
|
|
this.setData({ranking: [], endDate: this.data.dateList[0], startDate: this.data.dateList[2], currentDate: '近3个月'})
|
|
|
|
|
} else if(value == 'past6') {
|
|
|
|
|
this.setData({ranking: [], endDate: this.data.dateList[0], startDate: this.data.dateList[5], currentDate: '近6个月'})
|
|
|
|
|
} else if(value == 'thisyear') {
|
|
|
|
|
let start = new Date(this.data.dateList[0]).getFullYear() + '-01';
|
|
|
|
|
this.setData({ranking: [], endDate: this.data.dateList[0], startDate: start, currentDate: '今年'})
|
|
|
|
|
} else if(value == 'lastyear') {
|
|
|
|
|
let start = (new Date(this.data.dateList[0]).getFullYear() - 1) + '-01';
|
|
|
|
|
let end = (new Date(this.data.dateList[0]).getFullYear() - 1) + '-12';
|
|
|
|
|
this.setData({ranking: [], endDate: end, startDate: start, currentDate: '去年'})
|
|
|
|
|
}
|
|
|
|
|
this.getTrend();
|
|
|
|
|
},
|
|
|
|
|