let date = new Date(parseInt(self.items.create_time) * 1000)
let y = date.getFullYear();
let m = date.getMonth() + 1;
m = m < 10 ? ('0' + m) : m;
let d = date.getDate();
d = d < 10 ? ('0' + d) : d;
let h = date.getHours();
h = h < 10 ? ('0' + h) : h;
let minute = date.getMinutes();
let second = date.getSeconds();
minute = minute < 10 ? ('0' + minute) : minute;
second = second < 10 ? ('0' + second) : second;
console.log( y + '-' + m + '-' + d + ' ' + ' ' + h + ':' + minute + ':' + second)
self.items.create_time = y + '-' + m + '-' + d + ' '+ h + ':' + minute + ':' + second
如果是13位时间戳就不用乘1000
如果后台返回的10位时间戳就乘以1000 需要用parselin变成数字类型