1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-55ee6bb8"],{"16c9":function(t,e,n){"use strict";var i=n("5584"),a=n.n(i);a.a},2671:function(t,e,n){"use strict";n.d(e,"b",function(){return f}),n.d(e,"a",function(){return p});n("4453");var i=n("ee95"),a=(n("b06f"),n("3f47")),s=n("52c1"),r=n("5975"),c=n("2593"),o=n("33f8"),u=n("ca42"),d=n.n(u),l=n("bf49"),h=n("ef30"),f={data:function(){return{accountList:null,userInfo:null,meechatType:Object(o["n"])()}},computed:Object(a["a"])({},Object(s["e"])({members:function(t){return t.group.members},groupId:function(t){return t.group.groupId},sessionList:function(t){return t.chat.sessionList},meId:function(t){return t.userId},meInfo:function(t){return t.userInfo}}),{linkToOther:function(){var t=this.userInfo.user_id,e=Number(t)<Number(this.meId)?"".concat(t,"-").concat(this.meId):"".concat(this.meId,"-").concat(t);return"".concat(location.origin,"/#/pm/").concat(e)}}),methods:Object(a["a"])({},Object(s["b"])(["getUserInfo"]),{sendMsg:function(){this.visible=!1;var t=this.userInfo.user_id,e=Number(t)<Number(this.meId)?"".concat(t,"-").concat(this.meId):"".concat(this.meId,"-").concat(t),n=this.sessionList.some(function(t){return t.session_id==e});if(!n){var i={cover_photo:this.userInfo.cover_photo,is_group:"0",name:this.userInfo.nick_name,session_id:e};this.$store.commit("addSessionItem",i)}this.$router.push({path:"/pm/".concat(e)})}}),created:function(){var t=Object(i["a"])(regeneratorRuntime.mark(function t(){var e=this;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(this.meInfo){t.next=3;break}return t.next=3,this.getUserInfo();case 3:r["a"].user.getOtherInfo({target_id:this.userId,group_id:this.groupId||null}).then(function(t){var n=t.data;if(e.accountList=n.data.binds,e.userInfo=n.data,e.visible=!0,n.data.user_id){var i=new c["a"],a={cover_photo:n.data.cover_photo,nick_name:n.data.nick_name,user_name:n.data.user_name};i.updateObject(a,{user_id:n.data.user_id})}});case 4:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}()},p={data:function(){return{isLoading:!1}},computed:Object(a["a"])({},Object(s["e"])({scatter:function(t){return t.scatter}})),methods:Object(a["a"])({},Object(s["d"])(["changeUserBinds"]),Object(s["b"])(["setScatter","doScatterBind","getUserInfo"]),{bindAccount:function(t){switch(t){case"eos":this.bindEos("eos");break;case"tg":this.bindTg();break;case"eth":this.bindEth();break;case"tron":this.bindTron();break;case"meetone":this.bindEos("meetone");break}},bindEos:function(){var t=Object(i["a"])(regeneratorRuntime.mark(function t(e){var n=this;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(Object(o["z"])("eosType",e),this.isLoading=!0,!this.scatter){t.next=6;break}this.doScatterBind().then(function(t){n.isLoading=!1,n.changeUserBinds({type:e,account:t.account})}).catch(function(t){Object(o["A"])(t),n.isLoading=!1}),t.next=8;break;case 6:return t.next=8,d.a.scatter.connect("MEE_CHAT").then(function(){var t=Object(i["a"])(regeneratorRuntime.mark(function t(i){return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:i&&(n.setScatter(d.a.scatter),window.ScatterJS=null,n.doScatterBind().then(function(t){n.isLoading=!1,n.changeUserBinds({type:e,account:t.account})}).catch(function(t){Object(o["A"])(t),n.isLoading=!1}));case 1:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}());case 8:case"end":return t.stop()}},t,this)}));function e(e){return t.apply(this,arguments)}return e}(),bindTg:function(){var t=Object(i["a"])(regeneratorRuntime.mark(function t(){var e,n,i,a=this;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return this.winHandler=Object(o["x"])(""),t.next=3,r["a"].user.tgCSRF({type:"bind"});case 3:e=t.sent,n=e.data,this.winHandler.location.href=n.data.url,i=setInterval(function(){null!=a.winHandler&&a.winHandler.closed&&(clearInterval(i),a.winHandler=null)},800),this.bindCheck(n.data.csrf_token);case 8:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}(),bindEth:function(){var t=Object(i["a"])(regeneratorRuntime.mark(function t(){var e,n,i;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return this.isLoading=!0,t.prev=1,t.next=4,l["a"].initEth();case 4:return e=t.sent,n=e.account,i=e.sign,t.next=9,r["a"].user.ethBind({account:n,sign:i});case 9:return t.next=11,this.changeUserBinds({type:"eth",account:n});case 11:t.next=16;break;case 13:t.prev=13,t.t0=t["catch"](1),this.isLoading=!1;case 16:this.isLoading=!1;case 17:case"end":return t.stop()}},t,this,[[1,13]])}));function e(){return t.apply(this,arguments)}return e}(),bindTron:function(){var t=Object(i["a"])(regeneratorRuntime.mark(function t(){var e,n,i;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return this.isLoading=!0,t.prev=1,t.next=4,h["a"].initTron();case 4:return e=t.sent,n=e.account,i=e.sign,t.next=9,r["a"].user.tronBind({account:n,sign:i});case 9:return t.next=11,this.changeUserBinds({type:"tron",account:n});case 11:t.next=15;break;case 13:t.prev=13,t.t0=t["catch"](1);case 15:this.isLoading=!1;case 16:case"end":return t.stop()}},t,this,[[1,13]])}));function e(){return t.apply(this,arguments)}return e}(),bindCheck:function(){var t=Object(i["a"])(regeneratorRuntime.mark(function t(e,n){var i,a=this;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(this.isLoading=!0,0!==n){t.next=5;break}clearTimeout(this.timeoutHandler),t.next=7;break;case 5:if(!(n>=60)){t.next=7;break}return t.abrupt("return",!1);case 7:return i={},t.prev=8,t.next=11,r["a"].user.tgBind2({csrf_token:e});case 11:i=t.sent,t.next=17;break;case 14:t.prev=14,t.t0=t["catch"](8),this.isLoading=!1;case 17:i.data&&i.data.data&&i.data.data.status>0?(this.isLoading=!1,null!=this.winHandler&&(this.winHandler.close(),this.winHandler=null),this.getSyncInfo&&this.getSyncInfo(this.params),this.getUserInfo()):i.data?(null!=this.winHandler||i.data&&0==i.data.status)&&(this.timeoutHandler=setTimeout(function(){a.bindCheck(e,++n)},1e3)):null!=this.winHandler&&(this.winHandler.close(),this.winHandler=null);case 18:case"end":return t.stop()}},t,this,[[8,14]])}));function e(e,n){return t.apply(this,arguments)}return e}(),unbindAccount:function(t){var e=this;Object(o["e"])("".concat(this.$t("userinfo.unbindMsg")," ").concat(t.toLocaleUpperCase()," ?")).then(function(){r["a"].user.unBind({type:t}).then(function(){"eos"==t&&e.scatter&&e.scatter.logout&&e.scatter.logout(),e.$showTips(e.$t("userinfo.unbindSuccess")),e.changeUserBinds({type:t,account:""})})})}})}},"39ab":function(t,e,n){},"43ad":function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){return{methods:{focus:function(){this.$refs[t].focus()}}}}},5584:function(t,e,n){},"68ca":function(t,e,n){t.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var a=e[i]={i:i,l:!1,exports:{}};return t[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(i,a,function(e){return t[e]}.bind(null,a));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=99)}({0:function(t,e,n){"use strict";function i(t,e,n,i,a,s,r,c){var o,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),s&&(u._scopeId="data-v-"+s),r?(o=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},u._ssrRegister=o):a&&(o=c?function(){a.call(this,this.$root.$options.shadowRoot)}:a),o)if(u.functional){u._injectStyles=o;var d=u.render;u.render=function(t,e){return o.call(e),d(t,e)}}else{var l=u.beforeCreate;u.beforeCreate=l?[].concat(l,o):[o]}return{exports:t,options:u}}n.d(e,"a",function(){return i})},10:function(t,e){t.exports=n("9fb5")},19:function(t,e){t.exports=n("43ad")},3:function(t,e){t.exports=n("49b0")},99:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-switch",class:{"is-disabled":t.switchDisabled,"is-checked":t.checked},attrs:{role:"switch","aria-checked":t.checked,"aria-disabled":t.switchDisabled},on:{click:t.switchValue}},[n("input",{ref:"input",staticClass:"el-switch__input",attrs:{type:"checkbox",id:t.id,name:t.name,"true-value":t.activeValue,"false-value":t.inactiveValue,disabled:t.switchDisabled},on:{change:t.handleChange,keydown:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.switchValue(e):null}}}),t.inactiveIconClass||t.inactiveText?n("span",{class:["el-switch__label","el-switch__label--left",t.checked?"":"is-active"]},[t.inactiveIconClass?n("i",{class:[t.inactiveIconClass]}):t._e(),!t.inactiveIconClass&&t.inactiveText?n("span",{attrs:{"aria-hidden":t.checked}},[t._v(t._s(t.inactiveText))]):t._e()]):t._e(),n("span",{ref:"core",staticClass:"el-switch__core",style:{width:t.coreWidth+"px"}}),t.activeIconClass||t.activeText?n("span",{class:["el-switch__label","el-switch__label--right",t.checked?"is-active":""]},[t.activeIconClass?n("i",{class:[t.activeIconClass]}):t._e(),!t.activeIconClass&&t.activeText?n("span",{attrs:{"aria-hidden":!t.checked}},[t._v(t._s(t.activeText))]):t._e()]):t._e()])},a=[];i._withStripped=!0;var s=n(3),r=n.n(s),c=n(19),o=n.n(c),u=n(10),d=n.n(u),l={name:"ElSwitch",mixins:[o()("input"),d.a,r.a],inject:{elForm:{default:""}},props:{value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:Number,default:40},activeIconClass:{type:String,default:""},inactiveIconClass:{type:String,default:""},activeText:String,inactiveText:String,activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String},data:function(){return{coreWidth:this.width}},created:function(){~[this.activeValue,this.inactiveValue].indexOf(this.value)||this.$emit("input",this.inactiveValue)},computed:{checked:function(){return this.value===this.activeValue},switchDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{checked:function(){this.$refs.input.checked=this.checked,(this.activeColor||this.inactiveColor)&&this.setBackgroundColor(),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[this.value])}},methods:{handleChange:function(t){var e=this,n=this.checked?this.inactiveValue:this.activeValue;this.$emit("input",n),this.$emit("change",n),this.$nextTick(function(){e.$refs.input.checked=e.checked})},setBackgroundColor:function(){var t=this.checked?this.activeColor:this.inactiveColor;this.$refs.core.style.borderColor=t,this.$refs.core.style.backgroundColor=t},switchValue:function(){!this.switchDisabled&&this.handleChange()},getMigratingConfig:function(){return{props:{"on-color":"on-color is renamed to active-color.","off-color":"off-color is renamed to inactive-color.","on-text":"on-text is renamed to active-text.","off-text":"off-text is renamed to inactive-text.","on-value":"on-value is renamed to active-value.","off-value":"off-value is renamed to inactive-value.","on-icon-class":"on-icon-class is renamed to active-icon-class.","off-icon-class":"off-icon-class is renamed to inactive-icon-class."}}}},mounted:function(){this.coreWidth=this.width||40,(this.activeColor||this.inactiveColor)&&this.setBackgroundColor(),this.$refs.input.checked=this.checked}},h=l,f=n(0),p=Object(f["a"])(h,i,a,!1,null,null,null);p.options.__file="packages/switch/src/component.vue";var v=p.exports;v.install=function(t){t.component(v.name,v)};e["default"]=v}})},"948e":function(t,e,n){},9744:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"msgbox-fade"}},[t.visible?n("div",{staticClass:"pub-wrapper",on:{click:function(t){t.stopPropagation()}}},[n("div",{staticClass:"pub-mask",on:{click:function(e){t.visible=!1}}}),n("div",{staticClass:"pub-modal avater-modal"},[n("div",{staticClass:"modal-hd"},[n("i",{staticClass:"el-icon-close",on:{click:function(e){t.visible=!1}}})]),t.userInfo?n("div",{staticClass:"modal-bd"},[n("div",{staticClass:"user-top"},[n("div",{staticClass:"user-avatar"},[t.userInfo.cover_photo?n("img",{attrs:{src:t.userInfo.cover_photo+"?imageview/0/w/180",alt:""},on:{click:function(e){return t.$showImgPreview(t.userInfo.cover_photo)}}}):n("div",{staticClass:"user-avatar",class:"avatar_bg"+t.userInfo.user_id%9,attrs:{"data-name":t.userInfo.nick_name.slice(0,2).toUpperCase()}})]),n("div",{staticClass:"r-info"},[n("span",{staticClass:"name"},[t._v(t._s(t.userInfo.nick_name))]),n("div",{staticClass:"introduce"},[t._v("@"+t._s(t.userInfo.user_name))])])]),n("div",{staticClass:"account-wrap min-height-account"},[n("div",{staticClass:"title"},[t._v(t._s(t.$t("userinfo.bindAccounts")))]),t.accountList?t._l(t.accountList,function(e,i){return n("div",{key:i,staticClass:"account-item"},[n("div",{staticClass:"type"},[n("strong",[t._v(t._s(e.type.toUpperCase()))])]),e.account&&e.is_visible?n("p",{staticClass:"key"},[t._v(t._s(e.account))]):n("p",[t._v(t._s(t.$t("userinfo.notBindOrHide")))])])}):t._e()],2),t.$store.state.userId!=t.userId&&"mini"===t.meechatType?n("a",{staticClass:"send-msg-btn",attrs:{href:t.linkToOther,target:"meechatpc"},on:{click:function(e){t.visible=!1}}},[t._v(t._s(t.$t("public.sendMessage")))]):t.$store.state.userId!=t.userId?n("button",{staticClass:"send-msg-btn",on:{click:t.sendMsg}},[t._v(t._s(t.$t("public.sendMessage")))]):t._e()]):t._e()])]):t._e()])},a=[],s=(n("948e"),n("3050"),n("68ca")),r=n.n(s),c=(n("0da4"),n("03a8")),o=n.n(c),u=(n("3a23"),n("39ab"),n("c843")),d=n.n(u),l=n("6e6d"),h=n("2671");l["default"].component(d.a.name,d.a),l["default"].component(o.a.name,o.a),l["default"].component(r.a.name,r.a);var f={name:"infoPopup",mixins:[h["b"]]},p=f,v=(n("16c9"),n("17cc")),b=Object(v["a"])(p,i,a,!1,null,null,null);e["default"]=b.exports}}]);
|