|
@@ -74,7 +74,7 @@ common={
|
|
|
if(data.info.user.user_id!=this.userInfo.user_id){
|
|
|
$("#py2_avatar").html('<img src="' + data.info.user.avatar+ '" class="layui-circle">');
|
|
|
$("#py2_username").html(data.info.user.name);
|
|
|
- _this.data.playerId=data.info.user.user_id;
|
|
|
+ _this.userInfo.playerId=data.info.user.user_id;
|
|
|
}
|
|
|
|
|
|
},round_end:function(data){
|
|
@@ -135,7 +135,7 @@ common={
|
|
|
case "answer":
|
|
|
if(_this.userInfo.user_id==data.user_id){
|
|
|
_this.increment($("#py1_score"),data.score);
|
|
|
- }else if(_this.data.playerId==data.user_id){
|
|
|
+ }else if(_this.userInfo.playerId==data.user_id){
|
|
|
_this.increment($("#py2_score"),data.score);
|
|
|
}
|
|
|
break;
|