(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy/productFilter/productFilter"],{"14b8":function(t,i,e){"use strict";e.r(i);var n=e("f6bc"),o=e.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){e.d(i,t,(function(){return n[t]}))}(a);i["default"]=o.a},"5c14":function(t,i,e){"use strict";var n=e("a951"),o=e.n(n);o.a},"602c":function(t,i,e){"use strict";e.d(i,"b",(function(){return o})),e.d(i,"c",(function(){return a})),e.d(i,"a",(function(){return n}));var n={uTabs:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uview-ui/components/u-tabs/u-tabs")]).then(e.bind(null,"614b"))},uEmpty:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uview-ui/components/u-empty/u-empty")]).then(e.bind(null,"f174"))},uRate:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uview-ui/components/u-rate/u-rate")]).then(e.bind(null,"e969"))},uLoadmore:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uview-ui/components/u-loadmore/u-loadmore")]).then(e.bind(null,"4c80"))}},o=function(){var t=this,i=t.$createElement,e=(t._self._c,{fontFamily:"PingFang SC Heavy",fontWeight:"900",fontSize:"38rpx",textAlign:"left",color:t.options.style.titleColor}),n=t.list.length,o=t.__map(t.list,(function(i,e){var n=t.__get_orig(i),o=i.price.toString().length,a=o>8?null:i.price.toString().length;return{$orig:n,g1:o,g2:a}})),a=t.list.length;t.$mp.data=Object.assign({},{$root:{a0:e,g0:n,l0:o,g3:a}})},a=[]},"7ba9":function(t,i,e){"use strict";e.r(i);var n=e("602c"),o=e("14b8");for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(i,t,(function(){return o[t]}))}(a);e("5c14");var u=e("828b"),r=Object(u["a"])(o["default"],n["b"],n["c"],!1,null,"71425a7e",null,!1,n["a"],void 0);i["default"]=r.exports},a951:function(t,i,e){},f6bc:function(t,i,e){"use strict";(function(t){var n=e("47a9");Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var o=n(e("af34")),a={props:{options:{type:Object,default:function(){return{name:"productFilter",style:{pdt:10,pdb:10,pdlr:15,mgt:0,mglr:0}}}}},name:"productFilter",data:function(){return{icoUrl:this.$icoUrl+"newui/mobile/",activeTabIndex:0,status:"loadmore",page:1,category_id:"",attr:1,activeAttrIndex:0,list:[],category_list:[],attr_list:[{name:"推荐",id:1},{name:"新品",id:2},{name:"热卖",id:3}],isMounted:!1}},created:function(){this.getList()},mounted:function(){this.isMounted=!0},watch:{options:{handler:function(t){t.data.category_list&&t.data.category_list.length>0&&(this.category_list=[{title:"全部",id:""}].concat((0,o.default)(t.data.category_list)))},immediate:!0},"list.length":{handler:function(i){this.$nextTick((function(){t.$emit("refreshHeight")}))}}},methods:{switchTab:function(t){this.category_id=t.id,this.page=1,this.getList()},switchAttr:function(t,i){this.activeAttrIndex!==i&&(this.activeAttrIndex=i,this.attr=t.id,this.page=1,this.getList())},jumpToDetail:function(t){this.$util.jump("/pages/goods/detail?id="+t.id)},handleAction:function(t){this.$util.jump("/pages/goods/detail?id="+t.id)},getList:function(){var t=this;if("loading"!=this.status){if(!this.attr)try{this.attr=this.attr_list[this.activeAttrIndex].id||1}catch(i){this.attr=1}this.status="loading",this.$util.get("goods/goods/list",{page:this.page,category_id:this.category_id,attr:this.attr},!1).then((function(i){t.status="loadmore",1==t.page&&(t.list=[]),1==i.code&&(t.list=[].concat((0,o.default)(t.list),(0,o.default)(i.data)),t.page++),i.data.length<12&&(t.status="nomore")})).catch((function(i){1==t.page&&(t.list=[]),t.loading=!1,t.isInit=!1}))}}}};i.default=a}).call(this,e("df3c")["default"])}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/diy/productFilter/productFilter-create-component',
    {
        'components/diy/productFilter/productFilter-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("7ba9"))
        })
    },
    [['components/diy/productFilter/productFilter-create-component']]
]);
