(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods_cate/template/template1"],{"106d":function(t,e,i){"use strict";i.r(e);var n=i("3c27"),r=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=r.a},"203b":function(t,e,i){"use strict";i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var n={easyLoadimage:function(){return i.e("components/easy-loadimage/easy-loadimage").then(i.bind(null,"94dd"))}},r=function(){var t=this,e=t.$createElement,i=(t._self._c,2!=t.level&&3==t.level?t.productList.length:null),n=2!=t.level&&3==t.level?t.productList.length:null,r=2!=t.level&&3==t.level&&n?t.__map(t.productList[t.navActive].children,(function(e,i){var n=t.__get_orig(e),r=e.children&&e.children.length;return{$orig:n,g2:r}})):null,o=t.showCateDrawer&&3==t.level?t.productList[t.navActive].children.length:null;t.$mp.data=Object.assign({},{$root:{g0:i,g1:n,l0:r,g3:o}})},o=[]},"221b":function(t,e,i){},"3c27":function(t,e,i){"use strict";(function(t){var n=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(i("7ca3")),o=i("0f73"),a=(i("360a"),i("8f59"));function c(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}var l=t.getWindowInfo().statusBarHeight,u=(getApp(),{props:{level:{type:Number,default:2},isFooter:{type:Boolean,default:!1}},data:function(){return{navlist:[],productList:[],navActive:0,toView:"",levelThreeToView:"",tabbarH:0,footH:0,windowHeight:0,pageHeight:"100%",sysHeight:l,footerStatus:!1,lock:!1,tapNavTimer:null,scrollTimer:null,tabClick:0,showCateDrawer:!1}},computed:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?c(Object(i),!0).forEach((function(e){(0,r.default)(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):c(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({},(0,a.mapState)({cartNum:function(t){return t.indexData.cartNum}})),mounted:function(){this.getAllCategory()},beforeDestroy:function(){this.tapNavTimer&&(clearTimeout(this.tapNavTimer),this.tapNavTimer=null),this.scrollTimer&&(clearTimeout(this.scrollTimer),this.scrollTimer=null)},methods:{footHeight:function(t){this.footH=t},closeCateDrawer:function(){this.showCateDrawer=!1},openCateDrawer:function(){this.showCateDrawer=!0},longClick:function(t,e){var i=this;this.tabClick=t,this.levelThreeToView="",this.$nextTick((function(){i.levelThreeToView="c"+t})),this.showCateDrawer=!1},tapNav:function(e,i){var n=this;this.navActive=e,this.lock=!0,this.toView="",this.$nextTick((function(){n.toView=i})),this.tapNavTimer&&clearTimeout(this.tapNavTimer),this.tapNavTimer=setTimeout((function(){n.lock=!1}),500),t.$emit("scroll")},getAllCategory:function(){var t=this;(0,o.getCategoryList)().then((function(e){t.productList=e.data}))},scroll:function(e){var i=this;t.$emit("scroll"),this.lock||(this.scrollTimer&&clearTimeout(this.scrollTimer),this.scrollTimer=setTimeout((function(){i.updateNavActiveByScroll()}),50))},updateNavActiveByScroll:function(){var e=this;this.productList.length&&this.$nextTick((function(){var i=t.createSelectorQuery().in(e);i.select(".conterScroll").boundingClientRect(),e.productList.forEach((function(t,e){i.select("#b"+e).boundingClientRect()})),i.exec((function(t){if(t&&!(t.length<=1)&&t[0]){var i=t[0].top||0,n=0,r=1/0;t.slice(1).forEach((function(t,e){if(t&&void 0!==t.top){var o=Math.abs(t.top-i);t.top-i<=100&&o<r&&(r=o,n=e)}})),e.navActive!==n&&(e.navActive=n)}}))}))},scrollLevelThree:function(){t.$emit("scroll")},searchSubmitValue:function(e){if(!(this.$util.trim(e.detail.value).length>0))return this.$util.Tips({title:"请填写要搜索的产品信息"});t.navigateTo({url:"/pages/goods/goods_list/index?searchValue="+e.detail.value})},goSearch:function(){t.navigateTo({url:"/pages/goods/goods_search/index"})},goPage:function(e,i){1==e?t.navigateTo({url:i}):2==e?t.switchTab({url:i}):3==e&&t.navigateBack()}}});e.default=u}).call(this,i("df3c")["default"])},"3f30":function(t,e,i){},"40f3":function(t,e,i){"use strict";i.r(e);var n=i("203b"),r=i("106d");for(var o in r)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return r[t]}))}(o);i("5e75"),i("641a");var a=i("828b"),c=Object(a["a"])(r["default"],n["b"],n["c"],!1,null,"720a6982",null,!1,n["a"],void 0);e["default"]=c.exports},"5e75":function(t,e,i){"use strict";var n=i("221b"),r=i.n(n);r.a},"641a":function(t,e,i){"use strict";var n=i("3f30"),r=i.n(n);r.a}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'pages/goods_cate/template/template1-create-component',
    {
        'pages/goods_cate/template/template1-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("40f3"))
        })
    },
    [['pages/goods_cate/template/template1-create-component']]
]);
