You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
4.7 KiB
11 lines
4.7 KiB
3 months ago
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/components/menus"],{"26e9":function(t,n,i){"use strict";var a=i("a6bb"),e=i.n(a);e.a},"41b4":function(t,n,i){"use strict";i.r(n);var a=i("a0ff"),e=i("73fa");for(var o in e)["default"].indexOf(o)<0&&function(t){i.d(n,t,(function(){return e[t]}))}(o);i("26e9");var r=i("828b"),l=Object(r["a"])(e["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);n["default"]=l.exports},"73fa":function(t,n,i){"use strict";i.r(n);var a=i("9bde"),e=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(n,t,(function(){return a[t]}))}(o);n["default"]=e.a},"9bde":function(t,n,i){"use strict";(function(t){var a=i("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e,o=a(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(){return this.dataConfig.menuConfig.list||[]},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}},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[2].val,"rpx ").concat(2*this.dataConfig.fillet.valList[3].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[2].val,"rpx ").concat(2*this.dataConfig.filletImg.valList[3].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,o.default)(e,"dotColor",(function(){return this.dataConfig.pointerBgColor.color[0].item})),(0,o.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,a=0;a<n;a++){var e=this.menus.slice(a*t,a*t+t);e.length&&i.push({list:e})}this.$set(this,"menuList",i)},menusTap:function(t){this.$util.JumpPath(t)}}};n.default=r}).call(this,i("df3c")["default"])},a0ff:function(t,n,i){"use strict";i.d(n,"b",(function(){return e})),i.d(n,"c",(function(){return o})),i.d(n,"a",(function(){return a}));var a={easyLoadimage:function(){return i.e("components/easy-loadimage/easy-loadimage").then(i.bind(null,"a9c6"))}},e=function(){var t=this,n=t.$createElement,i=(t._self._c,t.__get_style([t.boxStyle])),a=!t.isSortType&&t.menus.length,e=t.__get_style([t.boxContentStyle]),o=t.isShowConfig?t.__map(t.menuList,(function(n
|
||
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||
|
'pages/index/components/menus-create-component',
|
||
|
{
|
||
|
'pages/index/components/menus-create-component':(function(module, exports, __webpack_require__){
|
||
|
__webpack_require__('df3c')['createComponent'](__webpack_require__("41b4"))
|
||
|
})
|
||
|
},
|
||
|
[['pages/index/components/menus-create-component']]
|
||
|
]);
|