chunk-737f8e34.a2fc7003.js 5.8 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-737f8e34"],{"2ed4":function(t,e,n){"use strict";var i=n("c31d"),a=n("d282"),r=n("a142"),o=n("48f4"),c=n("9884"),u=n("ad06"),s=n("6f2f"),f=Object(a["a"])("tabbar-item"),d=f[0],l=f[1];e["a"]=d({mixins:[Object(c["a"])("vanTabbar")],props:Object(i["a"])({},o["c"],{dot:Boolean,icon:String,name:[Number,String],info:[Number,String]}),data:function(){return{active:!1}},computed:{routeActive:function(){var t=this.to,e=this.$route;if(t&&e){var n=Object(r["d"])(t)?t:{path:t},i=n.path===e.path,a=Object(r["b"])(n.name)&&n.name===e.name;return i||a}}},methods:{onClick:function(t){this.parent.onChange(this.name||this.index),this.$emit("click",t),Object(o["b"])(this.$router,this)}},render:function(){var t=arguments[0],e=this.icon,n=this.slots,i=this.parent.route?this.routeActive:this.active,a=this.parent[i?"activeColor":"inactiveColor"];return t("div",{class:l({active:i}),style:{color:a},on:{click:this.onClick}},[t("div",{class:l("icon")},[n("icon",{active:i})||e&&t(u["a"],{attrs:{name:e}}),t(s["a"],{attrs:{dot:this.dot,info:this.info}})]),t("div",{class:l("text")},[n("default",{active:i})])])}})},"3a36":function(t,e,n){},"48f4":function(t,e,n){"use strict";function i(t,e){var n=e.to,i=e.url,a=e.replace;if(n&&t){var r=t[a?"replace":"push"](n);r&&r.catch&&r.catch((function(t){if(t&&"NavigationDuplicated"!==t.name)throw t}))}else i&&(a?location.replace(i):location.href=i)}function a(t){i(t.parent&&t.parent.$router,t.props)}n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return a})),n.d(e,"c",(function(){return r}));var r={url:String,replace:Boolean,to:[String,Object]}},"537a":function(t,e,n){"use strict";n("68ef"),n("9312")},"72f0":function(t,e,n){"use strict";n.r(e);var i,a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"epidemicBulletin"},[n("van-tabbar",{staticClass:"epidemicBulletin-tabbar",attrs:{"safe-area-inset-bottom":"","active-color":"#ffffff","inactive-color":"#00baad",fixed:!1,route:""},on:{change:t.onChange},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[n("van-tabbar-item",{attrs:{name:"communityEpidemic",replace:"",to:"/household/epidemicBulletin/communityEpidemic"}},[t._v("社区疫情")]),n("van-tabbar-item",{attrs:{name:"countryEpidemic",replace:"",to:"/household/epidemicBulletin/countryEpidemic"}},[t._v("国家疫情")]),n("van-tabbar-item",{attrs:{name:"communityBulletin",replace:"",to:"/household/epidemicBulletin/communityBulletin"}},[t._v("小区通告")])],1),n("div",{staticClass:"epidemicBulletin-component"},[n("router-view")],1)],1)},r=[],o=n("ade3"),c=(n("a52c"),n("2ed4")),u=(n("537a"),n("ac28")),s={name:"epidemicBulletin",components:(i={},Object(o["a"])(i,u["a"].name,u["a"]),Object(o["a"])(i,c["a"].name,c["a"]),i),data:function(){return{active:0}},computed:{userInfo:function(){return this.$store.getters.userInfo}},mounted:function(){document.title=this.userInfo.userName},methods:{onChange:function(t){console.log(t)}}},f=s,d=(n("c459"),n("2877")),l=Object(d["a"])(f,a,r,!1,null,null,null);e["default"]=l.exports},9312:function(t,e,n){},9884:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}));var i=n("a026");function a(t){var e=[];function n(t){t.forEach((function(t){e.push(t),t.children&&n(t.children)}))}return n(t),e}function r(t,e){var n,r;void 0===e&&(e={});var o=e.indexKey||"index";return i["a"].extend({inject:(n={},n[t]={default:null},n),computed:(r={parent:function(){return this.disableBindRelation?null:this[t]}},r[o]=function(){return this.bindRelation(),this.parent.children.indexOf(this)},r),mounted:function(){this.bindRelation()},beforeDestroy:function(){var t=this;this.parent&&(this.parent.children=this.parent.children.filter((function(e){return e!==t})))},methods:{bindRelation:function(){if(this.parent&&-1===this.parent.children.indexOf(this)){var t=[].concat(this.parent.children,[this]),e=a(this.parent.slots());t.sort((function(t,n){return e.indexOf(t.$vnode)-e.indexOf(n.$vnode)})),this.parent.children=t}}}})}function o(t){return{provide:function(){var e;return e={},e[t]=this,e},data:function(){return{children:[]}}}}},a52c:function(t,e,n){"use strict";n("68ef"),n("9d70"),n("3743"),n("ae73")},ac28:function(t,e,n){"use strict";var i=n("d282"),a=n("9884"),r=n("b1d2"),o=Object(i["a"])("tabbar"),c=o[0],u=o[1];e["a"]=c({mixins:[Object(a["b"])("vanTabbar")],props:{route:Boolean,zIndex:[Number,String],activeColor:String,inactiveColor:String,safeAreaInsetBottom:Boolean,value:{type:[Number,String],default:0},border:{type:Boolean,default:!0},fixed:{type:Boolean,default:!0}},watch:{value:"setActiveItem",children:"setActiveItem"},methods:{setActiveItem:function(){var t=this;this.children.forEach((function(e,n){e.active=(e.name||n)===t.value}))},onChange:function(t){t!==this.value&&(this.$emit("input",t),this.$emit("change",t))}},render:function(){var t,e=arguments[0];return e("div",{style:{zIndex:this.zIndex},class:[(t={},t[r["f"]]=this.border,t),u({fixed:this.fixed,"safe-area-inset-bottom":this.safeAreaInsetBottom})]},[this.slots()])}})},ade3:function(t,e,n){"use strict";function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return i}))},ae73:function(t,e,n){},b1d2:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"h",(function(){return a})),n.d(e,"b",(function(){return r})),n.d(e,"e",(function(){return o})),n.d(e,"c",(function(){return c})),n.d(e,"d",(function(){return u})),n.d(e,"f",(function(){return s})),n.d(e,"g",(function(){return f}));var i="#1989fa",a="#fff",r="van-hairline",o=r+"--top",c=r+"--left",u=r+"--surround",s=r+"--top-bottom",f=r+"-unset--top-bottom"},c459:function(t,e,n){"use strict";var i=n("3a36"),a=n.n(i);a.a}}]);
  2. //# sourceMappingURL=chunk-737f8e34.a2fc7003.js.map