关于页 #56

Merged
qitangbo merged 1 commits from qtb into master 2026-10-09 15:03:21 +08:00
4 changed files with 76 additions and 2 deletions
+59
View File
@@ -236,4 +236,63 @@
</div>
]]></field>
</record>
<!-- ===================== 团队介绍 ===================== -->
<record id="about_page_team" model="yuthon.about.page">
<field name="name">团队介绍</field>
<field name="category">team</field>
<field name="sequence">40</field>
<field name="active">True</field>
<field name="content"><![CDATA[
<div style="font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'PingFang SC','Microsoft YaHei',sans-serif;color:#fff;line-height:1.65;">
<!-- 顶部 banner:深蓝科技风 -->
<div style="background:linear-gradient(135deg,#0f172a 0%,#1e40af 50%,#0ea5e9 100%);padding:72px 32px 56px;text-align:center;position:relative;overflow:hidden;">
<!-- 装饰圆 -->
<div style="position:absolute;top:-60px;left:-60px;width:220px;height:220px;background:rgba(255,255,255,0.06);border-radius:50%;"></div>
<div style="position:absolute;bottom:-40px;right:-40px;width:180px;height:180px;background:rgba(255,255,255,0.05);border-radius:50%;"></div>
<!-- 顶部胶囊标签 -->
<div style="display:inline-flex;align-items:center;background:rgba(255,255,255,0.10);border:1px solid rgba(255,255,255,0.18);border-radius:999px;padding:6px 18px 6px 8px;margin-bottom:28px;position:relative;z-index:1;">
<span style="display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;background:#facc15;color:#0f172a;border-radius:8px;font-weight:800;font-size:14px;margin-right:10px;">P</span>
<span style="font-size:14px;color:#e2e8f0;letter-spacing:0.5px;">Peng Yuthon</span>
</div>
<h1 style="font-size:42px;font-weight:800;margin:0 0 16px;color:#fff !important;position:relative;z-index:1;">鹏程万里 气宇轩昂</h1>
<p style="font-size:18px;margin:0 0 36px;color:#cbd5e1;position:relative;z-index:1;">软件 · 硬件 · AI 智能体</p>
<!-- 底部胶囊标签 -->
<div style="display:flex;flex-wrap:wrap;justify-content:center;gap:12px;position:relative;z-index:1;">
<span style="background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.15);border-radius:999px;padding:8px 18px;font-size:14px;color:#e2e8f0;">软件</span>
<span style="background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.15);border-radius:999px;padding:8px 18px;font-size:14px;color:#e2e8f0;">硬件</span>
<span style="background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.15);border-radius:999px;padding:8px 18px;font-size:14px;color:#e2e8f0;">AI 智能体</span>
<span style="background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.15);border-radius:999px;padding:8px 18px;font-size:14px;color:#e2e8f0;">工程化教育</span>
<span style="background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.15);border-radius:999px;padding:8px 18px;font-size:14px;color:#e2e8f0;">企业实训</span>
</div>
</div>
<!-- 主体内容 -->
<div style="padding:36px 28px;background:#fff;color:#334155;">
<h2 style="color:#0f172a;font-size:20px;margin:0 0 16px;">关于我们</h2>
<p style="margin:0 0 28px;font-size:15px;color:#475569;">
Peng Yuthon 专注于软件、硬件与 AI 智能体方向的工程化教育,
致力于为高校与职业院校提供真实企业场景驱动的实训解决方案。
</p>
<h2 style="color:#0f172a;font-size:20px;margin:0 0 16px;">联系方式</h2>
<ul style="list-style:none;padding:0;margin:0;font-size:15px;line-height:2;color:#475569;">
<li><b style="color:#0f172a;">B 站:</b>bilibili: pengyuthon</li>
<li><b style="color:#0f172a;">邮箱:</b>pengyuthon@163.com</li>
<li><b style="color:#0f172a;">官网:</b>pengyuthon.cn</li>
<li><b style="color:#0f172a;">学习平台:</b>edu.pengyuthon.cn</li>
</ul>
</div>
<!-- 版权页脚 -->
<div style="padding:18px 24px;background:#0f172a;color:#94a3b8;font-size:13px;text-align:center;">
© 2026 Peng Yuthon. All rights reserved.
</div>
</div>
]]></field>
</record>
</odoo>
+1
View File
@@ -18,6 +18,7 @@ class YuthonAboutPage(models.Model):
('operation', '操作手册'),
('product', '产品介绍'),
('import', '导入说明'),
('team', '团队介绍'),
], string='分类', default='system', required=True)
content = fields.Html(string='内容', sanitize=True, translate=True)
sequence = fields.Integer(string='排序', default=10)
+2 -2
View File
@@ -1,7 +1,7 @@
// 关于页(yuthon.about.page)为只读展示页:
// form 视图已设 edit="false",但教师组有该模型写权限时控制面板仍会渲染「编辑」按钮,
// 这里用 CSS 精准隐藏该页面的编辑按钮(作用域限定 o_about_full_form,不影响其他表单)。
.o_about_full_form .o_form_button_edit {
.o_form_view.o_about_full_form .o_form_button_edit,
.o_form_view.o_about_full_form button[data-hotkey="e"] {
display: none !important;
}
+14
View File
@@ -340,6 +340,20 @@ else:
<field name="target">current</field>
</record>
<!-- 团队介绍:打开预置记录 about_page_team -->
<record id="action_yuthon_about_team" model="ir.actions.act_window">
<field name="name">团队介绍</field>
<field name="res_model">yuthon.about.page</field>
<field name="view_mode">form</field>
<field name="res_id" ref="about_page_team"/>
<field name="target">current</field>
</record>
<menuitem id="menu_yuthon_about_team"
name="团队介绍"
parent="menu_yuthon_about"
action="action_yuthon_about_team"
sequence="30"/>
<!-- 课程导入动作(关联 yuthon.school.course.import.wizard) -->
<record id="action_yuthon_school_course_import_wizard" model="ir.actions.act_window">
<field name="name">课程导入</field>