{extend name="default/base" /} {block name="title"}商品对比 - {__block__}{/block} {block name="meta"} {/block} {block name="css"} {/block} {block name="main"}
首页 > 商品对比
{/* 商品展示 */}

{if($data['list'])} 高亮不同项 隐藏相同项 {else} 请选择商品对比 {/if} {volist name="$data['list']" id="go"} | {$go['goodsName']} ¥ {$go['shopPrice']} 查看 {if(count($data['list'])!=1)}删除{/if} {/volist}

空白

{volist name="$data['lists']" id="lis"}
{$lis['name']} {volist name="$data['list']" id="go"} {php}$in = isset($lis['info'][$go['goodsId']])?$lis['info'][$go['goodsId']]:'--'{/php} | {if($lis['type']=='shop' || $lis['type']=='brand')} {$in} {/if} {if($lis['type']=='score')} {for start="0" end="$in"} {/for} {for start="1" end="6-$in"} {/for} {/if} {if($lis['type']=='spec')} {if(isset($in['list']))} {volist name="$in['list']" id="sp"} {if($sp['isDefault']==1)}{/if} {if($sp['isAllowImg']==1)} {else} {$sp['itemName']} {/if} {/volist} {else} {$in} {/if} {/if} {/volist}
{/volist}

{/block} {block name="js"}
{/block}