From d6782ee710a6a41967db1f52ef83b4ec1206e81b Mon Sep 17 00:00:00 2001 From: OoO Date: Fri, 1 May 2026 21:08:44 +0800 Subject: [PATCH] feat(ai): move recommendation page to v2 shell --- app.py | 4 +- config.py | 2 +- templates/ai_recommend.html | 115 ++++++++++++++++++++++++++++--- tests/test_frontend_v2_assets.py | 27 ++++++++ 4 files changed, 134 insertions(+), 14 deletions(-) diff --git a/app.py b/app.py index 48f5417..0ca690f 100644 --- a/app.py +++ b/app.py @@ -95,8 +95,8 @@ except Exception as e: sys_log.error(f"無法檢測磁碟空間: {e}") # 🚩 系統版本定義 (備份與顯示用) -# 🚩 2026-05-01 V10.74: Move AI history page onto V2 shell -SYSTEM_VERSION = "V10.74" +# 🚩 2026-05-01 V10.75: Move AI recommendation page onto V2 shell +SYSTEM_VERSION = "V10.75" # ========================================== # 🔒 SQL Injection 防護函數 diff --git a/config.py b/config.py index 156be7c..4f1c7fc 100644 --- a/config.py +++ b/config.py @@ -254,7 +254,7 @@ YOUTUBE_API_KEY = os.getenv('YOUTUBE_API_KEY', '') # ========================================== # 系統版本與路徑 # ========================================== -SYSTEM_VERSION = "V10.74" +SYSTEM_VERSION = "V10.75" LOG_FILE_PATH = os.path.join(BASE_DIR, 'logs/system.log') public_url = PUBLIC_URL # 用於模板顯示 diff --git a/templates/ai_recommend.html b/templates/ai_recommend.html index a747e53..5f42a62 100644 --- a/templates/ai_recommend.html +++ b/templates/ai_recommend.html @@ -1,17 +1,111 @@ -{% extends 'base.html' %} +{% extends 'ewoooc_base.html' %} {% block title %}AI 智慧推薦 - WOOO TECH{% endblock %} -{% block content %} -
+{% block extra_css %} + +{% endblock %} + +{% block ewooo_content %} +
-
+
-

+

AI 智慧推薦 -

- 根據市場趨勢,智慧生成銷售文案 + + 根據資料庫商品分類、即時趨勢與 AI 生成紀錄,產出可追蹤的銷售文案。
@@ -200,10 +294,9 @@
- 保濕面膜 - 美白精華 - 防曬乳 - 抗老保養 + {% for category in product_categories[:4] %} + {{ category }} + {% endfor %}