|
@@ -71,8 +71,8 @@ common={
|
|
|
// $("#py1_username").html(data.info.user.name + '(我)');
|
|
|
// }
|
|
|
if(data.info.user.user_id){
|
|
|
- $("#py1_avatar").html('<img src="' + data.info.user.avatar+ '" class="layui-circle">');
|
|
|
- $("#py1_username").html(data.info.user.name + '(我)');
|
|
|
+ $("#py2_avatar").html('<img src="' + data.info.user.avatar+ '" class="layui-circle">');
|
|
|
+ $("#py2_username").html(data.info.user.name);
|
|
|
|
|
|
|
|
|
}
|
|
@@ -110,6 +110,8 @@ common={
|
|
|
},startGame:function(){
|
|
|
if(this.data.isReady=="1")
|
|
|
this.Join(function(res){
|
|
|
+ $(".welcome").hide();
|
|
|
+ $(".gstart").show();
|
|
|
common.tips(res.msg);
|
|
|
});
|
|
|
else this.tips("登录失败");
|
|
@@ -132,8 +134,7 @@ common={
|
|
|
}
|
|
|
$("#question").html(question);
|
|
|
$("#Jpage").html(responsedata.info.questions_count+"/5");
|
|
|
- $(".welcome").hide();
|
|
|
- $(".gstart").show();
|
|
|
+
|
|
|
$(".g-doc .g-inner").addClass("doing");
|
|
|
// is_end = responsedata.info.question.is_end;
|
|
|
this.daoshu();
|
|
@@ -217,6 +218,8 @@ common={
|
|
|
}
|
|
|
this.getUserInfo(function(res){
|
|
|
_this.userInfo=res.info;
|
|
|
+ $("#py1_username").html(res.info.name);
|
|
|
+ $("#py1_avatar").html('<img src="' + res.info.avatar + '" class="layui-circle">');
|
|
|
_this.initSocket();
|
|
|
|
|
|
})
|