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