methods:{playvolume(arg){if(arg.toString().length>=13){
// return arg/1000000000000+"万亿"
const moneys = arg/1000000000000
const realVal = parseFloat(moneys).toFixed(2);
return realVal+"万亿"}else if(arg.toString().length>=9){
const moneys = arg/100000000
const realVal = parseFloat(moneys).toFixed(2);
return realVal+"亿"}else if(arg.toString().length>=4){
const moneys = arg/10000
const realVal = parseFloat(moneys).toFixed(2);
return realVal+"万"}},
unixTimeToDate(time){
// 时间戳为10位需*1000,时间戳为13位的话不需乘1000
var date = new Date(time )
let y = date.getFullYear()
let MM = date.getMonth() + 1
MM = MM < 10 ? ('0' + MM): MM
let d = date.getDate()
d = d < 10 ? ('0' + d): d
let h = date.getHours()
h = h < 10 ? ('0' + h): h
let m = date.getMinutes()
m = m < 10 ? ('0' + m): m
let s = date.getSeconds()
s = s < 10 ? ('0' + s): s
return y + '年' + MM + '月' + d + '日'},},