Browse Source

服务端刷题

mzx16822 6 years ago
parent
commit
fdf4ee0b69
1 changed files with 4 additions and 4 deletions
  1. 4 4
      resources/views/home/user.blade.php

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

@@ -29,7 +29,7 @@
         <p>1.随机匹配对手<br />
           2.在50秒内完成5道题目<br />
           3.10秒内完成答题,答对加分,答错不扣分<br />
-          4.每题满分100分,慢一秒答题扣10分<br />
+          4.每题满分300分,慢一秒答题扣10分<br />
           5.最终得分高为胜者,获得奖励</p>
           
         </div>
@@ -109,7 +109,7 @@ layui.use(['form','jquery'], function(){
   var is_end = 0;
   var question_id=0;
   var ts;
-  var sum=5;
+  var sum=9;
   var angle = 0 ;
   $.ajaxSetup({
       headers: {
@@ -234,7 +234,7 @@ function daoshu(argument) {
               if(data.user_id == $("#user_id").val()){
                 var score = parseInt($("#py1_score").html());
                 if(data.is_true == 1){
-                  $("#py1_score").html(score+300);
+                  $("#py1_score").html(score+300*(sum/10));
                   $(".cur_answer").addClass("cur_true");
                 }else{
                   $(".cur_answer").addClass("cur_error");
@@ -242,7 +242,7 @@ function daoshu(argument) {
               }else{
                 if(data.is_true == 1){
                   var score = parseInt($("#py2_score").html());
-                  $("#py2_score").html(score+300);
+                  $("#py2_score").html(score+300*(sum/10));
                 }
               }
               var py1_score = parseInt($("#py1_score").html());