eyoucms列表页判断是否有图集图片并判断图片数量

2022-01-11

<!-- 如果有相集则显示相集  -->
{eyou:arcview id='field2' aid='$field.aid'}
  {eyou:empty name='$field2.image_list' /}
   <img src="{$field2.litpic}" alt="{$field.title}" class="img-responsive">
  {eyou:else /}
   {eyou:volist name="$field2.image_list" id='field3'}
        {eyou:assign name='pid' value='$__LIST__|count=###'/}
        {eyou:if condition="$pid >'3'"}
            <img src="{$field3.image_url}" alt="{$field.title}" class="img-responsive">
        {eyou:else /}
            <img src="{$field3.image_url}" alt="{$field.title}" class="img-responsive">
        {/eyou:if}
    {/eyou:volist}
    {/eyou:empty}
{/eyou:arcview}
<!-- 如果有相集则显示相集  end-->


Tag: eyoucms