(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-productcategory-productcategory"],{2423:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var a={uniSearchBar:i("9c0f").default},n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"pages producttype-wrap"},[i("v-uni-view",{staticClass:"producttype"},[i("v-uni-view",{staticClass:"producttype-nav"},t._l(t.navitem,(function(e,a){return i("v-uni-view",{key:a,staticClass:"producttype-nav-item",class:{active:a==t.ins},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.typeclick(a)}}},[t._v(t._s(e.name))])})),1),i("v-uni-view",{staticClass:"producttype-con"},[i("v-uni-view",{staticClass:"search"},[i("v-uni-view",{staticClass:"searchTxt"},[i("uni-search-bar",{attrs:{placeholder:t.searchtxt},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.search.apply(void 0,arguments)}}})],1)],1),i("v-uni-view",{staticClass:"search-typelist"},t._l(t.typelist,(function(e,a){return i("v-uni-view",{key:a,staticClass:"search-typelist-item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.publishtype(e.id,e.name)}}},[i("v-uni-view",{staticClass:"search-typelist-item-serial"},[t._v(t._s(a+1))]),i("v-uni-view",{staticClass:"search-typelist-item-name"},[t._v(t._s(e.name))])],1)})),1)],1)],1)],1)},o=[]},"2e01":function(t,e,i){var a=i("b61e");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("172d2cb3",a,!0,{sourceMap:!1,shadowMode:!1})},5015:function(t,e,i){"use strict";i.r(e);var a=i("2423"),n=i("c2ca");for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("ece5");var s,c=i("f0c5"),r=Object(c["a"])(n["default"],a["b"],a["c"],!1,null,"76900d93",null,!1,a["a"],s);e["default"]=r.exports},b61e:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'.producttype-wrap[data-v-76900d93] .uni-searchbar__box{-webkit-box-pack:left;-webkit-justify-content:left;justify-content:left;border-color:#6bbc6d;border-radius:%?50?%!important;background-color:#fff!important}.producttype-wrap[data-v-76900d93] .uni-searchbar{padding-left:0}.producttype[data-v-76900d93]{display:-webkit-box;display:-webkit-flex;display:flex;background:#fff}.producttype-nav[data-v-76900d93]{width:%?200?%;height:100%;box-sizing:border-box;background-color:#f6f6f9;overflow-y:auto;position:fixed;left:0;bottom:0;top:calc(44px + env(safe-area-inset-top))}.producttype-nav-item[data-v-76900d93]{position:relative;padding:%?29?% 0;box-sizing:border-box;text-align:center;font-size:%?30?%;font-weight:500;color:#333;line-height:%?42?%}.producttype-nav-item.active[data-v-76900d93]{background-color:#fff;color:#6bbc6d}.producttype-nav-item.active[data-v-76900d93]::before{content:"";position:absolute;left:0;top:50%;margin-top:%?-15?%;width:%?6?%;height:%?30?%;background:#6bbc6d;border-radius:3px}.producttype-con[data-v-76900d93]{position:relative;-webkit-box-flex:1;-webkit-flex:1;flex:1;margin:0 0 0 %?237?%;padding-top:%?20?%}.search-typelist-item[data-v-76900d93]{display:-webkit-box;display:-webkit-flex;display:flex;margin-left:%?22?%;height:%?84?%;-webkit-box-align:center;-webkit-align-items:center;align-items:center;border-bottom:1px solid #eee}.search-typelist-item-serial[data-v-76900d93]{margin-right:%?24?%;padding:%?5?% %?13?%;min-width:%?35?%;text-align:center;background-color:#6bbc6d;color:#fff}.search-typelist-item-name[data-v-76900d93]{font-size:%?24?%}',""]),t.exports=e},c2ca:function(t,e,i){"use strict";i.r(e);var a=i("d384"),n=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},d384:function(t,e,i){"use strict";var a=i("4ea4");i("99af"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("9c0f")),o={components:{uniSearchBar:n.default},data:function(){return{params:{token:""},searchtxt:"产品名称",ins:0,navitem:[],typelist:[],nowtype:""}},onShow:function(){},onLoad:function(){var t=this;this.nowtype=this.navitem[this.ins],this.params.product=this.nowtype,this.$api.http.get(this.config.apiBaseurl+"/product/categoryTreeList").then((function(e){console.log("产品分类",e),t.navitem=e.data.data,t.nowtype=t.navitem[t.ins].name,t.searchtxt=t.navitem[t.ins].name,t.typelist=t.navitem[t.ins].children})).catch((function(t){console.log(t)}))},methods:{search:function(t){uni.navigateTo({url:"/pages/searchresults/searchresults?keyword=".concat(t.value)})},typeclick:function(t){this.ins=t,this.nowtype=this.navitem[t],this.searchtxt=this.navitem[this.ins].name,this.typelist=this.navitem[this.ins].children},publishtype:function(t,e){uni.navigateTo({url:"/pages/searchresults/searchresults?productCategoryId=".concat(t,"&name=").concat(e)})}}};e.default=o},ece5:function(t,e,i){"use strict";var a=i("2e01"),n=i.n(a);n.a}}]);