{% extends 'ewoooc_base.html' %} {% block title %}EwoooC 商品看板{% endblock %} {% block extra_css %} {% endblock %} {% block ewooo_content %}
監控總數
{{ total_products | number_format }}
本週 +{{ week_new_products }}
今日變動
{{ active_count | number_format }}
活躍度 {{ activity_rate | round(1) }}%
漲價
{{ cnt_increase | number_format }}
平均 +${{ avg_increase | abs | int | number_format }}
降價
{{ cnt_decrease | number_format }}
平均 -${{ avg_decrease | abs | int | number_format }}
最活躍分類
{% if most_active_category %}
{{ most_active_category }}
{{ most_active_count }} 件商品變動
{% else %}
尚無分類變動
今日沒有可彙整的分類異動
{% endif %}
最大變動
{% if max_change_item %}
{% if max_change_value > 0 %}+{% else %}-{% endif %}${{ max_change_value | abs | int | number_format }}
{{ max_change_item.record.product.name }}
{% else %}
尚無最大變動
今日沒有價格異動
{% endif %}
爬蟲排程
{% set momo_stats_list = scheduler_stats.get('momo_task', []) %} {% if momo_stats_list %} {% set latest_run = momo_stats_list[0] %}
{{ latest_run.last_run }}
狀態 {{ latest_run.status | default('未標記') }} {% if latest_run.scraped_count is defined %} · 掃描 {{ latest_run.scraped_count }} 筆{% endif %} {% if latest_run.new_products is defined %} · 新增 +{{ latest_run.new_products }}{% endif %}
{% else %}
尚無排程紀錄
未讀到 scheduler_stats.json 的 momo_task 紀錄
{% endif %}
04 商品列表 {{ total_items | number_format }} 筆
匯出全部 匯出漲跌
{% for item in items %} {% set product = item.record.product %} {% set competitor = item.pchome_competitor %} {% set decision = item.competitor_decision %} {% set image_url = product.image_url or ('https://m.momoshop.com.tw/moscdn/goods/' ~ product.i_code ~ '_m.webp') %} {% else %} {% endfor %}
分類 商品名稱 MOMO 價格 PChome 價格 競價判讀 昨日漲跌 週漲跌 更新時間 上架時間
{{ product.category or '未分類' }}
{{ product.name }}
{{ product.name }} {% if competitor and competitor.product_name %}
PChome:{{ competitor.product_name }}
{% endif %}
{% if competitor and competitor.price %}
${{ competitor.price | int | number_format }}
{% if competitor.match_score %}
match {{ (competitor.match_score * 100) | round(0) | int }}%
{% endif %} {% else %} 待比對 {% endif %}
{{ decision.label }} {% if decision.gap_pct is not none %} MOMO - PChome: {% if decision.gap_amount > 0 %}+{% endif %}${{ decision.gap_amount | round(0) | int | number_format }} / {% if decision.gap_pct > 0 %}+{% endif %}{{ decision.gap_pct | round(1) }}% {% endif %} {{ decision.summary }}
{% if item.yesterday_diff > 0 %} ▲ +{{ item.yesterday_diff | abs | int | number_format }} {% elif item.yesterday_diff < 0 %} ▼ -{{ item.yesterday_diff | abs | int | number_format }} {% else %} -- {% endif %} {% set week_diff = item.stats.get('7d_diff', 0) %} {% if week_diff > 0 %} +{{ week_diff | int | number_format }} {% elif week_diff < 0 %} -{{ week_diff | abs | int | number_format }} {% else %} -- {% endif %} {{ item.record.timestamp.strftime('%m-%d %H:%M') if item.record.timestamp else '--' }} {{ item.safe_created_at.strftime('%m-%d %H:%M') if item.safe_created_at else '--' }}
{% if search_query %} 找不到與「{{ search_query }}」相關的商品 {% else %} 目前沒有符合條件的商品 {% endif %}
{% if total_pages > 1 %}
{% if current_page > 1 %} 上一頁 {% endif %} 第 {{ current_page }} / {{ total_pages }} 頁 {% if current_page < total_pages %} 下一頁 {% endif %}
{% endif %}
{% endblock %} {% block extra_js %} {% endblock %}