|
@@ -60,6 +60,7 @@ common={
|
|
|
}
|
|
|
});
|
|
|
},player_join:function(data){
|
|
|
+ var _this=this;
|
|
|
// if(responsedata.info.user){
|
|
|
// $("#username").html(responsedata.info.user.name);
|
|
|
// $("#avatar").html('<img src="' + responsedata.info.user.avatar + '" class="layui-circle">');
|
|
@@ -85,7 +86,7 @@ common={
|
|
|
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].question_id;
|
|
|
+ _this.data.player_answerId=data.info.players_answer[i].option_id;
|
|
|
}
|
|
|
}
|
|
|
$("#question .item").each(function(){
|