联系官方销售客服
1835022288
028-61286886
{if $searchid} {search module=$dirname order=$params.order id=$searchid total=$sototal catid=$catid page=1 pagesize=6 urlrule=$urlrule more=1 return=s} <li class="pd_list_item"> <div class="pd_i_tit"> <h3><a href="{$s.url}">{$s.title}</a></h3> </div> <div class="pd_i_data"> <div class="tag_wrap cls"> <strong><i class="iconfont"></i>服务</strong> <span> <em>{$cat.name}{php $field = dr_field_options_id(26);$names=array();} {loop $field $value $name}{if in_array($value, $s.fuwu)}{php $names[]=$name;}{/if}{/loop}{php echo implode("、", $names);}</em> </span> </div> <div class="data_wrap cls"> <div class="data_attr"> <div class="line"><em>类 目</em>: <span> {dr_linkagepos('leimu', $s.lm, ' - ')} </span></div> <div class="line"><em>所 在 地</em>: <span>{dr_linkagepos('address', $s.diqu, ' - ')} </span></div> <div class="line"><em>经营模式</em>: <span>{php $s.field = dr_field_options_id(125);} {$s.field[$s.jyms]}</span></div> </div> <div class="data_attr"> <div class="line"><em>发布时间</em>: <span>{dr_fdate($s._updatetime)}</span></div> <div class="line"><em>浏览次数</em>: <span>{$s.hits} 次</span></div> <div class="line"><em>图片数量</em>: <span>{count($s.images)} 张</span></div> </div> </div> </div> <div class="pd_i_info"> <div class="tit"><em>代表商品</em><a href="{$s.url}" class="more">更多</a></div> <div class="imgs"> {php $s.images=dr_string2array($s.images);} {loop $s.images $i $b} {if $i< 3} <a href="{$s.url}"><img src="{dr_get_file($b.file)}" alt="{$s.title}"></a> {/if} {/loop} </div> </div> </li> {/search} {/if}
其中的:
{php $s.images=dr_string2array($s.images);} {loop $s.images $i $b} {if $i< 3} <a href="{$s.url}"><img src="{dr_get_file($b.file)}" alt="{$s.title}"></a> {/if} {/loop}
为什么调取不出来图片呢?
赏金5元,谢谢大牛