Women’s Fashion Shoes Online Shopping – Chic Me


Women’s Fashion Shoes Online Shopping – Chic Me 0){ if(data.result > 99){ $(‘.i-cart-num’).text(“99+”).show(); }else{ $(‘.i-cart-num’).text(data.result).show(); } shoppingcount = data.result; }else{ $(‘.i-cart-num’).hide(); } }); } function countMessage() { _simple_handler.get(ctx + ‘/notification/no-read-notifications’,{},function(data){ if(data.result && data.result > 0){ $(‘.noti-count’).text(data.result).show(); }else{ $(‘.noti-count’).hide(); } }); } function changeLang(lang){ $.cookie(‘lang’,lang,{ expires: 365 ,path: ‘/’}); var targetUrl = LanguageUtil.getTargetUrl(window.location.href, lang) window.location.href = targetUrl; } var primeMills = ‘-109162699000’; function initHeaderImage(){ var $header = $(‘#dif-header1’); var image = ‘https://dgzfssf1la12s.cloudfront.net/site/chicmeday/backsite.gif’; var a = ctx + ‘/i/collection/products?collectionId=1y5J0j3U4m5B1p6q9D8y9q7V8S’; var color = ‘e5004f’; var html = [”, ‘ ‘, ‘ ‘, ‘ ‘, ”]; $header.append(html.join(”)); }; function initChicmeDayAlert(){ if($.cookie && !$.cookie(‘promotion’)){ _simple_handler.get(ctx + ‘/’ + BaseUtil.version + ‘/index-promotion/anon/get2’,{}, function(data){ var imageVO = data.result; if(imageVO && imageVO.length > 0){ $(‘#chicmeday-alert’).empty().append(‘‘); $(‘.promotion-show’).show(); $.cookie(‘promotion’, true , { expires:1 ,path: ‘/’}); } } ); } } $(function(){ // initHeaderImage(); initChicmeDayAlert(); $(document).on(‘change’ , ‘#lang’ , function(e){ changeLang($(this).val()); }); $(document).on(‘click’,’.tip,.tip-show’,function(event){ event.stopPropagation(); }); $(document).on(‘click’,’.op-show-menu’,function(event){ event.stopPropagation(); if(!$(‘.menu’).is(‘:hidden’)){ $(‘.menu’).hide(); }else{ $(‘.menu’).show(); } }); $(document).on(‘click’, function(event) { $(‘.tip’).hide(); }); $(document).on(‘click’,’.home-img’,function(){ window.location.href = ctx + ‘/’; }); BaseUtil.getMe(); BaseUtil.on(‘ME_LOADED’,function(_me){ BaseUtil.getWannaLists(); }); //进入页面 mobileAnalyticsClient.recordEvent(‘EVENTS_ENTER’, { ‘customerId’:gobalCustomerId?gobalCustomerId:”, ‘info1’:utm_source, ‘info2’:utm_campaign, ‘info3’:utm_medium, ‘ip’: window.utm_ip, ‘frontPage’: document.referrer ? document.referrer.substr(0,40): ”, ‘wid’: $.cookie(‘clientId’), ‘currentPage’:window.currentPage, ‘relatedId’:window.relatedId||” }); $(document).on(‘click’,’.event-click’,function(){ var collectionId = $(this).attr(‘collection-id’); var type = $(this).attr(‘type’); mobileAnalyticsClient.recordEvent(‘EVENTS_CLICK’, { ‘customerId’:gobalCustomerId?gobalCustomerId:”, ‘info1’:utm_source, ‘info2’:utm_campaign, ‘info3’:utm_medium, ‘ip’: window.utm_ip, ‘frontPage’: document.referrer ? document.referrer.substr(0,40): ”, ‘wid’: $.cookie(‘clientId’), ‘currentPage’:typeof(currentPage) == “undefined”?””:currentPage, ‘relatedId’:collectionId, ‘type’: type }); }); $(document).on(‘click’,’.amazon-event’,function(){ var relatedId = $(this).attr(‘relatedId’); var relatedId2 = $(this).attr(‘relatedId2’); var type = $(this).attr(‘type’); var EVENT = $(this).attr(‘EVENT’); mobileAnalyticsClient.recordEvent(EVENT, { ‘customerId’:gobalCustomerId?gobalCustomerId:”, ‘info1’:utm_source, ‘info2’:utm_campaign, ‘info3’:utm_medium, ‘ip’: window.utm_ip, ‘frontPage’: document.referrer ? document.referrer.substr(0,40): ”, ‘wid’: $.cookie(‘clientId’), ‘currentPage’:typeof(currentPage) == “undefined”?””:currentPage, ‘relatedId’:relatedId, ‘type’: type, ‘relatedId2’: relatedId2 }); }); $(document).on(‘click’,’.sign-out’,function(){ _simple_handler.loadingGet(ctx+’/’+BaseUtil.version+’/login-customer/logout’, {}, function(data){ $.cookie(‘e’,null,{ expires: -1 ,path: ‘/’}); window.location.href = ctx + ‘/’; }, null, ‘body’); }); $(‘.language-text-mouse’).on(‘click’, function(){ changeLang($(this).attr(‘lang-code’)); }) $(‘#language-mouse-over’).on(‘mouseover’, function(){ $(‘#language-tip’).show(); }).on(‘mouseout’, function(){ $(‘#language-tip’).hide(); }); $(‘#currency-selector’).on(‘mouseover’,function(){ $(‘#currency-tip’).show(); }).on(‘mouseout’,function(){ $(‘#currency-tip’).hide(); }); $(‘.ip-d-more’).on(‘mouseover’,function(){ $(‘#head-tip’).show(); }).on(‘mouseout’,function(){ $(‘#head-tip’).hide(); }); $(document).on(‘click’,’.currency’,function(){ var $this = $(this); var currency = $this.data(‘currency’); $(‘#currency-seleced’).text($this.data(‘cname’)); $.cookie(‘currency’, currency, { expires:365 ,path: ‘/’}); $.cookie(‘currency-name’, encodeURIComponent($this.data(‘cname’)), { expires: Number.MAX_VALUE ,path: ‘/’}); $.cookie(‘currency-flag’, $this.data(‘flag’), { expires: Number.MAX_VALUE ,path: ‘/’}); if(typeof(LeaveWebUtil) != “undefined”){ LeaveWebUtil.disabled = false; } _simple_handler.get(ctx + ‘/context/anon/update-currency’,{currency:currency},function(data){ window.location.href = changeURLArg(window.location.href, ‘utm_currency’, currency); }); }); $(document).on(‘click’,’.event-rcd’,function(){ var collectionId = $(this).attr(‘collection-id’); mobileAnalyticsClient.recordEvent(‘EVENTS_CLICK’, { ‘customerId’:gobalCustomerId?gobalCustomerId:”, ‘info1’:utm_source, ‘info2’:utm_campaign, ‘info3’:utm_medium, ‘currentPage’:typeof(currentPage) == “undefined”?””:currentPage, ‘relatedId’:collectionId }); }); $(‘#guanggao-close’).on(‘click’,function(e){ e.preventDefault(); e.stopPropagation(); $(this).parent().remove(); $(‘#top-header’).addClass(‘no-guanggao’); $.cookie(‘g-not-show’, true , { expires:1 ,path: ‘/’}); }); // _simple_handler.get(ctx + ‘/message/get/M1078’,{},function(data){ // if(data.result && data.result.message){ // $(‘#dif-header’).append(data.result.message); // $(‘#easter-timmer’).attr(‘data-ms’ , easterMills); // } // }); _simple_handler.get(ctx + ‘/message/anon/header-tip’,{},function(data){ if(data && data.result && data.result.pc){ var tip = data.result.pc; var endTime = tip.endTime, serverTime = data.result.serverTime; function getCountdownStyle(){ var styles = []; if(tip.numberColor || tip.labelColor){ styles.push(”); if(tip.numberColor){ styles.push(‘.head-countdown .date-num{color: ‘+tip.numberColor+’;}’); } if(tip.labelColor){ styles.push(‘.head-countdown .date-label{color: ‘+tip.labelColor+’;}’); } styles.push(”); return styles.join(”); } return ”; } function getCountdowning(countHeight){ if(endTime && endTime-serverTime > 0){ return ”; } return ”; } $(‘#dif-header’).append([ getCountdownStyle(), ”, ‘ ‘, getCountdowning(tip.countHeight), ” ].join(”)); } }); var end = Number(‘ ‘); var ms = end – Number(serverTime); $(‘#m1089’).append(‘.m1068{position:fixed;width:150px;display:block;left:calc(50% – 570px – 160px);bottom:60px;z-index:999;} @media screen and (max-width:1500px){.m1068{left:20px;}} ‘); $(‘#m1089’).append(‘‘); }); ]]> ‘+date+”); i++; } $(‘#new-arrival-list’).append(rangeHtmls.join(”)); }else{ $(‘.cat-items-container[cat-id=”date-ranges”]’).hide(); } }); }, getTimeRanges: function(callBack){ _simple_handler.ajax(ctx+’/’+BaseUtil.version+’/product/anon/get-new-product-time-ranges’, {}, ‘GET’, callBack); } }; var CategoryNew = (function(){ var _getCategories = function(callBack){ _simple_handler.ajax(ctx+’/’+BaseUtil.version+’/product/anon/get-new-in-category’, {}, ‘GET’, callBack); } return { init: function(){ _getCategories(function(data){ var categories = data.result; var html = []; html.push(‘

0)){ self.render(shoppingcart); self.afterRender(); }else{ shoppingcart = {}; shoppingcart[’empty’] = true; self.render(shoppingcart); } }); self.on(‘REFRESH-MINI-CART’ , function(shoppingcart){ self.reSet(shoppingcart); }); }, afterRender:function(){ }, notifyCart:function(){ var self = this; self.loadShoppingCart(function(data){ var shoppingcart = data.result; if(shoppingcart && (shoppingcart.shoppingCartProductsByOverseas && shoppingcart.shoppingCartProductsByOverseas.length > 0 || shoppingcart.domesticDeliveryCases && shoppingcart.domesticDeliveryCases.length > 0)){ self.set(‘_shopping_cart’,shoppingcart); self.setChuckData(shoppingcart); }else{ shoppingcart = {}; shoppingcart[’empty’] = true; self.set(‘_shopping_cart’,shoppingcart); self.setChuckData(shoppingcart); } self.get(‘parentNode’).show().delay(3000).fadeOut(5000); }); }, reSet:function(shoppingcart){ var self = this; if(shoppingcart && (shoppingcart.shoppingCartProductsByOverseas && shoppingcart.shoppingCartProductsByOverseas.length > 0 || shoppingcart.domesticDeliveryCases && shoppingcart.domesticDeliveryCases.length > 0)){ self.changeSummary(shoppingcart); }else{ shoppingcart = {}; shoppingcart[’empty’] = true; this.set(‘_shopping_cart’,shoppingcart); this.setChuckData(shoppingcart); } }, changeSummary:function(shoppingcart){ $(‘.itemtotal’).text(MoneyUtil.getStr(shoppingcart.orderSummary.itemTotal)); $(‘.subtotal’).text(MoneyUtil.getStr(shoppingcart.orderSummary.subTotal)); var shoppingCartProducts = shoppingcart.shoppingCartProducts; if(shoppingCartProducts && shoppingCartProducts.length > 0){ for(var i = 0 , len = shoppingCartProducts.length ; i {{each shoppingCartProductsByOverseas as product}}

  • {{if product.endLimitedTimePurchaseTime && product.limitedTimePurchasePromotionPrice}} {{/if}} {{product.productName}} {{if product.itemPrice.amount – product.realPrice.amount > 0}} {{product.realPrice | formatPrice}} {{product.itemPrice | formatPrice}} {{if product.isProductDiscount}} {{(product.productDiscountRate*100).toFixed(0)}}% OFF {{else}} {{(product.couponDiscountRate*100).toFixed(0)}}% OFF {{/if}} {{else}} {{product.realPrice | formatPrice}} {{/if}} {{if product.limitedTimePurchasePromotionPrice}} Save {{product.limitedTimePurchasePromotionPrice | formatPrice}} {{/if}} {{if product.size && product.color}} {{product.size}} , {{product.color}} {{else if product.size}} {{product.size}} {{else if product.color}} {{product.color}} {{else}} {{/if}} – {{product.quantity}} + Total:{{product.realPrice | subtotal : product.quantity}} {{/each}} {{each domesticDeliveryCases as domestic}} {{each domestic.shoppingCartProducts as product}}
  • {{if product.endLimitedTimePurchaseTime && product.limitedTimePurchasePromotionPrice}} {{/if}} {{product.productName}} {{if product.itemPrice.amount – product.realPrice.amount > 0}} {{product.realPrice | formatPrice}} {{product.itemPrice | formatPrice}} {{if product.isProductDiscount}} {{(product.productDiscountRate*100).toFixed(0)}}% OFF {{else}} {{(product.couponDiscountRate*100).toFixed(0)}}% OFF {{/if}} {{else}} {{product.realPrice | formatPrice}} {{/if}} {{if product.limitedTimePurchasePromotionPrice}} Save {{product.limitedTimePurchasePromotionPrice | formatPrice}} {{/if}} {{if product.size && product.color}} {{product.size}} , {{product.color}} {{else if product.size}} {{product.size}} {{else if product.color}} {{product.color}} {{else}} {{/if}} – {{product.quantity}} + Total:{{product.realPrice | subtotal : product.quantity}} {{/each}} {{/each}} Total {{orderSummary.subTotal | formatPrice}} {{if messages && messages.orderSummaryMsg}}

    {{# messages.orderSummaryMsg}} {{/if}} VIEW BAG {{/if}} ]]>



  • Source

    Leave a Comment

    Your email address will not be published. Required fields are marked *