| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-61bb858e","chunk-7d2aa35d","chunk-2beb6aa3","chunk-7e19c3dd","chunk-0b96728a"],{"0867":function(t,s,i){},"1b16":function(t,s,i){"use strict";i("cbfc")},"39d5":function(t,s,i){},5353:function(t,s,i){"use strict";i.r(s);var e=function(){var t=this,s=t._self._c;return s("div",{staticClass:"wrapper"},[s("div",{staticClass:"wrapper-top"},[s("topbar")],1),s("div",{staticClass:"wrapper-bottom"},[s("div",{staticClass:"wrapper-left"},[s("slider")],1),s("div",{staticClass:"wrapper-right__container"},[s("div",{staticClass:"content-view"},[s("router-view")],1)])]),s("chat")],1)},a=[],n=i("79b4"),o=i("8ee2"),c=i("b163"),r={components:{Topbar:n["default"],Slider:o["default"],Chat:c["default"]},computed:{}},l=r,u=(i("755f"),i("1805")),d=Object(u["a"])(l,e,a,!1,null,"bfac501a",null);s["default"]=d.exports},"755f":function(t,s,i){"use strict";i("e10d")},"775f":function(t,s,i){"use strict";i("7ea5")},"79b4":function(t,s,i){"use strict";i.r(s);var e=function(){var t=this,s=t._self._c;return s("div",{staticClass:"scope-topbar"},[s("div",{staticClass:"collapse"},[s("img",{staticClass:"avatar",attrs:{src:t._f("default_avatar")(t.logoUrl),alt:"花卉宝"}}),t._m(0)]),t.shopShow?s("el-dropdown",{staticClass:"user_top",attrs:{trigger:"click"},on:{command:t.shopCommand}},[s("div",[t._v(t._s(t.currentShop)+" "),s("i",{staticClass:"el-icon-caret-bottom"})]),s("el-dropdown-menu",{staticClass:"popper-dropdown-menu-user",attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.shopList,(function(i,e){return s("el-dropdown-item",{key:e,class:{shopActive:i.id==t.userInfo.currentShopId},attrs:{command:i}},[t._v(t._s(i.shopName))])})),1)],1):t._e(),s("div",{staticClass:"flex1"}),t.userInfo?s("div",{staticClass:"user"},[s("el-dropdown",{attrs:{trigger:"click","hide-on-click":!1},on:{command:t.onCommand}},[s("span",{staticClass:"el-dropdown-link"},[s("span",{staticClass:"name"},[t._v(t._s(t._f("default_name")(t.userInfo.name)))]),s("img",{staticClass:"avatar",attrs:{src:t._f("default_avatar")(t.userInfo.avatar),alt:""}}),s("i",{staticClass:"el-icon-caret-bottom"})]),s("el-dropdown-menu",{staticClass:"popper-dropdown-menu-user",attrs:{slot:"dropdown"},slot:"dropdown"},[s("el-dropdown-item",{attrs:{command:"exit"}},[t._v("退出")])],1)],1)],1):t._e()],1)},a=[function(){var t=this,s=t._self._c;return s("div",[s("span",[t._v("销花宝后台")])])}],n=(i("f16c"),i("45d2"),i("9052"),i("5880")),o=i("c081"),c=i("fbe1"),r={components:{LiNotice:c["default"]},data(){return{$projectName:this.$projectName,index:"0",shopList:[]}},mounted(){this.getAllShop()},computed:{...Object(n["mapGetters"])(["userInfo","shopInfo"]),logoUrl(){return this.$util.isEmpty(this.shopInfo)?"":this.shopInfo.smallLogoUrl},currentShop(){let t;return this.shopList.map(s=>{console.log(s.id,this.userInfo.currentShopId),s.id==this.userInfo.currentShopId&&(t=s.shopName)}),t},shopShow(){return 1==this.userInfo.super&&this.shopList.length>1}},methods:{...Object(n["mapMutations"])(["SET_MENU_GROUP","SET_MENU_LIST","COLLAPSE_MENU"]),onCommand(t){switch(t){case"my":this.$router.push("/my/info");break;case"exit":this.$store.dispatch("userLogout").done(()=>{o["utils"].href("/login")});break}},shopCommand(t){console.log(t),this.$service.common.toggleShop({shopId:t.id}).then(t=>{this.$router.go(0)}).catch(t=>{console.log(t,1111111)})},getAllShop(){this.$service.common.shopAll().then(t=>{console.log(t),this.shopList=t}).catch(t=>{})},layoutGlobalKd(){this.$router.push("/order/add")}}},l=r,u=(i("d63f"),i("775f"),i("1805")),d=Object(u["a"])(l,e,a,!1,null,"e76fea98",null);s["default"]=d.exports},"7ea5":function(t,s,i){},"8d14":function(t,s,i){"use strict";i("0867")},"8ee2":function(t,s,i){"use strict";i.r(s);var e=function(){var t=this,s=t._self._c;return s("div",{staticClass:"scope-slider"},[s("div",{staticClass:"main-list"},t._l(t.menuGroup,(function(i,e){return s("div",{key:e,staticClass:"list",class:[t.mainIndex==e?"active":""],on:{click:function(s){return t.pageMianTo(i,e)}}},[s("i",{staticClass:"iconfont",class:[i.icon]}),s("div",{staticClass:"list-name-wrap"},[s("div",{staticClass:"list-name"},[t._v(t._s(i.name))])])])})),0),s("div",{directives:[{name:"show",rawName:"v-show",value:!t.$util.isEmpty(t.subData),expression:"!$util.isEmpty(subData)"}],staticClass:"sub-list"},t._l(t.subData,(function(i,e){return s("div",{key:e,staticClass:"list",class:[t.subIndex==e?"active":""],on:{click:function(s){return t.pageSubTo(i,e)}}},[t._v(" "+t._s(i.name)+" ")])})),0)])},a=[],n=(i("f16c"),i("5880")),o={name:"scope-slide",data(){return{mainIndex:0,subIndex:0}},watch:{$route(t,s){this.init()}},computed:{...Object(n["mapGetters"])(["menuGroup"]),subData(){if(this.$util.isEmpty(this.menuGroup))return[];let t=this.menuGroup[this.mainIndex].children;return this.$util.isEmpty(t)?[]:t}},mounted(){this.init()},methods:{init(){let t=this.$route.path;for(let s in this.menuGroup)if(this.menuGroup[s].children.length>0)for(let i in this.menuGroup[s].children)t==this.menuGroup[s].children[i].path&&(this.mainIndex=s,this.subIndex=i);else t==this.menuGroup[s].path&&(this.mainIndex=s,this.subIndex=0)},pageMianTo(t,s){this.mainIndex=s,this.$util.isEmpty(t.children)?this.$router.push(t.path):(this.$router.push(t.children[0].path),this.subIndex=0)},pageSubTo(t,s){0==s&&this.$router.push("/item-class/1"),this.subIndex=s,this.$nextTick(()=>{this.$router.push(t.path)})}}},c=o,r=(i("ac6f"),i("1805")),l=Object(r["a"])(c,e,a,!1,null,"466dfd95",null);s["default"]=l.exports},ac6f:function(t,s,i){"use strict";i("f94a")},b163:function(t,s,i){"use strict";i.r(s);var e=function(){var t=this,s=t._self._c;return s("div",{staticClass:"cl-chat__wrap"},[s("el-dialog",{attrs:{visible:t.visible,"close-on-click-modal":!1,width:"1000px"},on:{"update:visible":function(s){t.visible=s}}},[s("div",{staticClass:"cl-chat"},[s("div",{staticClass:"cl-chat__left"},[s("div",{staticClass:"header"},[s("el-input",{attrs:{placeholder:"搜索联系人",size:"small","prefix-icon":"el-icon-search"}})],1),s("div",{staticClass:"container"},[s("ul",{staticClass:"users"},t._l(t.userList,(function(i,e){return s("li",{key:e,on:{click:function(s){return t.toChat(i)}}},[s("img",{staticClass:"avatar",attrs:{src:i.smallAvatarUrl,alt:""}}),s("div",{staticClass:"det"},[s("p",[t._v(t._s(i.userName))]),s("div",[t._v(t._s(i.source))])]),s("div",{staticClass:"date"},[t._v(" "+t._s(i.chatTime)+" ")])])})),0)])]),s("div",{staticClass:"cl-chat__right"},[s("div",{staticClass:"header"},[s("span",[t._v("闪亮亮")]),s("div",{staticClass:"icon",on:{click:function(s){return t.hide()}}},[s("i",{staticClass:"el-icon-minus"})])]),s("div",{staticClass:"container"},[s("ul",{staticClass:"message"},t._l(t.messageList,(function(i,e){return s("li",{key:e,class:[i.my?"right":"left"]},[s("img",{staticClass:"avatar",attrs:{src:"",alt:""}}),s("div",{staticClass:"det"},[s("div",{staticClass:"label"},[s("span",{staticClass:"name"},[t._v("刘先生")]),s("span",{staticClass:"date"},[t._v("2020-12-22")])]),s("div",{staticClass:"content"},["text"==i.type?s("p",{staticClass:"block text"},[t._v(" "+t._s(i.text)+" ")]):"pic"==i.type?s("el-image",{staticClass:"block pic",attrs:{src:i.src,"preview-src-list":[i.src]}}):t._e()],1)])])})),0)]),s("div",{staticClass:"footer"},[s("ul",{staticClass:"tools"},[s("li",[s("el-button",{attrs:{size:"mini"}},[t._v("商品图")])],1),s("li",[s("el-upload",{attrs:{action:""}},[s("el-button",{attrs:{size:"mini",icon:"el-icon-picture"}})],1)],1)]),s("el-button",{staticClass:"send-btn",attrs:{size:"small",type:"primary"}},[t._v("发送")])],1)])])])],1)},a=[],n=(i("f16c"),{data(){return{visible:!1,userList:[],messageList:[{type:"text",text:"我是厦门第一"},{type:"pic",src:"https://dss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2164724814,1401845036&fm=26&gp=0.jpg"},{type:"text",text:"我是厦门第二",my:!0},{type:"pic",src:"https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=3973065280,787801978&fm=26&gp=0.jpg",my:!0}]}},methods:{getUserList(){this.$service.chat.recentlyUser().then(t=>{this.userList=t})},toChat(t){this.$service.chat.begin({id:t.id}).then(t=>{console.log(t)})},globalGoToKd(){this.$router.push("/order/add")},show(){return this.$router.push("/my/info"),this.$message.success("即将开通..."),!1},hide(){this.visible=!1}}}),o=n,c=(i("1b16"),i("1805")),r=Object(c["a"])(o,e,a,!1,null,"220f5f07",null);s["default"]=r.exports},cbfc:function(t,s,i){},d63f:function(t,s,i){"use strict";i("39d5")},e10d:function(t,s,i){},f94a:function(t,s,i){},fbe1:function(t,s,i){"use strict";i.r(s);var e=function(){var t=this,s=t._self._c;return s("li",{staticClass:"tools-notice"},[s("i",{staticClass:"el-icon-message-solid"}),s("span",{staticClass:"tag"},[t._v("4")]),t.visible?s("div",{staticClass:"popover"},[s("div",{staticClass:"tips"},[s("span",[t._v("您有4条新通知")]),s("el-button",{attrs:{size:"mini",type:"primary",round:""}},[t._v("查看全部")])],1),t._m(0)]):t._e()])},a=[function(){var t=this,s=t._self._c;return s("div",{staticClass:"list"},[s("a",{staticClass:"block"},[s("div",{staticClass:"icon"},[s("i",{staticClass:"el-icon-s-promotion"})]),s("div",{staticClass:"det"},[s("p",{staticClass:"title"},[t._v("您的Apple ID 被用在iPhone 11 上登录 iCould")]),s("p",{staticClass:"sub-title"},[t._v("5分钟前")])])])])}],n=i("8bc2"),o={data(){return{visible:!1}},mounted(){document.onclick=t=>{let s=document.querySelector(".tools-notice .popover");"el-icon-message-solid"==t.target.className&&(this.visible=!this.visible),s&&(Object(n["contains"])(s,t.target)||(this.visible=!1))}}},c=o,r=(i("8d14"),i("1805")),l=Object(r["a"])(c,e,a,!1,null,"1efa0496",null);s["default"]=l.exports}}]);
|