eyoucms列表頁(yè)判斷是否有圖集圖片并判斷圖片數(shù)量
2022-11-29 加入收藏
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | <!-- 如果有相集則顯示相集 --> {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 --> |