mzx16822 6 years ago
parent
commit
b9143d7b61
1 changed files with 5 additions and 4 deletions
  1. 5 4
      public/h5/datigame/js/common.js

+ 5 - 4
public/h5/datigame/js/common.js

@@ -96,14 +96,15 @@ common={
           		
           		$(this).addClass("cur_error");
           	}
-          	if($(this).attr("option_id")==_this.data.player_answerId&&$(this).attr("option_id")!=data.info.anwser){
-          		//对方答案
-          		$(this).addClass("player_error");
-          	}
+          	
           	if($(this).attr("option_id")==_this.data.player_answerId&&$(this).attr("option_id")==data.info.anwser){
           		//对方答案
           		$(this).addClass("player_true");
           	}
+          	if($(this).attr("option_id")==_this.data.player_answerId&&$(this).attr("option_id")!=data.info.anwser){
+          		//对方答案
+          		$(this).addClass("player_error");
+          	}
            
           })