|
@@ -72,8 +72,8 @@ common={
|
|
|
// }
|
|
|
this.tips(data.info.user.name+"加入了房间")
|
|
|
for (var i = 0; i < data.info.players.length; i++) {
|
|
|
- if(data.info.players[i].user_id!=this.userInfo.user_id){
|
|
|
- $("#py2_avatar").html('<img src="' + data.info.user.avatar+ '" class="layui-circle">');
|
|
|
+ if(data.info.players[i].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.userInfo.playerId=data.info.user.user_id;
|
|
|
}
|