mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-06 17:36:45 +08:00
小于5显示数,不显示数字
This commit is contained in:
@@ -242,7 +242,7 @@ export function getHMS(time) {
|
||||
/**格式化人数的文档 ,学习人数,关注人数等*/
|
||||
export function formatUserNumber(num) {
|
||||
let rsNum =0;
|
||||
if(num<5){return 0;}
|
||||
if(num<5){return num;}
|
||||
if(num>=5 && num<= 10){return 10 +"+";}
|
||||
if(num<=94){
|
||||
rsNum=Math.round((num)/10)*10;
|
||||
|
||||
Reference in New Issue
Block a user