window.globalSiteNormalSidebarConfig = { isShowSidebar: true, isShowSellerCoupon: true, newUserUrl: 'https://campaign.aliexpress.com/wow/gcp/new-user-channel/index?wh_weex=true&wx_navbar_hidden=true&wx_navbar_transparent=true&ignoreNavigationBar=true&wx_statusbar_hidden=true&_immersiveMode=true&preDownLoad=true&tabType=gift', }; (function () { if(window._global_header_23_hit_exp_ != null){ return; } var StrategyExp = ['st_StrategyExp_1695711618618#stg_685']; var isHitExp = false; var spmb = document.body.getAttribute('data-spm'); if('cart' == spmb){ window._global_header_23_hit_exp_ = true; return; } if (['home', 'productlist', 'detail', 'cart'].indexOf(spmb) != -1) { var cookieStr = window.document.cookie; if (!cookieStr) { return; } var cookieParts = cookieStr.split(/;\s/g); var strategyCookie; for (var i = 0, len = cookieParts.length; i < len; i++) { var values = cookieParts[i].match(/AB_STG=(.+)/i); if (values instanceof Array) { try { strategyCookie = decodeURIComponent(values[1]); } catch (ex) {} } } if (StrategyExp && strategyCookie) { StrategyExp.forEach(function (itemStr) { if (strategyCookie.indexOf(itemStr) != -1) { isHitExp = true; } }); } } window._global_header_23_hit_exp_ = isHitExp; })(); (function () { if (!window.localStorage || window.innerWidth < 1280) { return; } var spmb = document.body.getAttribute('data-spm'); if ( ['home', 'productlist', 'detail', 'categorymp', 'best'].indexOf(spmb) == -1 || window._global_header_23_hit_exp_ != true ) { return; } function addClass(obj, cls) { if (!obj.className.match(new RegExp('(\\s|^)' + cls + '(\\s|$)'))) obj.className += ' ' + cls; } var statusStr = localStorage.getItem('sidecart_pre_status'); var statusData; try { statusData = JSON.parse(statusStr); } catch (e) { console.error(e); } if (statusData && statusData.show && statusData.time) { var minusTime = new Date().getTime() - statusData.time; if (minusTime < 24 * 60 * 60 * 1000) { addClass(document.body, 'unfoldShopCart'); } } })();