|
@@ -71,7 +71,7 @@ common={
|
|
// $("#py1_avatar").html('<img src="' + data.info.user.avatar+ '" class="layui-circle">');
|
|
// $("#py1_avatar").html('<img src="' + data.info.user.avatar+ '" class="layui-circle">');
|
|
// $("#py1_username").html(data.info.user.name + '(我)');
|
|
// $("#py1_username").html(data.info.user.name + '(我)');
|
|
// }
|
|
// }
|
|
- this.tips(data.info.user.name+"加入了房间")
|
|
|
|
|
|
+ // this.tips(data.info.user.name+"加入了房间")
|
|
for (var i = 0; i < data.info.players.length; i++) {
|
|
for (var i = 0; i < data.info.players.length; i++) {
|
|
if(data.info.players[i].user_id!=_this.userInfo.user_id){
|
|
if(data.info.players[i].user_id!=_this.userInfo.user_id){
|
|
$("#py2_avatar").html('<img src="' + data.info.players[i].avatar+ '" class="layui-circle">');
|
|
$("#py2_avatar").html('<img src="' + data.info.players[i].avatar+ '" class="layui-circle">');
|
|
@@ -123,19 +123,19 @@ common={
|
|
var py2_score=parseInt($("#py2_score").text());
|
|
var py2_score=parseInt($("#py2_score").text());
|
|
if(py1_score > py2_score){
|
|
if(py1_score > py2_score){
|
|
|
|
|
|
- _this.tips('恭喜你获得胜利');
|
|
|
|
|
|
+ // _this.tips('恭喜你获得胜利');
|
|
$("#Jresult").removeClass("faild");
|
|
$("#Jresult").removeClass("faild");
|
|
$("#Jresult").addClass("success");
|
|
$("#Jresult").addClass("success");
|
|
$("#Jlastmsg").html("恭喜你获得胜利")
|
|
$("#Jlastmsg").html("恭喜你获得胜利")
|
|
}else if(py1_score == py2_score){
|
|
}else if(py1_score == py2_score){
|
|
|
|
|
|
- _this.tips('打成平手');
|
|
|
|
|
|
+ //_this.tips('打成平手');
|
|
$("#Jlastmsg").html("打成平手")
|
|
$("#Jlastmsg").html("打成平手")
|
|
$("#Jresult").removeClass("success");
|
|
$("#Jresult").removeClass("success");
|
|
$("#Jresult").removeClass("faild");
|
|
$("#Jresult").removeClass("faild");
|
|
$("#Jresult").html($("#avatar").html())
|
|
$("#Jresult").html($("#avatar").html())
|
|
}else{
|
|
}else{
|
|
- _this.tips('您输了比赛');
|
|
|
|
|
|
+ //_this.tips('您输了比赛');
|
|
$("#Jlastmsg").html("您输了比赛")
|
|
$("#Jlastmsg").html("您输了比赛")
|
|
$("#Jresult").removeClass("success");
|
|
$("#Jresult").removeClass("success");
|
|
$("#Jresult").addClass("faild");
|
|
$("#Jresult").addClass("faild");
|
|
@@ -294,9 +294,9 @@ common={
|
|
var html="<b class=''>"+_this.data.sum+"</b>";
|
|
var html="<b class=''>"+_this.data.sum+"</b>";
|
|
this.data.ts = setInterval(function() {
|
|
this.data.ts = setInterval(function() {
|
|
if(_this.data.sum<4){
|
|
if(_this.data.sum<4){
|
|
- html="<b class='rubberBand animated'>"+_this.data.sum+"</b>";
|
|
|
|
|
|
+ html="<b class='daoshu tada animated'>"+_this.data.sum+"</b>";
|
|
setTimeout(function(){
|
|
setTimeout(function(){
|
|
- $(".text-circle b").removeClass("rubberBand");
|
|
|
|
|
|
+ $(".text-circle b").removeClass("daoshu");
|
|
$(".text-circle b").removeClass("animated");
|
|
$(".text-circle b").removeClass("animated");
|
|
},900)
|
|
},900)
|
|
}else{
|
|
}else{
|