chunk-3ab2e3e3.88db71c9.js 20 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3ab2e3e3"],{2671:function(t,e,n){"use strict";n.d(e,"b",function(){return d}),n.d(e,"a",function(){return l});n("4453");var r=n("ee95"),i=(n("b06f"),n("3f47")),s=n("52c1"),a=n("5975"),o=n("2593"),c=n("33f8"),u=n("6bec"),h=n("eef2"),f=n.n(h),d={data:function(){return{accountList:null,userInfo:null,meechatType:Object(c["o"])()}},computed:Object(i["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(i["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 r={cover_photo:this.userInfo.cover_photo,is_group:"0",name:this.userInfo.nick_name,session_id:e};this.$store.commit("addSessionItem",r)}this.$router.push({path:"/pm/".concat(e)})}}),created:function(){var t=Object(r["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:a["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 r=new o["a"],i={cover_photo:n.data.cover_photo,nick_name:n.data.nick_name,user_name:n.data.user_name};r.updateObject(i,{user_id:n.data.user_id})}});case 4:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}()},l={data:function(){return{isLoading:!1}},computed:Object(i["a"])({},Object(s["e"])({scatter:function(t){return t.scatter}})),methods:Object(i["a"])({},Object(s["d"])(["changeUserBinds"]),Object(s["b"])(["setScatter","doScatterBind","getUserInfo"]),{bindEos:function(){var t=Object(r["a"])(regeneratorRuntime.mark(function t(e){var n=this;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return Object(c["z"])("eosType",e),this.isLoading=!0,t.next=4,u["a"].scatter.connect("MEE_CHAT").then(function(){var t=Object(r["a"])(regeneratorRuntime.mark(function t(r){return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:r&&(n.setScatter(u["a"].scatter),window.ScatterJS=null,n.doScatterBind().then(function(t){n.isLoading=!1,n.changeUserBinds({type:e,account:t.account})}).catch(function(t){Object(c["A"])(t),n.isLoading=!1}));case 1:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}());case 4:case"end":return t.stop()}},t,this)}));function e(e){return t.apply(this,arguments)}return e}(),bindTg:function(){var t=Object(r["a"])(regeneratorRuntime.mark(function t(){var e,n,r,i=this;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return this.winHandler=Object(c["x"])(""),t.next=3,a["a"].user.tgCSRF({type:"bind"});case 3:e=t.sent,n=e.data,this.winHandler.location.href=n.data.url,r=setInterval(function(){null!=i.winHandler&&i.winHandler.closed&&(clearInterval(r),i.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(r["a"])(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(window.ethereum&&window.web3){t.next=3;break}return Object(c["A"])("你还没有安装eth插件"),t.abrupt("return");case 3:if(!window.ethereum){t.next=15;break}return window.web3||(window.web3=new f.a(window.ethereum)),t.prev=5,t.next=8,window.ethereum.enable();case 8:this.getEthAccount(),t.next=13;break;case 11:t.prev=11,t.t0=t["catch"](5);case 13:t.next=16;break;case 15:window.web3&&(window.web3||(window.web3=new f.a(window.web3.currentProvider)),this.getEthAccount());case 16:case"end":return t.stop()}},t,this,[[5,11]])}));function e(){return t.apply(this,arguments)}return e}(),getEthAccount:function(){var t=Object(r["a"])(regeneratorRuntime.mark(function t(){var e,n,i,s,o=this;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,window.web3.eth.getAccounts();case 2:if(e=t.sent,n=e[0],!n){t.next=10;break}return t.next=7,a["a"].user.getRandom2({account:n});case 7:i=t.sent,s=window.web3.utils.sha3(i.data.data.random),window.web3.eth.sign(s,n,function(){var t=Object(r["a"])(regeneratorRuntime.mark(function t(e,r){var i;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return i=r,t.next=3,a["a"].user.ethBind({account:n,sign:i});case 3:o.changeUserBinds({type:"eth",account:n}),console.log(e);case 5:case"end":return t.stop()}},t)}));return function(e,n){return t.apply(this,arguments)}}());case 10:case"end":return t.stop()}},t)}));function e(){return t.apply(this,arguments)}return e}(),bindTron:function(){var t=Object(r["a"])(regeneratorRuntime.mark(function t(){var e,n,r,i,s;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(window.tronWeb){t.next=3;break}return Object(c["A"])("你还没有安装tron插件"),t.abrupt("return");case 3:return e=window.tronWeb.defaultAddress.base58,t.next=6,a["a"].user.getRandom2({account:e});case 6:return n=t.sent,r=window.tronWeb.sha3(n.data.data.random),t.prev=8,t.next=11,window.tronWeb.trx.signMessage(r);case 11:i=t.sent,t.next=18;break;case 14:return t.prev=14,t.t0=t["catch"](8),Object(c["A"])(t.t0),t.abrupt("return");case 18:return t.next=20,window.tronWeb.trx.verifyMessage(r,i,e);case 20:if(s=t.sent,!s){t.next=27;break}return t.next=24,a["a"].user.tronBind({account:e,sign:i});case 24:this.changeUserBinds({type:"tron",account:e}),t.next=28;break;case 27:this.setLogining(!1);case 28:case"end":return t.stop()}},t,this,[[8,14]])}));function e(){return t.apply(this,arguments)}return e}(),bindCheck:function(){var t=Object(r["a"])(regeneratorRuntime.mark(function t(e,n){var r,i=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 r={},t.prev=8,t.next=11,a["a"].user.tgBind2({csrf_token:e});case 11:r=t.sent,t.next=17;break;case 14:t.prev=14,t.t0=t["catch"](8),this.isLoading=!1;case 17:r.data&&r.data.data&&r.data.data.status>0?(this.isLoading=!1,null!=this.winHandler&&(this.winHandler.close(),this.winHandler=null),this.getSyncInfo&&this.getSyncInfo(this.params),this.getUserInfo()):r.data?(null!=this.winHandler||r.data&&0==r.data.status)&&(this.timeoutHandler=setTimeout(function(){i.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(c["f"])("".concat(this.$t("userinfo.unbindMsg")," ").concat(t.toLocaleUpperCase()," ?")).then(function(){a["a"].user.unBind({type:t}).then(function(){"eos"==t&&e.scatter&&e.scatter.forgetIdentity&&e.scatter.forgetIdentity(),e.$showTips(e.$t("userinfo.unbindSuccess")),e.changeUserBinds({type:t,account:""})})})}})}},"39ab":function(t,e,n){},"417d":function(t,e,n){"use strict";var r=n("6c85"),i=n.n(r);function s(t){if(i()(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}var a=n("ab6b"),o=n.n(a),c=n("ad81"),u=n.n(c);function h(t){if(u()(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t))return o()(t)}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function d(t){return s(t)||h(t)||f()}n.d(e,"a",function(){return d})},"50cd":function(t,e,n){"use strict";var r=n("4cf4"),i=n("0763");t.exports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},8869:function(t,e,n){"use strict";n.d(e,"f",function(){return d}),n.d(e,"e",function(){return l}),n.d(e,"c",function(){return p}),n.d(e,"d",function(){return m}),n.d(e,"a",function(){return g}),n.d(e,"b",function(){return v});var r=n("396f"),i=(n("5f33"),n("3f47")),s=(n("f10e"),n("417d")),a=(n("612f"),n("4453"),n("ee95")),o=(n("3a23"),n("5975")),c=n("33f8"),u=n("52c1"),h=n("c1f9"),f=n.n(h),d={data:function(){return{isSearch:!1,searchList:null}},methods:{searchUser:function(t,e){var n=t.target.value.toLocaleLowerCase();n?(this.searchList=e.filter(function(t){var e,r,i=(t.name||t.user_name||"").toLocaleLowerCase(),s=(t.nick_name||"").toLocaleLowerCase();return e=!!i&&i.indexOf(n)>-1,r=!!s&&s.indexOf(n)>-1,e||r}),this.isSearch=!0):this.isSearch=!1}}},l={data:function(){return{isSearchGroup:!1,searchUserTimer:null}},methods:{searchUser:function(){var t=Object(a["a"])(regeneratorRuntime.mark(function t(e,n){var r=this;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:clearTimeout(this.searchUserTimer),this.searchUserTimer=setTimeout(Object(a["a"])(regeneratorRuntime.mark(function t(){var i,a;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(i=e.target.value.toLocaleLowerCase(),a=r.inviteType,r.isSearchGroup=!0,i.trim()){t.next=7;break}return n.forEach(function(t){r.$set(t,"isShow",!0)}),r.$nextTick(function(){r.isSearchGroup=!1,r.showNum=n.length}),t.abrupt("return");case 7:if(n.forEach(function(t){var e,n,s=(t.user_name||"").toLocaleLowerCase(),a=(t.nick_name||"").toLocaleLowerCase();e=!!s&&s.indexOf(i)>-1,n=!!a&&a.indexOf(i)>-1,r.$set(t,"isShow",e||n)}),n.length+1>=r.membersNum||1==a||2==a){t.next=11;break}return t.next=11,o["a"].group.searchMember({group_id:r.group.groupId,keyword:i}).then(function(t){var e=t.data,r=e.data;r.forEach(function(t){t.isChecked=!1,t.isChoosed=!1,t.isShow=!0}),n=f.a.unionBy([].concat(Object(s["a"])(n),Object(s["a"])(r)),"user_id")});case 11:r.$nextTick(function(){r.isSearchGroup=!1,r.showNum=n.filter(function(t){return t.isShow}).length});case 12:case"end":return t.stop()}},t)})),200);case 2:case"end":return t.stop()}},t,this)}));function e(e,n){return t.apply(this,arguments)}return e}()}},p={data:function(){return{atInd:0}},methods:{atPerson:function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1];var e=this.$refs.chatInput,n=e.selectionStart,r=n-this.keyAfterAt.length;this.inputMsg=this.inputMsg.slice(0,r)+"".concat(t," ")+this.inputMsg.slice(n),this.atInd=0,e.focus(),this.$nextTick(function(){e.setSelectionRange(r+t.length+1,r+t.length+1)}),this.$store.commit("updateIsNewAt",{isNewAt:this.group.isNewAt,isNewAtFound:!0}),this.$store.commit("updateGroupSearchList",[])},handleUp:function(t){return this.atInd>0&&this.atInd--,this.atShow&&t.preventDefault(),!0},handleDown:function(t){var e=this.filterMembers.length;return this.atInd<e-1?this.atInd++:this.atInd=0,this.atShow&&t.preventDefault(),!0}}},m={data:function(){return{selectionAfterAt:!1,keyAfterAt:"",keyAfterAtTimer:"",lastKeyAfterAt:"",isIOS:!!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),isShowContextmenu:!1,menuTop:0,menuLeft:0}},mounted:function(){},computed:Object(i["a"])({},Object(u["e"])(["copyText"]),{filterMembers:function(){if(!this.group.groupId)return[];var t=this.group.membersArray,e=[];if(""!==this.keyAfterAt)e=this.group.searchList;else for(var n=0;n<t.length;n++)t[n].user_id!=this.userId&&e.push(t[n]);return e.slice(0,100)},atShow:function(){return this.atInd=0,this.selectionAfterAt&&this.filterMembers.length}}),watch:{keyAfterAt:function(t){var e=this;clearTimeout(this.keyAfterAtTimer),this.keyAfterAtTimer=setTimeout(function(){e.handleKeyAfterAt(t)},200)},inputMsg:function(t,e){this.handleSelectionChange()}},methods:{handleKeyAfterAt:function(t){var e=this;if(this.group.groupId&&""!=t.trim()&&!this.group.isNewAtFound)if(this.group.membersArray.length<this.group.membersNum)o["a"].group.searchMember({group_id:this.group.groupId,keyword:t}).then(function(t){var n=t.data;e.$store.commit("updateGroupSearchList",n.data)});else{var n=this.group.membersArray.filter(function(e){var n,r;return n=!!e.user_name&&e.user_name.indexOf(t)>-1,r=!!e.nick_name&&e.nick_name.indexOf(t)>-1,n||r});this.$store.commit("updateGroupSearchList",n)}},getStrBeforeSelection:function(){var t=this.$refs.chatInput;if(!t)return"";var e=t.selectionStart,n=this.inputMsg.slice(0,e);return n},getStrAfterSelection:function(){var t=this.$refs.chatInput;if(!t)return"";var e=t.selectionStart,n=this.inputMsg.slice(e);return n},handleClick:function(){this.isShowContextmenu=!1},handleLeft:function(t){var e=this.$refs.chatInput,n=e.selectionStart;if(0===n)return!0;var r=this.getStrBeforeSelection(),i=this.group.members;for(var s in i){var a=i[s].user_name,o=new RegExp("@".concat(a," $"));if(o.test(r))return t.preventDefault(),e.setSelectionRange(n-a.length-2,n-a.length-2),!0}},handleRight:function(t){var e=this.$refs.chatInput,n=e.selectionStart,r=this.getStrAfterSelection(),i=this.group.members;for(var s in i){var a=i[s].user_name,o=new RegExp("^@".concat(a," "));if(o.test(r))return t.preventDefault(),e.setSelectionRange(n+a.length+2,n+a.length+2),!0}return!0},handleDel:function(t){var e=this,n=this.$refs.chatInput,i=n.selectionStart;if(0!==i){var s=this.getStrBeforeSelection(),a=this.group.members,o=function(r){var o=a[r].user_name,c=new RegExp("@".concat(o," $"));if(c.test(s))return t.preventDefault(),e.inputMsg=e.inputMsg.slice(0,i-o.length-2)+e.inputMsg.slice(i),e.$nextTick(function(){n.setSelectionRange(i-o.length-2,i-o.length-2)}),{v:void 0}};for(var c in a){var u=o(c);if("object"===Object(r["a"])(u))return u.v}}},handleKeyDown:function(t){var e=this;if(!this.atShow){if(t.altKey||t.ctrlKey){var n=this.getStrBeforeSelection(),r=this.getStrAfterSelection();this.inputMsg=n+"\n"+r,this.$nextTick(function(){e.$refs.chatInput.setSelectionRange(n.length+1,n.length+1)})}else this.handleSend(t),t.preventDefault();return!0}t.preventDefault();var i=this.filterMembers[this.atInd];this.atPerson(i.user_name,i.nick_name)},handleFocus:function(){var t=this;this.$emit("handleFocus"),this.updateChatInputFocus(!0),document.addEventListener("selectionchange",this.handleSelectionChange),this.isIOS&&setTimeout(function(){t.$root.$el.addEventListener("click",t.fixIOS)},0)},handleBlur:function(){var t=this;if(document.removeEventListener("selectionchange",this.handleSelectionChange),this.updateChatInputFocus(!1),(this.selectionAfterAt||this.isShowContextmenu)&&setTimeout(function(){t.selectionAfterAt=!1,t.isShowContextmenu=!1},200),this.isIOS){var e=document.body.scrollTop;document.body.scrollTop=e,this.$root.$el.removeEventListener("click",this.fixIOS)}Object(c["v"])()},handleEsc:function(){this.selectionAfterAt=!1},handleSelectionChange:function(){var t=this.$refs.chatInput;if(t){var e=t.selectionStart,n=this.$refs.chatInput.selectionEnd;if(e===n){var r=this.getStrBeforeSelection();if(this.selectionAfterAt=/@/.test(r),this.selectionAfterAt){this.keyAfterAt=r.slice(r.lastIndexOf("@")+1);var i=this.keyAfterAt.indexOf(this.lastKeyAfterAt)<0;this.$store.commit("updateIsNewAt",{isNewAt:i,isNewAtFound:!i&&this.group.isNewAtFound}),i&&this.$store.commit("updateGroupSearchList",[]),this.lastKeyAfterAt=this.keyAfterAt}}}},handleContextmenu:function(t){this.copyText&&(this.isShowContextmenu=!this.isShowContextmenu,this.isShowContextmenu&&(this.menuTop=t.offsetY,this.menuLeft=t.offsetX>100?t.offsetX-30:t.offsetX))},handlePaste:function(){this.isShowContextmenu=!1,this.inputMsg+=this.copyText},closeEmojiList:function(){this.emojiShow=!1},fixIOS:function(t){var e=this;setTimeout(function(){e.$refs.chatInput===document.activeElement&&document.activeElement.blur()},0)}}},g={methods:{addPanelSession:function(t,e){var n=this,r=this.sessionList.some(function(t){return t.session_id==e});r||o["a"].user.getOtherInfo({target_id:t}).then(function(t){var r=t.data,i=r.data,s={cover_photo:i.cover_photo,is_group:"0",name:i.nick_name,session_id:e,unread:0};n.$store.commit("addSessionItem",s)})}}},v={data:function(){return{curLang:Object(c["r"])("lang")||Object(c["n"])()}},methods:{changeLang:function(){var t="en"==this.curLang?"zh":"en";this.$i18n.locale=t,this.curLang=t,Object(c["z"])("lang",t)}}}},"8af1":function(t,e,n){"use strict";var r=n("8232"),i=n("471d"),s=n("7182"),a=n("44a7"),o=n("33ef"),c=n("3202"),u=n("50cd"),h=n("0811");i(i.S+i.F*!n("1969")(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,i,f,d=s(t),l="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,g=void 0!==m,v=0,b=h(d);if(g&&(m=r(m,p>2?arguments[2]:void 0,2)),void 0==b||l==Array&&o(b))for(e=c(d.length),n=new l(e);e>v;v++)u(n,v,g?m(d[v],v):d[v]);else for(f=b.call(d),n=new l;!(i=f.next()).done;v++)u(n,v,g?a(f,m,[i.value,v],!0):i.value);return n.length=v,n}})},"92dd":function(t,e,n){n("4d6c"),n("8af1"),t.exports=n("836e").Array.from},ab6b:function(t,e,n){t.exports=n("92dd")},ad81:function(t,e,n){t.exports=n("a945")},c918:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"about-me"},[t.userInfo?n("div",{staticClass:"pub-user-top",on:{click:function(e){return t.$router.push("/editMe")}}},[n("div",{staticClass:"avatar-wrap"},[t.userInfo.cover_photo?n("img",{staticClass:"user-avatar",attrs:{src:t.userInfo.cover_photo,alt:""},on:{click:function(e){return e.stopPropagation(),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:"top-info"},[n("div",{staticClass:"name"},[t._v(t._s(t.userInfo.nick_name))]),n("div",{staticClass:"code"},[t._v(t._s(t.$t("h5.username"))+":@"+t._s(t.userInfo.user_name))])]),n("i",{staticClass:"arrow-icon el-icon-arrow-right"})]):t._e(),t.userInfo?n("ul",{staticClass:"pub-account-list"},t._l(t.userInfo.binds,function(e,r){return n("li",{key:r,staticClass:"list-item"},[n("div",{staticClass:"icon-wrap"},[n("i",{class:e.type+"-icon"})]),n("div",{staticClass:"info"},[n("div",{staticClass:"title-wrap"},[n("h4",[t._v(t._s(e.type.toUpperCase()))]),n("p",[t._v(t._s(e.account||t.$t("h5.notBind")))])]),e.account?n("div",{staticClass:"btn-unbind",on:{click:function(n){return n.stopPropagation(),t.unbindAccount(e.type)}}},[t._v(t._s(t.$t("userinfo.unbind")))]):n("el-button",{on:{click:function(n){return t.bindAccount(e.type)}}},[t._v(t._s(t.$t("userinfo.bind")))]),e.account?n("div",{staticClass:"opetate",on:{click:function(n){return n.stopPropagation(),t.hanldeChange(e)}}},[n("i",{class:0===e.is_visible?"unopen":"open"}),n("p",[t._v(t._s(0===e.is_visible?t.$t("userinfo.private"):t.$t("userinfo.public")))])]):t._e()],1)])}),0):t._e(),n("div",{staticClass:"pub-bottom-btn ext-lang",on:{click:t.changeLang}},[n("i",{staticClass:"icon-change"}),t._v(t._s("en"==t.curLang?t.$t("public.chinese"):t.$t("public.english")))]),n("div",{staticClass:"pub-bottom-btn",on:{click:t.loginOut}},[t._v(t._s(t.$t("h5.logout")))])])},i=[],s=(n("f91a"),n("3f47")),a=(n("3a23"),n("39ab"),n("3050"),n("c843")),o=n.n(a),c=n("6e6d"),u=n("52c1"),h=n("5975"),f=n("8869"),d=n("2671");c["default"].component(o.a.name,o.a);var l={name:"aboutMe",mixins:[f["b"],d["a"]],data:function(){return{}},computed:Object(s["a"])({},Object(u["e"])({userInfo:function(t){return t.userInfo}})),methods:{bindAccount:function(t){switch(t){case"eos":this.bindEos();break;case"tg":this.bindTg();break}},loginOut:function(){var t=this;this.$store.dispatch("doScatterLogout").then(function(){t.$router.replace({name:"login",query:{from:"/me"}}),t.$store.commit("setUserInfo",null),t.$store.commit("initChatData"),t.$store.commit("initGroupData"),t.$store.commit("chatAppLogin",!1),t.$store.commit("toApp",!0)})},hanldeChange:function(t){var e=this,n=t.type,r=0==t.is_visible?1:0;h["a"].user.setVisible({type:n,is_visible:r}).then(function(t){t.data;e.$store.dispatch("getUserInfo")})},handlePsw:function(){this.$router.push("/password")}},created:function(){this.$store.dispatch("getUserInfo")}},p=l,m=n("17cc"),g=Object(m["a"])(p,r,i,!1,null,null,null);e["default"]=g.exports}}]);