联系官方销售客服
1835022288
028-61286886
插件 | API接口 V7.7 |
应用作者 | 迅睿官方团队 |
发布时间 | 2019-03-14 09:57:26 |
更新时间 | 2024-08-24 20:57:34 |
list页面里自定义图片专用字段的loop循环接口应该怎么写呢?
找了好久没有发现相关教程,给个思路
{if dr_count($t.upworks) >= 5} {loop $t.upworks $tt} <a href="{$t.url}" target="_blank"><img class="picall" src="{dr_thumb($tt, 180, 180, 0, 'crop')}"></a> {/loop} {else if dr_count($t.upworks) == 4} <div class="picfour_box"> {loop $t.upworks $tt} <a href="{$t.url}" target="_blank"><img class="picfour" src="{dr_thumb($tt, 180, 180, 0, 'crop')}"></a> {/loop} </div> {else if dr_count($t.upworks) == 3} {loop $t.upworks $tt} <a href="{$t.url}" target="_blank"><img class="picall" src="{dr_thumb($tt, 180, 180, 0, 'crop')}"></a> {/loop} {else if dr_count($t.upworks) == 2} {loop $t.upworks $tt} <a href="{$t.url}" target="_blank"><img class="pictwo" src="{dr_thumb($tt, 180, 180, 0, 'crop')}"></a> {/loop} {else} {loop $t.upworks $tt} <a href="{$t.url}" target="_blank"><img src="{dr_thumb($tt, 300, 300, 0, 'crop')}"></a> {/loop} {/if}