(window.webpackJsonp=window.webpackJsonp||[]).push([[62],{694:function(t,e,n){t.exports={}},805:function(t,e,n){"use strict";n(694)},843:function(t,e,n){"use strict";n.r(e);n(42);var o=n(12),l=(n(97),n(61),n(579)),r=n.n(l),d=n(580),c={components:{InfiniteLoading:r.a},mixins:[d.a],data:function(){return{listLoading:!0,shopCarBall:!1,shopCarBallEl:null,ss:null}},watch:{},mounted:function(){return Object(o.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})))()},methods:{addCompareList:function(t){this.shopCarBallEl=t,this.shopCarBall=!0},beforeEnter:function(t){var e=this.shopCarBallEl.getBoundingClientRect(),n=document.querySelector(".compare-list").getBoundingClientRect(),o=n.left-e.left,l=e.top-n.top-20;t.style.display="",t.style.transform="translate3D( -".concat(o,"px,").concat(l,"px,0)")},enter:function(t,e){this.ss=document.body.offsetHeight,t.style.transform="translate3D( 0,0,0)",t.addEventListener("transitionend",e)},afterEnter:function(t){this.shopCarBall=!1,t.style.display="none"}}},h=(n(805),n(21)),component=Object(h.a)(c,(function(){var t,e=this,n=e._self._c;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"com-main",attrs:{"element-loading-text":"Loading"}},[n("div",{staticClass:"com-width-1400 com-margin-auto"},[n("div",{staticClass:"metal-hardPlastic"},[n("div",{staticClass:"metal-title"},[n("p",[e._v(e._s(null===(t=e.cate[0])||void 0===t?void 0:t.name))]),e._v(" "),n("div",[n("div",{staticClass:"sort"},[n("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleCommand}},[n("span",{staticClass:"el-dropdown-link"},[e._v("\n                Sort by "+e._s(e.command)+"\n                "),n("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.commandList,(function(t){return n("el-dropdown-item",{key:t.label,attrs:{command:t.value}},[e._v(e._s(t.label)+"\n                ")])})),1)],1)],1)])]),e._v(" "),n("div",{staticClass:"metal-content"},[n("div",{staticClass:"metal-content-left"},[n("category-filter",{attrs:{leadTimeList:e.leadTimeList,colourList:e.colourList,collectionsList:e.collectionsList,complianceList:e.complianceList,featureList:e.featureList,decorationList:e.decorationList,priceRange1:e.priceRange1,priceRange2:e.priceRange2},on:{reset:e.reset,getList:e.getList,handleChangeColor:e.handleChangeColor,handleChangeFeature:e.handleChangeFeature,handleChangePrice:e.handleChangePrice,handleChangeCollection:e.handleChangeCollection,handleChangeCompliance:e.handleChangeCompliance,handleChangeDecoration:e.handleChangeDecoration,handleChangeLeadtime:e.handleChangeLeadtime,handleChangeQuantity:e.handleChangeQuantity}})],1),e._v(" "),e.listLoading?n("div",{staticClass:"metal-content-right"}):e._e(),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.cardList.length>0&&!e.listLoading,expression:"cardList.length > 0 && !listLoading"}],staticClass:"metal-content-right"},[n("div",{staticClass:"metal-content-right-item"},[e._l(e.cardList,(function(t,o){return n("card",{key:parseInt(o),staticClass:"card",attrs:{cardData:t},on:{addCompare:e.addCompareList}})})),e._v(" "),n("transition",{on:{"before-enter":e.beforeEnter,enter:e.enter,"after-enter":e.afterEnter}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.shopCarBall,expression:"shopCarBall"}],ref:"ball",staticClass:"ball"},[n("div",{staticClass:"linner_ball"})])])],2),e._v(" "),n("infinite-loading",{staticClass:"infinite-loading-wrap",attrs:{spinner:"spiral",identifier:e.computedProductList,distance:200},on:{infinite:e.infiniteHandler},scopedSlots:e._u([{key:"error",fn:function(t){var o=t.trigger;return n("div",{},[e._v("\n              Error Data, click\n              "),n("a",{attrs:{href:"javascript:;"},on:{click:o}},[e._v("here")]),e._v("\n              toretry\n            ")])}}])},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:!0,expression:"true"}],attrs:{slot:"spinner","element-loading-text":"Loading","element-loading-spinner":"el-icon-loading"},slot:"spinner"}),e._v(" "),n("div",{staticClass:"loading-text",attrs:{slot:"no-more"},slot:"no-more"})])],1),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:0===e.cardList.length&&!e.listLoading,expression:"cardList.length === 0 && !listLoading"}],staticClass:"metal-content-right-item empty"},[n("category-no-data")],1)])])])])}),[],!1,null,"90a00aac",null);e.default=component.exports;installComponents(component,{CategoryFilter:n(575).default,Card:n(550).default,CategoryNoData:n(576).default})}}]);
//# sourceMappingURL=2eca1f9.js.map