소스 검색

Merge branch 'master' of http://120.78.169.79:3000/zhengxiaoyu/datiGame

郑晓宇 6 년 전
부모
커밋
c325e0a0d9
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      resources/views/home/user.blade.php

+ 3 - 3
resources/views/home/user.blade.php

@@ -163,12 +163,12 @@ layui.use(['form','jquery'], function(){
                   $("#py2_score").html(score+1);
                 }
               }
-              
+              var py1_score = parseInt($("#py1_score").html());
+                var py2_score = parseInt($("#py2_score").html());
                 if(data.is_end == 1){
                   //结算
                    $(".g-doc .g-inner").addClass("end");
-                  var py1_score = parseInt($("#py1_score").html());
-                  var py2_score = parseInt($("#py2_score").html());
+                  
                   var url = 'Quit';
                   if(py1_score > py2_score){
                     layer.msg('恭喜你获得胜利', {icon: 1, time: 2000}, function(){