{% extends 'base.html' %} {% load static i18n i18n_tags %} {% block breadcrumb %}{% include 'includes/breadcrumb.html' %}{% endblock %} {% block content %}

{% ml_field product 'name' %}

{% if product.model %}

{% trans '型号' %}: {{ product.model }}

{% endif %}

{% ml_field product 'summary' %}

{% if product.features_zh or product.features_en %}
{% trans '产品特点' %}
    {% for f in product.features_zh %}
  • {{ f }}
  • {% endfor %}
{% endif %}
{% trans '咨询购买' %} {% if product.download_file %} {% trans '资料下载' %} {% endif %}
{% if product.video_url or product.video_file %}

{% trans '产品视频' %}

{% if product.video_file %} {% elif product.video_url %} {% if 'bilibili' in product.video_url or 'youtube' in product.video_url %} {% else %} {% endif %} {% endif %}
{% endif %}
{{ product.description_zh|safe|default:product.description_en|safe }}
{% if product.specs_zh %}
{% for k, v in product.specs_zh.items %} {% endfor %}
{{ k }}{{ v }}
{% endif %}
{% if related %}

{% trans '相关产品' %}

{% for p in related %}
{% if p.main_image %}{% ml_field p 'name' %}{% endif %}
{% ml_field p 'name' %}
{% trans '查看' %}
{% endfor %}
{% endif %}
{% endblock %}