feat(预约系统): 添加会员类型和客户来源功能

在预约系统中新增会员类型(VIP/普通)和客户来源字段,包含数据库修改、表单添加和展示优化
This commit is contained in:
2025-11-19 01:45:49 +08:00
parent 9c8b701706
commit 00fc854a64
3 changed files with 61 additions and 8 deletions
+26
View File
@@ -110,6 +110,32 @@ try {
<span class="detail-label">预约时间:</span>
<span class="detail-value"><?php echo date('H:i', strtotime($booking['start_time'])); ?> - <?php echo date('H:i', strtotime($booking['end_time'])); ?></span>
</div>
<div class="detail-item">
<span class="detail-label">会员类型:</span>
<span class="detail-value">
<?php if ($booking['member_type'] === 'VIP会员'): ?>
<span style="color: #ffd700; font-weight: bold;">👑 VIP会员</span>
<?php else: ?>
<span style="color: #666;">普通客户</span>
<?php endif; ?>
</span>
</div>
<div class="detail-item">
<span class="detail-label">客户来源:</span>
<span class="detail-value">
<?php
$source_icons = [
'抖音' => '🎵',
'微信' => '💬',
'快手' => '⚡',
'朋友介绍' => '🤝',
'其他' => '📋'
];
$icon = $source_icons[$booking['source']] ?? '📋';
echo $icon . ' ' . $booking['source'];
?>
</span>
</div>
</div>
<?php if ($booking['notes']): ?>