<ul class="goods-list">
    {if $compare_list}
    {volist name="compare_list" id="v"}
    <li><dl class="goods-info">
        <dt class="goods-pic"> <a href="{:url('goods/index',['goods_id'=>$v.goods_id])}" title="{$v.goods_name}"> <img src="{:cthumb($v.goods_image,240,$v.store_id)}" alt="{$v.goods_name}" title="{$v.goods_name}"/> </a> </dt>
        <dd class="goods-name"><a href="{:url('goods/index',['goods_id'=>$v.goods_id])}">{$v.goods_name}</a> </dd>
        <dd class="goods-price">{$Think.lang.currency}{$v.goods_promotion_price}<span class="del" onclick="javascript:delCompare({$v.goods_id},'mini');">删除</span></dd> </dl>
    </li>
    {/volist}
    {/if}
    {if $freemaxnum>0}
    {for start="0" end="$freemaxnum"}
    <li><div class="no-compare">暂无对比项</div></li>
    {/for}
    {/if}
</ul>
<div class="btn-box">
    <?php if(count($compare_list)>1){ ?>
    <span style="background-color: #E74649; color: #FFFFFF; cursor: pointer; padding: 5px 10px;"
          onclick="javascript:window.open('{:url('compare/index',['gids'=>$goodsid_str])}');">对比</span>
    <?php } else {//对比商品小于等于1件则对比按钮不可用 ?>
    <span style=" background-color: #FFFFFF; border: 1px solid #DDDDDD; color: #CCCCCC; padding: 5px 10px; cursor: default;">对比</span>
    <?php }?>
    <span style="background-color: #E6E6E6; cursor: pointer; padding: 5px 10px;" onclick="javascript:delCompare('all','mini');">清空</span> </div>