联系官方销售客服
1835022288
028-61286886
这种调用怎么实现,目前写的代码循环不出来。
代码如下
{category module=news id=9,10,11 num=3 cache=3600 return=c}
<div class="layui-col-md4">
<div class="sm-title">
<span><i class="fad fa-book"></i>{$c.name}</span>
<a class="layui-badge layui-bg-green" href="{$c.url}" target="_blank">+更多</a>
</div>
<div class="box-bk">
{module module=news catid=$c.id thumb=1 num=1 field=title,url,thumb,description,fstatus,catid,id order=displayorder,updatetime cache=3600 return=t1}
<div class="pic">
{if $t1.fstatus == 1}
<a href="{$t1.url}">
<figure class="c4-izmir">
<img src="{HOME_THEME_PATH}common/images/nopicsm.png" data-lhh="{dr_thumb($t1.thumb,380,280)}" alt="{$t1.title}">
<figcaption>
<div class="c4-reveal-up">
<h2>{dr_strcut($t1.title,26,'...')}</h2>
</div>
<div class="c4-reveal-up">
<p>{dr_strcut($t1.description,60,'...')}</p>
</div>
</figcaption>
</figure>
</a>
{/if}
</div>
<div class="list">
<ul>
{module module=news catid=$t1.catid num=6 NOT_id=$t1.id field=title,url,updatetime,fstatus order=displayorder,updatetime cache=3600 return=t2}
{if $t2.fstatus == 1}
<li>
<i class="fad fa-file-alt"></i>
<a href="{$t2.url}" arget="_blank">{dr_strcut($t2.title, 13, '...')}</a>
<span>{dr_date($t2._updatetime, 'Y-m-d')}</span>
</li>
{/if}
{/module}
</ul>
</div>
{/module}
</div>
</div>
{/category}