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>