{extend name="public/base" /} {block name="style"} {/block} {block name="main"}
{notempty name="focus_image"}
{volist name="focus_image" id="fi"} {/volist}
{/notempty}
{notempty name="categorys_data"}
{if condition="in_array('products', array_keys($categorys_data[0]))"}
    {assign name="products" value=":\think\helper\Arr::flatMap(fn($pro) => $pro['products'], $categorys_data)" /} {volist name="products" id="pr"}
  • {notempty name="pr.sku"} {volist name="pr.sku" id="ps" key="pk"} {/volist} {/notempty} {$pr.name} {$pr.spu} {notempty name="pr.colors"}
      {volist name="pr.colors" id="pc"}
    • {assign name="color_type" value=":rgb_or_image($pc.attr_value)" /} {eq name="color_type" value="IMAGE"} {elseif condition="$color_type == 'RGB'" /} $pc.attr_value])}> {/eq}
    • {/volist}
    {/notempty}
  • {/volist}
{/if}
{/notempty}
{/block} {block name="script"} {/block}