{% extends "cms/base.html" %} {% block title %}{{ page.title }} - 构建器 - ARIFU CMS{% endblock %} {% set active='pages' %} {% block content %}

🧱 页面构建器:{{ page.title }}

{{ page.status }} /{{ page.slug }}
👁 预览 ✏ 基本信息 ← 页面列表
添加区块: {% set block_types = [('text','📝 富文本','#e74c3c'),('heading','📌 大标题','#0066CC'),('image','🖼 单图','#27ae60'),('gallery','📰 图集','#8e44ad'),('video','🎬 视频','#e67e22'),('divider','➖ 分隔线','#95a5a6'),('cta','📞 行动号召','#28A745'),('spacer','↕ 空白间距','#bdc3c7'),('quote','💬 引用/证言','#f39c12'),('stats','📊 数据统计','#16a085')] %} {% for bt, bl, bc in block_types %} {% endfor %}
拖拽排序,💾 点击保存,🗑 删除区块
{% if blocks %} {% for b in blocks %}
⋮⋮
{{ b.type }}
{% if b.type == 'text' %} {% set bcontent = b.content|from_json if b.content.startswith('{') else {'html':b.content} %} {% elif b.type == 'image' %} {% set bcontent = b.content|from_json if b.content.startswith('{') else {'src':b.content,'alt':''} %}
{% elif b.type == 'heading' %} {% elif b.type == 'divider' %}
—— 分隔线 ——
{% elif b.type == 'cta' %} {% set ct = b.content|from_json if b.content.startswith('{') else {'text':b.content,'url':'/contact/'} %}
{% elif b.type == 'stats' %} {% set sd = b.content|from_json if b.content.startswith('{') else {} %}
{% for i in range(4) %}
{% endfor %}
{% else %}
{{ b.content[:100] if b.content else '(空)' }}
{% endif %}
{% endfor %} {% else %}
🧱

还没有区块,点击上方按钮添加

{% endif %}
共 {{ blocks|length }} 个区块
👁 预览
{% endblock %} {% block scripts %} {% endblock %}