🏠 家庭儀表板

{{ today }}

😴 Zami 睡眠概況(近 7 天)

{% if health.zami_sleep_avg %}
{{ health.zami_sleep_avg }} 小時 / 日均 {% if health.zami_sleep_avg >= 7 %} ✓ 充足 {% elif health.zami_sleep_avg >= 6 %} ⚠ 偏少 {% else %} ⚠ 不足 {% endif %}
{% else %}

暫無睡眠資料

{% endif %} {% if health.health_error %}

⚠ {{ health.health_error }}

{% endif %}

🤰 書韋孕期追蹤

{% set preg = health.pregnancy %}
{{ preg.weeks }} {{ preg.extra_days }}
目前孕期
{{ preg.days_to_due }}
距預產期(天)
{{ preg.baby_emoji }}
寶寶約 {{ preg.baby_size }} 大小
第 {{ preg.weeks }} 週里程碑
孕期進度 {{ preg.progress_pct }}% · 共 40 週
LMP {{ preg.lmp }} 預產期 {{ preg.due_date }}

⚖️ 書韋體重

{% if health.shuwei_weight %}
{{ "%.1f"|format(health.shuwei_weight.value) }} {{ health.shuwei_weight.unit or 'kg' }} {{ health.shuwei_weight.recorded_at[:10] }}
{% else %}

暫無體重記錄

{% endif %}

💊 Zami 今日藥物提醒

{% if health.medications %} {% for med in health.medications %}
{{ '💊' if med.category == 'medication' else '🌿' }} {{ med.name }}
{{ med.default_units|int }} 次 · {{ med.unit_pills }} 顆
{% endfor %} {% else %} {% for item in [('💊', '力福全', '每日 1 次 · 0.25 顆'), ('💊', '思樂康', '每日 1 次 · 1 顆'), ('🌿', 'GABA', '每日 1 次 · 1 顆')] %}
{{ item[0] }} {{ item[1] }}
{{ item[2] }}
{% endfor %} {% endif %}

* 每日睡前服用,如有異常請諮詢醫師

💰 {{ finance.monthly_label or '本月' }}支出

{% if finance.finance_error %}

⚠ {{ finance.finance_error }}

{% else %}
{{ "{:,}".format(finance.monthly_total|int) }} TWD
{% if finance.monthly_total == 0 %}

本月尚無支出記錄

{% endif %} {% endif %}

📈 持股損益總覽

{% if finance.price_date %} 更新 {{ finance.price_date }} {% endif %}
總市值
{{ "{:,.0f}".format(finance.total_market_value) }} TWD
{% if finance.total_pnl is not none %}
損益
{{ '+' if finance.total_pnl >= 0 else '' }}{{ "{:,.0f}".format(finance.total_pnl) }}
{{ '+' if finance.total_pnl_pct >= 0 else '' }}{{ finance.total_pnl_pct }}%
{% else %}
成本基礎
未設定成本
{% endif %}
{% for h in finance.holdings %} {% endfor %}
股票 張數 現價 漲跌 市值
{{ h.name }} {{ h.symbol }} {{ h.shares }} {{ h.price }} {% if h.change_pct > 0 %} +{{ h.change_pct }}% {% elif h.change_pct < 0 %} {{ h.change_pct }}% {% else %} 0% {% endif %} {{ "{:,.0f}".format(h.market_value) }}
合計 {{ "{:,.0f}".format(finance.total_market_value) }}

🧾 近期記帳記錄

+ 快速記帳
{% if finance.recent_expenses %}
{% for exp in finance.recent_expenses %}
{{ exp.date }} {{ exp.category }} {{ exp.note or '-' }}
{{ "{:,}".format(exp.amount|int) }}
{% endfor %}
{% else %}

暫無記帳記錄

{% endif %}

📅 近期重要日期

👶
書韋預產期
{{ health.pregnancy.days_to_due }} 天後
{{ health.pregnancy.due_date }}
🏥
書韋婦幼產檢
每月定期
林世基主任 · 婦幼醫院
💊
Zami 定期回診
身心科追蹤
藥物調整與心理評估

家庭儀表板 · 資料來源:健康管家 & 財務管家 & AI 新聞 · 自動整合

\

🤖 AI 新聞快報

{% if ai_news.dates %} {% elif ai_news.date %} {{ ai_news.date }} {% endif %}
{% if ai_news.error %}

⚠ {{ ai_news.error }}

{% elif ai_news.items %}
{% for item in ai_news.items %}
{% if item.tag_type == 'model' %} {{ item.tag }} {% elif item.tag_type == 'industry' %} {{ item.tag }} {% elif item.tag_type == 'policy' %} {{ item.tag }} {% elif item.tag_type == 'app' %} {{ item.tag }} {% elif item.tag_type == 'research' %} {{ item.tag }} {% else %} {{ item.tag }} {% endif %}

{{ item.title }}

{{ item.desc }}

{% if item.url %} 閱讀更多 → {% endif %}
{% endfor %}
📰 查看完整 AI 新聞 {% else %}

暫無 AI 新聞資料

{% endif %}