소스 검색

分数显示

wyq 4 년 전
부모
커밋
daffe631a1
1개의 변경된 파일10개의 추가작업 그리고 2개의 파일을 삭제
  1. 10 2
      src/js/staticInfo.js

+ 10 - 2
src/js/staticInfo.js

@@ -315,9 +315,17 @@ function getResult(pushInfo, textType) {
         for (var i = 0; i < pushInfo.length; i++) {
           if (pushInfo[i].content.max >= num >= pushInfo[i].content.min) {
             if (tmp) {
-              result = pushInfo[i].result + '(' + num + ')' + ';' + tmp
+              if (num == 0){
+                result = pushInfo[i].result + ';' + tmp
+              }else{
+                result = pushInfo[i].result + '(' + num + ')' + ';' + tmp
+              }
             } else {
-              result = pushInfo[i].result + '(' + num + ')'
+              if (num == 0) {
+                result = pushInfo[i].result
+              } else {
+                result = pushInfo[i].result + '(' + num + ')'
+              }
             }
           }
         }