getTime(date) { //格式化时间 Y-m-d h:m:s
let _date = new Date(date*1000);
let year = _date.getFullYear();
let month = _date.getMonth() + 1;
let day = _date.getDate();
let h = _date.getHours();
let mm = _date.getMinutes();
let s = _date.getSeconds();
month < 10 ? (month = '0' + month) : month; //月
day < 10 ? (day = '0' + day) : day; //日
h = h > 9 ? h : "0" + h; //时
mm = mm > 9 ? mm : "0" + mm; //分
s = s > 9 ? s : "0" + s; //秒
// return year + '-' + month + '-' + day + ' ' + h + ':' + mm + ':' + s;
return year + '-' + month + '-' + day;
},