tabNav.js 2.7 KB

12345678910
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/components/tabNav"],{"0a06":function(t,e,i){"use strict";i.r(e);var n=i("34c3"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"34c3":function(t,e,i){"use strict";(function(t){var n=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;n(i("7037"));var a=i("f8b7"),o=i("3c98"),r={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,bgColor:this.dataConfig.bgColor.color,mbConfig:this.dataConfig.mbConfig.val,pbConfig:this.dataConfig.pbConfig.val,txtColor:this.dataConfig.txtColor.color[0].item,fixedTop:0,isTop:0,navHeight:45}},created:function(){var e=this;e.getAllCategory(),t.getSystemInfo({success:function(t){e.isWidth=t.windowWidth/5}})},methods:{longClick:function(t,e){this.tabTitle.length>5&&(this.tabLeft=(e-2)*this.isWidth),this.tabClick=e,this.isLeft=e*this.isWidth,this.$emit("bindSortId",t.id)},setCategory:function(e){e.unshift({id:-99,cate_name:"首页"}),this.tabTitle=e,this.isTop=t.getSystemInfoSync().statusBarHeight+43+"px"},getCategory:function(){var e=this;(0,a.getCategoryList)().then((function(i){t.setStorageSync("category",JSON.stringify(i.data)),e.setCategory(i.data)}))},getAllCategory:function(){var e=this,i=t.getStorageSync("category");i?(0,o.getCategoryVersion)().then((function(n){var a=t.getStorageSync("categoryVersion");n.data.version===a?e.setCategory(JSON.parse(i)):(t.setStorageSync("categoryVersion",n.data.version),e.getCategory())})):this.getCategory()}}};e.default=r}).call(this,i("543d")["default"])},"630b":function(t,e,i){},"864c":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this.$createElement;this._self._c},a=[]},cde9:function(t,e,i){"use strict";var n=i("630b"),a=i.n(n);a.a},f75f:function(t,e,i){"use strict";i.r(e);var n=i("864c"),a=i("0a06");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("cde9");var r=i("f0c5"),s=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=s.exports}}]);
  2. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  3. 'pages/index/components/tabNav-create-component',
  4. {
  5. 'pages/index/components/tabNav-create-component':(function(module, exports, __webpack_require__){
  6. __webpack_require__('543d')['createComponent'](__webpack_require__("f75f"))
  7. })
  8. },
  9. [['pages/index/components/tabNav-create-component']]
  10. ]);