请问各位大侠首页标签怎么调用自定义字段多图。用官方方法怎么也不行啊。已经解决
解决方法
{volist name="$rs.xxxx" id="vs"}
<a href="{$vs.url}" target="_blank" title="{$vs.title}"><img src="{$vs.picurl}"></a></a>
{/volist}
你首先要给他套一个标签
{qb:tag name="VIP_bbs" mid="-1" type="bbs"} <li> <div class="ren_twsj"> <a class="ren_twus_img z cl" href="{$rs.user_url}"><img src="{$rs.user_icon}" /></a> <a class="ren_twus_name z cl" href="{$rs.user_url}">{$rs.username}</a> <span class="ren_us_xing">{:getGroupByid(get_user($rs['uid'])['groupid']?:'')}</span> <div class="y ren-p-fname"> <a href="{$rs.sort_url}">#{$rs.sort_name}#</a> </div> </div> {if ( count($rs['picurls'])>2 )} <div class="ren_twbt"><span class="ren_jinghua">{$rs.mid_name}</span><a href="{$rs.url}">{$rs.title}</a></div> <div class="ren_threadimg"><a href="{$rs.url}"> {volist name="$rs.picurls" id="vo"} {if ($i<4)} <span class="ren_thread_imgsan ren_thread_img"><img src="{$vo.picurl}"></span> {/if} {/volist} </a> </div> {elseif ( $rs['picurl']!='' ) /} <div class="ren_tw_yiimg"> <a href="{$rs.url}" class="ren_threadimg y"> <span class="ren_thread_imge ren_thread_img"><img src="{$rs.picurl}" alt="{$rs.title}"/></span> </a> <div class="ren_tw_yi" > <span class="ren_jinghua">{$rs.mid_name}</span><a href="{$rs.url}">{$rs.title}</a> </div> </div> {else /} <div class="ren_tw_yiimg"> <div class="ren_tw_yi" > <a href="{$rs.url}">{$rs.title}</a> </div> </div> {/if} <a href="{$rs.url}" class="ren_twsj_xx" > <span class="ren_twsj_sj z"><i class="icon ren-font"></i>{$rs.create_time|date="Y-m-d",###}</span> <span class="ren_twsj_ck z"><i class="icon ren-font"></i>{$rs.view}</span> <span class="ren_twsj_hf z"><i class="icon ren-font"></i>{$rs.replynum}</span> </a> </li> {/qb:tag}
我这套代码是,3张图,无图,一张图,混排无限加载效果,你可以手机打开底部看看