<sub id="bdhjx"><progress id="bdhjx"><font id="bdhjx"></font></progress></sub>

            <span id="bdhjx"><big id="bdhjx"><thead id="bdhjx"></thead></big></span>

              购物车

              购物车还没有商品,快去选购吧!

              领取优惠券成功

              领取成功,尽情买买买吧

              去我的优惠券查看> 确定
               
              ?#24067;?em class="pink">25个商品
              人气 销量 新品 价格
              • -
              孕产妇授乳清洁湿巾授乳头清洁棉哺乳湿巾 ?#35013;? width=
              ¥ 36.00 ¥89 自营

              var keywords = $(".crumbs > span").text(); //?#21368;?#26159;二级分类列表还是搜索列表 function isKurl(url){ if(url.indexOf(".html") == -1){ return true; }else{ return false; } } // var searchItem = {}; $(function() { //sideBar 适应宽屏 $(".sideBar").addClass("sideBarHome"); //?#21368;?#23637;开按钮是否显示 $('.screening .kcon').each(function(index, element) { var $this = $(this), kconH = $this.height(), selectorH = $this.closest(".selector").height(); if(kconH > selectorH){ $(this).prev('.smore').show(); }else{ $(this).prev('.smore').hide(); } }); //展开收起按钮的动作 $('.selector div.smore').click(function(){ var _this = $(this); if(!_this.hasClass("more2")){ _this.next().addClass("open"); _this.parent(".contenter").css({height: 'auto'}) _this.addClass('more2').html('收起'); }else{ _this.next().removeClass("open"); _this.parent(".contenter").css({height: '24px'}) _this.removeClass('more2').html('更多'); } }); //排序按钮hover?#24405;? var b = $('.bmtitle'); $('.bmtitle span').bind('mouseenter',function(){ $(this).parent().find('span.listhover').removeClass('listhover'); $(this).addClass('listhover'); }); $('.bmtitle span').bind('mouseleave',function(){ if(!$(this).hasClass('current'))$(this).removeClass('listhover'); }); //排序?#24405;? $('.bmtitle span').click(function(e){ e.preventDefault(); var url = ($(this).attr('dhref')); if('' != url){window.location.href = url;} }); //只显示有货 $('.showSoldOut').click(function(){ window.location.href = $(this).attr('dhref'); }); //?#36828;?#20041;价格 // var searchItem = {}; // searchItem.items = JSON.parse('['+localStorage["searchItem_" + keywords].replace(/(^,*)/g,"")+']'); $(document).on("click",".input-submit",function(){ var pricemin = $(".input-items .min").val(); var pricemax = $(".input-items .max").val(); if(pricemin == "" && pricemax == ""){ return; }else if(pricemin == "" && pricemax != "" && /\d/.test(pricemax)){ pricemin = 0; }else if(pricemin != "" && pricemax == "" && /\d/.test(pricemin)){ pricemax = 1; }else if(pricemin - pricemax > 0 && /\d/.test(pricemax)){ alert("请输入正确的价格区间"); return; } if(!(/\d/.test(pricemin)) || !(/\d/.test(pricemax))){ alert("请输入?#34892;?#25968;字"); return; } var location_search = window.location.search; var location_href = window.location.href; if(isKurl(location_href)){ if(location_search.indexOf("price") == -1 ){ //添加localstorage // localStorage["searchItem_" + keywords] += ',{"searchkey":"price","id":"undefined","type":"价格:","name":"'+ pricemin + "-" + pricemax +'"}'; window.location.href = location_href + "&price=" + pricemin + "-" + pricemax; }else{ var ssStr = location_search.split("&"), urlI = location_href.indexOf("?"); // var searchItem = {}; for (var i = 0; i < ssStr.length; i++) { var parts = ssStr[i].split('='); if(parts[0] == "price"){ parts[1] = pricemin + "-" + pricemax; parts = parts.join("="); ssStr[i] = parts; // searchItem.items = JSON.parse('['+localStorage["searchItem_" + keywords].replace(/(^,*)/g,"")+']'); // for(var i=0;i

              "); }).mouseout(function(){ var _this = $(this); _this.removeClass("hover").css({"left":"inherit","top":"inherit"}); $("#emptyDiv").remove(); }) //排序中价格划过状态 $(".inputs-price").hover(function(){ $(".input-submit").show(); },function(){ $(".input-submit").hide(); }); }); $(function(){ //页面的相关筛选条件显示 {"item_title":"品牌","item_value":"阿弟葩鞋 attipas"}, // var keywords = ''; // console.log(localStorage["searchItem_" + keywords]) // console.log("---") //刚进页面时处理localstorage // if(isKurl(window.location.href)){ // //search url // //删除地?#38450;?#20013;全部属性 清空localstorage // var urlobj = querystring.parse(window.location.search); // if(urlobj.hasOwnProperty('k') && !urlobj.hasOwnProperty('b') && !urlobj.hasOwnProperty('price') && !urlobj.hasOwnProperty('cat') && !urlobj.hasOwnProperty('sp')){ // localStorage["searchItem_" + keywords] =""; // }else if(!urlobj.hasOwnProperty('k') && !urlobj.hasOwnProperty('b') && !urlobj.hasOwnProperty('price') && !urlobj.hasOwnProperty('sp')){ // localStorage["searchItem_" + keywords] =""; // } // $.each(urlobj,function(key,value){ // if(key == "b"){ // }else if(key == "price"){ // return true; // }else if(key == "cat"){ // return true; // }else if(key == "sp"){ // return true; // }else{ // console.log("dd"); // return true; // // localStorage["searchItem_" + keywords] =""; // } // }) // }else{ // //html url // } // if(localStorage.keyword != keywords){ // // localStorage["searchItem_" + keywords] = ""; // }else{ // console.log(localStorage["searchItem_" + keywords]); // } // if(keywords != ""){ // localStorage.keyword = keywords; // } // localStorage["searchItem_" + keywords] = localStorage["searchItem_" + keywords] ? localStorage["searchItem_" + keywords] : ""; // $(".kcon a").click(function(e){ // e.preventDefault(); // var _this = $(this); // var key = _this.closest(".selector").find(".key").text(); // var value = _this.text(); // var searchItem = '{"searchkey":"'+ _this.closest(".selector").attr("data-searchkey") +'","id":"'+ _this.closest(".selector").attr("data-index") +'","type":"'+ key +'","name":"'+ value +'"}'; // if(window.localStorage){ // localStorage["searchItem_" + keywords] += "," + searchItem ; // }else{ // console.log('This browser does NOT support localStorage'); // } // window.location.href = _this.attr("href"); // }) //添加搜索标签 // var searchItem = {}; // searchItem.items = JSON.parse('['+localStorage["searchItem_" + keywords].replace(/(^,*)/g,"")+']'); //将localstorage转化为json var searchItem = {"category":null,"promotion":""} //&& isKurl(window.location.href) 控?#21697;?#31867;点击的搜索 var searchItemStr = ""; console.log(searchItem); if(searchItem){ if(searchItem.brand){ if(window.location.search.indexOf("k=") != -1 || window.location.href.indexOf("_") != -1){ searchItemStr += '
              品牌:'+ searchItem.brand +'×
              '; $(".selector").has(".key:contains(品牌)").hide(); }// }else if(window.location.href.indexOf("_") != -1){ // searchItemStr += '
              品牌:'+ searchItem.brand +'×
              '; // $(".selector").has(".key:contains(品牌)").hide(); // } } if(searchItem.promotion){ var promotion_strs= new Array(); promotion_strs=searchItem.promotion.split(","); for (i=0;i0){ var promotion_name = $('#promotion'+promotion_strs[i]).data('p'); searchItemStr += '
              优惠活动:'+ promotion_name +'×
              '; $(".selector").has(".key:contains(优惠活动)").hide(); break; } } } if(searchItem.sp && searchItem.sp.length>0){ var val = searchItem.sp; for(var i=0;i < val.length;i++){ searchItemStr += '
              '+ val[i].type +':'+ val[i].name +'×
              '; $(".selector").has(".key:contains("+ val[i].type +")").hide(); } } if(searchItem.price){ searchItemStr += '
              价格:'+ searchItem.price +'×
              '; $(".selector").has(".key:contains(价格)").hide(); } if(searchItem.category){ if(window.location.search.indexOf("k=") != -1){ searchItemStr += '
              分类:'+ searchItem.category +'×
              '; $(".selector").has(".key:contains(分类)").hide(); } } $(".crumbs").append(searchItemStr); // $.each(searchItem,function(key,val){ // if(key == "sp"){ // for(var i=0;i < val.length;i++){ // searchItemStr += '
              '+ val[i].type +':'+ val[i].name +'×
              '; // $(".selector").has(".key:contains("+ val[i].type +")").hide(); // } // }else{ // var type = ""; // if(key == "brand"){ // type = "品牌"; // }else if(key == "price"){ // type = "价格"; // }else if(key == "category"){ // type = "分类"; // } // searchItemStr += '
              '+ type +':'+ val +'×
              '; // $(".selector").has(".key:contains("+ type +")").hide(); // } // }) // $(".crumbs").append(searchItemStr); } // if(searchItem.items ){ // var searchItemStr = ""; // var sp = searchItem.items; // for(var i = 0; i < sp.length; i++){ // searchItemStr ++= '
              '+ sp[i].type +''+ sp[i].name +'×
              '; // $(".selector").has(".key:contains("+ sp[i].type +")").hide(); // } // $(".crumbs").append(searchItemStr); // } //删除localstorage中数据方法 // function removeLocalSto(locals,movestr,id){ // var localstr = searchItem; // for(var i=0;i < localstr.items.length;i++){ // if(localstr.items[i].searchkey == movestr){ // if(!isNaN(localstr.items[i].id) && localstr.items[i].id == id){ // localstr.items.splice(i,1); // }else if(!isNaN(localstr.items[i].id) && localstr.items[i].id != id){ // continue; // }else{ // localstr.items.splice(i,1); // } // } // } // return JSON.stringify(localstr.items).replace(/\[|\]/g,""); // } //筛选条件?#24405;? $(document).on("click",".select-icon" , function(){ var _this = $(this), searcargment = _this.attr("data-searargment"),//筛选条件 sp_index = _this.attr("data-index"), //属性值索引 sStr = window.location.search.replace(/(^\?*)/g,'').split("&"), urlI = window.location.href.indexOf("?"); if(isKurl(window.location.href)){ //搜索框搜索的情况 for (var i = 0; i < sStr.length; i++) { var parts = sStr[i].split('='); if(parts[0] == "sp" && searcargment == "sp"){ var parst_v = parts[1].split(","); parst_v.splice(sp_index,1,0); parst_v = parst_v.join(","); parts[1] = parst_v; parts = parts.join("="); sStr[i] = parts; // localStorage["searchItem_" + keywords] = removeLocalSto(localStorage["searchItem_" + keywords],"sp",sp_index); }else if(parts[0] == "b" && searcargment == "brand"){ sStr.splice(i,1); // localStorage["searchItem_" + keywords] = removeLocalSto(localStorage["searchItem_" + keywords],"b"); }else if(parts[0] == "price" && searcargment == "price"){ sStr.splice(i,1); // localStorage["searchItem_" + keywords] = removeLocalSto(localStorage["searchItem_" + keywords],"price"); }else if(parts[0] == "cat" && searcargment == "category"){ sStr.splice(i,1); // localStorage["searchItem_" + keywords] = removeLocalSto(localStorage["searchItem_" + keywords],"category"); }else if(parts[0] == "pr" && searcargment == "pr"){ sStr.splice(i,1); // localStorage["searchItem_" + keywords] = removeLocalSto(localStorage["searchItem_" + keywords],"category"); } } window.location.href = window.location.href.substr(0,urlI) + "?" + sStr.join("&"); }else{ //分类点击的情况 var surl = window.location.href.split("_"); for(var i=0;i< surl.length ;i++){ if(surl[i].indexOf(searcargment) == 0){ // if(searcargment == "sp"){ var sps = surl[i].split("."); var spss = sps[0].split(",") if(sp_index == 0){ spss.splice(sp_index,1,"sp0"); }else{ spss.splice(sp_index,1,0); } spss = spss.join(","); sps[0] = spss; sps = sps.join("."); surl[i] = sps; // localStorage["searchItem_" + keywords] = removeLocalSto(localStorage["searchItem_" + keywords],searcargment,sp_index); // }else{ // if(surl[i].indexOf(".html") != -1){ // surl[i] = ".html"; // }else{ // surl.splice(i,1); // } // // localStorage["searchItem_" + keywords] = removeLocalSto(localStorage["searchItem_" + keywords],searcargment); // } }else if(searcargment == "brand" &&surl[i].indexOf("b") == 0){ if(surl[i].indexOf(".html") != -1){ surl[i] = ".html"; }else{ surl.splice(i,1); } }else if(surl[i].indexOf(searcargment) == 0){ if(surl[i].indexOf(".html") != -1){ surl[i] = ".html"; }else{ surl.splice(i,1); } } } window.location.href = surl.join("_"); } }) }); //品牌关注点击 var BRANDlove = ""; $(".brandLoveBtn").click(function(){ addMine($(this),''); if(BRANDlove == 1){ $(this).addClass("love"); } }) function addMine(obj,b){ var act = BRANDlove == 1 ? 'ajaxRmMine' : 'ajaxAddMine'; $.ajax({ 'url':'/instant/brand/'+act+'/', 'dataType':'json', 'type':'post', data:{brand_id:b}, success:function(c){ if(c.res==false){ if(c.data=="haved"){ return false; }else{ if(c.data=="not_login"){ alert("请登录后添加喜欢的品牌!"); var g=encodeURIComponent(window.location.href); window.location.href="/login?url="+g; } } }else if(c.res == true){ var p = obj.parent(); var s = p.find('span').eq(1); var num = parseInt(s.attr('num')); if(act == 'ajaxRmMine'){ BRANDlove = 0; obj.attr('src', obj.attr('pre_src') + 'gz.gif' ); s.attr('num', num-1); s.html('' + (num-1) + ' 人收藏该品牌'); $(".brandLoveBtn").removeClass("love"); }else{ BRANDlove = 1; obj.attr('src', obj.attr('pre_src') + 'qx.gif' ); s.attr('num', num+1); s.html('' + (num+1) + ' 人收藏该品牌'); $(".brandLoveBtn").addClass("love"); } } } }); } ?
              • 联系方式
              • 总裁?#27663;[email protected]
              • 商务合作 [email protected]
              • ?#25945;?#21512;作 [email protected]
              • 招商中心 [email protected]
              • 企?#25377;?#36141; [email protected]
              • 廉政举报 [email protected]
              灿凰娱乐是真公司吗

                        <sub id="bdhjx"><progress id="bdhjx"><font id="bdhjx"></font></progress></sub>

                        <span id="bdhjx"><big id="bdhjx"><thead id="bdhjx"></thead></big></span>

                                    <sub id="bdhjx"><progress id="bdhjx"><font id="bdhjx"></font></progress></sub>

                                    <span id="bdhjx"><big id="bdhjx"><thead id="bdhjx"></thead></big></span>