compare_mini.html 1.4 KB

123456789101112131415161718192021222324
  1. <ul class="goods-list">
  2. {if $compare_list}
  3. {foreach name="compare_list" item="v"}
  4. <li><dl class="goods-info">
  5. <dt class="goods-pic"> <a href="{:url('Goods/index',['goods_id'=>$v.goods_id])}" title="{$v.goods_name}"> <img src="{:goods_cthumb($v.goods_image,240,$v.store_id)}" alt="{$v.goods_name}" title="{$v.goods_name}"/> </a> </dt>
  6. <dd class="goods-opt"><span class="del" onclick="javascript:delCompare({$v.goods_id},'mini');">{$Think.lang.compare_delete}</span></dd> </dl>
  7. </li>
  8. {/foreach}
  9. {/if}
  10. {if $freemaxnum>0}
  11. {for start="0" end="$freemaxnum"}
  12. <li><div class="no-compare">{$Think.lang.no_comparison_term}</div></li>
  13. {/for}
  14. {/if}
  15. </ul>
  16. <div class="btn-box" style="text-align: right">
  17. {if (count($compare_list)>1)}
  18. <span style="background-color: #E74649; color: #FFFFFF; cursor: pointer; padding: 5px 10px;" onclick="javascript:window.open('{:url('Compare/index',['gids'=>$goodsid_str])}');">{$Think.lang.to_contrast}</span>
  19. {else /}
  20. <!--对比商品小于等于1件则对比按钮不可用-->
  21. <span style=" background-color: #FFFFFF; border: 1px solid #DDDDDD; color: #CCCCCC; padding: 5px 10px; cursor: default;">{$Think.lang.to_contrast}</span>
  22. {/if}
  23. <span style="background-color: #E6E6E6; cursor: pointer; padding: 5px 10px;" onclick="javascript:delCompare('all','mini');">{$Think.lang.compare_empty}</span>
  24. </div>