chunk-5ef25ae2.6d68bf7c.js 11 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5ef25ae2"],{1195:function(t,s,n){t.exports=n.p+"img/avatar.0166dac5.png"},"1ab0":function(t,s,n){},"4a0a":function(t,s){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAB0FJREFUeF7tnGtsHNUZht931k5wdmZDQe2fcjGXkni2VKRR1agCSkEoRKC0SEUhiFbNzjqFtmmKBKqqFhABigTljgSEHYOICikBCRIpAn5QKAghSkoh8jiAQtzLn6qkETtjJ5DsfNXZta31euydvXjOGu3+XJ3znfc8c67f+c4hkvxdID32aYdXiiFnG5SzRGSZAP0UZgCxQJplOSIBQF8oRQKjJD8IhR8y5F7vQN8evMpjScnmfBe0/JrD/cbR0g8BfA+Q8wBYLZbpA3wdwJ/D3tSz+x7pG23R3pzZ5wXQspxYPRi/Uhj+CIJzQcxLORAIiDcoxrZjWLL9gyH67YbVVuHLf1w80ejlLwFsAvCldoutY+8QgAfDo/LAviczB9tVdlsAnXSF9FlLx39DCa8DUBlH9P0CoXGv/+mSO/69g4dbldEyIDs3tpaU+wRyWqti2pmf4AGR8FfeUGZnK3abBqTGGYPBVgJXtiJgvvMKsD0Uc2Oz41NTgGxnbAUQ/gnA1+a7gm2y/xFgrPPc9LuN2msY0EDeX0fhE4Ac12hhetPziFB+MlKw1IeN/WsIkO2M/0JQup+AEbuEDkooQEhgs+daD8WVFRtQ1vFvEuCWuIY7OR2Bm4dda0scjbEAqZYDlB6MY3DhpElt8twldVtSXUBqzIHgqYXarWb7YKq7gbiq3pg0J6DKbCVvLrwBOW475hGA35lrdpsVkFrnpBjsWUBTeVwqtek+Kom5crZ10qyABhz/6U5fBDZLpDafWkyOuNb6KHuRgNT2AQxfaJeABWFHjO97Q+kZ25IZgNTGM2P5Hsj+JCsmwKukvEQxRIDvArgEkLqTSNs0iowWfcuu3eDOED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ctprPfapqHuOCDcOu0uVbxwTMQJq4fgDLQ2s9tin0s30HBwKZM/IfmtV7R2wlRul93ApeBvAORogTT84LC/ONB09A7jGc61HoyBk8/7PRVA3ErXdACOPnnUFLxBcM+yaL0ZVcvmG4mWGwchz+3ZDqbIXHbww0c10hL/kvIL5eFSF7XxwNUS2zSOMKNPR4S9Vg2OiAVQgX/EK5kWRgHLBECgbEgQ0dwCVEqIjBI8wbhx207dVg8gOBqslxC5AepMCVDcETwnRFcQJ8G0ReckgA6GsEsFaAqmk4KgLeJ8W09m6QZzlsagbBjz1XbqB5MrT0mggucLXvYpQaUTdyyzNXmaZ7ITd61AxponuhboYkLpXMmNA+mJc6k1tjnMVcxJHw7dputfCY7Wk7sMCdTF1n6aoi6iSoLwtQen+pC/g1ZUnMgqkNkfdIqybtypBw2NQlPHu8zgxkXcfWIoJqvtEV0xQZS/l1CNv4YUAz23DlQcfkDcA45UF+8jbrPwinwlkP4EMpOaZQNIXoEiI1mcC/w8zdT3adpHoJQAAAABJRU5ErkJggg=="},"7f7f":function(t,s,n){var a=n("86cc").f,i=Function.prototype,e=/^\s*function ([^ (]*)/,c="name";c in i||n("9e1e")&&a(i,c,{configurable:!0,get:function(){try{return(""+this).match(e)[1]}catch(t){return""}}})},"92c5":function(t,s,n){"use strict";n.r(s);n("7f7f");var a=function(){var t=this,s=t._self._c;return s("div",{staticClass:"wrap"},[s("div",{staticClass:"header"},[s("img",{staticClass:"return-img",attrs:{src:n("f5a4")},on:{click:function(s){return t.$router.back()}}}),s("p",{staticClass:"header-title"},[t._v("个人信息")])]),s("ul",{staticClass:"list"},[s("li",[s("span",{staticClass:"name"},[t._v("头像")]),s("van-uploader",{attrs:{"after-read":t.updateHeadimg}},[s("div",{staticClass:"item-sidebar"},[t.isLogin?s("img",{staticClass:"avatar",attrs:{src:t.userInfo.headimg||n("1195")}}):s("img",{staticClass:"avatar",attrs:{src:n("1195")}}),s("img",{staticClass:"back-icon",attrs:{src:n("c8fc")}})])])],1),s("li",[s("span",{staticClass:"name"},[t._v("昵称")]),s("div",{staticClass:"item-sidebar",on:{click:function(s){t.showEditName=!0}}},[t.isLogin?s("span",{staticClass:"msg",staticStyle:{"text-align":"right"}},[t._v("\n "+t._s(t.showUserName)+"\n")]):s("span",{staticClass:"msg",staticStyle:{"text-align":"right"}},[t._v("未登录")]),s("img",{staticClass:"back-icon",attrs:{src:n("c8fc"),alt:""}})])]),t.userInfo.bind_email?s("li",[s("span",{staticClass:"name"},[t._v("邮箱")]),s("div",{staticClass:"item-sidebar"},[t.userInfo.bind_email?s("span",{staticClass:"msg",staticStyle:{"text-align":"right"}},[t._v("\n "+t._s(t.userInfo.bind_email)+"\n\t\t\t\t\t")]):t._e(),s("button",{on:{click:function(s){t.showUnbind=!0}}},[t._v("解绑")])])]):s("li",[s("span",{staticClass:"name"},[t._v("邮箱")]),s("div",{staticClass:"item-sidebar"},[s("button",{on:{click:function(s){t.showUnbind=!0}}},[t._v("未绑")])])]),s("li",[s("span",{staticClass:"name"},[t._v("手机号")]),s("div",{staticClass:"item-sidebar"},[t.userInfo.bind_phone?s("span",{staticClass:"msg",staticStyle:{"text-align":"right"}},[t._v("\n "+t._s(t.userInfo.bind_phone)+"\n\t\t\t\t\t")]):s("span",{staticClass:"msg",staticStyle:{"text-align":"right"}},[t._v("未绑定")])])])]),s("div",{staticClass:"btn-box"},[s("button",{attrs:{type:"button"},on:{click:function(s){t.show=!0}}},[t._v("退出登录")])]),s("van-overlay",{attrs:{show:t.show,"z-index":"99"}},[s("div",{staticClass:"window"},[s("button",{staticClass:"close-btn",attrs:{type:"button"},on:{click:function(s){t.show=!1}}},[s("img",{attrs:{src:n("c2f4")}})]),s("img",{staticClass:"window-icon",attrs:{src:n("4a0a")}}),s("span",{staticClass:"window-msg"},[t._v("请先联系官方解绑设备")]),s("div",{staticClass:"window-btn-box"},[s("button",{attrs:{type:"button"},on:{click:function(s){return t.logout()}}},[t._v("确认退出")]),s("button",{attrs:{type:"button"},on:{click:function(s){t.show=!1}}},[t._v("取消")])])])]),t.showEditName?s("div",[s("div",{staticClass:"mask-layer",on:{click:function(s){t.showEditName=!1}}}),s("div",{staticClass:"insert-hyperlink-window"},[s("p",{staticClass:"insert-hyperlink-label"},[t._v("修改昵称")]),s("div",{staticClass:"insert-hyperlink-input-wrap"},[s("div",{staticClass:"insert-hyperlink-input-box"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.userInfo.name,expression:"userInfo.name"}],staticClass:"insert-hyperlink-input",attrs:{type:"text",placeholder:"请输入标签"},domProps:{value:t.userInfo.name},on:{input:function(s){s.target.composing||t.$set(t.userInfo,"name",s.target.value)}}})])]),s("div",{staticClass:"insert-hyperlink-btn-box"},[s("button",{staticClass:"btn-1",attrs:{type:"button"},on:{click:function(s){t.showEditName=!1}}},[t._v("取消")]),s("button",{staticClass:"btn-2",attrs:{type:"button"},on:{click:function(s){return t.update()}}},[t._v("确认")])])])]):t._e(),s("van-overlay",{attrs:{show:t.showUnbind,"z-index":"99"}},[s("div",{staticClass:"window"},[s("button",{staticClass:"close-btn",attrs:{type:"button"},on:{click:function(s){t.show=!1}}},[s("img",{attrs:{src:n("c2f4")}})]),s("img",{staticClass:"window-icon",attrs:{src:n("4a0a")}}),s("span",{staticClass:"window-msg"},[t._v(t._s(t.userInfo.bind_email?"解除绑定":"绑定邮箱")+"请联系官方客服")]),s("div",{staticClass:"window-btn-box"},[s("button",{attrs:{type:"button"},on:{click:function(s){t.show=!1,t.$router.push("/contact")}}},[t._v("联系官方")]),s("button",{attrs:{type:"button"},on:{click:function(s){t.showUnbind=!1}}},[t._v("取消")])])])])],1)},i=[],e=(n("1c01"),n("58b2"),n("8e6e"),n("f3e2"),n("d25f"),n("ac6a"),n("456d"),n("ade3")),c=n("d399"),o=n("f523");function r(t,s){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);s&&(a=a.filter((function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable}))),n.push.apply(n,a)}return n}function A(t){for(var s=1;s<arguments.length;s++){var n=null!=arguments[s]?arguments[s]:{};s%2?r(Object(n),!0).forEach((function(s){Object(e["a"])(t,s,n[s])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(n,s))}))}return t}var l={components:{},data:function(){return{isLogin:!1,userInfo:{},showUserName:"",show:!1,showEditName:!1,showUnbind:!1}},mounted:function(){this.getUserInfo()},methods:{getUserInfo:function(){var t=this;o["v"].getUserInfo().then((function(s){var n=s.data;t.isLogin=!0,t.userInfo=n.detail,t.showUserName=t.userInfo.name}))},updateHeadimg:function(t){var s=this,n=t.file;return Object(o["y"])(n).then((function(t){var n=t.data;s.update({headimg:n})}))},update:function(){var t=this,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.userInfo.name.length>16?Object(c["a"])("昵称最多16个字符"):o["v"].updateUserInfo(A({name:this.userInfo.name,headimg:this.userInfo.headimg},s)).then((function(n){var a=n.msg;t.userInfo=A(A({},t.userInfo),s),localStorage.setItem("user_info",JSON.stringify(t.userInfo)),t.showEditName=!1,t.showUserName=t.userInfo.name,Object(c["a"])(a)}))},unbind:function(){},logout:function(){if("ios"===localStorage.getItem("APP_OPEN"))try{window.webkit.messageHandlers.h5LogoutEvent.postMessage("退出登录")}catch(t){console.error(t)}localStorage.removeItem("token"),localStorage.removeItem("user_info"),localStorage.removeItem("user_level"),location.href="/"}}},u=l,g=(n("fb8c"),n("2877")),f=Object(g["a"])(u,a,i,!1,null,"fc22e310",null);s["default"]=f.exports},c2f4:function(t,s){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAASpJREFUSEu11sENwjAMBdBvZQTuzAA7wBmGqLpTpA4BZ9iBrgB3RoiKggoqIYltajimlR9xHcfkvT8CWDnn9k3TXPCHX9d16xDCAUBP3vsrgCWAu3Nua42O2AnAAsCNkgVTNBebYgb/gZZiPkFrtLaBN2iFctn6AOeiKUZEm7Zt+2nhf4G/ohIsxs6CWlSKVUEpqsFYkEO1mAgsoXE9hPDqIPdcgeS6ZPEbpi+nuxmfx3YlxsQ7LDSHuKzCTEBtwzdJqQYVgblqjOkZhuE8XjviW4YFa6VvfiwkASXvsL00d/Zq50yDipq35FBLUfZ6kmClS5y9nqT/sjbYcTGKI4ZmZ1wbnMbKDlFzMC69X2OiBVZDPwZhS6yA3iL4HPWJaJcOPLXi0DybjvoPsMGyf10lE5AAAAAASUVORK5CYII="},c8fc:function(t,s){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAUCAYAAAC07qxWAAAAAXNSR0IArs4c6QAAAXZJREFUOE+F0jFIW0EcBvDvO0ihZPANLdJRwU2K0K0hHbSCmw4SdKog7+6KW7vYqR11MUuFd7ngooNrlwoiYiXFdrJ06KCbOHVyLTT3lwtJsH0v8caPHxz33Ufn3DnJ71priyGHzrkjADMkN7XW64NshCMkT0RkiuRbrfVWEWYMvfejItISkXGSK1rr3f9xB3bxWAihBeCxUmohTdPPd3EfxrDZbE622+1Tkg9CCLPW2rMe/gfGsNFoPAdwKCJ/RKRqrf0V8xyMYZZlc0qpTyLyG0DFGHNVCLt4meQegAsA1YEwYufcGoCPAFr3wfcAPgD4ORA6516T3BaR61KpVCmE3vvFEMI+gBsReRFfnoPe++kQQiz7r1LqZZqm33L1eO+fhRCOATwkOa+1PsgVnmXZBMn4hY9E5JW1NlbTP52rnXNPAHwFMAbgjTGmnhtFvV5PyuXyFxF5CmDDGPOucGa94QLYMcasDhvuD5KXSZIs1Wq19iB4C/JalBV1ALnuAAAAAElFTkSuQmCC"},f5a4:function(t,s){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAm5JREFUWEft2MnLTlEYAPDfZx4yK8WCWLBgwQIbSobIkMiwYiMbJX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