310 lines
8.5 KiB
HTML
310 lines
8.5 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: 'Arial', 'Microsoft YaHei', sans-serif;
|
||
font-size: 14px;
|
||
color: #333;
|
||
background-color: #f5f5f5;
|
||
padding: 20px;
|
||
}
|
||
|
||
.container {
|
||
background-color: white;
|
||
padding: 20px;
|
||
border: 1px dashed #ccc;
|
||
max-width: 1200px;
|
||
margin: 0 auto;
|
||
}
|
||
|
||
.page-title {
|
||
font-size: 18px;
|
||
font-weight: bold;
|
||
margin-bottom: 20px;
|
||
color: #333;
|
||
}
|
||
|
||
.search-section {
|
||
border: 1px dashed #ccc;
|
||
padding: 15px;
|
||
margin-bottom: 20px;
|
||
background-color: #fafafa;
|
||
position: relative;
|
||
}
|
||
|
||
.search-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 15px;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.form-group {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
}
|
||
|
||
.form-group label {
|
||
white-space: nowrap;
|
||
font-size: 14px;
|
||
}
|
||
|
||
.form-control {
|
||
padding: 6px 10px;
|
||
border: 1px dashed #ccc;
|
||
background-color: white;
|
||
font-size: 14px;
|
||
min-width: 150px;
|
||
}
|
||
|
||
.form-control:focus {
|
||
outline: none;
|
||
border-color: #999;
|
||
}
|
||
|
||
.btn {
|
||
padding: 6px 20px;
|
||
font-size: 14px;
|
||
cursor: pointer;
|
||
background-color: white;
|
||
border: 1px dashed #ccc;
|
||
transition: all 0.2s;
|
||
}
|
||
|
||
.btn:hover {
|
||
background-color: #f0f0f0;
|
||
}
|
||
|
||
.btn-primary {
|
||
border-color: #007bff;
|
||
color: #007bff;
|
||
}
|
||
|
||
.btn-primary:hover {
|
||
background-color: #e6f3ff;
|
||
}
|
||
|
||
.btn-success {
|
||
border-color: #28a745;
|
||
color: #28a745;
|
||
}
|
||
|
||
.btn-success:hover {
|
||
background-color: #e6f7ea;
|
||
}
|
||
|
||
.add-btn {
|
||
position: absolute;
|
||
top: 15px;
|
||
right: 15px;
|
||
}
|
||
|
||
.table-container {
|
||
border: 1px dashed #ccc;
|
||
overflow-x: auto;
|
||
}
|
||
|
||
.data-table {
|
||
width: 100%;
|
||
border-collapse: collapse;
|
||
background-color: white;
|
||
}
|
||
|
||
.data-table th,
|
||
.data-table td {
|
||
padding: 10px;
|
||
text-align: left;
|
||
border: 1px dashed #ccc;
|
||
font-size: 14px;
|
||
}
|
||
|
||
.data-table th {
|
||
background-color: #f8f9fa;
|
||
font-weight: normal;
|
||
color: #333;
|
||
}
|
||
|
||
.data-table tbody tr:hover {
|
||
background-color: #f9f9f9;
|
||
}
|
||
|
||
.checkbox {
|
||
width: 16px;
|
||
height: 16px;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.action-buttons {
|
||
display: flex;
|
||
gap: 8px;
|
||
}
|
||
|
||
.btn-edit {
|
||
color: #007bff;
|
||
background: none;
|
||
border: none;
|
||
cursor: pointer;
|
||
text-decoration: underline;
|
||
font-size: 14px;
|
||
}
|
||
|
||
.btn-delete {
|
||
color: #dc3545;
|
||
background: none;
|
||
border: none;
|
||
cursor: pointer;
|
||
text-decoration: underline;
|
||
font-size: 14px;
|
||
}
|
||
|
||
.btn-edit:hover {
|
||
color: #0056b3;
|
||
}
|
||
|
||
.btn-delete:hover {
|
||
color: #c82333;
|
||
}
|
||
|
||
@media (max-width: 768px) {
|
||
.search-row {
|
||
flex-direction: column;
|
||
align-items: flex-start;
|
||
}
|
||
|
||
.form-group {
|
||
width: 100%;
|
||
}
|
||
|
||
.form-control {
|
||
min-width: 200px;
|
||
}
|
||
|
||
.add-btn {
|
||
position: static;
|
||
margin-top: 10px;
|
||
}
|
||
}
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<div class="container">
|
||
<div class="page-title">积分商城</div>
|
||
|
||
<div class="search-section">
|
||
<div class="search-row">
|
||
<div class="form-group">
|
||
<label>商铺:</label>
|
||
<select class="form-control">
|
||
<option value="">生生蔬菜店</option>
|
||
<option value="">其他店铺</option>
|
||
</select>
|
||
</div>
|
||
|
||
<div class="form-group">
|
||
<label>商品ID:</label>
|
||
<input type="text" class="form-control" placeholder="请输入商品ID">
|
||
</div>
|
||
|
||
<div class="form-group">
|
||
<label>商品名称:</label>
|
||
<input type="text" class="form-control" placeholder="请输入商品名称">
|
||
</div>
|
||
|
||
<div class="form-group">
|
||
<button class="btn btn-primary">查询</button>
|
||
<button class="btn">重置</button>
|
||
</div>
|
||
</div>
|
||
|
||
<button class="btn btn-success add-btn">添加</button>
|
||
</div>
|
||
|
||
<div class="table-container">
|
||
<table class="data-table">
|
||
<thead>
|
||
<tr>
|
||
<th width="50">
|
||
<input type="checkbox" class="checkbox">
|
||
</th>
|
||
<th width="100">商品ID</th>
|
||
<th width="150">商品名称</th>
|
||
<th width="150">规格名称</th>
|
||
<th width="150">归属店铺</th>
|
||
<th width="100">兑换积分</th>
|
||
<th width="120">剩余兑换库存</th>
|
||
<th width="120">已兑换数量</th>
|
||
<th width="120">操作</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>
|
||
<input type="checkbox" class="checkbox">
|
||
</td>
|
||
<td>001</td>
|
||
<td>黑木耳</td>
|
||
<td>小份</td>
|
||
<td>生生蔬菜店</td>
|
||
<td>1</td>
|
||
<td>10</td>
|
||
<td>0</td>
|
||
<td>
|
||
<div class="action-buttons">
|
||
<button class="btn-edit">编辑</button>
|
||
<button class="btn-delete">删除</button>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<input type="checkbox" class="checkbox">
|
||
</td>
|
||
<td>002</td>
|
||
<td>黑木耳</td>
|
||
<td>大份</td>
|
||
<td>生生蔬菜店</td>
|
||
<td>1</td>
|
||
<td>10</td>
|
||
<td>0</td>
|
||
<td>
|
||
<div class="action-buttons">
|
||
<button class="btn-edit">编辑</button>
|
||
<button class="btn-delete">删除</button>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<input type="checkbox" class="checkbox">
|
||
</td>
|
||
<td>003</td>
|
||
<td>番茄</td>
|
||
<td>无</td>
|
||
<td>生生蔬菜店</td>
|
||
<td>2</td>
|
||
<td>2</td>
|
||
<td>0</td>
|
||
<td>
|
||
<div class="action-buttons">
|
||
<button class="btn-edit">编辑</button>
|
||
<button class="btn-delete">删除</button>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</body>
|
||
</html> |