shish 1 год назад
Родитель
Сommit
2d4d5636ef
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      ghsApp/src/utils/util.js

+ 4 - 1
ghsApp/src/utils/util.js

@@ -40,7 +40,10 @@ export const copyObject = obj => {
 	return newobj;
 };
 const numberFormat = (number, type) => {
-	if (number > 10000) {
+	if(number > 100000000){
+		let num = (number / 100000000 + "").split(".");
+		return `${num[0]}.${("" + num[1]).slice(0, 1)} 亿`;
+	}else if (number > 10000) {
 		let num = (number / 10000 + "").split(".");
 		return `${num[0]}.${("" + num[1]).slice(0, 1)} 万`;
 	} else {