{% extends 'base.html' %} {% load static i18n i18n_tags %} {% block breadcrumb %}{% include 'includes/breadcrumb.html' %}{% endblock %} {% block content %} {% with gallery|first as first_img %} {% endwith %} {% if gallery %} {% for img in gallery %} {% endfor %} {% endif %} {% 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 %} {% trans '产品描述' %} {% if product.specs_zh %}{% trans '技术参数' %}{% endif %} {{ product.description_zh|safe|default:product.description_en|safe }} {% if product.specs_zh %} {% for k, v in product.specs_zh.items %} {{ k }}{{ v }} {% endfor %} {% endif %} {% if related %} {% trans '相关产品' %} {% for p in related %} {% if p.main_image %}{% endif %} {% ml_field p 'name' %} {% trans '查看' %} {% endfor %} {% endif %} {% endblock %}
{% trans '型号' %}: {{ product.model }}
{% ml_field product 'summary' %}