<{if count($data) > 0}> <{foreach from=$data item=product name=goodslist}> <{if $product.goods_id>0}> <{if !($smarty.foreach.goodslist.iteration % $setting.column)}> <{if !$smarty.foreach.goodslist.last}> <{/if}> <{elseif $smarty.foreach.goodslist.last}> <{/if}> <{/if}> <{/foreach}>
<{if $setting.showGoodsImg=="on"}> <{if $setting.goodsImgWidth>0 && $setting.goodsImgHeight>0 }> <{$product.name|escape:html}> <{else}> <{$product.name|escape:html}> <{/if}> <{/if}>
<{if $setting.showGoodsName=="on"}> <{/if}>
<{if $setting.showGoodsMktPrice=="on"}>
<{$setting.mktPriceText|default:'市场价'}><{$setting.mktPriceSep|default:':'}><{$product.mktprice|cur}>
<{/if}> <{if $setting.showGoodsPrice=="on"}>
<{$setting.priceText|default:'销售价'}><{$setting.priceSep|default:':'}><{$product.price|cur}>
<{/if}> <{if $setting.showGoodsSave=="on"}>
<{$setting.saveText|default:'节省'}><{$setting.saveSep|default:':'}><{$product.mktprice - $product.price|cur}>
<{/if}> <{if $setting.showCount=="on"}>
<{$setting.countText|default:'折扣'}><{math equation=x/y*100 x=$product.mktprice-$product.price y=$product.mktprice format="%.0f"}><{$setting.countSep|default:':'}>
<{/if}>
<{if $setting.showGoodsDesc=="on"}>
<{$data.brief|cut:$setting.desc_max_length*3}><{$product.brief}>
<{/if}>
 
<{if $setting.showMore=="on"}>
更多»»
. <{/if}> <{else}>
暂无商品数据
<{/if}>