(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/cate-two/cate-two"],{"0674":function(t,e,n){"use strict";var o=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n("7eb4")),i=o(n("7ca3")),a=o(n("af34")),s=o(n("ee10")),c=n("c2cb"),u=n("8f59"),f=n("f4fb");function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}var l={name:"cate-two",props:{cateList:{type:Array,default:function(){return[]}}},data:function(){return{selectIndex:0,cateTwoList:[],goodsList:[],sortConfig:{goodsType:"double",priceSort:"",saleSort:""},status:f.loadingType.LOADING,hasData:!0}},methods:{changeActive:function(t){this.selectIndex=t},getListByLevelOneFun:function(){var t=this;return(0,s.default)(r.default.mark((function e(){var n,o,i,a,s,u;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.selectIndex,o=t.cateList,o.length){e.next=3;break}return e.abrupt("return");case 3:return i=o[n].id,e.next=6,(0,c.getListByLevelOne)({id:i});case 6:a=e.sent,s=a.code,u=a.data,1==s&&(t.cateTwoList=u);case 10:case"end":return e.stop()}}),e)})))()},getGoodsListFun:function(){var t=this,e=this.page,n=this.cateList,o=this.status,r=this.selectIndex,i=this.goodsList,s=this.sortConfig,u=s.priceSort,d=s.saleSort;if(n.length){var l=n[r].id;o!=f.loadingType.FINISHED&&4!=this.appConfig.cate_style&&(0,c.getGoodsList)({page_no:e,platform_cate_id:l,sort_by_price:u,sort_by_sales:d}).then((function(e){if(1==e.code){var n=e.data,o=n.more,r=n.lists;if(i.push.apply(i,(0,a.default)(r)),t.page++,o||(t.status=f.loadingType.FINISHED),i.length<=0)return void(t.status=f.loadingType.EMPTY)}else t.status=f.loadingType.ERROR}))}},onRefresh:function(){this.status=f.loadingType.LOADING,this.page=1,this.goodsList=[],this.getGoodsListFun()}},watch:{selectIndex:function(){1==this.appConfig.cate_style?this.onRefresh():this.getListByLevelOneFun()},cateList:{immediate:!0,handler:function(t){this.hasData=!!t.length,1==this.appConfig.cate_style?this.onRefresh():this.getListByLevelOneFun()}},"sortConfig.saleSort":function(){this.onRefresh()},"sortConfig.priceSort":function(){this.onRefresh()}},computed:function(t){for(var e=1;e