You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
131 lines
4.9 KiB
131 lines
4.9 KiB
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>简易点菜系统</title>
|
|
<link href="index.css" rel="stylesheet">
|
|
<link rel="stylesheet" href="bootstrap.min.css"
|
|
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
|
|
<script>
|
|
function api() {
|
|
fetch(new Request('/api/hello')).then(res => res.json()).then(res => console.info(res))
|
|
}
|
|
|
|
onload = function () {
|
|
api()
|
|
}
|
|
</script>
|
|
<style>
|
|
.frame {
|
|
border: 1px solid black;
|
|
padding: 30px;
|
|
}
|
|
|
|
.border-black {
|
|
border: 1px solid black;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div class="frame">
|
|
<span>检索条件</span>
|
|
<form>
|
|
<div class="input-group mt-3">
|
|
<div class="input-group-prepend col-2 pr-2 justify-content-end">
|
|
<span class="input-group-text">桌号</span>
|
|
</div>
|
|
<input type="text" class="form-control col-4">
|
|
</div>
|
|
<div class="input-group mt-3">
|
|
<div class="input-group-prepend col-2">
|
|
<span class="input-group-text">客人姓名</span>
|
|
</div>
|
|
<input type="text" class="form-control col-4">
|
|
<div class="input-group-prepend col-2">
|
|
<span class="input-group-text">联系方式</span>
|
|
</div>
|
|
<input type="text" class="form-control col-4">
|
|
</div>
|
|
<div class="input-group mt-3">
|
|
<div class="input-group-prepend col-2 pr-2 justify-content-end">
|
|
<span class="input-group-text">预定</span>
|
|
</div>
|
|
<div class="custom-control custom-radio custom-control-inline mt-auto mb-auto">
|
|
<input type="radio" id="customRadioInline1" name="customRadioInline1" checked
|
|
class="custom-control-input">
|
|
<label class="custom-control-label" for="customRadioInline1">有</label>
|
|
</div>
|
|
<div class="custom-control custom-radio custom-control-inline mt-auto mb-auto">
|
|
<input type="radio" id="customRadioInline2" name="customRadioInline1" class="custom-control-input">
|
|
<label class="custom-control-label" for="customRadioInline2">无</label>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="mt-3 d-flex justify-content-between">
|
|
<a href="#" class="btn btn-secondary col-3" role="button" aria-pressed="true">点餐</a>
|
|
<a href="#" class="btn btn-secondary col-3" role="button" aria-pressed="true">检索</a>
|
|
</div>
|
|
</form>
|
|
|
|
|
|
<hr class="border-black"/>
|
|
|
|
<span>检索结果(已定)</span>
|
|
|
|
<table class="table mt-3 table-bordered border-black text-center">
|
|
<thead class="thead-light">
|
|
<tr>
|
|
<th scope="col">桌号</th>
|
|
<th scope="col">客人姓名</th>
|
|
<th scope="col">预定</th>
|
|
<th scope="col">用餐时间</th>
|
|
<th scope="col">人数</th>
|
|
<th scope="col"></th>
|
|
<th scope="col"></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<th scope="row" class="p-3"><a href="">大堂-10003</a></th>
|
|
<td class="p-3">张三</td>
|
|
<td class="p-3">
|
|
<div class="custom-control custom-radio custom-control-inline">
|
|
<input type="radio" id="fff" class="custom-control-input">
|
|
<label class="custom-control-label" for="fff"></label>
|
|
</div>
|
|
</td>
|
|
<td class="p-3">及时单</td>
|
|
<td class="p-3">3</td>
|
|
<td>
|
|
<button class="btn btn-secondary">修改</button>
|
|
</td>
|
|
<td>
|
|
<button class="btn btn-secondary">删除</button>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<table class="table mt-3 table-bordered border-black text-center">
|
|
<thead class="thead-light">
|
|
<tr>
|
|
<th scope="col">桌号</th>
|
|
<th scope="col">人数</th>
|
|
<th scope="col"></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<th scope="row" class="p-3"><a href="">大堂-10003</a></th>
|
|
<td class="p-3">6</td>
|
|
<td>
|
|
<button class="btn btn-secondary">点餐</button>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |