语法:block.settings.商品分类的id.title
{{#each section.blocks as |block|}}
{{#if block.type == 'collections_picker-select' }}
<div class="swiper-slide">
<div class="women-toys-container">
<a href="{{block.settings.product_categories.url}}">
<img src="{{ block.settings.product_categories.featured_image}}">
<div class="women-toys-text">
<h1 class="women-toys-text-h1">{{ block.settings.product_categories.title}}</h1>
<p class="women-toys-text-p">{{{ block.settings.product_categories.description}}}</p>
<button class="women-toys-button">{{ block.settings.product_categories.title}}</button>
</div>
</a>
</div>
</div>
{{/if}}
{{/each}}
{{#schema}}
{
"name": "享受生活",
"settings": [],
"blocks": [
{
"type": "collections_picker-select",
"name":"选择商品",
"settings": [
{
"id": "product_categories",
"type": "collection_picker",
"label": "商品分类"
}
]
}
]
}
{{/schema}}