Browse Source

该操作

Luolei 6 years ago
parent
commit
8f98f2728d
2 changed files with 19 additions and 17 deletions
  1. 1 1
      src/js/indexDom.js
  2. 18 16
      src/js/popup.js

+ 1 - 1
src/js/indexDom.js

@@ -53,7 +53,7 @@ function bqtsFun(data){//病情提示
         deepDetailResultStr+
         '</div></div>'+
         '<div class="btnWrap clearfix">'+
-        '<button class="sureScore" data-type="2">确定</button>'+
+        '<button class="sureScore" data-type="2">关闭</button>'+
         '</div>'+
         '</div>'+
         '</span></div>'

+ 18 - 16
src/js/popup.js

@@ -26,24 +26,26 @@ $(".conditionHintTips").on('click',".mayResultSelect",function(){
     if(tmpPushMsgDetail.type == 2){
       for(var m = 0;m < tmpPushMsgDetail.content.details.length;m++){
         var tmpPushMsgDetailContentVal = tmpPushMsgDetail.content.details[m]
-        if(tmpPushMsgDetailContentVal.controlType == 0){
-          var domList = that.find(".caculateLis").children("li")
-          for(var n =0;n < tmpPushMsgDetailContentVal.details.length;n++){
-            if(tmpPushMsgDetailContentVal.details[n].state == 1){
-              domList.eq(n).attr("data-select","select").children("i").css({
-                "background":"url('../images/sex2.png') center center no-repeat"
-              })
-            }
-            if(tmpPushMsgDetailContentVal.details[n].state == 0){
-              domList.eq(n).attr("data-select","").children("i").css({
-                "background":"url('../images/sex1.png') center center no-repeat"
-              })
+        if(that.find(".makesureResult").html() != '请选择'){
+          if(tmpPushMsgDetailContentVal.controlType == 0){
+            var domList = that.find(".caculateLis").children("li")
+            for(var n =0;n < tmpPushMsgDetailContentVal.details.length;n++){
+              if(tmpPushMsgDetailContentVal.details[n].state == 1){
+                domList.eq(n).attr("data-select","select").children("i").css({
+                  "background":"url('../images/sex2.png') center center no-repeat"
+                })
+              }
+              if(tmpPushMsgDetailContentVal.details[n].state == 0){
+                domList.eq(n).attr("data-select","").children("i").css({
+                  "background":"url('../images/sex1.png') center center no-repeat"
+                })
+              }
             }
           }
-        }
-        if(tmpPushMsgDetailContentVal.controlType == 2){
-          var domLis = that.find("input[type=text]").eq(m)
-          $(domLis).val(tmpPushMsgDetailContentVal.value)
+          if(tmpPushMsgDetailContentVal.controlType == 2){
+            var domLis = that.find("input[type=text]").eq(m)
+            $(domLis).val(tmpPushMsgDetailContentVal.value)
+          }
         }
       }
     }