README
// 格式化人数
export const formatPeopleCount = count => {
if (count > 99999999) {
return `${(count / 100000000).toFixed(1)}亿`;
} else if (count > 9999) {
return Number((count / 10000).toFixed(1)) === 10000 ? '9999.9万' : `${(count / 10000).toFixed(1)}万`;
} else {
return count;
}
};