瀏覽代碼

关闭提示

mzx16822 6 年之前
父節點
當前提交
e871deafe8
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      public/h5/datigame/js/common.js

+ 4 - 4
public/h5/datigame/js/common.js

@@ -71,7 +71,7 @@ common={
    //          $("#py1_avatar").html('<img src="' + data.info.user.avatar+ '" class="layui-circle">');
    //          $("#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++) {
    		 if(data.info.players[i].user_id!=_this.userInfo.user_id){
         	$("#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());
  		if(py1_score > py2_score){
                      
-                     _this.tips('恭喜你获得胜利');
+                    // _this.tips('恭喜你获得胜利');
                     $("#Jresult").removeClass("faild");
                     $("#Jresult").addClass("success");
                     $("#Jlastmsg").html("恭喜你获得胜利")
                   }else if(py1_score == py2_score){
                      
-                    _this.tips('打成平手');
+                    //_this.tips('打成平手');
                     $("#Jlastmsg").html("打成平手")
                     $("#Jresult").removeClass("success");
                     $("#Jresult").removeClass("faild");
                     $("#Jresult").html($("#avatar").html())
                   }else{
-                    _this.tips('您输了比赛');
+                    //_this.tips('您输了比赛');
                     $("#Jlastmsg").html("您输了比赛")
                     $("#Jresult").removeClass("success");
                     $("#Jresult").addClass("faild");