超过1万 单位转化为w
/* 单位w */
exchangeUnit: function (num,fixedNum = 1) {
num = Number(num)
if (num >= 10000) {
var digit = num / 10000
var count = digit.toFixed(6).slice(0, -(6-fixedNum))
count = Math.max(count)
return count + 'w'
} else {
return num
}
},