(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/components/menus"],{"1b7e":function(t,n,i){"use strict";var o=i("3a01"),e=i.n(o);e.a},"3a01":function(t,n,i){},a769:function(t,n,i){"use strict";i.d(n,"b",(function(){return e})),i.d(n,"c",(function(){return a})),i.d(n,"a",(function(){return o}));var o={easyLoadimage:function(){return i.e("components/easy-loadimage/easy-loadimage").then(i.bind(null,"1bea"))}},e=function(){var t=this,n=t.$createElement,i=(t._self._c,t.__get_style([t.boxStyle])),o=!t.isSortType&&t.menus.length,e=t.__get_style([t.boxContentStyle]),a=t.isShowConfig?t.__map(t.menuList,(function(n,i){var o=t.__get_orig(n),e=t.__get_style([t.gridColumns]),a=1!==t.menuStyleConfig?t.__get_style([t.textColor]):null;return{$orig:o,s2:e,s3:a}})):null,r=t.isShowConfig?null:t.__get_style([t.gridColumns]),l=t.isShowConfig?null:t.__map(t.menus,(function(n,i){var o=t.__get_orig(n),e=1!==t.menuStyleConfig?t.__get_style([t.textColor]):null;return{$orig:o,s5:e}})),u=t.menuList.length>1&&t.isShowConfig;t.$mp.data=Object.assign({},{$root:{s0:i,g0:o,s1:e,l0:a,s4:r,l1:l,g1:u}})},a=[]},a87e:function(t,n,i){"use strict";(function(t){var o=i("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e,a=o(i("7ca3")),r={name:"menus",props:{dataConfig:{type:Object,default:function(){}},isSortType:{type:String|Number,default:0}},data:function(){return{navHigh:0,menuList:[],active:0}},computed:(e={rowsNum:function(){return this.dataConfig.rowsNum.tabVal},number:function(){return this.dataConfig.number.tabVal},dotColor:function(){return this.dataConfig.pointerColor.color[0].item},menus:function(){var t=this.dataConfig.menuConfig.list||[],n=[];return t.forEach((function(t){t.show&&n.push(t)})),n},isShowConfig:function(){return this.dataConfig.showConfig.tabVal},boxStyle:function(){return{padding:"".concat(2*this.dataConfig.topConfig.val,"rpx ").concat(2*this.dataConfig.prConfig.val,"rpx ").concat(2*this.dataConfig.bottomConfig.val,"rpx"),marginTop:"".concat(2*this.dataConfig.mbConfig.val,"rpx"),background:this.dataConfig.bottomBgColor.color[0].item}},textColor:function(){return{color:this.dataConfig.textColor?this.dataConfig.textColor.color[0].item:"#333"}},boxContentStyle:function(){var t="".concat(2*this.dataConfig.fillet.val,"rpx");return this.dataConfig.fillet.type&&(t="".concat(2*this.dataConfig.fillet.valList[0].val,"rpx ").concat(2*this.dataConfig.fillet.valList[1].val,"rpx ").concat(2*this.dataConfig.fillet.valList[3].val,"rpx ").concat(2*this.dataConfig.fillet.valList[2].val,"rpx")),{borderRadius:t,background:"linear-gradient(90deg, ".concat(this.dataConfig.bgColor.color[0].item," 0%, ").concat(this.dataConfig.bgColor.color[1].item," 100%)")}},imgStyle:function(){var t="".concat(2*this.dataConfig.filletImg.val,"rpx");return this.dataConfig.filletImg.type&&(t="".concat(2*this.dataConfig.filletImg.valList[0].val,"rpx ").concat(2*this.dataConfig.filletImg.valList[1].val,"rpx ").concat(2*this.dataConfig.filletImg.valList[3].val,"rpx ").concat(2*this.dataConfig.filletImg.valList[2].val,"rpx")),t},gridColumns:function(){return 0==this.dataConfig.number.tabVal?{gridTemplateColumns:"repeat(3, 1fr)"}:1==this.dataConfig.number.tabVal?{gridTemplateColumns:"repeat(4, 1fr)"}:{gridTemplateColumns:"repeat(5, 1fr)"}},menuStyleConfig:function(){return this.dataConfig.menuStyleConfig.tabVal}},(0,a.default)(e,"dotColor",(function(){return this.dataConfig.pointerBgColor.color[0].item})),(0,a.default)(e,"dotSelectColor",(function(){return this.dataConfig.pointerColor.color[0].item})),e),mounted:function(){var t=this;this.getSwiperCount(),this.$nextTick((function(){if(t.menuList.length&&t.isShowConfig){var n=t;setTimeout((function(){n.menuHeight()}),150)}}))},methods:{getSwiperCount:function(){this.pageNum((this.rowsNum+1)*(this.number+3))},bannerfun:function(t){this.active=t.detail.current},menuHeight:function(){var n=this,i=t.createSelectorQuery().in(this);i.select("#nav0").boundingClientRect((function(t){n.navHigh=t.height})).exec()},pageNum:function(t){for(var n=Math.ceil(this.menus.length/t),i=new Array,o=0;o