{if !empty($diyitem['data'])} {php $textyuan = !empty($_W['shopset']['commission']['texts']['yuan'])?$_W['shopset']['commission']['texts']['yuan']:'元'} {php $textjifen = !empty($_W['shopset']['trade']['credittext'])?$_W['shopset']['trade']['credittext']:'积分'} {if empty($diyitem['params']['goodsscroll'])}
{loop $diyitem['data'] $goodsitem}
{if $diyitem['params']['showicon']==1 || $diyitem['params']['showicon']==2}
{if $diyitem['params']['showicon']==1} {elseif $diyitem['params']['showicon']==2 && !empty($diyitem['params']['goodsiconsrc'])} {/if}
{/if}
{if $diyitem['params']['showtitle']==1 || $diyitem['params']['showprice']==1}
{if $diyitem['params']['showtitle']==1}
{if $goodsitem['bargain']>0} {/if} {if !empty($diyitem['params']['goodstype']) && $diyitem['params']['showtag']>0} {/if} {$goodsitem['title']}
{/if} {if $diyitem['params']['showprice']==1}
{if empty($diyitem['params']['goodstype'])}

¥{$goodsitem['price']}

{else}

{if $goodsitem['price']==0&&$goodsitem['credit']==0}免费 {elseif $goodsitem['price']>0&&$goodsitem['credit']==0}{$goodsitem['price']}{$textyuan} {elseif $goodsitem['price']==0&&$goodsitem['credit']>0}{$goodsitem['credit']}{$textjifen} {elseif $goodsitem['price']>0&&$goodsitem['credit']>0}{$goodsitem['credit']}{$textjifen}+{$goodsitem['price']}{$textyuan}{/if}

{/if} {if (!empty($diyitem['params']['showproductprice']) && $goodsitem['productprice']>0 && $goodsitem['productprice']>$goodsitem['price']) || $diyitem['params']['showsales']==1}

{if !empty($diyitem['params']['showproductprice']) && $goodsitem['productprice']>0 && $goodsitem['productprice']>$goodsitem['price']} {php echo !empty($diyitem['params']['productpricetext'])?$diyitem['params']['productpricetext']:'原价'}:¥{$goodsitem['productprice']} {/if} {if $diyitem['params']['showsales']==1} {php echo !empty($diyitem['params']['salestext'])?$diyitem['params']['salestext']:'销量'}: {$goodsitem['sales']} {/if}

{/if}
{if !empty($diyitem['style']['buystyle']) && empty($goodsitem['bargain']) && empty($diyitem['params']['goodstype'])} {if $diyitem['style']['buystyle']=='buybtn-1'} {elseif $diyitem['style']['buystyle']=='buybtn-2'} {elseif $diyitem['style']['buystyle']=='buybtn-3'} 购买 {/if} {elseif !empty($goodsitem['bargain'])} {elseif !empty($diyitem['params']['goodstype'])} {if !empty($goodsitem['ctype'])}抽奖{else}兑换{/if} {/if}
{/if}
{/if} {if $goodsitem['total']<=0 && empty($diyitem['params']['goodstype'])}
{/if}
{/loop}
{else}
{loop $diyitem['data'] $goodsitem}
{if $diyitem['params']['showicon']==1 || $diyitem['params']['showicon']==2}
{if $diyitem['params']['showicon']==1} {elseif $diyitem['params']['showicon']==2 && !empty($diyitem['params']['goodsiconsrc'])} {/if}
{/if}
{if $diyitem['params']['showtitle']==1 || $diyitem['params']['showprice']==1}
{if $diyitem['params']['showtitle']==1}
{if $goodsitem['bargain']>0} {/if} {if !empty($diyitem['params']['goodstype']) && $diyitem['params']['showtag']>0} {/if} {$goodsitem['title']}
{/if} {if $diyitem['params']['showprice']==1}
{if empty($diyitem['params']['goodstype'])}

¥{$goodsitem['price']}

{else}

{if $goodsitem['price']==0&&$goodsitem['credit']==0}免费 {elseif $goodsitem['price']>0&&$goodsitem['credit']==0}{$goodsitem['price']}{$textyuan} {elseif $goodsitem['price']==0&&$goodsitem['credit']>0}{$goodsitem['credit']}{$textjifen} {elseif $goodsitem['price']>0&&$goodsitem['credit']>0}{$goodsitem['credit']}{$textjifen}+{$goodsitem['price']}{$textyuan}{/if}

{/if} {if (!empty($diyitem['params']['showproductprice']) && $goodsitem['productprice']>0 && $goodsitem['productprice']>$goodsitem['price']) || $diyitem['params']['showsales']==1}

{if !empty($diyitem['params']['showproductprice']) && $goodsitem['productprice']>0 && $goodsitem['productprice']>$goodsitem['price']} {php echo !empty($diyitem['params']['productpricetext'])?$diyitem['params']['productpricetext']:'原价'}:¥{$goodsitem['productprice']} {/if} {if $diyitem['params']['showsales']==1} {php echo !empty($diyitem['params']['salestext'])?$diyitem['params']['salestext']:'销量'}: {$goodsitem['sales']} {/if}

{/if}
{if !empty($diyitem['style']['buystyle']) && empty($goodsitem['bargain']) && empty($diyitem['params']['goodstype'])} {if $diyitem['style']['buystyle']=='buybtn-1'} {elseif $diyitem['style']['buystyle']=='buybtn-2'} {elseif $diyitem['style']['buystyle']=='buybtn-3'} 购买 {/if} {elseif !empty($goodsitem['bargain'])} {elseif !empty($diyitem['params']['goodstype'])} {if !empty($goodsitem['ctype'])}抽奖{else}兑换{/if} {/if}
{/if}
{/if} {if $goodsitem['total']<=0 && empty($diyitem['params']['goodstype'])}
{/if}
{/loop}
{/if} {/if}