12345678910 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/diy/components/tabNav"],{2515:function(t,i,e){"use strict";e.r(i);var n=e("be66"),a=e("a708");for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(o);e("a3ad");var f=e("f0c5"),c=Object(f["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);i["default"]=c.exports},"7b8b":function(t,i,e){},a3ad:function(t,i,e){"use strict";var n=e("7b8b"),a=e.n(n);a.a},a708:function(t,i,e){"use strict";e.r(i);var n=e("f38b"),a=e.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return n[t]}))}(o);i["default"]=a.a},be66:function(t,i,e){"use strict";e.d(i,"b",(function(){return n})),e.d(i,"c",(function(){return a})),e.d(i,"a",(function(){}));var n=function(){var t=this,i=t.$createElement,e=(t._self._c,t.__map(t.tabTitle,(function(i,e){var n=t.__get_orig(i),a=t.$t(i.cate_name);return{$orig:n,m0:a}})));t.$mp.data=Object.assign({},{$root:{l0:e}})},a=[]},f38b:function(t,i,e){"use strict";(function(t){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=e("2a39"),a={name:"tabNav",props:{dataConfig:{type:Object,default:function(){}},isFixed:{type:Boolean|String|Number,default:!1}},data:function(){return{tabTitle:[],tabLeft:0,isWidth:0,tabClick:0,isLeft:0,bgColor:this.dataConfig.bgColor.color,mbConfig:this.dataConfig.mbConfig.val,txtColor:this.dataConfig.txtColor.color[0].item,fixedTop:0,isTop:0,navHeight:0}},created:function(){var i=this;i.getAllCategory(),t.getSystemInfo({success:function(t){i.isWidth=t.windowWidth/5}})},methods:{longClick:function(t,i){this.tabTitle.length>5&&(this.tabLeft=(i-2)*this.isWidth),this.tabClick=i,this.isLeft=i*this.isWidth,this.$emit("bindSortId",t.id)},getAllCategory:function(){var i=this,e=this;(0,n.getCategoryList)().then((function(n){n.data.unshift({id:-99,cate_name:"首页"}),e.tabTitle=n.data,setTimeout((function(n){var a=t.createSelectorQuery().in(i);a.select(".navTabBox").boundingClientRect((function(t){e.domOffsetTop=t.top,e.navHeight=t.height,e.$emit("bindHeight",t)})).exec()}),200),i.isTop=t.getSystemInfoSync().statusBarHeight+43+"px"}))}}};i.default=a}).call(this,e("543d")["default"])}}]);
- ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
- 'pages/index/diy/components/tabNav-create-component',
- {
- 'pages/index/diy/components/tabNav-create-component':(function(module, exports, __webpack_require__){
- __webpack_require__('543d')['createComponent'](__webpack_require__("2515"))
- })
- },
- [['pages/index/diy/components/tabNav-create-component']]
- ]);
|