/* Js for , Version=1555085266 */ v.theme = {"template":"mobile","theme":"default","device":"mobile"};;v.path = ["22"];;v.categoryID = 22;;v.categoryPath = ["22"];; ;v.pageLayout = "global";; $(function() { var countLink = '/cart-count.mhtml'; var browseLink = '/cart-browse.mhtml'; $.refreshCart = function(twinkle) { $.getJSON(countLink, function(data) { if($.isPlainObject(data) && data.result === 'success') { var $count = $('.cart-count').text(data.count).toggleClass('hide', data.count < 1); if(data.count > 0 && twinkle) { $count.addClass('twinkle'); setTimeout(function(){$count.removeClass('twinkle')}, 200); if(window.v && window.v.addToCartSuccess) $.messager.success(window.v.addToCartSuccess + "
" + window.v.gotoCart + "
" + data.count + "
", {time: 10000, cssClass: 'msger-cart'}); } } }); }; $.refreshCart(); });