cart_mini.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <ul class="cart-list">
  2. {notempty name="cart_list.list"}
  3. {foreach name="cart_list.list" item="v" length='9'}
  4. <li ds_type="cart_item_{$v.cart_id}">
  5. <div class="goods-pic"><a href="{$v.goods_url}" title="{$v.goods_name}" target="_blank";>
  6. <img src="{$v.goods_image}" alt="{$v.goods_name}"/></a></div>
  7. <dl>
  8. <dt class="goods-name"><a href="{$v.goods_url}" title="{$v.goods_name}" target="_blank";>{$v.goods_name}</a></dt>
  9. <dd><em class="goods-price">{$Think.lang.currency}{$v.goods_price}</em>×{$v.goods_num}</dd>
  10. </dl>
  11. <a href="javascript:drop_topcart_item({$v.cart_id});" class="del" title="{$Think.lang.ds_delete}">X</a>
  12. </li>
  13. {/foreach}
  14. <script>
  15. $(function(){
  16. $('.head-user-menu .my-cart').append('<div class="addcart-goods-num">{$cart_list.cart_goods_num}</div>');
  17. $('#rtoobar_cart_count').html({$cart_list.cart_goods_num}).show();
  18. });
  19. </script>
  20. {else /}
  21. <li>
  22. <dl><dd style="text-align: center; font-size: 12px">{$Think.lang.ds_common_goods_null}</dd></dl>
  23. </li>
  24. <script>
  25. $(function(){
  26. $('.addcart-goods-num').remove();
  27. $('#rtoobar_cart_count').html('').hide();
  28. });
  29. </script>
  30. {/notempty}
  31. </ul>
  32. <div class="btn-box">
  33. {present name="cart_list.list"}
  34. <div dstype="rtoolbar_total_price" class="total-price">
  35. <p>{$Think.lang.ds_goods_num_one}<em class="goods-price" style="margin-left: 5px">{$cart_list.cart_goods_num}</em>{$Think.lang.goods}</p>
  36. <p>{$Think.lang.total}:<em class="goods-price">¥{$cart_list.cart_all_price}</em></p>
  37. </div>
  38. <a href="javascript:void(0);" onclick="javascript:window.location.href='{:url('Cart/index')}'">{$Think.lang.shopping_cart_settlement}</a>
  39. {/present}
  40. </div>