1234567891011 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/fa-tabbar/fa-tabbar"],{"15db":function(t,e,a){"use strict";var n=a("30d8"),r=a.n(n);r.a},"30d8":function(t,e,a){},"31ab":function(t,e,a){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(a("a34a"));function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e,a,n,r,i,u){try{var o=t[i](u),s=o.value}catch(c){return void a(c)}o.done?e(s):Promise.resolve(s).then(n,r)}function u(t){return function(){var e=this,a=arguments;return new Promise((function(n,r){var u=t.apply(e,a);function o(t){i(u,n,r,o,s,"next",t)}function s(t){i(u,n,r,o,s,"throw",t)}o(void 0)}))}}var o={props:{value:{type:[String,Number],default:0},beforeSwitch:{type:Function,default:null}},data:function(){return{pageUrl:""}},created:function(){t.hideTabBar();var e=getCurrentPages();this.pageUrl=e[e.length-1].route},computed:{elIconPath:function(){var t=this;return function(e){var a=t.$util.getPath(t.tabbar.list[e].path);return a?a==t.pageUrl||a=="/"+t.pageUrl?t.tabbar.list[e].selectedImage:t.tabbar.list[e].image:e==t.value?t.tabbar.list[e].selectedImage:t.tabbar.list[e].image}},elColor:function(){var t=this;return function(e){var a=t.$util.getPath(t.tabbar.list[e].path);return a?a==t.pageUrl||a=="/"+t.pageUrl?t.tabbar.selectColor:t.tabbar.color:e==t.value?t.tabbar.selectColor:t.tabbar.color}},offsetWz:function(){return function(t,e){return e?[-2,-20]:t>9?[-2,-40]:[-2,-30]}},tabbar:function(){return this.vuex_config.tabbar?this.vuex_config.tabbar:{isshow:!1}},showTabbar:function(){return!0}},mounted:function(){this.tabbar.midButton&&this.getMidButtonLeft()},methods:{clickHandler:function(e){var a=this;return u(n.default.mark((function r(){var i;return n.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t.$emit("centerButtonClick",e),!a.beforeSwitch||"function"!==typeof a.beforeSwitch){n.next=12;break}if(i=a.beforeSwitch.bind(a.$u.$parent.call(a))(e),!i||"function"!==typeof i.then){n.next=9;break}return n.next=7,i.then((function(t){a.switchTab(e)})).catch((function(t){}));case 7:n.next=10;break;case 9:!0===i&&a.switchTab(e);case 10:n.next=13;break;case 12:a.switchTab(e);case 13:case"end":return n.stop()}}),r)})))()},switchTab:function(t){var e=this.$util.getPath(this.tabbar.list[t].path);if(e!=this.pageUrl&&e!="/"+this.pageUrl){if(-1!=this.tabbar.list[t].path.indexOf("http"))return this.$u.vuex("vuex_webs",{url:this.tabbar.list[t].path,title:this.tabbar.list[t].text}),void this.$Router.push("/pages/webview/webview");this.$emit("change",t),this.tabbar.list[t].path?(this.$u.vuex("vuex_table_title",this.tabbar.list[t].text),this.$Router.replaceAll(this.tabbar.list[t].path)):this.$emit("input",t)}},getMidButtonLeft:function(){var t=this.$u.sys().windowWidth;this.tabbar.midButtonLeft=t/2+"px"}}};e.default=o}).call(this,a("f266")["default"])},bad1:function(t,e,a){"use strict";a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return n}));var n={uImage:function(){return a.e("uview-ui/components/u-image/u-image").then(a.bind(null,"9406"))},uBadge:function(){return a.e("uview-ui/components/u-badge/u-badge").then(a.bind(null,"3088"))}},r=function(){var t=this,e=t.$createElement,a=(t._self._c,t.tabbar.isshow&&t.showTabbar?t.$u.addUnit(t.tabbar.height):null),n=t.tabbar.isshow&&t.showTabbar?t.__map(t.tabbar.list,(function(e,a){var n=t.__get_orig(e),r=a<5?t.elIconPath(a):null,i=a<5?t.offsetWz(e.count,e.isDot):null,u=a<5?t.elColor(a):null;return{$orig:n,m0:r,m1:i,m2:u}})):null,r=t.tabbar.isshow&&t.showTabbar?t.$u.addUnit(t.tabbar.height):null;t.$mp.data=Object.assign({},{$root:{g0:a,l0:n,g1:r}})},i=[]},ecd8:function(t,e,a){"use strict";a.r(e);var n=a("bad1"),r=a("f317");for(var i in r)"default"!==i&&function(t){a.d(e,t,(function(){return r[t]}))}(i);a("15db");var u,o=a("f0c5"),s=Object(o["a"])(r["default"],n["b"],n["c"],!1,null,"5a2d1ce5",null,!1,n["a"],u);e["default"]=s.exports},f317:function(t,e,a){"use strict";a.r(e);var n=a("31ab"),r=a.n(n);for(var i in n)"default"!==i&&function(t){a.d(e,t,(function(){return n[t]}))}(i);e["default"]=r.a}}]);
- ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
- 'components/fa-tabbar/fa-tabbar-create-component',
- {
- 'components/fa-tabbar/fa-tabbar-create-component':(function(module, exports, __webpack_require__){
- __webpack_require__('f266')['createComponent'](__webpack_require__("ecd8"))
- })
- },
- [['components/fa-tabbar/fa-tabbar-create-component']]
- ]);
|