Procházet zdrojové kódy

Merge branch 'master' of http://47.100.37.243:10080/wutt/game

sunyadv před 5 roky
rodič
revize
58ad84a627
1 změnil soubory, kde provedl 40 přidání a 0 odebrání
  1. 40 0
      minigame/WebContent/static/result.html

+ 40 - 0
minigame/WebContent/static/result.html

@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<html lang="en" style="width: 100%">
+
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
+    <meta http-equiv="X-UA-Compatible" content="ie=edge">
+    <title>抽奖结果</title>
+    <style type="text/css">
+    	*{
+    		margin: 0;
+    		padding: 0;
+    	}
+    </style>
+    <script src="js/jquery.min.js"></script>
+    <link href="https://cdn.bootcss.com/twitter-bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet">
+    <script type="text/javascript">
+	    $(function(){
+	    	$.post("../prize/luckDrawListBack", {}, function(resp) {
+				if (resp.code == 'error') {
+					console.log(resp.code);
+				}else{
+					for(let index in resp.data){
+						$("table").append("<tr><td>" + resp.data[index].nickName + "</td><td>" + resp.data[index].prize + "</td></tr>")
+					}
+				}
+			});
+		})
+	</script>
+</head>
+
+<body style="width: 100%">
+    <table class="table table-condensed">
+		<tr>
+			<th>昵称</th>
+			<th>奖品</th>
+		</tr>
+	</table>
+</body>
+</html>