webpackJsonp([7],{"4rsT":function(t,n,e){var i=e("kVwf");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);e("rjj0")("2ca6000a",i,!0,{})},Q14n:function(t,n,e){(t.exports=e("FZ+f")(!1)).push([t.i,"\n.navbar-sort[data-v-0de7155e] {\n  height: auto;\n  overflow: visible;\n}\n.navbar-sort .errorrecovery[data-v-0de7155e] {\n    width: 100%;\n    background-color: #faf6eb;\n    padding: 0.83333rem 1.25rem;\n    position: relative;\n    left: -1.25rem;\n    color: #777777;\n    line-height: 2.08333rem;\n    display: -webkit-box  !important;\n    -webkit-line-clamp: 2;\n    /*! autoprefixer: ignore next */\n    -webkit-box-orient: vertical;\n    text-overflow: ellipsis;\n    overflow: hidden;\n}\n.navbar-sort .errorrecovery .accuracy[data-v-0de7155e] {\n      color: #f07e6b;\n}\n.navbar-sort .errorrecovery .inaccurate[data-v-0de7155e] {\n      color: #4a82b1;\n}\n.navbar-sort .navbar-sort-list .navbar-sort-item[data-v-0de7155e] {\n    display: inline-block;\n    position: relative;\n    width: 25%;\n    text-align: left;\n    margin-right: -3px;\n}\n.navbar-sort .navbar-sort-list .navbar-sort-item.off[data-v-0de7155e] {\n      color: #c5c5c5;\n}\n.navbar-sort .navbar-sort-list .navbar-sort-item.off .iocn[data-v-0de7155e] {\n        color: #c5c5c5;\n}\n.navbar-sort .navbar-sort-list .navbar-sort-item .triangle_all[data-v-0de7155e] {\n      position: absolute;\n      top: 0.83333rem;\n      left: 2.33333rem;\n}\n.navbar-sort .navbar-sort-list .navbar-sort-item .triangle_all .icon[data-v-0de7155e] {\n        display: block;\n        position: relative;\n        font-size: 1rem;\n        color: #888;\n}\n.navbar-sort .navbar-sort-list .navbar-sort-item .triangle_all .icon_triangle_down[data-v-0de7155e] {\n        position: relative;\n        top: 0rem;\n}\n.navbar-sort .navbar-sort-list .navbar-sort-item .triangle_all .icon_triangle_up[data-v-0de7155e] {\n        position: relative;\n        top: 0.25rem;\n}\n.navbar-sort .navbar-sort-list .on[data-v-0de7155e] {\n  color: #00bebf;\n  font-weight: bold;\n}\n.navbar-sort .navbar-sort-list .on.price_desc .icon_triangle_down[data-v-0de7155e] {\n  color: #00bebf;\n}\n.navbar-sort .navbar-sort-list .on.price_asc .icon_triangle_up[data-v-0de7155e] {\n  color: #00bebf;\n}\n",""])},gqy2:function(t,n,e){var i=e("o20q");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);e("rjj0")("3d3aafda",i,!0,{})},kVwf:function(t,n,e){(t.exports=e("FZ+f")(!1)).push([t.i,"\n.null_list {\n  margin-top: -50px;\n}\n.null_list .btn-white-large {\n    background: #fff;\n    color: #333;\n    border: 1px solid #c5c5c5;\n    font-size: 1.4166666667rem;\n    width: 100%;\n    line-height: 3.66667rem;\n    display: inline-block;\n    text-align: center;\n}\n.overHidden {\n  overflow: hidden;\n}\n.null_list {\n  width: 100%;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  padding: 10px;\n}\n.null_list img {\n    width: 100%;\n}\n.null_list .btn {\n    width: 100%;\n    margin: 0;\n}\n.null_list .tishiyu {\n    font-size: 1.5rem;\n    color: #333;\n    line-height: 1.5;\n    text-align: center;\n    padding-bottom: 40px;\n    padding: 0 30px 40px 30px;\n}\n.filtering {\n  overflow: hidden;\n  height: 100%;\n}\n",""])},o20q:function(t,n,e){(t.exports=e("FZ+f")(!1)).push([t.i,"\n.goFilter[data-v-db77dcfa] {\n  position: fixed;\n  height: 100%;\n  width: 100%;\n  z-index: 1000;\n  top: 0;\n  left: 0;\n}\n.goFilter .filter-box[data-v-db77dcfa] {\n    position: fixed;\n    top: 0;\n    left: 0;\n    height: 100%;\n    background-color: rgba(0, 0, 0, 0.5);\n    z-index: 999;\n    width: 100%;\n}\n.goFilter .filter-content[data-v-db77dcfa] {\n    width: 88%;\n    position: fixed;\n    top: 0;\n    right: 0;\n    height: 100%;\n    background-color: white;\n    -webkit-box-sizing: border-box;\n            box-sizing: border-box;\n    z-index: 9999;\n}\n.goFilter .filter-soller[data-v-db77dcfa] {\n    height: 100%;\n    overflow-y: scroll;\n    padding: 1.16667rem 1.16667rem 5.16667rem 1.16667rem;\n    -webkit-overflow-scrolling: touch;\n    -webkit-box-sizing: border-box;\n            box-sizing: border-box;\n}\n.goFilter .filter-soller .filter-content-box[data-v-db77dcfa] {\n      margin-bottom: 1.66667rem;\n}\n.goFilter .filter-soller .filter-content-box.off[data-v-db77dcfa] {\n      max-height: 215px;\n      overflow: hidden;\n      position: relative;\n      -webkit-transition: 300ms;\n      transition: 300ms;\n}\n.goFilter .filter-soller .filter-content-box.off[data-v-db77dcfa]::after {\n      width: 100%;\n      display: block;\n      height: 40px;\n      content: '';\n      background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0), white);\n      position: absolute;\n      bottom: 0px;\n}\n.goFilter .filter-soller .filter-content-h1[data-v-db77dcfa] {\n      padding-bottom: 1.66667rem;\n      position: relative;\n}\n.goFilter .filter-soller .filter-content-h1 .filter-name[data-v-db77dcfa] {\n        float: left;\n        font-size: 1.25rem;\n}\n.goFilter .filter-soller .filter-content-h1 .filter-select[data-v-db77dcfa] {\n        font-size: 1.16667rem;\n        line-height: 1.66667rem;\n        word-break: keep-all;\n        white-space: nowrap;\n        overflow: hidden;\n        text-overflow: ellipsis;\n        color: #00BEBF;\n        padding-left: 1.25rem;\n        padding-right: 2.33333rem;\n}\n.goFilter .filter-soller .filter-content-h1 i.icon[data-v-db77dcfa] {\n        float: right;\n        position: absolute;\n        right: 0;\n        top: 0;\n}\n.goFilter .filter-soller ul[data-v-db77dcfa] {\n      margin: 0 -0.41667rem;\n}\n.goFilter .filter-soller ul li[data-v-db77dcfa] {\n        width: 33.33%;\n        float: left;\n        padding: 0 0.41667rem;\n        -webkit-box-sizing: border-box;\n                box-sizing: border-box;\n        text-align: center;\n        margin-bottom: 0.83333rem;\n        overflow: hidden;\n}\n.goFilter .filter-soller ul li .tab-box[data-v-db77dcfa] {\n          height: 2.91667rem;\n          line-height: 2.91667rem;\n          border-radius: 4px;\n          background-color: #f3f3f3;\n          padding: 0 0.83333rem;\n          word-break: keep-all;\n          white-space: nowrap;\n          overflow: hidden;\n          text-overflow: ellipsis;\n}\n.goFilter .filter-soller ul li.on .tab-box[data-v-db77dcfa] {\n        background-color: #4ED6D1;\n        color: #ffffff;\n}\n.goFilter .filter-soller ul li.off[data-v-db77dcfa] {\n        display: none;\n}\n.goFilter .bottom-btn[data-v-db77dcfa] {\n    display: -webkit-box;\n    display: -ms-flexbox;\n    display: flex;\n    width: 100%;\n    position: absolute;\n    left: 0;\n    bottom: 0;\n}\n.goFilter .bottom-btn .btn[data-v-db77dcfa] {\n      width: 50%;\n      -webkit-box-sizing: border-box;\n              box-sizing: border-box;\n      height: 4rem;\n      text-align: center;\n      line-height: 4rem;\n      font-size: 1.5rem;\n}\n.goFilter .bottom-btn .btn-reset[data-v-db77dcfa] {\n      background-color: rgba(255, 255, 255, 0.9);\n      border: 1px solid #dddddd;\n}\n.goFilter .bottom-btn .btn-determine[data-v-db77dcfa] {\n      background-color: #4ED6D1;\n      color: #ffffff;\n}\n.goFilter .bottom-btn .btn-determine[data-v-db77dcfa]:active {\n        background: #3cb4b7;\n        color: #b0dcdd;\n}\n",""])},vCr1:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=e("woOf"),a=e.n(i),r=e("sUrV"),o=e("sHg/"),s=e("C5Jo"),l={name:"SortFilter",props:{proType:Number},data:function(){return{priceType:1}},computed:{styles:function(){return 1==this.$store.state.headerDown?{marginTop:"103px"}:{marginTop:"48px"}},newType:function(){return this.proType}},watch:{},methods:{handleClick:function(t){"price"==t?(t=this.priceType?4:3,this.priceType=!this.priceType):localStorage.searchPriceType=1,this.type=t,this.$emit("handleOrderSearch",t)},handleFilter:function(){this.$emit("handleFilter",!0)}},activated:function(){},deactivated:function(){}},c={render:function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"navbar-sort navbarFixed",style:[t.styles]},[e("div",{staticClass:"navbar-sort-list"},[e("div",{staticClass:"navbar-sort-item",class:0==t.newType?"on":"",on:{click:function(n){t.handleClick(0)}}},[t._v("综合")]),t._v(" "),e("div",{staticClass:"navbar-sort-item",class:2==t.newType?"on":"",on:{click:function(n){t.handleClick(2)}}},[t._v("销量")]),t._v(" "),e("div",{staticClass:"navbar-sort-item",class:5==t.newType?"on":"",on:{click:function(n){t.handleClick(5)}}},[t._v("新品")]),t._v(" "),e("div",{staticClass:"navbar-sort-item",class:[4==t.newType?"on":"",3==t.newType?"on":"",1==t.priceType?"price_asc":"price_desc"],on:{click:function(n){t.handleClick("price")}}},[t._v("价格"),t._m(0)])]),t._v(" "),e("div",{staticClass:"navbar-sort-right"},[e("span",{staticClass:"navbar-sort-filter",attrs:{"xa-tap":"goodsList|m-sortFilter"},on:{click:t.handleFilter}},[t._v("筛选"),e("i",{staticClass:"icon icon_filter"})])])])},staticRenderFns:[function(){var t=this.$createElement,n=this._self._c||t;return n("div",{staticClass:"triangle_all"},[n("i",{staticClass:"icon icon_triangle_up"}),n("i",{staticClass:"icon icon_triangle_down"})])}]};var d=e("VU/8")(l,c,!1,function(t){e("vQrx")},"data-v-0de7155e",null).exports,h={name:"FilterBar",props:{filterData:Object},data:function(){return{country:0,countryIcon:"icon_triangle_down",brand:0,brandName:"",brandIcon:"icon_triangle_down",selectBrandCountry:0,stock:0}},computed:{countryName:function(){var t=this.filterData.countries,n="",e=0;if(0!=this.country&&(e=this.country),0!=this.selectBrandCountry&&(e=this.selectBrandCountry),0!=e)for(var i in t)if(t[i].id==e)return n=t[i].name;return n},isShowCountryIcon:function(){return this.filterData.countries.length>12},isShowCountryOff:function(){var t=this.filterData.countries,n=this.countryIcon;return t.length>12&&"icon_triangle_down"==n},isShowBrandIcon:function(){var t=this.filterData.brands,n=this.country,e=!1;if(t.length>12&&0==n)return!0;if(t.length>12&&0!=n){var i=0;for(var a in t)t[a].countryId==n&&i++;i>=12&&(e=!0)}return e},isShowBrandOff:function(){var t=this.filterData.brands,n=this.brandIcon,e=this.country,i=!1;if(t.length>12&&"icon_triangle_down"==n&&0==e)return!0;if(t.length>12&&"icon_triangle_down"==n&&0!=e){var a=0;for(var r in t)t[r].countryId==e&&a++;a>=12&&(i=!0)}return i}},methods:{handerClose:function(){this.$emit("closeFileter")},handleCountry:function(t,n){this.country==t||this.selectBrandCountry==t?this.country=0:this.country=t,this.selectBrandCountry=0;var e=this.filterData.brands;for(var i in e){var a=0;e[i].countryId==this.country&&a++,0==a&&(this.brand=0)}},handleBrand:function(t,n,e){this.brand==t?(this.brand=0,this.brandName="",0==this.country&&(this.selectBrandCountry=0)):(this.brand=t,this.brandName=e,0==this.country?this.selectBrandCountry=n:this.selectBrandCountry=0)},handleFixed:function(){this.stock=!this.stock},handleIcon:function(t){1==t?"icon_triangle_down"==this.brandIcon?this.brandIcon="icon_triangle_up":this.brandIcon="icon_triangle_down":"icon_triangle_down"==this.countryIcon?this.countryIcon="icon_triangle_up":this.countryIcon="icon_triangle_down"},handleReset:function(){this.country=0,this.brand=0,this.stock=0,this.selectBrandCountry=0},handleConfirm:function(){var t={country:0!=this.selectBrandCountry?this.selectBrandCountry:this.country,brand:this.brand,stock:Number(this.stock)};this.$emit("handleFilterConfirm",t)}}},f={render:function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("section",{staticClass:"goFilter",attrs:{"xa-touchend":"goodsList|m-goCategory"}},[e("div",{staticClass:"filter-box",on:{click:t.handerClose}}),t._v(" "),e("div",{staticClass:"filter-content"},[t.countObjectSize(t.filterData)?e("div",{staticClass:"filter-soller"},[t.filterData.countries.length>0?e("div",{staticClass:"filter-content-box ",class:{off:t.isShowCountryOff}},[e("div",{staticClass:"filter-content-h1 clearfix"},[e("div",{staticClass:"filter-name"},[t._v("国家")]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:""!=t.countryName,expression:"countryName != ''"}],staticClass:"filter-select",attrs:{id:"filterCountry"}},[t._v(t._s(t.countryName))]),t._v(" "),e("i",{directives:[{name:"show",rawName:"v-show",value:t.isShowCountryIcon,expression:"isShowCountryIcon"}],staticClass:"icon",class:t.countryIcon,on:{click:function(n){t.handleIcon(0)}}})]),t._v(" "),e("ul",{staticClass:"clearfix",attrs:{id:"filter-country"}},t._l(t.filterData.countries,function(n,i){return e("li",{key:n.id,class:t.country==n.id||t.selectBrandCountry==n.id?"on":"",on:{click:function(e){t.handleCountry(n.id,n.name)}}},[e("div",{staticClass:"tab-box",domProps:{innerHTML:t._s(n.name)}})])}))]):t._e(),t._v(" "),t.filterData.brands.length>0?e("div",{staticClass:"filter-content-box",class:{off:t.isShowBrandOff}},[e("div",{staticClass:"filter-content-h1 clearfix"},[e("div",{staticClass:"filter-name"},[t._v("品牌")]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:0!=t.brand&&""!=t.brandName,expression:"brand != 0 && brandName != ''"}],staticClass:"filter-select",attrs:{id:"filterCategory"}},[t._v(t._s(t.brandName))]),t._v(" "),e("i",{directives:[{name:"show",rawName:"v-show",value:t.isShowBrandIcon,expression:"isShowBrandIcon"}],staticClass:"icon",class:t.brandIcon,on:{click:function(n){t.handleIcon(1)}}})]),t._v(" "),e("ul",{staticClass:"clearfix",attrs:{id:"filter-category"}},t._l(t.filterData.brands,function(n,i){return e("li",{directives:[{name:"show",rawName:"v-show",value:0==t.country||t.country==n.countryId,expression:"country == 0 || country == item.countryId"}],class:0!=t.country&&t.country!=n.countryId||t.brand!=n.brandId?"":"on",on:{click:function(e){t.handleBrand(n.brandId,n.countryId,n.brandName)}}},[e("div",{staticClass:"tab-box",domProps:{innerHTML:t._s(n.brandName)}})])}))]):t._e(),t._v(" "),e("div",{staticClass:"filter-content-box"},[e("ul",{staticClass:"clearfix",attrs:{id:"changestock"}},[e("li",{class:{on:t.stock},on:{click:t.handleFixed}},[e("div",{staticClass:"tab-box"},[t._v("仅看有货")])])])])]):t._e(),t._v(" "),e("div",{staticClass:"bottom-btn"},[e("div",{staticClass:"btn btn-reset",on:{click:t.handleReset}},[t._v("重置")]),t._v(" "),e("div",{staticClass:"btn btn-determine",on:{click:t.handleConfirm}},[t._v("确定")])])])])},staticRenderFns:[]};var u=e("VU/8")(h,f,!1,function(t){e("gqy2")},"data-v-db77dcfa",null).exports,b=e("dyS1"),v=e("nocF"),g={name:"home",data:function(){return{tip:"",ajaxData:null,keyword:"",isShowSearch:!1,overHidden:!1,page:1,country:0,brand:0,fixed:0,stock:0,order:0,isShowFilterBar:!1,filterData:null,dialogCom:{},dialogNotice:{},tips:!1,headerStyle:{top:0},off:!0}},mounted:function(){this.keyword=this.$route.query.keyword,this.init(),o.default.tongji(this.ENVIRONMENT)},activated:function(){this.order=localStorage.getItem("searchType"),window.addEventListener("scroll",this.scrollBottom)},deactivated:function(){this.closeFileter(),window.removeEventListener("scroll",this.scrollBottom)},watch:{$route:function(t,n){this.keyword=this.$route.query.keyword,t.query.keyword&&(localStorage.setItem("searchType",0),this.init())}},computed:{isShowSearchList:function(){var t=this.ajaxData;return!(null==t||!this.countObjectSize(t)||!this.countObjectSize(t))},filterType:function(){return this.order}},methods:{init:function(){this.showLoading("请稍后"),this.page=1,this.country=0,this.brand=0,this.fixed=0,this.order=0,this.ajaxIndex(this.showSearchList)},ajaxIndex:function(t){var n=this;n.off=!1;var e={page:this.page,country:this.country,brand:this.brand,keyword:this.keyword,order:this.order,stock:this.stock};if(""==this.keyword)return!1;r.a.ajaxListSearch(e,function(e){n.closeDialogCom(),n.tip=e.data.origwords,n.$store.commit("updateLogin",e.data.isLogin),t&&t(e)})},showSearchList:function(t){var n=this;0===t.code?(n.ajaxData=t.data.items,setTimeout(function(){n.off=!0},500),countObjectSize(t.data)&&countObjectSize(t.data.items)?n.isShowSearch=!0:(n.isShowSearch=!1,n.ajaxData={})):(n.isShowSearch=!1,n.ajaxData={})},ajaxFilterSearch:function(t){var n=this,e=this,i={keyword:this.keyword};this.showLoading("请稍后"),r.a.ajaxFilterSearch(i,function(t){e.closeDialogCom(),0===t.code?(e.filterData=t.data,e.isShowFilterBar=!0,e.bodyClass(n.isShowFilterBar)):e.showDialogCom({type:"alert",content:t.msg})})},handleFilterConfirm:function(t){this.country=t.country,this.brand=t.brand,this.stock=t.stock,this.page=1,this.showLoading("请稍后"),this.closeFileter(),this.ajaxIndex(this.showSearchList)},handleFilter:function(){this.ajaxFilterSearch()},closeFileter:function(){this.isShowFilterBar=!1,this.bodyClass(this.isShowFilterBar)},handleOrderSearch:function(t){this.order=t,this.page=1,this.showLoading("请稍后"),this.ajaxIndex(this.showSearchList),localStorage.setItem("searchType",0)},bodyClass:function(t){var n=document.getElementsByTagName("html")[0],e=document.getElementsByTagName("body")[0];n.className=this.toggleClass(t,"overHidden"),e.className=this.toggleClass(t,"overHidden")},toggleClass:function(t,n){return t?n:""},scrollBottom:function(){var t=this,n=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop;if(window.screen.height+n>=document.body.clientHeight){if(0==t.page||0==t.off)return!1;this.tips=!0,this.page++,this.ajaxIndex(function(n){0==n.code?(t.tips=!1,t.countObjectSize(n.data.items)>0?(t.ajaxData=a()({},t.ajaxData,n.data.items),setTimeout(function(){t.off=!0},500)):(0==n.data.total&&(t.page=0),t.off=!0)):(t.page=0,t.off=!0)})}1!=this.$store.state.headerDown||(this.headerStyle=n<55?{top:"-"+n+"px"}:{top:"-55px"})},ajaxSearchUpdate:function(t){var n=(new Date).getTime(),e='[["'+this.keyword+'",'+n+"]]";r.a.ajaxSearchUpdate({words:e},function(n){0==n.code&&t&&t()})}},components:{HeaderHome:s.a,SortFilter:d,FilterBar:u,ProductItem:b.a,FootAll:v.a}},m={render:function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{directives:[{name:"wechat-title",rawName:"v-wechat-title",value:t.$route.meta.title,expression:"$route.meta.title"}],staticClass:"warp"},[e("header-home",{attrs:{tip:t.tip,type:"search",searchkeyword:t.tip,isShowBack:!0}}),t._v(" "),t.isShowSearchList?e("sort-filter",{style:t.headerStyle,attrs:{proType:t.filterType},on:{handleOrderSearch:t.handleOrderSearch,handleFilter:t.handleFilter}}):t._e(),t._v(" "),e("filter-bar",{directives:[{name:"show",rawName:"v-show",value:t.isShowFilterBar,expression:"isShowFilterBar"}],attrs:{filterData:t.filterData},on:{closeFileter:t.closeFileter,handleFilterConfirm:t.handleFilterConfirm}}),t._v(" "),e("section",{staticClass:"contentbox mt92"},[t.isShowSearchList?e("ul",{staticClass:"product-list clearfix"},[e("product-item",{attrs:{items:t.ajaxData}})],1):t._e(),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.tips,expression:"tips"}],staticClass:"alliLoading"}),t._v(" "),null!=t.ajaxData&&0==t.countObjectSize(t.ajaxData)?e("div",{staticClass:"null_list"},[e("img",{attrs:{src:t.JS_DOMAIN+"/m/static/global/images/1.0.0/empty-list.png"}}),t._v(" "),e("div",{staticClass:"tishiyu"},[t._v("抱歉！暂无相关商品")]),t._v(" "),e("router-link",{attrs:{to:"/"}},[e("div",{staticClass:"btn btn-white-large"},[t._v("回首页逛逛")])])],1):t._e()]),t._v(" "),e("foot-all"),t._v(" "),e("dialog-com",{attrs:{dialog:t.dialogCom}}),t._v(" "),e("dialog-notice",{attrs:{dialog:t.dialogNotice}}),t._v(" "),e("back-pagtop")],1)},staticRenderFns:[]};var p=e("VU/8")(g,m,!1,function(t){e("4rsT")},null,null);n.default=p.exports},vQrx:function(t,n,e){var i=e("Q14n");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);e("rjj0")("7bfa05ec",i,!0,{})}});