|
@@ -73,9 +73,9 @@ 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">');
|
|
|
- $("#py2_username").html(data.info.user.name);
|
|
|
- _this.userInfo.playerId=data.info.user.user_id;
|
|
|
+ $("#py2_avatar").html('<img src="' + data.info.players[i].avatar+ '" class="layui-circle">');
|
|
|
+ $("#py2_username").html(data.info.players[i].user.name);
|
|
|
+ _this.userInfo.playerId=data.info.players[i].user_id;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -293,7 +293,7 @@ common={
|
|
|
_this.data.sum = 9;
|
|
|
_this.data.angle = 0;
|
|
|
leftContent.setAttribute('style', 'transform: rotate(0deg)');
|
|
|
- rightContent.setAttribute('style', 'transform: rotate(0deg)')
|
|
|
+ rightContent.setAttribute('style', 'transform: rotate(0deg)');
|
|
|
}
|
|
|
}, 1000)
|
|
|
}, tips: function (text, time) {
|