- APP ONLY! GET UP TO 30% OFF EACH ITEM!
-
- Ship to : / $USD
-
Ship to
United States
Currency
-
$ USD
-
-
$ USD
-
¥ CNY
-
€ EUR
-
£ GBP
-
$ CAD
-
$ AUD
-
₣ CHF
-
$ HKD
-
¥ JPY
-
p. RUB
-
R$ BRL
-
$ CLP
-
kr. NOK
-
kr. DKK
-
ريال SAR
-
Kr. SEK
-
₩ KRW
-
₪ ILS
-
$ MXN
-
S$ SGD
-
$ NZD
-
$ ARS
-
Rs INR
-
$ COP
-
درهم AED
-
Kč CZK
-
zł PLN
-
ريال OMR
-
د.ب BHD
-
د.ك KWD
-
ريال QAR
-
£ EGP
-
JD JOD
-
Rp IDR
-
฿ THB
-
Ft HUF
-
lei RON
-
₺ TRY
-
〒 KZT
-
лв BGN
-
R ZAR
-
Save
English
- English
- Français
- Español
- Deutsch
- Italiano
- Português
- 日本語
- Русский
- Nederlands
- العربية
- Norsk
- Svenska
- Suomi
- עברית
- Polski
- Čeština
- Ελληνικά
- Română
- Magyar
- Sign In
-
Welcome to LightInTheBox
Register Sign In
My Orders My Favorites Service Record My Coupons
My Favorites
- Cart
- Your shopping cart is empty.
-
Cart Total:
View My Cart Proceed to Checkout
- All Categories
Women's Clothing
Men's Clothing
Consumer Electronics
Shop by Collection
Elite Collection
Shop by Activity
Black Friday Best Sellers New Arrivals Men's Selection Women's Selection Christmas Evening Party Graphic Shop Cozy Casuals Personalized Gift
'; } _str +='
'; for(var t=0;t
'+data[t]['text']+''+_number+'
' + _data[p]['text'] + '
'; } else { _str += '' + _data[p]['text'] + ''; } } _str += ''; } return _str; }; this.init = function () { var _data = me.options.data['menu']; for (var i = 0; i < _data.length; i++) { var html = ''; html += me.getHtml(_data[i], 'cate-menu-sub change-menu', 'left'); $('.cate-menu-in').eq(i).html(html); } me.show(); me.setNewsletterHeight(me.options.height); }; me.init(); if ($('.litb-cate-menu h2').length > 12) { $('.litb-cate-menu').addClass('line-' + $('.litb-cate-menu h2').length); } $this.parent('dl').mouseenter(function () { if ($this.is(':hidden')) { $this.fadeIn('fast') } }); $this.parent('dl').mouseleave(function () { $this.fadeOut('fast'); }); }; $.fn.litbMenuShow = function (options) { var me = this, $this = $(this), defaults = { 'on': false, 'width': [0, 226, 402, 574, 750], 'height': -1, 'isFrist': true }; var browser = $.browser, isIE9 = browser.msie === true && browser.version === '9.0'; me.options = $.extend(defaults, options); this.getMenuHeight = function (obj) { return Math.max(me.options.height, $('.cate-menu-sub', obj).height()); }; this.setNewsletterHeight = function (height) { $(document).ready(function () { if ($('#mini-home-newsletter')[0]) setTimeout(function () { getNewsletterHeight(height) }, 200); }); }; this.show = function () { $('.cate-menu-out', $this).each(function (m) { var $me = $(this); var elm = $('.cate-menu-sub>dl', this); var size = Math.ceil(elm.length / 2), mSize = 0, rSize = 0; me.options.menuHeight = $('.cate-menu').height(); rSize = $('.litb-cate-menu-specialoffer', this).length > 0 ? 176 : 0; mSize = $('.cate_menu_hero', this).length > 0 ? 172 : 0; if (elm.length == 0) { $('.cate_menu_hero', this).addClass('cate_menu_hero_left'); if ($('.cate_menu_hero', this).length > 0) mSize += 46; } else { if ($('.cate_menu_hero', this).length > 0 && $('.litb-cate-menu-specialoffer', this).length == 0) { mSize += 4; } } $('.cate_menu_hero', this).css({'right': rSize + 'px'}); var width = me.options['width'][size] + rSize + mSize; //$('.cate-menu-in',this).css({'width':width+"px",'top':-m*28+'px'}); //$(this).css({'width':width+240+"px"}); //if(litb.baseURL.match(/lightinthebox/)){ $('.cate-menu-in', this).css({'width': width + "px", 'top': 0 + 'px'}); $(this).css({'width': 240 + "px"}); //} elm.each(function (n) { if (n != 0) { if (n == size) $(this).before('
'); if (n >= size) $(this).addClass('bottop'); } }); me.options.height = $('#cate-menu').height() + 20; $(this).hover(function () { //if($(this).find('h2 a').length>0){ if ($(this).find('.cate-menu-in').find('.cate-menu-sub').length > 0) { $('h2 em', this).show(); $(this).find('h2 a').addClass('show-nav'); $('.cate-menu-in', this).css({'z-index': 50}).show(); $(this).find('.cate-menu-in').css({'height': me.getMenuHeight($me) + 'px'}); $(this).find('.litb-cate-menu-specialoffer').css({'height': me.getMenuHeight($me) + 'px'}); $('#hotsNow').css({'margin-top': me.getMenuHeight($me) + 'px'}); me.setNewsletterHeight(me.getMenuHeight($me)); $('.cate-menu').css({'height': me.getMenuHeight($me) + 1 + 'px'}); if (me.options.isFrist) { $('.cate-menu').animate({'width': width + 241 + "px"}, 200); me.options.isFrist = false; } else { $('.cate-menu').animate({'width': width + 241 + "px"}, 0).stop(); } } else { if (me.options.isFrist) { $('.cate-menu').animate({'width': width + 238 + "px"}, 200); me.options.isFrist = false; } else { $('.cate-menu').animate({'width': width + 238 + "px"}, 0).stop(); } } $(".cate-menu-in").filter(function (index) { if (m != index) $(".cate-menu-in").eq(index).hide(); }); //}else{ // $('.cate-menu').stop().css({'width':238+"px"}); //} }, function () { //$('.cate-menu-in',this).hide(); if ($(this).find('.cate-menu-in').find('.cate-menu-sub').length > 0) { $(this).find('h2 a').removeClass('show-nav'); } $('h2 em', this).hide(); //if(litb.baseURL.match(/lightinthebox/)){ $(".cate-menu-in", this).hide(); //} //if(me.options.menuDeHeight == 0) me.options.menuDeHeight = me.options.height; if (isIE9) { $this.hide(); $('.cate-menu').css({'height': me.options.height + 'px', 'z-index': 0}); $this.show(); } else { $('.cate-menu').css({'height': me.options.height + 'px', 'z-index': 0}); } // if(isIE9) $this.addClass('hover'); //$('.cate-menu').animate({'height':me.options.menuDeHeight+'px','z-index':-1},0,function(){if(isIE9) $this.removeClass('hover');}); //if(isIE9) $this.hide().show().css({'z-index':-1}); }); }); if (browser.msie === true) $('.cate-menu-out:last', $this).addClass('last'); }; this.getHtml = function (data, elm, tab) { var _str = ''; data = data[tab]; if (data && data != '') { _str += '
'; for (var t = 0; t < data.length; t++) { var _lClass = data[t]['point'] ? ' class="red"' : ''; var _href = data[t]['url'] == false ? '' : data[t]['url']; _str += '
- '; if (data[t]["text"] != false) { var _nofollow = data[t]["nofollow"] == true ? 'rel="nofollow"' : ''; var _target = data[t]['tab_target'] == true ? ' target="_blank"' : ''; if (tab == 'right') { _str += '
- ' + data[t]['text'] + ' '; } else { _str += '
' + data[t]['text'] + '
'; } } if (data[t]['children'] && data[t]['children'] != '') { var _data = data[t]['children']; for (var p = 0; p < _data.length; p++) { var __nofollow = _data[p]["nofollow"] == true ? 'rel="nofollow"' : ''; var __lClass = _data[p]['point'] ? ' class="red"' : ''; var __href = _data[p]['url'] == false ? '' : _data[p]['url']; var _target = _data[p]['tab_target'] == true ? ' target="_blank"' : ''; if (tab == 'right') { _str += '- ' + _data[p]['text'] + ' '; } else { _str += '
' + _data[p]['text'] + '
'; } } } _str += '
'; } _str += '
'; } return _str; }; this.init = function () { var _data = me.options.data['menu']; for (var i = 0; i < _data.length; i++) { var html = ''; html += me.getHtml(_data[i], 'cate-menu-sub', 'left'); html += me.getHtml(_data[i], 'cate_menu_hero', 'middle'); html += me.getHtml(_data[i], 'litb-cate-menu-specialoffer', 'right'); $('.cate-menu-in').eq(i).html(html); } me.show(); me.setNewsletterHeight(me.options.height); }; me.init(); if ($this.attr('page') != "index") { $this.parent('dl').find('dt>a').mouseenter(function () { if ($this.is(':hidden')) { $this.fadeIn('100') } }); $this.hover(function () { litb['onMenu'] = true; }, function () { litb['onMenu'] = false; //if(me.options.menuDeHeight == 0) me.options.menuDeHeight = me.options.height; me.options.isFrist = true; if (isIE9) { $this.hide(); $('.cate-menu').stop().css({'height': me.options.height, 'width': 238 + "px"}); $this.show(); } else { $('.cate-menu').stop().css({'height': me.options.height, 'width': 238 + "px"}); } }); $(document).click(function () { if (!litb['onMenu']) { $this.fadeOut('fast'); litb['onMenu'] = false; me.options.isFrist = true; } }); } else { //me.options.menuDeHeight = $('.cate-menu').height(); $this.hover(function () { }, function () { me.options.isFrist = true; //$('.cate-menu').stop().css({'width':238+"px"}); if (isIE9) { $this.hide(); $('.cate-menu').stop().css({'width': 238 + "px"}); $this.show(); } else { $('.cate-menu').stop().css({'width': 238 + "px"}); } $('#hotsNow').css({'margin-top': me.options.height + 'px'}); me.setNewsletterHeight(me.options.height); }); } }; if (nav_rev) { // create sub menu $('.nav-revision').litbMenuShowRevision({'data': litb["category_menu"]}); } else { // create sub menu $('.litb-cate-menu').litbMenuShow({'data': litb["category_menu"]}); } function item2Html(item, isFirst) { var attrs = ''; if (item.attributes) { for (attrName in item.attributes) { attrs += '
' + attrName + ': ' + item.attributes[attrName] + '
'; } } return '
- \
- \ \ \
- \
' + (item.name ? item.name : '') + '
' + attrs + ' \
'; } litb.gwBaseURL=litb.gwBaseURL||"https://gw.lightinthebox.com/"; // header优化 var OrderQuantityObj = { init: function () { this.bindEvents(); // this.checkMaxMin($(".quantity-select")); this.triggerChange($(".quantity-select")); }, bindEvents: function () { var _this = this; var isClick = true; var gwURLHead = litb.gwBaseURL; if (gwURLHead && !gwURLHead.endsWith('/')) { gwURLHead += '/'; } $('#navCartProductList').off('click.increase').on('click.increase','.num_increase',function () { var $this = $(this); var $container = $this.parent(); var miniCart_old_quantity; var is_item_checked = $container.attr("data-checked"); var product_key = $container.find('.quantity-num').attr('data-key'); var now = Number($container.find(".quantity-num").val()); var max = $container.attr("data-max-quantity"); var min = Number($container.attr("data-min-quantity")) || 1; var arrow_dom ='
'; if (!max || now < Number(max)) { $container.find(".quantity-num").val(++now); $container.find(".quantity-num").attr('value', now); miniCart_old_quantity = Number($container.find(".quantity-num").val())- 1; if (now === Number(max)) { $this.addClass("disabled"); } else { $this.removeClass("disabled"); } if(now > min){ $container.find('.num_decrease').removeClass('disabled'); } if(isClick){ isClick = false; $(".num_increase").css('pointer-events','none'); $.ajax({ type: 'GET', url: gwURLHead + (litb.lan === 'en' ? '' : litb.lan + '/') + 'index.php?main_page=info_check&action=ajax_shopping_cart_2020_change_products_num&hold_invalid=true&activeStatus=' + is_item_checked + '&partial_check_out=1' + '&cart_item_key=' + product_key + '&old_qty=' + miniCart_old_quantity + '&qty=' + now, success: function(){ $.getJSON( gwURLHead + (litb.lan === 'en' ? '' : litb.lan + '/') + 'index.php?main_page=info_check&action=ajax_shippingcart&callback=?&language='+litb.lan, function(data){ if(!data.items || data.items.length == 0){ $('#navCartInfoNote').removeClass('loading').html(arrow_dom+('
')+litb.langs.emptyNavCart); $me.data('cartInfo', 'empty'); $(".navCartCount").data('count',0).text(0); } else { var totalCount = 0, subtotalText = '', miniCartTitle = ''; //转换0为字符 data.cart_mini_num += ''; if (data.cart_mini_num!='') { totalCount = data.cart_mini_num; } $(".navCartCount").data('count',totalCount).text(formatCartNum(totalCount)); $(".navCartCount").trigger("cartNumberChange",totalCount); if(data.addon.cartTotal!== null && data.addon.cartTotal !== '' ){ subtotalText = data.addon.cartTotal; } var currency = litb.currency == 'CHF' ? litb.currency : litb.currSymbol; $('#navCartTotal').text(currency + data.addon.cartTotal); if(data.miniCartTitle!== null && data.miniCartTitle !== '' ){ miniCartTitle = data.miniCartTitle; } $(".nav-cart-more-items").text(miniCartTitle); } } ); } }); setTimeout(function(){ isClick = true; $(".num_increase").css('pointer-events','auto'); },1000); } _this.triggerChange($container); } else return; }); $('#navCartProductList').off('click.decrease').on('click.decrease','.num_decrease',function () { var $this = $(this); var $container = $this.parent(); var miniCart_old_quantity; var is_item_checked = $container.attr("data-checked"); var product_key = $container.find('.quantity-num').attr('data-key'); var min = Number($container.attr("data-min-quantity")) || 1; var now = Number($container.find(".quantity-num").val()); var arrow_dom = '
'; if (now <= min) return; $container.find(".num_increase").removeClass("disabled"); $container.find(".quantity-num").val(--now); $container.find(".quantity-num").attr('value', now); miniCart_old_quantity = Number($container.find(".quantity-num").val())+ 1 ; if (now === min) { $this.addClass("disabled"); } else { $this.removeClass("disabled"); } if(isClick){ isClick = false; $(".num_decrease").css('pointer-events','none'); $.ajax({ type: 'GET', url: gwURLHead+ (litb.lan === 'en' ? '' : litb.lan + '/') + "index.php?main_page=info_check&action=ajax_shopping_cart_2020_change_products_num&hold_invalid=true&partial_check_out=1&activeStatus=" + is_item_checked +"&cart_item_key=" + product_key +"&old_qty=" + miniCart_old_quantity + "&qty=" + now, success: function(){ $.getJSON( gwURLHead + (litb.lan === 'en' ? '' : litb.lan + '/') + 'index.php?main_page=info_check&action=ajax_shippingcart&callback=?&language='+litb.lan, function(data){ if(!data.items || data.items.length == 0){ $('#navCartInfoNote').removeClass('loading').html(arrow_dom+('
')+litb.langs.emptyNavCart); $me.data('cartInfo', 'empty'); $(".navCartCount").data('count',0).text(0); } else { var totalCount = 0, subtotalText = '', miniCartTitle = ''; //转换0为字符 data.cart_mini_num += ''; if (data.cart_mini_num!='') { totalCount = data.cart_mini_num; } $(".navCartCount").data('count',totalCount).text(formatCartNum(totalCount)); $(".navCartCount").trigger("cartNumberChange",totalCount); if(data.addon.cartTotal!== null && data.addon.cartTotal !== '' ){ subtotalText = data.addon.cartTotal; } var currency = litb.currency == 'CHF' ? litb.currency : litb.currSymbol; $('#navCartTotal').text(currency + data.addon.cartTotal); if(data.miniCartTitle!== null && data.miniCartTitle !== '' ){ miniCartTitle = data.miniCartTitle; } $(".nav-cart-more-items").text(miniCartTitle); } } ); } }); setTimeout(function(){ isClick = true; $(".num_decrease").css('pointer-events','auto'); },1000); } _this.triggerChange($container); }); $('#navCartProductList').on('blur','.quantity-num',function () { var $this = $(this); var $container = $this.parent(); var is_item_checked = $container.attr("data-checked"); var product_key = $container.find('.quantity-num').attr('data-key'); var val= $this.val(); var now; var miniCart_old_quantity = Number($container.find(".quantity-num").attr('old-value')); var arrow_dom = '
'; $container.find(".quantity-num").attr('old-value', val); $this.val(val.replace(/[^\d].*/g, "").replace(/^0+/, "")); _this.checkMaxMin($this.parent()); _this.triggerChange($container); now = Number($this.val()); $.ajax({ type: 'GET', url: gwURLHead + (litb.lan === 'en' ? '' : litb.lan + '/') + "index.php?main_page=info_check&action=ajax_shopping_cart_2020_change_products_num&hold_invalid=true&partial_check_out=1&activeStatus=" + is_item_checked +"&cart_item_key=" + product_key +"&old_qty=" + miniCart_old_quantity + "&qty=" + now, success: function(){ $.getJSON( gwURLHead + (litb.lan === 'en' ? '' : litb.lan + '/') + 'index.php?main_page=info_check&action=ajax_shippingcart&callback=?&language='+litb.lan, function(data){ if(!data.items || data.items.length == 0){ $('#navCartInfoNote').removeClass('loading').html(arrow_dom+('
')+litb.langs.emptyNavCart); $me.data('cartInfo', 'empty'); $(".navCartCount").data('count',0).text(0); } else { var totalCount = 0, subtotalText = '', miniCartTitle = ''; //转换0为字符 data.cart_mini_num += ''; if (data.cart_mini_num!='') { totalCount = data.cart_mini_num; } $(".navCartCount").data('count',totalCount).text(formatCartNum(totalCount)); $(".navCartCount").trigger("cartNumberChange",totalCount); if(data.addon.cartTotal!== null && data.addon.cartTotal !== '' ){ subtotalText = data.addon.cartTotal; } var currency = litb.currency == 'CHF' ? litb.currency : litb.currSymbol; $('#navCartTotal').text(currency + data.addon.cartTotal); if(data.miniCartTitle!== null && data.miniCartTitle !== '' ){ miniCartTitle = data.miniCartTitle; } $(".nav-cart-more-items").text(miniCartTitle); } } ); } }); }); $(".quantity-num").on("update",function () { _this.checkMaxMin($(this).parent()); }); $("#navCartProductList").off('click.delete').on('click.delete', '.iconic_delete', function () { var $this = $(this); var $iconContainer = $this.parent(); var $productContainer = $iconContainer.parent(); var is_item_checked = $productContainer.attr("data-checked"); var product_key = $productContainer.find('.quantity-num').attr('data-key'); var now = Number($productContainer.find(".quantity-num").val()); var $me= $('.nav-c-w-l'); var arrow_dom = '
'; $.ajax({ type: 'GET', url: gwURLHead + (litb.lan === 'en' ? '' : litb.lan + '/') + 'index.php?main_page=info_check&action=ajax_shopping_cart_2020_change_products_num&hold_invalid=true&partial_check_out=1&activeStatus=' + is_item_checked + '&cart_item_key=' + product_key + '&old_qty=' + now + '&qty=0', success: function () { $.getJSON( gwURLHead + (litb.lan === 'en' ? '' : litb.lan + '/') + 'index.php?main_page=info_check&action=ajax_shippingcart&callback=?&language=' + litb.lan, function (data) { if (!data.items || data.items.length == 0) { $('#navCartInfoNote').removeClass('loading').html(arrow_dom + ('
') + litb.langs.emptyNavCart); $me.data('cartInfo', 'empty'); $('#navCQE').hide(); $('#navCartInfoNote').show(); $(".navCartCount").data('count',0).text(0); } else { var items = data.items, prdListHtml = '', maxShow = 4, totalCount = 0, moreCount = 0 ; for (var i = 0; i < items.length; i++) { totalCount += items[i].qty; if (!items[i].attachment) --maxShow; if (maxShow < 0) { moreCount += items[i].qty; } else { prdListHtml += stringifyItem(items[i], i==0); }; }; //转换0为字符 data.cart_mini_num += ''; if (data.cart_mini_num!='') { totalCount = data.cart_mini_num; } $(".navCartCount").data('count',totalCount).text(formatCartNum(totalCount)); $(".navCartCount").trigger("cartNumberChange",totalCount); // header优化 if(litb.header_optimize){ $('#navCartProductList').html(prdListHtml); var prodDls = $('#navCartProductList').children('dl'); prodDls.each(function(){ var $this = $(this), minQty = $this.find('.quantity-select').attr('data-min-quantity'), currenttQty = $this.find('.quantity-num').attr('value'), decreaseIcon = $this.find('.order-quantity .quantity-select span.num_decrease'); if(minQty=== currenttQty){ decreaseIcon.removeClass('disabled'); } }); } else { $('#navCartProductList').html(prdListHtml).find('dl').click(function(){ jumpToUrl($(this).find('dt a').attr('href')); }); } $('#navCartProductList a').each(function(){ $(this).attr('href',$(this).attr('href')+'?prm='+litb.prm['site']+'.'+litb.prm['page']+'.180.0'); }); var currency = litb.currency == 'CHF' ? litb.currency : litb.currSymbol; $('#navCartTotal').text(currency + data.addon.cartTotal); $('#navCartMoreItems').show().text(data.miniCartTitle); if ($('#navCartInfoNote').is(':visible')) { $('#navCartInfoNote').hide(); $('#navCQE').show(); } $me.data('cartInfo', 'haveItems'); } } ); } }); _this.triggerChange($iconContainer); }); }, checkMaxMin: function ($container) { var max = $container.attr("data-max-quantity"); var min = Number($container.attr("data-min-quantity")) || 1; var $input = $container.find(".quantity-num"); var $decrease = $container.find(".num_decrease"); var $increase = $container.find(".num_increase"); var now = Number($input.val()); if (now <= min) { $input.val(min); now = min; // $input.attr('old-value', now); } else if (max && now >= Number(max)) { if (Number(max) < 0) { $container.attr("data-max-quantity", ""); } else { $input.val(max); now = Number(max); } } if (now === min) { $decrease.addClass("disabled"); } else { $decrease.removeClass("disabled"); } if (max && now === Number(max)) { $increase.addClass("disabled"); } else { $increase.removeClass("disabled"); } }, triggerChange: function ($containers, val) { $containers.each(function (i, t) { var $input = $(t).find(".quantity-num"); var now = $input.val(); if (val != now) { $input.trigger("change"); } }); } }; function stringifyItem(item) { var attrs = ''; // header优化 var quantityControlTemplate = '
' + '
'; if (!item.new_free_gift) { quantityControlTemplate += '' + '' + ''; } if (!item.new_free_gift) { quantityControlTemplate += ''; } else { quantityControlTemplate += '
x ' + item.qty + '
'; } if (!item.new_free_gift) { quantityControlTemplate += '' + '' + ''; } if (!item.new_free_gift) { quantityControlTemplate += ''; } quantityControlTemplate += '
' + '
'; var imgTemplate = ''; attrs = '
'; if(item.display_skus){ attrs += '' + item.display_skus + ''; }else if(item.attributes) { for (attrName in item.attributes) { attrs += '' + attrName + ': ' + item.attributes[attrName] + ''; } } attrs += '
'+litb.currSymbol + item.price+'
'; var template = '
- ' + '
- ' + imgTemplate + ' ' + '
'+item.name+'
' + attrs + quantityControlTemplate +'
'; return template; } $('.nav-c-w-l').hover(function(){ if(litb.mainPage == 'design_product' || litb.mainPage == 'customprint' || litb.mainPage == 'customprint_jubu'){ return false; } var $me = $(this), arrow_dom = '
', gwURLHead = litb.gwBaseURL; if (gwURLHead && !gwURLHead.endsWith('/')) { gwURLHead += '/'; } // 兼容aoq加购成功了之后刷新mini购物车的 var _preTime=$me.data('time');//15s内不刷新 var now=new Date().getTime(); if (!$me.data('cartInfo')||!_preTime||(_preTime&&now-_preTime>15000)) { $me.data('cartInfo', 'loading'); $me.data('time',now); $("#navCartInfoNote").addClass('loading').html(arrow_dom+litb.langs.loading).show(); $.getJSON( gwURLHead + (litb.lan === 'en' ? '' : litb.lan + '/') + 'index.php?main_page=info_check&action=ajax_shippingcart&callback=?&language='+litb.lan, function(data) { if (!data.items || data.items.length == 0) { $('#navCartInfoNote').removeClass('loading').html(arrow_dom+('
')+litb.langs.emptyNavCart); $me.data('cartInfo', 'empty'); $(".navCartCount").data('count',0).text(0); } else { var items = data.items, prdListHtml = '', maxShow = 4, totalCount = 0, moreCount = 0; var status = data.success; for (var i = 0; i < items.length; i++) { totalCount += items[i].qty; if (!items[i].attachment) --maxShow; if (maxShow < 0) { moreCount += items[i].qty; } else { prdListHtml += stringifyItem(items[i], i==0); }; }; //转换0为字符 data.cart_mini_num += ''; if (data.cart_mini_num!='') { totalCount = data.cart_mini_num; } $(".navCartCount").data('count',totalCount).text(formatCartNum(totalCount)); $(".navCartCount").trigger("cartNumberChange",totalCount); // header优化 $('#navCartProductList').html(prdListHtml); var prodDls = $('#navCartProductList').children('dl'); prodDls.each(function(){ var $this = $(this), minQty = Number($this.find('.quantity-select').attr('data-min-quantity')), currentQty = $this.find('.quantity-num').attr('value'), decreaseIcon = $this.find('dd .order-quantity .quantity-select .num_decrease'); if(minQty == currentQty){ decreaseIcon.addClass('disabled'); } }); $('#navCartProductList a').each(function(){ $(this).attr('href',$(this).attr('href')+'?prm='+litb.prm['site']+'.'+litb.prm['page']+'.180.0'); }); var currency = litb.currency == 'CHF' ? litb.currency : litb.currSymbol; $('#navCartTotal').text(currency + data.addon.cartTotal); $('#navCartMoreItems').show().text(data.miniCartTitle); if ($('#navCartInfoNote').is(':visible')) { $('#navCartInfoNote').hide(); $('#navCQE').show(); } $me.data('cartInfo', 'haveItems'); // header优化 if(status){ OrderQuantityObj.init(); } // 加载商品下拉列表的时候,图片资源错误,展示默认图 $("#navCartProductList dt img").each(function(o,img){ if(img.src){ img = $(img); var oImg = new Image(); oImg.onerror = function(){ oImg.onerror = null; var base = litb.resourceURL || litb.resouceURL; //old is `resouceURL`! if(Math.round(img.width()/img.height()) === 1){ img.attr("src", base + '/base-images/300x300.png'); }else{ img.attr("src", base + '/base-images/185x300.png'); } }; oImg.src = img.attr('src'); } }); }; } ).fail(function(){ $('#navCartInfoNote').html(arrow_dom+litb.langs.networkErrorRetry).children('.retry').click(function() { $me.data('cartInfo', null); $me.trigger('mouseover'); }); }); } else { // Has been loading or loaded switch ($me.data('cartInfo')) { case 'loading': case 'empty': $('#navCartInfoNote').show(); break; case 'haveItems': $('#navCQE').show(); } } }, function(){ $(this).children('dd').hide(); }); // 加购使用方法 window.aoqAddToCart = function() { var gwURLHead = litb.gwBaseURL; if (gwURLHead && !gwURLHead.endsWith('/')) { gwURLHead += '/'; }$.getJSON(gwURLHead + (litb.lan === 'en' ? '' : litb.lan + '/') + 'index.php?main_page=info_check&action=ajax_shippingcart&callback=?&language='+litb.lan,function(data) { $(".navCartCount").show();if (data.items && data.items.length > 0) {var items = data.items,prdListHtml = '',maxShow = 4, totalCount = 0;var status = data.success;for (var i = 0; i < items.length; i++) {if (!items[i].attachment) --maxShow;if (maxShow >= 0) {prdListHtml += stringifyItem(items[i]);};};//转换0为字符data.cart_mini_num += '';if (data.cart_mini_num!='') {totalCount = data.cart_mini_num;}$(".navCartCount").data('count',totalCount).text(formatCartNum(totalCount)); $(".navCartCount").trigger("cartNumberChange",totalCount);// header优化$('#navCartProductList').empty();$('#navCartProductList').html(prdListHtml);var prodDls = $('#navCartProductList').children('dl');prodDls.each(function(){var $this = $(this),minQty = Number($this.find('.quantity-select').attr('data-min-quantity')),currentQty = $this.find('.quantity-num').attr('value'),decreaseIcon = $this.find('dd .order-quantity .quantity-select .num_decrease');if(minQty == currentQty){decreaseIcon.addClass('disabled');}});$('#navCartProductList a').each(function(){$(this).attr('href',$(this).attr('href')+'?prm='+litb.prm['site']+'.'+litb.prm['page']+'.180.0');});$('#navCartTotal').text(litb.currSymbol + data.addon.cartTotal);$('#navCartMoreItems').show().text(data.miniCartTitle);if ($('#navCartInfoNote').is(':visible')) {$('#navCartInfoNote').hide();$('#navCQE').show();}$('.nav-c-w-l').data('cartInfo', 'haveItems');// header优化if(status){OrderQuantityObj.init();}};}); } window.aoqAddToCart();// $("#keywords").autocomplete({'parents':'#quick_find_header'});$('.searchBtnWrap').click(function(){if($('#keywords').val()!=""&&$('#keywords').val()!=$('#keywords').attr('dvalue')){jumpToUrl($('#quick_find_header').attr('action')+'&prm='+litb.prm['site']+'.'+litb.prm['page']+'.62.0&keyword='+$('#keywords').val());}});$('.checkout2Btn').click(function() { $(this).removeClass('checkout2Btn').addClass('processing2Btn');}); /** * jQuery Color Animations * @author 愚人码头 * 源自:jQuery UI jquery.effects.core.js * 更多http://www.css88.com/archives/4090 */;(function(jQuery){// 所有颜色样式jQuery.each(['backgroundColor', 'borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor', 'color', 'outlineColor'], function(i,attr){jQuery.fx.step[attr] = function(fx){if ( fx.state == 0 ) {fx.start = getColor( fx.elem, attr );fx.end = getRGB( fx.end );}fx.elem.style[attr] = "rgb(" + [Math.max(Math.min( parseInt((fx.pos * (fx.end[0] - fx.start[0])) + fx.start[0]), 255), 0),Math.max(Math.min( parseInt((fx.pos * (fx.end[1] - fx.start[1])) + fx.start[1]), 255), 0),Math.max(Math.min( parseInt((fx.pos * (fx.end[2] - fx.start[2])) + fx.start[2]), 255), 0)].join(",") + ")";}});// Color Conversion functions from highlightFade// By Blair Mitchelmore// http://jquery.offput.ca/highlightFade/ //一个JavaScript 数组,其中包含 0和255之间的三个数字, (ie [255,255,255]). //An RGB 'function call syntax' string. either interger or percentage float form. (ie rgb(255,255,255) or rgb(100%,100%,100%)) //An RGB hex value. Either short or long form. (ie #FFF or #FFFFFF) //A W3C standard colour name string as defined at W3Schools. (ie 'white', 'blue', 'red', 'black', et. al)// Parse strings looking for color tuples [255,255,255]function getRGB(color) {var result;// 一个JavaScript 数组,其中包含 0和255之间的三个数字,例如: [255,255,255]if ( color && color.constructor == Array && color.length == 3 )return color;// Look for rgb(num,num,num)if (result = /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(color))return [parseInt(result[1]), parseInt(result[2]), parseInt(result[3])];// Look for rgb(num%,num%,num%)if (result = /rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(color))return [parseFloat(result[1])*2.55, parseFloat(result[2])*2.55, parseFloat(result[3])*2.55];// Look for #a0b1c2if (result = /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(color))return [parseInt(result[1],16), parseInt(result[2],16), parseInt(result[3],16)];// Look for #fffif (result = /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(color))return [parseInt(result[1]+result[1],16), parseInt(result[2]+result[2],16), parseInt(result[3]+result[3],16)];// Otherwise, we're most likely dealing with a named colorreturn colors[jQuery.trim(color).toLowerCase()];}function getColor(elem, attr) {var color;do {color = jQuery.curCSS(elem, attr);// Keep going until we find an element that has color, or we hit the bodyif ( color != '' && color != 'transparent' || jQuery.nodeName(elem, "body") )break;attr = "backgroundColor";} while ( elem = elem.parentNode );return getRGB(color);};// Some named colors to work with// From Interface by Stefan Petre// http://interface.eyecon.ro/var colors = {aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]};})(jQuery);var input = $('#keywords');function animateBackgroundColor (){input.animate({'backgroundColor': '#ffbbbb' }, 200,function(){input.animate({'backgroundColor':'#fff' }, 200,function(){input.focus();});})}$('#quick_find_header').submit(function(){if(input.val()==''||(!$('.nav-keyword-show')[0]&&input.val()==input.attr('dvalue'))){input.val('');setTimeout(function(){animateBackgroundColor()},200);setTimeout(function(){animateBackgroundColor()},600);return false;}});if(!$('#nav-bar form')[0]){$('.searchBtnWrap').click(function(){if(input.val()==''||(!$('.nav-keyword-show')[0]&&input.val()==input.attr('dvalue'))){input.val('');setTimeout(function(){animateBackgroundColor()},200);setTimeout(function(){animateBackgroundColor()},600);}});input.keydown(function(e) {switch(e.keyCode) {case 13:if(input.val()==''||(!$('.nav-keyword-show')[0]&&input.val()==input.attr('dvalue'))){input.val('');setTimeout(function(){animateBackgroundColor()},200);setTimeout(function(){animateBackgroundColor()},600);}break;default:break;};});} //【ID1260819】PC导航模版配置优化 var maxWidth = $(".nav-bar-container").width(); var spaceWidth = 30; var mainNav = $(".nav-bar-ul .main-nav"); var lenNav = mainNav.length; var leftIndex = 0; var rightIndex = 0; var tanslateXMax = 0; var firstRightIndex = 0; // 初始化各个分类的长度 function initNav(){ var widthTemp = 0; for (var i = 0; i < lenNav; i++) { mainNav.eq(i).attr('data-index',i); mainNav.eq(i).attr('data-offset',widthTemp); var itemWidth = mainNav.eq(i).width(); mainNav.eq(i).attr('data-self',itemWidth); widthTemp += itemWidth; mainNav.eq(i).attr('data-width',widthTemp); if(widthTemp > maxWidth && rightIndex == 0){ firstRightIndex = rightIndex = i - 1; } // 品类之间的距离需要加上 if (i !== lenNav - 1) { widthTemp += spaceWidth; } } tanslateXMax = widthTemp - maxWidth; // 整个长度可以展示完整,不需要左右箭头分页 if(widthTemp > maxWidth){ $(".nav-bar-link .arrow-scroll").removeClass('hide'); $(".nav-bar-container").addClass('scroll'); maxWidth -= 50; } } // 点击右方向箭头,计算向右移动几个 function rightArrowAction(){ var index = rightIndex + 1; // 向右点击无效 if(index >= lenNav){ return false; } var _width = mainNav.eq(index).data('offset'); var _temp = lenNav - 1; for(var i = index; i < lenNav; i++){ var _tempWidth = mainNav.eq(i).data('width'); if(_tempWidth - _width > maxWidth){ _temp = i - 1; break; } } rightIndex = _temp; // 处理当最后一页不能占满一屏的时候 if(rightIndex === lenNav - 1){ // 确定正确的 leftIndex var _index = 0; var _maxWidth = mainNav.eq(rightIndex).data('width'); for(var i = rightIndex; i >= 0; i--){ var _tempWidth = mainNav.eq(i).data('offset'); if(_maxWidth - _tempWidth <= maxWidth){ _index = i; } } leftIndex = _index; }else{ leftIndex = index; } } // 点击左方向箭头,计算向左移动几个 function leftArrowAction(index){ var index = leftIndex - 1; // 向左点击无效 if(index <= -1){ return false; } var _width = mainNav.eq(index).data('width'); var _temp = 0; for(var i = index - 1; i > -1; i--){ var _tempWidth = mainNav.eq(i).data('offset'); if(_width - _tempWidth > maxWidth){ _temp = i + 1; break; } } rightIndex = index; leftIndex = _temp; } // 操作dom的显示隐藏,达到左右移动的目的 function operateCategroryDom(){ var startIndex = leftIndex; // tansform 到 startIndex 的位置 var translateX = parseInt(mainNav.eq(startIndex).data('offset')); $(".nav-bar-container .nav-bar-ul").css("transform","translateX(-" + translateX + "px)"); if(translateX <= 0){ leftIndex = 0; rightIndex = firstRightIndex; } } function arrowStateChange() { if(leftIndex == 0){ $(".arrow-left").addClass("arrow-disable"); }else{ $(".arrow-left").removeClass("arrow-disable"); } if(rightIndex == lenNav - 1){ $(".arrow-right").addClass("arrow-disable"); }else{ $(".arrow-right").removeClass("arrow-disable"); } } initNav(); operateCategroryDom(); arrowStateChange(); // 屏幕宽度改变的时候,重新计算 window.addEventListener("resize",function(){ maxWidth = $(".nav-bar-container").width(); operateCategroryDom(); arrowStateChange(); if(mainNav.eq(lenNav - 1).data('width') <= maxWidth){ $(".nav-bar-link .arrow-scroll").addClass('hide'); $(".nav-bar-container").removeClass('scroll'); }else{ $(".nav-bar-link .arrow-scroll").removeClass('hide'); $(".nav-bar-container").addClass('scroll'); } }); $(".arrow-scroll").delegate("span", "click", function() { if($(this).hasClass('arrow-disable')) return false; var value = $(this).data("value"); if(value > 0){ rightArrowAction(); operateCategroryDom(); }else{ leftArrowAction(); operateCategroryDom(); } arrowStateChange(); });
- Home>
-
- Popular >
-
- Tag List S >
-
- Smart Led Mirror >
Recommended Categories
Consumer ElectronicsIndoor Wall LightsUSB String LightsLED Globe BulbsDesk LampsVanity LightsProjectorsDecorative LightsLED Smart BulbsRemote ControlPlug String LightsReading LightsSamsung CasesNeon LED LightsOther Phone CaseRing LightsUSB Strip LightsTactical FlashlightsCOB Strip Lights
Smart Led MirrorSee All 1107 products in Smart Led Mirror
Sort by: RelevanceFavoritesPrice Low To HighPrice High To Low
Purchase all stylish Smart Led Mirror here with your own experience. Life cannot be without shopping online, which saves you time and send you convenience. Why not embrace the cheapest products but with extreme top quality? As one leading wholesaler all over the world, LightinTheBox enables you to find the cheapest, latest, most perfect products forever and ever. With honored reputation, LightinTheBox promises you quality as well as service. For selection of Smart Led Mirror, search LightinTheBox and find the best one for yourself. We are sending surprises all the while.
- 1 2 3 4 5 6 7 8 ... 23
- Next
')$('body').prepend(pioTrackingDom);};