|
@@ -85,8 +85,8 @@ common={
|
|
|
// if(data.info.anwser==_this.data.option_id){
|
|
|
// $(".cur_answer").addClass("cur_true");
|
|
|
// }
|
|
|
-
|
|
|
- for (var i = 0; i < data.info.players_answer.length; i++) {
|
|
|
+ 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
|
|
|
_this.data.player_answerId=data.info.players_answer[i].option_id;
|
|
@@ -111,6 +111,8 @@ common={
|
|
|
}
|
|
|
|
|
|
})
|
|
|
+ },3000)
|
|
|
+
|
|
|
clearInterval(this.data.ts);
|
|
|
|
|
|
},game_end:function(){
|