webpackJsonp([25],{"0dPe":function(t,e){},gmDw:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("W3Iv"),i=s.n(a),r=s("BO1k"),n=s.n(r),l=s("d7EF"),c=s.n(l),o=s("Dd8w"),v=s.n(o),d=s("NYxO"),f={name:"platform_service",props:{show:Boolean,value:Object,name:String},data:function(){return{title:"",service:{}}},computed:{showMd:{get:function(t){return this.title=this.name+"客服信息",this.show&&(this.service=this.value),this.show},set:function(t){this.$emit("update:show",t)}}},methods:{},created:function(){}},u={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("Modal",{attrs:{id:"platform_service_modal",title:t.title,"footer-hide":!0,"class-name":"vertical-center-modal",width:300},model:{value:t.showMd,callback:function(e){t.showMd=e},expression:"showMd"}},[s("div",{staticClass:"platform_service"},[s("div",{staticClass:"serviceItem"},[s("span",{staticClass:"serviceTitle"},[t._v("姓名：")]),t._v(" "),s("span",{staticClass:"serviceValue"},[t._v(t._s(t.service.name))])]),t._v(" "),s("div",{staticClass:"serviceItem"},[s("span",{staticClass:"serviceTitle"},[t._v("电话：")]),t._v(" "),s("span",{staticClass:"serviceValue"},[t._v(t._s(t.service.mobile))])]),t._v(" "),s("div",{staticClass:"serviceItem"},[s("span",{staticClass:"serviceTitle"},[t._v("QQ：")]),t._v(" "),s("span",{staticClass:"serviceValue"},[t._v(t._s(t.service.qq))])])])])],1)},staticRenderFns:[]};var m={name:"platform_center",components:{platformService:s("VU/8")(f,u,!1,function(t){s("tFni")},"data-v-33ecc06d",null).exports},data:function(){return{platformList:[],show:!1,value:{},title:""}},computed:v()({},Object(d.c)({role_id:function(t){return t.adminInfo.role_id}})),methods:{getData:function(){var t=this;this.$api.getSystemPlatformList().then(function(e){200==e.code&&(t.platformList=e.data)})},handlerPlatformClick:function(t){var e=this;this.$api.applySystemPlatform({id:t.id}).then(function(s){if(200==s.code){e.$Message.success(s.msg);var a=!0,r=!1,l=void 0;try{for(var o,v=n()(i()(e.platformList));!(a=(o=v.next()).done);a=!0){var d=o.value,f=c()(d,2),u=(f[0],f[1]);if(u.id==t.id){u.status=1;break}}}catch(t){r=!0,l=t}finally{try{!a&&v.return&&v.return()}finally{if(r)throw l}}}else e.$Message.error(s.msg)})},handlerServiceClick:function(t){this.show=!0,this.value={name:t.linkman,mobile:t.tel,qq:t.qq},this.title=t.name}},created:function(){this.getData()}},h={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"right_con"},[t._m(0),t._v(" "),s("div",{staticClass:"platformList"},[s("div",{staticClass:"platformListWrapper clear"},t._l(t.platformList,function(e){return s("div",{key:e.id,staticClass:"platformItem"},[s("div",{staticClass:"platformBox"},[s("div",{staticClass:"platformIcon"},[s("img",{attrs:{src:e.icon,onerror:"this.remove()"}})]),t._v(" "),s("div",{staticClass:"platformText"},[s("h3",[t._v(t._s(e.name))]),t._v(" "),s("div",{staticClass:"platformBtn"},[1==e.disable?s("Button",{staticClass:"platformButton already",attrs:{type:"primary"}},[t._v("已激活")]):s("Button",{staticClass:"platformButton",attrs:{type:"primary"},on:{click:function(s){return t.handlerPlatformClick(e)}}},[t._v("激活平台")]),t._v(" "),s("Button",{staticClass:"platformButton",on:{click:function(s){return t.handlerServiceClick(e)}}},[t._v("联系客服")])],1)])])])}),0)]),t._v(" "),s("platform-service",{attrs:{name:t.title,show:t.show,value:t.value},on:{"update:show":function(e){t.show=e}}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"rightTitle clear"},[e("div",{staticClass:"staff_fgx fl"}),this._v(" "),e("p",{staticClass:"fl staff_list"},[this._v("平台中心")])])}]};var p=s("VU/8")(m,h,!1,function(t){s("0dPe")},"data-v-ad0de476",null);e.default=p.exports},tFni:function(t,e){}});