소스 검색

结果页面

Reiskuchen 5 년 전
부모
커밋
f357ec5b82
2개의 변경된 파일15개의 추가작업 그리고 2개의 파일을 삭제
  1. 6 0
      minigame/WebContent/static/css/lottery.css
  2. 9 2
      minigame/WebContent/static/lottery.html

+ 6 - 0
minigame/WebContent/static/css/lottery.css

@@ -2,6 +2,12 @@
     margin: 0;
     padding: 0;
 }
+.check_result{
+	position: absolute;
+	top: 5px;
+	right: 5px;
+	color: black;
+}
 .background {
     width: 100%;
     height: auto;

+ 9 - 2
minigame/WebContent/static/lottery.html

@@ -41,15 +41,20 @@
 				}
 			});
             
+            //点击
+            $(".check_result").click(function(){
+            	window.location.href = "result.html";
+            })
+            
             //点击抽奖
             $(".button").click(function () {
                 if(enable == true){
-//                 	获取抽奖结果
+					//获取抽奖结果
                     $.post("../prize/luckDraw", {userId: id}, function(resp) {
         				if (resp.code == 'error') {
         					alert(resp.msg);
         				}else{
-        					   //进入不可点击状态
+        					//进入不可点击状态
                             enable = false;
                             //设置初始速度
                             speed = 60;
@@ -115,6 +120,7 @@
             $(".container").css("top", $(document).width() / 1.75).css("height", $(document).width() / 1.6);
             $(".item").css("height", $(".container").width() / 3.9);
             $(".title").css("top", $(".container").width() * 2.35);
+            $(".check_result").css("top", $(".container").width() * 2.36);
             $(".tips").css("top", $(".container").width() * 2.45);
             $(".mask").css("height", $(document).height());
             $(".result_failed_button").css("top", $(".container").width() * 1.6);
@@ -260,5 +266,6 @@
 
     <img class="result failed" src="images/result_failed.png" style="display: none;">
     <img class="result_failed_button" src="images/result_failed_button.png" style="display: none;">
+    <span class="check_result">查看中奖结果</span>
 </body>
 </html>