瀏覽代碼

判斷有無

Luolei 6 年之前
父節點
當前提交
a9472f953b
共有 1 個文件被更改,包括 7 次插入6 次删除
  1. 7 6
      src/js/popup.js

+ 7 - 6
src/js/popup.js

@@ -32,7 +32,8 @@ $(".conditionHintTips").on('click',".mayResultSelect",function(){
               domList.eq(n).attr("data-select","select").children("i").css({
                 "background":"url('../images/sex2.png') center center no-repeat"
               })
-            }else{
+            }
+            if(tmpPushMsgDetailContentVal.details[n].state == 0){
               domList.eq(n).attr("data-select","").children("i").css({
                 "background":"url('../images/sex1.png') center center no-repeat"
               })
@@ -45,17 +46,17 @@ $(".conditionHintTips").on('click',".mayResultSelect",function(){
         }
       }
     }
-    if(tmpPushMsgDetail.type == 3){
+    if(tmpPushMsgDetail.type == 3 && that.find(".sureScore").attr("data-type") == 3){
       for(var a = 0;a < tmpPushMsgDetail.content.details.length;a++){
         var tmpPushMsgDetailContentValS = tmpPushMsgDetail.content.details[a]
-        var domList = that.find(".radioChecks")
-        for(var b = 0;b <domList.length;b++){
+        var domLi = that.find(".radioChecks")
+        for(var b = 0;b <domLi.length;b++){
           if(that.find(".makesureResult").html() == tmpPushMsgDetailContentValS.detailName){
-            domList.eq(a).attr("data-select","select").children("i").css({
+            domLi.eq(a).attr("data-select","select").children("i").css({
               "background":"url('../images/sex2.png') center center no-repeat"
             })
           }else{
-            domList.eq(a).attr("data-select","").children("i").css({
+            domLi.eq(a).attr("data-select","").children("i").css({
               "background":"url('../images/sex1.png') center center no-repeat"
             })
           }