2021-11-10 11:57:11 +08:00

11 lines
2.2 KiB
JavaScript

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/components/tabBar"],{"4b0a":function(t,a,n){},"6bb7":function(t,a,n){"use strict";var e;n.d(a,"b",(function(){return i})),n.d(a,"c",(function(){return u})),n.d(a,"a",(function(){return e}));var i=function(){var t=this,a=t.$createElement;t._self._c},u=[]},"94b3":function(t,a,n){"use strict";n.r(a);var e=n("6bb7"),i=n("b082");for(var u in i)"default"!==u&&function(t){n.d(a,t,(function(){return i[t]}))}(u);n("b6ef");var c,o=n("f0c5"),r=Object(o["a"])(i["default"],e["b"],e["c"],!1,null,"294c81ec",null,!1,e["a"],c);a["default"]=r.exports},b082:function(t,a,n){"use strict";n.r(a);var e=n("ebf7"),i=n.n(e);for(var u in e)"default"!==u&&function(t){n.d(a,t,(function(){return e[t]}))}(u);a["default"]=i.a},b6ef:function(t,a,n){"use strict";var e=n("4b0a"),i=n.n(e);i.a},ebf7:function(t,a,n){"use strict";(function(t){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var e=n("7fe6"),i=n("4729"),u=c(n("c83f"));function c(t){return t&&t.__esModule?t:{default:t}}var o=getApp(),r={name:"tabBar",props:{pagePath:null,dataConfig:{type:Object,default:function(){}}},watch:{dataConfig:{immediate:!0,handler:function(t,a){t&&(this.isShow=t.isShow.val)}}},mixins:[u.default],data:function(){return{name:this.$options.name,page:"/pages/index/index",tabbar:this.$Cache.get("TAB_BAR")?JSON.parse(this.$Cache.get("TAB_BAR")):[],isShow:!0,isIframe:o.globalData.isIframe}},mounted:function(){this.tabbar.length||this.getDiyData()},methods:{getDiyData:function(){var a=this;(0,e.getDiy)().then((function(t){var n=t.data.tabBar.default.tabBarList.list;a.$Cache.set("TAB_BAR",n),a.tabbar=n})).catch((function(a){t.showToast({title:a,icon:"none"})}))},changeTab:function(a){var n=this;(0,i.goPage)().then((function(e){n.page=a.link,t.switchTab({url:n.page})}))}}};a.default=r}).call(this,n("543d")["default"])}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'pages/index/components/tabBar-create-component',
{
'pages/index/components/tabBar-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('543d')['createComponent'](__webpack_require__("94b3"))
})
},
[['pages/index/components/tabBar-create-component']]
]);