302 lines
7.8 KiB
HTML
302 lines
7.8 KiB
HTML
|
|
<!DOCTYPE html>
|
||
|
|
<html lang="zh-CN">
|
||
|
|
<head>
|
||
|
|
<meta charset="UTF-8">
|
||
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
|
<title>积分商城 - 商品管理</title>
|
||
|
|
<style>
|
||
|
|
* {
|
||
|
|
margin: 0;
|
||
|
|
padding: 0;
|
||
|
|
box-sizing: border-box;
|
||
|
|
}
|
||
|
|
|
||
|
|
body {
|
||
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||
|
|
background-color: #f5f5f5;
|
||
|
|
color: #333;
|
||
|
|
line-height: 1.6;
|
||
|
|
}
|
||
|
|
|
||
|
|
.container {
|
||
|
|
max-width: 1200px;
|
||
|
|
margin: 0 auto;
|
||
|
|
padding: 20px;
|
||
|
|
background-color: white;
|
||
|
|
min-height: 100vh;
|
||
|
|
}
|
||
|
|
|
||
|
|
.header {
|
||
|
|
border: 1px dashed #ccc;
|
||
|
|
padding: 20px;
|
||
|
|
margin-bottom: 20px;
|
||
|
|
background-color: #fafafa;
|
||
|
|
}
|
||
|
|
|
||
|
|
.search-section {
|
||
|
|
display: flex;
|
||
|
|
gap: 15px;
|
||
|
|
align-items: center;
|
||
|
|
flex-wrap: wrap;
|
||
|
|
}
|
||
|
|
|
||
|
|
.search-group {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.search-group label {
|
||
|
|
font-size: 14px;
|
||
|
|
color: #666;
|
||
|
|
white-space: nowrap;
|
||
|
|
}
|
||
|
|
|
||
|
|
.search-input {
|
||
|
|
padding: 8px 12px;
|
||
|
|
border: 1px dashed #ccc;
|
||
|
|
background-color: white;
|
||
|
|
font-size: 14px;
|
||
|
|
width: 180px;
|
||
|
|
outline: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.search-input:focus {
|
||
|
|
border-color: #999;
|
||
|
|
background-color: #fafafa;
|
||
|
|
}
|
||
|
|
|
||
|
|
.search-input::placeholder {
|
||
|
|
color: #999;
|
||
|
|
font-size: 12px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.search-btn {
|
||
|
|
padding: 8px 20px;
|
||
|
|
background-color: #333;
|
||
|
|
border: 1px solid #333;
|
||
|
|
color: white;
|
||
|
|
cursor: pointer;
|
||
|
|
font-size: 14px;
|
||
|
|
margin-left: 15px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.search-btn:hover {
|
||
|
|
background-color: #555;
|
||
|
|
border-color: #555;
|
||
|
|
}
|
||
|
|
|
||
|
|
.table-section {
|
||
|
|
border: 1px dashed #ccc;
|
||
|
|
background-color: white;
|
||
|
|
}
|
||
|
|
|
||
|
|
.table-container {
|
||
|
|
overflow-x: auto;
|
||
|
|
}
|
||
|
|
|
||
|
|
table {
|
||
|
|
width: 100%;
|
||
|
|
border-collapse: collapse;
|
||
|
|
background-color: white;
|
||
|
|
}
|
||
|
|
|
||
|
|
th, td {
|
||
|
|
padding: 12px 15px;
|
||
|
|
text-align: left;
|
||
|
|
border: 1px dashed #ddd;
|
||
|
|
}
|
||
|
|
|
||
|
|
th {
|
||
|
|
background-color: #f8f8f8;
|
||
|
|
font-weight: 500;
|
||
|
|
color: #555;
|
||
|
|
font-size: 14px;
|
||
|
|
}
|
||
|
|
|
||
|
|
td {
|
||
|
|
font-size: 14px;
|
||
|
|
color: #333;
|
||
|
|
}
|
||
|
|
|
||
|
|
tr:nth-child(even) {
|
||
|
|
background-color: #fafafa;
|
||
|
|
}
|
||
|
|
|
||
|
|
tr:hover {
|
||
|
|
background-color: #f0f0f0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.action-btn {
|
||
|
|
padding: 6px 12px;
|
||
|
|
background-color: white;
|
||
|
|
border: 1px dashed #ccc;
|
||
|
|
color: #666;
|
||
|
|
cursor: pointer;
|
||
|
|
font-size: 12px;
|
||
|
|
text-decoration: none;
|
||
|
|
display: inline-block;
|
||
|
|
}
|
||
|
|
|
||
|
|
.action-btn:hover {
|
||
|
|
background-color: #f5f5f5;
|
||
|
|
border-color: #999;
|
||
|
|
color: #333;
|
||
|
|
}
|
||
|
|
|
||
|
|
.pagination {
|
||
|
|
margin-top: 20px;
|
||
|
|
text-align: center;
|
||
|
|
padding: 20px;
|
||
|
|
border: 1px dashed #ccc;
|
||
|
|
background-color: #fafafa;
|
||
|
|
}
|
||
|
|
|
||
|
|
.pagination-container {
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 10px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.page-btn {
|
||
|
|
padding: 8px 12px;
|
||
|
|
background-color: white;
|
||
|
|
border: 1px dashed #ccc;
|
||
|
|
color: #666;
|
||
|
|
text-decoration: none;
|
||
|
|
font-size: 14px;
|
||
|
|
cursor: pointer;
|
||
|
|
}
|
||
|
|
|
||
|
|
.page-btn:hover {
|
||
|
|
background-color: #f0f0f0;
|
||
|
|
border-color: #999;
|
||
|
|
color: #333;
|
||
|
|
}
|
||
|
|
|
||
|
|
.page-btn.active {
|
||
|
|
background-color: #f0f0f0;
|
||
|
|
border-color: #333;
|
||
|
|
color: #333;
|
||
|
|
}
|
||
|
|
|
||
|
|
.page-btn.disabled {
|
||
|
|
opacity: 0.5;
|
||
|
|
cursor: not-allowed;
|
||
|
|
}
|
||
|
|
|
||
|
|
.page-btn.disabled:hover {
|
||
|
|
background-color: white;
|
||
|
|
border-color: #ccc;
|
||
|
|
color: #666;
|
||
|
|
}
|
||
|
|
|
||
|
|
@media (max-width: 768px) {
|
||
|
|
.container {
|
||
|
|
padding: 10px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.search-section {
|
||
|
|
flex-direction: column;
|
||
|
|
align-items: stretch;
|
||
|
|
}
|
||
|
|
|
||
|
|
.search-group {
|
||
|
|
flex-direction: column;
|
||
|
|
align-items: stretch;
|
||
|
|
gap: 5px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.search-input {
|
||
|
|
width: 100%;
|
||
|
|
}
|
||
|
|
|
||
|
|
.search-btn {
|
||
|
|
margin-left: 0;
|
||
|
|
margin-top: 10px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.table-container {
|
||
|
|
font-size: 12px;
|
||
|
|
}
|
||
|
|
|
||
|
|
th, td {
|
||
|
|
padding: 8px 10px;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</style>
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<div class="container">
|
||
|
|
<!-- 搜索区域 -->
|
||
|
|
<div class="header">
|
||
|
|
<div class="search-section">
|
||
|
|
<div class="search-group">
|
||
|
|
<label>店铺</label>
|
||
|
|
<input type="text" class="search-input" placeholder="请输入店铺名称">
|
||
|
|
</div>
|
||
|
|
<div class="search-group">
|
||
|
|
<label>商品名称</label>
|
||
|
|
<input type="text" class="search-input" placeholder="请输入商品名称">
|
||
|
|
</div>
|
||
|
|
<div class="search-group">
|
||
|
|
<label>商品id</label>
|
||
|
|
<input type="text" class="search-input" placeholder="请输入商品ID">
|
||
|
|
</div>
|
||
|
|
<button class="search-btn">查询</button>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- 表格区域 -->
|
||
|
|
<div class="table-section">
|
||
|
|
<div class="table-container">
|
||
|
|
<table>
|
||
|
|
<thead>
|
||
|
|
<tr>
|
||
|
|
<th>商品店铺</th>
|
||
|
|
<th>商品名称</th>
|
||
|
|
<th>商品id</th>
|
||
|
|
<th>商品价格</th>
|
||
|
|
<th>操作</th>
|
||
|
|
</tr>
|
||
|
|
</thead>
|
||
|
|
<tbody>
|
||
|
|
<tr>
|
||
|
|
<td>猪肉铺</td>
|
||
|
|
<td>猪肉</td>
|
||
|
|
<td>1212</td>
|
||
|
|
<td>2元</td>
|
||
|
|
<td><a href="#" class="action-btn">添加</a></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<td>牛肉铺</td>
|
||
|
|
<td>牛肉</td>
|
||
|
|
<td>1213</td>
|
||
|
|
<td>5元</td>
|
||
|
|
<td><a href="#" class="action-btn">添加</a></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<td>鸡肉铺</td>
|
||
|
|
<td>鸡肉</td>
|
||
|
|
<td>1214</td>
|
||
|
|
<td>3元</td>
|
||
|
|
<td><a href="#" class="action-btn">添加</a></td>
|
||
|
|
</tr>
|
||
|
|
</tbody>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- 分页区域 -->
|
||
|
|
<div class="pagination">
|
||
|
|
<div class="pagination-container">
|
||
|
|
<a href="#" class="page-btn disabled">Previous</a>
|
||
|
|
<span class="page-btn active">1</span>
|
||
|
|
<a href="#" class="page-btn">2</a>
|
||
|
|
<a href="#" class="page-btn">3</a>
|
||
|
|
<a href="#" class="page-btn">Next</a>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</body>
|
||
|
|
</html>
|