timestampToTime(type, hhmmss) {
// type =0 为当天 type = 1 为前一天
// hhmmss 自己传需要的时分秒
let now = new Date();
let date
if (type === 0) {
date = new Date(now + 8 * 3600 * 1000); // 增加8小时 当天
} else {
let now = new Date();
date = new Date(now - 3 * type * 8 * 3600 * 1000); // type天前
}
return date.toJSON().substr(0, 19).replace('T', ' ').substring(0, 10) + ' ' + hhmmss;
},