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.
 
 
rabbitmq-test/templates/readQueue.html

73 lines
1.9 KiB

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>发货</title>
<style>
body {
text-align: center;
margin-top: 20px; /* 添加顶部边距 */
}
table {
width: 80%;
margin: 0 auto;
border-collapse: collapse;
border: 2px solid #000;
}
th, td {
border: 1px solid #000;
padding: 10px;
}
th {
background-color: #f2f2f2;
}
button {
padding: 10px 20px;
background-color: #007bff;
color: #fff;
border: none;
cursor: pointer;
}
button:hover {
background-color: #0056b3;
}
</style>
</head>
<body>
<form action="/read" method="post">
请输入批量发货的商品数量:<input type="number" name="dshop">
<button type="submit">点击发货</button>
</form>
<p>当前未处理货物: {{ shop_nums }}</p>
<table>
<thead>
<tr>
<th>用户编号</th>
<th>用户名称</th>
<th>商品名称</th>
<th>商品金额</th>
<th>收货地址</th>
</tr>
</thead>
<tbody>
{% for item in items %}
<tr>
{% for item_key,item_value in item %}
<td>{{ item_key }}</td>
<td>{{ item_value[0] }}</td>
<td>{{ item_value[1] }}</td>
<td>{{ item_value[2] }}</td>
<td>{{ item_value[3] }}</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
</body>
</html>