@@ -188,8 +986,11 @@ $packages = $stmt->fetchAll();
@@ -200,12 +1001,12 @@ $packages = $stmt->fetchAll();
- 时长
- = $package['base_duration'] ?>分钟
+ ⏱️ 时长
+ = $package['base_duration'] ?>分钟
- 价格
- ¥= number_format($package['price'], 2) ?>
+ 💰 价格
+ ¥= number_format($package['price'], 2) ?>
@@ -214,7 +1015,7 @@ $packages = $stmt->fetchAll();
if ($services && !empty(trim($services[0]))):
?>
-
包含服务
+
✨ 包含服务
@@ -225,97 +1026,27 @@ $packages = $stmt->fetchAll();
-
-
套餐专属预约信息
-
-
-
-
+
+
📝 套餐专属预约信息
+
+
+
+
-
-
-
-
-
@@ -323,22 +1054,97 @@ $packages = $stmt->fetchAll();
+
-
+ // 取消编辑提醒
+ function cancelReminderEdit(button) {
+ const textarea = button.closest('.package-reminder').querySelector('.reminder-editor');
+ textarea.blur();
+ }
+
+ // 自适应文本框高度
+ function autoResizeTextarea(textarea) {
+ textarea.style.height = 'auto';
+ textarea.style.height = Math.min(textarea.scrollHeight + 10, 500) + 'px';
+ }
+
+ // 工具函数
+ function trim(str) {
+ return str ? str.trim() : '';
+ }
+
+ function escapeHtml(text) {
+ const div = document.createElement('div');
+ div.textContent = text;
+ return div.innerHTML;
+ }
+
+ // 页面加载时初始化
+ window.addEventListener('DOMContentLoaded', function() {
+ const textareas = document.querySelectorAll('.reminder-editor');
+ textareas.forEach(autoResizeTextarea);
+ });
+
-
\ No newline at end of file
+