(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/homeIndex/menus"],{"261b":function(t,n,e){},6877:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i={name:"menus",props:{dataConfig:{type:Object,default:function(){}}},components:{easyLoadimage:function(){Promise.all([e.e("common/vendor"),e.e("components/base/easy-loadimage")]).then(function(){return resolve(e("0dff"))}.bind(null,e)).catch(e.oe)}},data:function(){return{interval:3e3,duration:500,menus:this.dataConfig.menuConfig.list||[],rowsNum:this.dataConfig.rowsNum.tabVal,number:this.dataConfig.number.tabVal,isMany:this.dataConfig.tabConfig.tabVal,docConfig:0,dotColor:"#E93323",menuList:[],active:0,navHigh:0}},computed:{boxStyle:function(){return{borderRadius:2*this.dataConfig.bgStyle.val+"rpx",background:"linear-gradient(".concat(this.dataConfig.bgColor.color[0].item,", ").concat(this.dataConfig.bgColor.color[1].item,")"),margin:2*this.dataConfig.mbConfig.val+"rpx "+2*this.dataConfig.lrConfig.val+"rpx 0",padding:2*this.dataConfig.upConfig.val+"rpx 0 "+2*this.dataConfig.downConfig.val+"rpx"}},gridColumns:function(){return 0==this.dataConfig.number.tabVal?{gridRowGap:2*this.dataConfig.contentConfig.val+"rpx",gridTemplateColumns:"repeat(3, 1fr)"}:1==this.dataConfig.number.tabVal?{gridRowGap:2*this.dataConfig.contentConfig.val+"rpx",gridTemplateColumns:"repeat(4, 1fr)"}:{gridRowGap:2*this.dataConfig.contentConfig.val+"rpx",gridTemplateColumns:"repeat(5, 1fr)"}},titleColor:function(){return{color:this.dataConfig.titleColor.color[0].item}},menuStyle:function(){return{"border-radius":this.dataConfig.contentStyle.val+"px"}}},mounted:function(){var t=this;0===this.rowsNum?0===this.number?this.pageNum(6):1===this.number?this.pageNum(8):this.pageNum(10):1===this.rowsNum?0===this.number?this.pageNum(9):1===this.number?this.pageNum(12):this.pageNum(15):0===this.number?this.pageNum(12):1===this.number?this.pageNum(16):this.pageNum(20),this.$nextTick((function(){if(t.menuList.length&&1===t.isMany){var n=t;setTimeout((function(){n.menuHeight()}),150)}}))},methods:{bannerfun:function(t){this.active=t.detail.current},menuHeight:function(){var n=this,e=t.createSelectorQuery().in(this);e.select("#nav0").boundingClientRect((function(t){n.navHigh=t.height})).exec()},pageNum:function(t){for(var n=this.menus.filter((function(t){return t.status})),e=Math.ceil(n.length/t),i=new Array,a=0;a<e;a++){var o=n.slice(a*t,a*t+t);o.length&&i.push({list:o})}this.$set(this,"menuList",i)},menusTap:function(t){this.$util.navigateTo(t)}}};n.default=i}).call(this,e("df3c")["default"])},7634:function(t,n,e){"use strict";e.r(n);var i=e("f506"),a=e("addc");for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(o);e("e3d3");var r=e("828b"),u=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"b7d66f36",null,!1,i["a"],void 0);n["default"]=u.exports},addc:function(t,n,e){"use strict";e.r(n);var i=e("6877"),a=e.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(o);n["default"]=a.a},e3d3:function(t,n,e){"use strict";var i=e("261b"),a=e.n(i);a.a},f506:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){}));var i=function(){var t=this,n=t.$createElement,e=(t._self._c,t.__get_style([t.boxStyle])),i=t.menus.length,a=1===t.isMany?t.__map(t.menuList,(function(n,e){var i=t.__get_orig(n),a=t.__get_style([t.gridColumns]),o=t.__get_style([t.titleColor]);return{$orig:i,s1:a,s2:o}})):null,o=1===t.isMany?t.docConfig<2&&t.menuList.length>1:null,r=1!==t.isMany?t.__map(t.menus,(function(n,e){var i=t.__get_orig(n),a=n.status?t.__get_style([t.titleColor]):null;return{$orig:i,s3:a}})):null;t.$mp.data=Object.assign({},{$root:{s0:e,g0:i,l0:a,g1:o,l1:r}})},a=[]}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/homeIndex/menus-create-component',
    {
        'components/homeIndex/menus-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("7634"))
        })
    },
    [['components/homeIndex/menus-create-component']]
]);
