This commit is contained in:
parent
c6f7658c0f
commit
169873d46d
|
@ -2,7 +2,7 @@
|
|||
<head>
|
||||
<title>晚餐吃什么鸭</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="./static/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="/static/bootstrap.min.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container text-center" style="padding-top: 120px">
|
||||
|
@ -51,9 +51,9 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<script src="./static/jquery-3.2.1.min.js"></script>
|
||||
<script src="./static/jquery.serializejson.js"></script>
|
||||
<script src="./static/bootstrap.bundle.min.js"></script>
|
||||
<script src="/static/jquery-3.2.1.min.js"></script>
|
||||
<script src="/static/jquery.serializejson.js"></script>
|
||||
<script src="/static/bootstrap.bundle.min.js"></script>
|
||||
|
||||
<script>
|
||||
function update() {
|
||||
|
@ -62,7 +62,7 @@
|
|||
url: 'dinner/update?value=' + JSON.stringify(data),
|
||||
dataType: 'json',
|
||||
success: function (result) {
|
||||
if (result.code == 0) {
|
||||
if (result.code === 0) {
|
||||
window.location.reload();
|
||||
} else {
|
||||
alert('更新失败: ' + result.data)
|
||||
|
@ -76,7 +76,7 @@
|
|||
url: 'dinner/update?value=',
|
||||
dataType: 'json',
|
||||
success: function (result) {
|
||||
if (result.code == 0) {
|
||||
if (result.code === 0) {
|
||||
window.location.reload();
|
||||
} else {
|
||||
alert('更新失败: ' + result.data)
|
||||
|
@ -90,7 +90,7 @@
|
|||
url: 'dinner/roll',
|
||||
dataType: 'json',
|
||||
success: function (result) {
|
||||
if (result.code == 0) {
|
||||
if (result.code === 0) {
|
||||
window.location.reload();
|
||||
} else {
|
||||
alert('更新失败: ' + result.data)
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<html lang="zh">
|
||||
<head>
|
||||
<script src="./static/jquery-3.2.1.min.js"></script>
|
||||
<script src="./static/bootstrap.min.js"></script>
|
||||
<link rel="stylesheet" href="./static/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="/static/bootstrap.min.css">
|
||||
<title>主页</title>
|
||||
</head>
|
||||
<body class="container text-center" style="padding-top: 120px">
|
||||
|
||||
<a href="dinner">点餐投票</a>
|
||||
<script src="/static/bootstrap.bundle.min.js"></script>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue