destoon-手机版会员公司主页首页调用商城信息

模板中添加替换注意一下css和对应的链接地址

 <div>

<ul>

{loop $M $i $m}

<span  class="list-set"><li><div{if $i==0} style="border:none;"{/if}><a href="{$m[linkurl]}">{$m[name]}</a></div></li></span>

{if $m[file]==mall}

<!--{php $tags=tag("moduleid=16&condition=status>2 and elite=1 and username='$username'&pagesize=10&order=edittime desc&fields=itemid,title,linkurl,thumb,edittime,price&template=null");}-->

{loop $tags $v}

<div class="list-img">

<a href="{if $domain}{$v[linkurl]}{else}{userurl($username, 'file=mall', $domain)}&itemid={$v[itemid]}{/if}"><img src="{if $v[thumb]}{$v[thumb]}{else}{DT_MOB}static/img/60x60.png{/if}" width="60" height="60" alt="" onerror="this.src='{DT_MOB}static/img/60x60.png';"/></a>

<ul>

<li><a href="{if $domain}{$v[linkurl]}{else}{userurl($username, 'file=mall', $domain)}&itemid={$v[itemid]}{/if}"><strong>{$v[title]}</strong></a></li>

<li><i>{$DT[money_sign]}{$v[price]}</i><span>{timetodate($v[edittime], 5)}</span></li>

</ul>

</div>

{/loop}

{/if}

{/loop}

</ul>

</div> 
原文地址:https://www.cnblogs.com/lx0715/p/9946805.html