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

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

@@ -85,7 +85,7 @@ common={
  		// if(data.info.anwser==_this.data.option_id){
  		// 	$(".cur_answer").addClass("cur_true");
    //        }
-          setTimeout(function(){
+        
           	for (var i = 0; i < data.info.players_answer.length; i++) {
           	if(data.info.players_answer[i].user_id==_this.userInfo.playerId){
           		//对方的答案id
@@ -111,13 +111,13 @@ common={
           	}
            
           })
-      },3000)
+
           
           clearInterval(this.data.ts);
           
  	},game_end:function(){
  			var _this=this;
- 		
+ 		  setTimeout(function(){
  		var py1_score= parseInt($("#py1_score").text()) ;
  		var py2_score=parseInt($("#py2_score").text());
  		if(py1_score > py2_score){
@@ -141,6 +141,7 @@ common={
                   }
          $(".g-doc .g-inner").addClass("end");
          $("#Jvs").hide();
+     },3000)
  	},onSocket:function(e){
  		var data=JSON.parse(e.data);
  			var _this=this;