feat: 支持首页模块动态排序

This commit is contained in:
que01 committed 2026-09-23 00:06:48 +08:00
1 parent 13a2d3c676
commit e6a06883ae
2 files changed
+8 -5

No files matched your search

+7 -5
View File
@@ -1,7 +1,9 @@
<view class="page">
<founder-card wx:if="{{layout.indexOf('founder-card') !== -1}}" brand="{{brand}}" />
<brand-hero wx:if="{{layout.indexOf('brand-hero') !== -1}}" hero="{{hero}}" bind:explore="goWorks" />
<trust-proof wx:if="{{layout.indexOf('trust-proof') !== -1}}" content="{{trustContent}}" />
<trust-manifesto wx:if="{{layout.indexOf('trust-manifesto') !== -1}}" content="{{trustContent}}" />
<offering-list wx:if="{{layout.indexOf('offering-list') !== -1}}" offerings="{{offerings}}" bind:open="selectOffering" bind:more="goWorks" />
<block wx:for="{{layout}}" wx:key="*this" wx:for-item="moduleKey">
<founder-card wx:if="{{moduleKey === 'founder-card'}}" brand="{{brand}}" />
<brand-hero wx:if="{{moduleKey === 'brand-hero'}}" hero="{{hero}}" bind:explore="goWorks" />
<trust-proof wx:if="{{moduleKey === 'trust-proof'}}" content="{{trustContent}}" />
<trust-manifesto wx:if="{{moduleKey === 'trust-manifesto'}}" content="{{trustContent}}" />
<offering-list wx:if="{{moduleKey === 'offering-list'}}" offerings="{{offerings}}" bind:open="selectOffering" bind:more="goWorks" />
</block>
</view>
+1
View File
@@ -55,6 +55,7 @@
- [x] 增加行业模板与视觉模板的安装前组合预览接口,不写入品牌配置。
- [x] Admin 接入模板组合预览,可在安装前查看模块变体和能力依赖。
- [x] 首页标准模块按 `layout.home` 受控显示,未知模块安全隐藏。
- [x] 首页通过受控模块分支按 `layout.home` 实际改变模块渲染顺序。
- [ ] Phase 4:Capability Plugin。
- [ ] Phase 5:林境门作与第二行业双模板验证。
- [ ] Phase 6:Stitch 到 Manifest 的转换流水线。