feat(vip): 实现VIP客户管理功能并更新数据库配置
添加VIP客户管理页面和测试页面,更新数据库名称为carwash_booking 在SQL文件中添加示例VIP客户数据,完善VIP功能展示页面
This commit is contained in:
+7
-1
@@ -64,4 +64,10 @@ INSERT INTO bookings (customer_name, phone, car_model, car_number, package_id, s
|
||||
('张三', '13800138001', '大众朗逸', '京A12345', 1, '2024-12-20 09:00:00', '2024-12-20 09:30:00', 30, 50.00, '第一次来', '普通客户', '抖音'),
|
||||
('李四', '13800138002', '丰田凯美瑞', '京B67890', 2, '2024-12-20 10:30:00', '2024-12-20 12:00:00', 90, 150.00, '需要特别清洗内饰', 'VIP会员', '朋友介绍'),
|
||||
('王五', '13800138003', '宝马X3', '沪C88888', 3, '2024-12-21 14:00:00', '2024-12-21 17:00:00', 180, 300.00, 'VIP客户,定期保养', 'VIP会员', '微信'),
|
||||
('赵六', '13800138004', '本田雅阁', '粤A66666', 1, '2024-12-21 09:30:00', '2024-12-21 10:00:00', 30, 50.00, '快手看到广告来的', '普通客户', '快手');
|
||||
('赵六', '13800138004', '本田雅阁', '粤A66666', 1, '2024-12-21 09:30:00', '2024-12-21 10:00:00', 30, 50.00, '快手看到广告来的', '普通客户', '快手');
|
||||
|
||||
-- 插入示例VIP客户数据
|
||||
INSERT INTO vip_customers (customer_name, phone, car_model, car_number, email, birthday, notes) VALUES
|
||||
('张总', '13900139001', '奔驰S500', '京V88888', 'zhang@example.com', '1980-05-15', '长期VIP客户,商务人士'),
|
||||
('王女士', '13900139002', '奥迪A6L', '京A66666', 'wang@example.com', '1985-03-20', '女企业家,每月定期保养'),
|
||||
('李先生', '13900139003', 'BMW X5', '沪B99999', 'li@example.com', '1978-11-10', '房地产公司老板,对服务要求较高');
|
||||
@@ -13,7 +13,7 @@ if (!$id) {
|
||||
|
||||
// 数据库连接配置
|
||||
$host = 'localhost';
|
||||
$dbname = 'carwash_db';
|
||||
$dbname = 'carwash_booking';
|
||||
$username = 'root';
|
||||
$password = '';
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ header('Cache-Control: no-cache, must-revalidate');
|
||||
|
||||
// 数据库连接配置
|
||||
$host = 'localhost';
|
||||
$dbname = 'carwash_db';
|
||||
$dbname = 'carwash_booking';
|
||||
$username = 'root';
|
||||
$password = '';
|
||||
|
||||
|
||||
+257
@@ -0,0 +1,257 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>洗车店管理系统 - VIP功能测试</title>
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.container {
|
||||
background: white;
|
||||
border-radius: 15px;
|
||||
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
max-width: 1000px;
|
||||
}
|
||||
|
||||
.header {
|
||||
background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
|
||||
color: white;
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.header h1 {
|
||||
font-size: 2em;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.header p {
|
||||
opacity: 0.9;
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
||||
.content {
|
||||
padding: 30px;
|
||||
}
|
||||
|
||||
.section {
|
||||
margin-bottom: 30px;
|
||||
border: 1px solid #e0e0e0;
|
||||
border-radius: 10px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.section-header {
|
||||
background: #f5f5f5;
|
||||
padding: 15px 20px;
|
||||
border-bottom: 1px solid #e0e0e0;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
font-size: 1.3em;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.section-content {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.btn {
|
||||
background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
|
||||
color: white;
|
||||
border: none;
|
||||
padding: 10px 20px;
|
||||
border-radius: 25px;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
display: inline-block;
|
||||
font-weight: bold;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.btn:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 5px 15px rgba(0,0,0,0.2);
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
background: linear-gradient(45deg, #667eea, #764ba2);
|
||||
}
|
||||
|
||||
.status-card {
|
||||
background: #f8f9fa;
|
||||
border: 1px solid #e9ecef;
|
||||
border-radius: 8px;
|
||||
padding: 15px;
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
.status-card h4 {
|
||||
color: #495057;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.status-card.success {
|
||||
border-color: #28a745;
|
||||
background: #d4edda;
|
||||
}
|
||||
|
||||
.status-card.error {
|
||||
border-color: #dc3545;
|
||||
background: #f8d7da;
|
||||
}
|
||||
|
||||
.feature-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||
gap: 20px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.feature-card {
|
||||
border: 1px solid #e0e0e0;
|
||||
border-radius: 10px;
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.feature-card:hover {
|
||||
border-color: #4ECDC4;
|
||||
transform: translateY(-5px);
|
||||
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
.feature-icon {
|
||||
font-size: 3em;
|
||||
margin-bottom: 15px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.nav-links {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 20px;
|
||||
margin-top: 30px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="header">
|
||||
<h1>🚗 洗车店管理系统</h1>
|
||||
<p>VIP客户管理和预约系统功能展示</p>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<div class="section">
|
||||
<div class="section-header">
|
||||
<h2 class="section-title">✨ VIP功能实现状态</h2>
|
||||
</div>
|
||||
<div class="section-content">
|
||||
<div class="status-card success">
|
||||
<h4>✅ VIP客户管理</h4>
|
||||
<p>已完成 VIP客户录入页面 (vip.php),支持添加、查看、编辑和删除VIP客户信息</p>
|
||||
</div>
|
||||
|
||||
<div class="status-card success">
|
||||
<h4>✅ 数据库结构</h4>
|
||||
<p>已创建 vip_customers 表,包含客户基本信息和车辆信息字段</p>
|
||||
</div>
|
||||
|
||||
<div class="status-card success">
|
||||
<h4>✅ 预约表单改进</h4>
|
||||
<p>在预约页面添加客户类型选择功能,支持选择VIP客户或录入新客户</p>
|
||||
</div>
|
||||
|
||||
<div class="status-card success">
|
||||
<h4>✅ 数据关联</h4>
|
||||
<p>实现VIP客户选择时自动填充车型、车牌号等信息</p>
|
||||
</div>
|
||||
|
||||
<div class="status-card success">
|
||||
<h4>✅ 示例数据</h4>
|
||||
<p>已添加3个示例VIP客户:张总(奔驰S500)、王女士(奥迪A6L)、李先生(BMW X5)</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
<div class="section-header">
|
||||
<h2 class="section-title">🎯 主要功能特色</h2>
|
||||
</div>
|
||||
<div class="section-content">
|
||||
<div class="feature-grid">
|
||||
<div class="feature-card">
|
||||
<span class="feature-icon">👥</span>
|
||||
<h4>VIP客户管理</h4>
|
||||
<p>完整的VIP客户信息管理,包括基本信息、车辆信息和备注</p>
|
||||
</div>
|
||||
|
||||
<div class="feature-card">
|
||||
<span class="feature-icon">🎫</span>
|
||||
<h4>会员类型区分</h4>
|
||||
<p>自动区分VIP会员和普通客户,VIP客户享受特殊标识</p>
|
||||
</div>
|
||||
|
||||
<div class="feature-card">
|
||||
<span class="feature-icon">📋</span>
|
||||
<h4>智能表单</h4>
|
||||
<p>选择VIP客户时自动填充相关信息,新客户手动录入</p>
|
||||
</div>
|
||||
|
||||
<div class="feature-card">
|
||||
<span class="feature-icon">🎯</span>
|
||||
<h4>客户来源追踪</h4>
|
||||
<p>记录客户来源渠道,支持抖音、微信、快手等渠道分析</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="nav-links">
|
||||
<a href="index.php" class="btn">🏠 返回预约主页</a>
|
||||
<a href="vip.php" class="btn btn-secondary">👑 VIP管理页面</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
// 简单的页面动画效果
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
const cards = document.querySelectorAll('.feature-card, .status-card');
|
||||
cards.forEach((card, index) => {
|
||||
card.style.opacity = '0';
|
||||
card.style.transform = 'translateY(20px)';
|
||||
setTimeout(() => {
|
||||
card.style.transition = 'all 0.5s ease';
|
||||
card.style.opacity = '1';
|
||||
card.style.transform = 'translateY(0)';
|
||||
}, index * 100);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user