GterForumWeB/dist/js/336.52ad8d34.js
2024-06-11 16:11:52 +08:00

1 line
6.3 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use strict";(self["webpackChunkninepage"]=self["webpackChunkninepage"]||[]).push([[336],{1336:function(t,e,s){s.r(e),s.d(e,{default:function(){return l}});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("div",{staticClass:"header flexcenter flexcolumn"},[e("div",{staticClass:"portrait flexcenter shadow"},[e("img",{staticClass:"portrait-icom",attrs:{src:t.user.avatar}})]),e("div",{staticClass:"header-username flexacenter"},[t._v(t._s(t.user.nickname))]),e("div",{staticClass:"header-uid",on:{click:function(e){return t.$copy(t.user.uin)}}},[t._v("UID"+t._s(t.user.uin))])]),e("div",{staticClass:"operation-box shadow data-presentation flexflex"},[e("div",{staticClass:"data-presentation-item flex1 flexcenter"},[e("div",{staticClass:"data-presentation-number"},[t._v(t._s(t.count.prestige))]),e("div",{staticClass:"data-presentation-name"},[t._v("声望")])]),e("div",{staticClass:"data-presentation-item flex1 flexcenter"},[e("div",{staticClass:"data-presentation-number"},[t._v(t._s(t.count.gtercurrency))]),e("div",{staticClass:"data-presentation-name"},[t._v("寄托币")])]),e("div",{staticClass:"data-presentation-item flex1 flexcenter"},[e("div",{staticClass:"data-presentation-number"},[t._v(t._s(t.count.digest))]),e("div",{staticClass:"data-presentation-name"},[t._v("精华")])])]),e("div",{staticClass:"operation-box shadow"},[e("a",{staticClass:"operation-item flexacenter",attrs:{href:"weixin://dl/business/?appid=wxa9296b07391c2bc7&path=pagesLoginRequired/pages/messageCenter/messageCenter"}},[t._m(0),e("div",{staticClass:"operation-right flexacenter"},[0==t.user.messagenum?e("div",{staticClass:"operation-data flexcenter"},[t._v(t._s(t.count.message))]):e("div",{staticClass:"unread-info flexcenter"},[t._v(t._s(t.user.messagenum))]),e("svg-icon",{attrs:{"icon-class":"arrowsLeft","class-name":"operation-right-icom"}})],1)]),t._l(t.operateList,(function(s,a){return e("a",{key:a,staticClass:"operation-item flexacenter",attrs:{href:s.url}},[e("div",{staticClass:"operation-left flexacenter"},[e("img",{staticClass:"operation-icom",attrs:{mode:"widthFix",src:`${t.$baseURL}/img/user/${s.icon}`}}),t._v(t._s(s.name))]),e("div",{staticClass:"operation-right flexacenter"},[e("div",{staticClass:"operation-data flexcenter"},[t._v(t._s(t.count[s.key]))]),e("svg-icon",{attrs:{"icon-class":"arrowsLeft","class-name":"operation-right-icom"}})],1)])}))],2),e("div",{staticClass:"operation-box shadow"},t._l(t.setList,(function(s,a){return e("a",{key:a,staticClass:"operation-item flexacenter",attrs:{href:s.url}},[e("div",{staticClass:"operation-left flexacenter"},[e("img",{staticClass:"operation-icom",attrs:{mode:"widthFix",src:`${t.$baseURL}/img/user/${s.icon}`}}),t._v(t._s(s.name))]),e("div",{staticClass:"operation-right flexacenter"},[e("svg-icon",{attrs:{"icon-class":"arrowsLeft","class-name":"operation-right-icom"}})],1)])})),0),e("div",{staticClass:"log-out",on:{click:function(e){return t.logOut()}}},[t._v("退出登录")])])},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"operation-left flexacenter"},[e("img",{staticClass:"operation-icom",attrs:{mode:"widthFix",src:s(2516)}}),t._v("消息 ")])}],r=(s(7658),{name:"userIndex",data(){return{user:{avatar:"",nickname:"",messagenum:0},count:{},operateList:[{name:"收藏",url:"https://www.gter.net/bbs/user/collection.html",icon:"collect.png",type:"collect",key:"fav"},{name:"发帖",url:"https://www.gter.net/bbs/user/threads.html",icon:"postmessage.png",type:"collect",key:"post"},{name:"回帖",url:"https://www.gter.net/bbs/user/post.html",icon:"replymessage.png",type:"post",key:"reply"}],setList:[{name:"个人资料",url:"https://member.gter.net/index/modify.html",icon:"personaldata.png",type:"modify"},{name:"设置头像",url:"https://member.gter.net/index/avatar.html",icon:"avatarsetting.png",type:"avatar"},{name:"我的状态",url:"https://member.gter.net/index/status.html",icon:"mystatus.png",type:"status"},{name:"修改密码",url:"https://member.gter.net/reset/password.html",icon:"changepassword.png",type:"password"},{name:"绑定邮箱",url:"https://member.gter.net/reset/email.html",icon:"bindemail.png",type:"email"},{name:"绑定手机",url:"https://member.gter.net/reset/mobile.html",icon:"bindmobile.png",type:"mobile"},{name:"绑定第三方账号",url:"https://member.gter.net/bind",icon:"bindingthird-party.png",type:"bind"},{name:"浏览个人主页",url:"",icon:"visithomepage.png",type:"space"}]}},mounted(){this.init()},methods:{init(){this.$http.post("/api/user","").then((t=>{let e=t.data;this.count=e.count,this.user=e.user;let s=e.user,a=this.setList;a.forEach((t=>{"space"==t.type&&(t["url"]=`https://bbs.gter.net/space-uid-${s.uin}.html`)}))}))},logOut(){this.user={avatar:"",nickname:"",messagenum:0},this.$store.commit("setUser",{}),this.$store.commit("setFavoriteList",[]),this.$store.commit("setHomeRequestState",!1),this.$http.post("/api/user/Logout").then((t=>{this.$clearCookies(),this.$router.push("/")}))}}}),n=r,o=s(1001),c=(0,o.Z)(n,a,i,!1,null,"5e99c0b6",null),l=c.exports},2516:function(t){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAADuklEQVR4nO3ZjXHaSBiH8T8VWB3EV0HUwS0VHK7ASwXGFYRUYFwBooJzKkDpAHfgVHCiAu55ZyNHWj4cAghb4pn54Zl1DOyLELbSU8e7DACd7jIAdLrLALCta0mf0Ia+Y2M9VHOS7jBA2yqQS3pErp+VA0gwxQBdKJM0xOsA5nDqVnYkjGwAXuHV72J/2QCe8A82lUm6R4GPmtf2F/irDWCFXS3QR4GP1heMtb1vPW5WeCvbfB8LfJSm8Nrd9x43K1SzQ/4BcQXse5nedwmmGCDuGZ9RtnEAtmY/nEm6QtwE93iPJZgjRdwMmcL3y7YOwLI7yVSfWNkThijwXkrxL661nr1gEzjtMQArQabNnxILDGFfz12KORLE2XPMFHIK/67szQGUjRXOqHEFbpDrfHmF93zcEk71F8jpDw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