徐总多门店
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

3 months ago
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/components/tabNav"],{"0095":function(t,a,o){},"563f":function(t,a,o){"use strict";var e=o("0095"),i=o.n(e);i.a},"9c24":function(t,a,o){"use strict";o.r(a);var e=o("b0f7"),i=o("f388");for(var n in i)["default"].indexOf(n)<0&&function(t){o.d(a,t,(function(){return i[t]}))}(n);o("563f");var r=o("828b"),c=Object(r["a"])(i["default"],e["b"],e["c"],!1,null,null,null,!1,e["a"],void 0);a["default"]=c.exports},b0f7:function(t,a,o){"use strict";o.d(a,"b",(function(){return e})),o.d(a,"c",(function(){return i})),o.d(a,"a",(function(){}));var e=function(){var t=this,a=t.$createElement,o=(t._self._c,t.__get_style([t.tabNavStyle])),e=t.__get_style([t.tabNavBgColor]),i=2!=t.dataConfig.styleConfig.tabVal?t.__get_style([t.lineStyle]):null,n=t.__map(t.tabListConfig,(function(a,o){var e=t.__get_orig(a),i=t.__get_style([o==t.tabClick?t.textStyle:{}]);return{$orig:e,s2:i}}));t.$mp.data=Object.assign({},{$root:{s0:o,s1:e,s3:i,l0:n}})},i=[]},de0a:function(t,a,o){"use strict";(function(t){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var e=o("ce7e"),i=o("a230"),n={name:"tabNav",props:{dataConfig:{type:Object,default:function(){}},isFixed:{type:Boolean|String|Number,default:!1},fromType:{type:Number,default:0}},data:function(){return{tabTitle:[],tabLeft:0,isWidth:0,tabClick:0,isLeft:0,fixedTop:0,isTop:0,navHeight:45,tabList:45}},computed:{lineStyle:function(){var t={};if(this.dataConfig.toneConfig.tabVal)switch(this.dataConfig.styleConfig.tabVal){case 0:t["background"]="linear-gradient(90deg, ".concat(this.dataConfig.decorateColor.color[0].item," 0%, ").concat(this.dataConfig.decorateColor.color[1].item," 100%)");break;case 1:t["border-bottom-color"]=this.dataConfig.decorateColor2.color[0].item;break}return t},textStyle:function(){var t={};if(this.dataConfig.toneConfig.tabVal)switch(this.dataConfig.styleConfig.tabVal){case 0:t["color"]=this.dataConfig.textColor.color[0].item;break;case 1:t["color"]=this.dataConfig.textColor2.color[0].item;break;case 2:t["background"]="linear-gradient(90deg, ".concat(this.dataConfig.decorateColor.color[0].item," 0%, ").concat(this.dataConfig.decorateColor.color[1].item," 100%)"),t["color"]=this.dataConfig.textColor3.color[0].item;break}return t},tabNavBgColor: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")),{"border-radius":t,background:"linear-gradient(90deg, ".concat(this.dataConfig.moduleColor.color[0].item," 0%, ").concat(this.dataConfig.moduleColor.color[1].item," 100%)")}},tabNavStyle:function(){return{padding:"".concat(2*this.dataConfig.topConfig.val,"rpx ").concat(2*this.dataConfig.prConfig.val,"rpx ").concat(2*this.dataConfig.bottomConfig.val,"rpx"),"margin-top":"".concat(2*this.dataConfig.mbConfig.val,"rpx")}},tabListConfig:function(){var t=this.dataConfig.tabListConfig.list;return t.unshift({classPage:{id:0},dataType:{tabVal:0},microPage:{id:0},text:{val:"首页"}}),t}},created:function(){var a=this;a.getAllCategory(),t.getSystemInfo({success:function(t){a.isWidth=t.windowWidth/5}})},methods:{longClick:function(t,a){this.tabTitle.length>5&&(this.tabLeft=(a-2)*this.isWidth),this.tabClick=a,this.isLeft=a*this.isWidth;var o={type:t.dataType.tabVal,microPage:t.microPage.id,classPage:t.classPage.id};this.$emit("bindSortId",o)},setCategory:function(a){a.unshift({id:-99,cate_name:"首页"}),this.tabTitle=a,this.isTop=t.getSystemInfoSync().statusBarHeight+43+"px"},getCategory:function(){var a=this;(0,e.getCategoryList)().then((function(o){t.setStorageSync("category",JSON.stringify(o.data)),a.setCategory(o.data)}))},getAllCategory:function(){var a=this,o=t.getStorageSync("category");o?(0,i.getCategoryVersion)().then((function(e){var i=t.getStorageSync("categoryVersion");e.data.version===i?a.setCategory(JSON.parse(o)):(t.setStorageSync("categoryVersi
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'pages/index/components/tabNav-create-component',
{
'pages/index/components/tabNav-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('df3c')['createComponent'](__webpack_require__("9c24"))
})
},
[['pages/index/components/tabNav-create-component']]
]);