Sfoglia il codice sorgente

添加智能推送

zhangxc 6 anni fa
parent
commit
f99c82d6ef
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  1. 1 2
      src/js/scale.js

+ 1 - 2
src/js/scale.js

@@ -82,7 +82,6 @@ $(function(){
   })
 
 function renderCalcu(scaleList) {
-  console.log(scaleList)
     $("h1").html(scaleList.scaleName);
     var str = ''
     for(var j = 0; j < scaleList.group.length; j++) {
@@ -96,7 +95,7 @@ function renderCalcu(scaleList) {
                         str2 += ' checked="checked"'
                     }
                     str2 += ' />'+'<label for="'+ j + x + y + z+'">' + scaleList.group[j].rows[x].row[y].details[z].detailName + '('+scaleList.group[j].rows[x].row[y].details[z].score +')'+'</label>'
-                    if (scaleList.group[j].rows[x].row[y].name+scaleList.group[j].rows[x].row[y].details[z].state == 1) {
+                    if (scaleList.group[j].rows[x].row[y].details[z].state == 1) {
                         str2 += '<span class="groupRowRecommend">智能推荐</span>'
                     }
                     str2 += '</span>'