(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4bc160c7","chunk-8529c5be"],{"176f":function(t,s,o){},"2c36":function(t,s,o){"use strict";o("176f")},"73cd":function(t,s,o){"use strict";o("f13e")},"79b4":function(t,s,o){"use strict";o.r(s);var e=function(){var t=this,s=t.$createElement,o=t._self._c||s;return o("div",{staticClass:"scope-topbar"},[o("div",{staticClass:"collapse"},[o("img",{staticClass:"avatar",attrs:{src:t._f("default_avatar")(t.logoUrl),alt:"花卉宝"}}),t._m(0)]),t.shopShow?o("el-dropdown",{staticClass:"user_top",attrs:{trigger:"click"},on:{command:t.shopCommand}},[o("div",[t._v(t._s(t.currentShop)+" "),o("i",{staticClass:"el-icon-caret-bottom"})]),o("el-dropdown-menu",{staticClass:"popper-dropdown-menu-user",attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.shopList,(function(s,e){return o("el-dropdown-item",{key:e,class:{shopActive:s.id==t.userInfo.currentShopId},attrs:{command:s}},[t._v(t._s(s.shopName))])})),1)],1):t._e(),o("div",{staticClass:"flex1"}),o("div",{staticClass:"layout-global-kd",on:{click:function(s){return t.layoutGlobalKd()}}},[t._v("开单")]),t.userInfo?o("div",{staticClass:"user"},[o("el-dropdown",{attrs:{trigger:"click","hide-on-click":!1},on:{command:t.onCommand}},[o("span",{staticClass:"el-dropdown-link"},[o("span",{staticClass:"name"},[t._v(t._s(t._f("default_name")(t.userInfo.name)))]),o("img",{staticClass:"avatar",attrs:{src:t._f("default_avatar")(t.userInfo.avatar),alt:""}}),o("i",{staticClass:"el-icon-caret-bottom"})]),o("el-dropdown-menu",{staticClass:"popper-dropdown-menu-user",attrs:{slot:"dropdown"},slot:"dropdown"},[o("el-dropdown-item",{attrs:{command:"exit"}},[t._v("退出")])],1)],1)],1):t._e()],1)},n=[function(){var t=this,s=t.$createElement,o=t._self._c||s;return o("div",[o("span",[t._v("后台管理系统")])])}],i=o("f374"),a=(o("a9b5"),o("5880")),c=o("c081"),r=o("fbe1"),l={components:{LiNotice:r["default"]},data:function(){return{$projectName:this.$projectName,index:"0",shopList:[]}},mounted:function(){this.getAllShop()},computed:Object(i["a"])(Object(i["a"])({},Object(a["mapGetters"])(["userInfo","shopInfo"])),{},{logoUrl:function(){return this.$util.isEmpty(this.shopInfo)?"":this.shopInfo.smallLogoUrl},currentShop:function(){var t,s=this;return this.shopList.map((function(o){console.log(o.id,s.userInfo.currentShopId),o.id==s.userInfo.currentShopId&&(t=o.shopName)})),t},shopShow:function(){return 1==this.userInfo["super"]&&this.shopList.length>1}}),methods:Object(i["a"])(Object(i["a"])({},Object(a["mapMutations"])(["SET_MENU_GROUP","SET_MENU_LIST","COLLAPSE_MENU"])),{},{onCommand:function(t){switch(t){case"my":this.$router.push("/my/info");break;case"exit":this.$store.dispatch("userLogout").done((function(){c["utils"].href("/login")}));break}},shopCommand:function(t){var s=this;console.log(t),this.$service.common.toggleShop({shopId:t.id}).then((function(t){s.$router.go(0)}))["catch"]((function(t){console.log(t,1111111)}))},getAllShop:function(){var t=this;this.$service.common.shopAll().then((function(s){console.log(s),t.shopList=s}))["catch"]((function(t){}))},layoutGlobalKd:function(){this.$router.push("/order/add")}})},u=l,d=(o("2c36"),o("db87"),o("5d22")),p=Object(d["a"])(u,e,n,!1,null,"d983e2de",null);s["default"]=p.exports},b507:function(t,s,o){},db87:function(t,s,o){"use strict";o("b507")},f13e:function(t,s,o){},fbe1:function(t,s,o){"use strict";o.r(s);var e=function(){var t=this,s=t.$createElement,o=t._self._c||s;return o("li",{staticClass:"tools-notice"},[o("i",{staticClass:"el-icon-message-solid"}),o("span",{staticClass:"tag"},[t._v("4")]),t.visible?o("div",{staticClass:"popover"},[o("div",{staticClass:"tips"},[o("span",[t._v("您有4条新通知")]),o("el-button",{attrs:{size:"mini",type:"primary",round:""}},[t._v("查看全部")])],1),t._m(0)]):t._e()])},n=[function(){var t=this,s=t.$createElement,o=t._self._c||s;return o("div",{staticClass:"list"},[o("a",{staticClass:"block"},[o("div",{staticClass:"icon"},[o("i",{staticClass:"el-icon-s-promotion"})]),o("div",{staticClass:"det"},[o("p",{staticClass:"title"},[t._v("您的Apple ID 被用在iPhone 11 上登录 iCould")]),o("p",{staticClass:"sub-title"},[t._v("5分钟前")])])])])}],i=o("8bc2"),a={data:function(){return{visible:!1}},mounted:function(){var t=this;document.onclick=function(s){var o=document.querySelector(".tools-notice .popover");"el-icon-message-solid"==s.target.className&&(t.visible=!t.visible),o&&(Object(i["contains"])(o,s.target)||(t.visible=!1))}}},c=a,r=(o("73cd"),o("5d22")),l=Object(r["a"])(c,e,n,!1,null,"1efa0496",null);s["default"]=l.exports}}]);