(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/tabbar/my/my"],{"0682":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a={props:{size:{type:String,default:"90"},userId:{type:String,default:""},userName:{type:String,default:"H"}},computed:{photoStyle:function(){return"font-size: ".concat(this.size,"rpx; width: ").concat(2*this.size,"rpx; height: ").concat(2*this.size,"rpx; line-height: ").concat(2*this.size,"rpx;")}},data:function(){return{}},methods:{}};t.default=a},"166c":function(e,t,n){"use strict";var a;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return a}));var o=function(){var e=this,t=e.$createElement;e._self._c},r=[]},3221:function(e,t,n){},"3b66":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=c(n("7cc2")),o=n("ccb8"),r=c(n("be8a"));function c(e){return e&&e.__esModule?e:{default:e}}var i={components:{avatar:r.default},data:function(){return{gridCol:3,gridBorder:!1,cuIconList:[{cuIcon:"favor",color:"orange",name:"收藏",admin:0,badge:0,code:"collection"},{cuIcon:"list",color:"yellow",name:"我的文章",admin:0,badge:0,code:"myArticle"},{cuIcon:"notification",color:"green",name:"通知",admin:0,badge:0,code:"notice"},{cuIcon:"edit",color:"red",name:"编辑信息",admin:0,badge:0,code:"personInfo"},{cuIcon:"newshot",color:"olive",name:"文章管理",admin:"管理员"===e.getStorageSync("userInfo").user_type?0:1,badge:0,code:"articleManagement"},{cuIcon:"peoplelist",color:"cyan",name:"人员管理",admin:"管理员"===e.getStorageSync("userInfo").user_type?0:1,badge:0,code:"peopleManagement"},{cuIcon:"friendadd",color:"mauve",name:"注册管理",admin:"管理员"===e.getStorageSync("userInfo").user_type?0:1,badge:0,code:"registerManagement"},{cuIcon:"comment",color:"brown",name:"帮助答复",admin:"管理员"===e.getStorageSync("userInfo").user_type?0:1,badge:0,code:"helpAnswer"},{cuIcon:"settings",color:"purple",name:"设置",admin:0,badge:0,code:"settings"},{cuIcon:"questionfill",color:"pink",name:"帮助",admin:"管理员"===e.getStorageSync("userInfo").user_type?1:0,badge:0,code:"help"}],userInfo:{},userOtherInfo:{},noticeNumber:0}},onNavigationBarButtonTap:function(t){e.navigateTo({url:"/pages/tabbar/my/notice/notice"})},onShow:function(){this.getUserInfo(),this.getMyPageNumber(),this.getNoticeData(),this.userInfo=e.getStorageSync("userInfo");var t=0,n=setInterval((function(){(0,o.updateUserInfo)(),t+=1,5===t&&clearInterval(n)}),1e4)},onLoad:function(){},onPullDownRefresh:function(){this.getMyPageNumber(),this.getNoticeData(),this.getUserInfo()},mounted:function(){},methods:{getNoticeData:function(){var t=this,n=this;a.default.post("/hs/getNoticeData",{authorId:e.getStorageSync("userInfo").user_id}).then((function(e){t.noticeNumber=e.data.messageNoticeList.length+e.data.verifyNoticeList.length,n.cuIconList[2].badge=t.noticeNumber,t.noticeNumber,console.log("通知",e)}),(function(e){console.log("err",e)}))},getMyPageNumber:function(){var e=this;a.default.post("/admin/getMyPageNumber",{}).then((function(t){console.log("获取文章管理/帮助答复的未操作数字",t),e.cuIconList[4].badge=t.data.articleManagementNumber,e.cuIconList[6].badge=t.data.registerManagementNumner,e.cuIconList[7].badge=t.data.helpAnswerNumber}),(function(e){console.log("err",e)}))},goPage:function(t){var n={followList:"/pages/tabbar/follow/follow-list",fansList:"/pages/tabbar/follow/fans-list"};e.navigateTo({url:"".concat(n[t])})},getUserInfo:function(){var t=this;a.default.post("/hs/getPersonalInfo",{userId:e.getStorageSync("userInfo").user_id,releaseId:e.getStorageSync("userInfo").user_id}).then((function(n){e.startPullDownRefresh(),console.log("个人信息",n),t.userOtherInfo=n.data.personalInfo}),(function(e){console.log("err",e)}))},goToPage:function(t){var n={collection:"/pages/tabbar/my/collection/collection",myArticle:"/pages/tabbar/my/my-article/my-article",personInfo:"/pages/tabbar/my/edit-info/edit-info",settings:"/pages/tabbar/my/settings/settings",help:"/pages/tabbar/my/help/help",articleManagement:"/pages/tabbar/my/article-management/article-management",peopleManagement:"/pages/tabbar/my/people-management/people-management",helpAnswer:"/pages/tabbar/my/help-answer/help-answer",registerManagement:"/pages/tabbar/my/register-management/register-management",notice:"/pages/tabbar/my/notice/notice"};e.navigateTo({url:"".concat(n[t.code])})}}};t.default=i}).call(this,n("543d")["default"])},"6c00":function(e,t,n){},7709:function(e,t,n){"use strict";(function(e){n("813a");a(n("66fd"));var t=a(n("d32b"));function a(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},"78fb":function(e,t,n){"use strict";var a=n("6c00"),o=n.n(a);o.a},a211:function(e,t,n){"use strict";n.r(t);var a=n("3b66"),o=n.n(a);for(var r in a)"default"!==r&&function(e){n.d(t,e,(function(){return a[e]}))}(r);t["default"]=o.a},b91b:function(e,t,n){"use strict";var a=n("3221"),o=n.n(a);o.a},be8a:function(e,t,n){"use strict";n.r(t);var a=n("eea1"),o=n("f77d");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);n("b91b");var c,i=n("f0c5"),u=Object(i["a"])(o["default"],a["b"],a["c"],!1,null,"79e5d186",null,!1,a["a"],c);t["default"]=u.exports},d32b:function(e,t,n){"use strict";n.r(t);var a=n("166c"),o=n("a211");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);n("78fb");var c,i=n("f0c5"),u=Object(i["a"])(o["default"],a["b"],a["c"],!1,null,"03059ec4",null,!1,a["a"],c);t["default"]=u.exports},eea1:function(e,t,n){"use strict";var a;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return a}));var o=function(){var e=this,t=e.$createElement,n=(e._self._c,e.userName.slice(0,1));e.$mp.data=Object.assign({},{$root:{g0:n}})},r=[]},f77d:function(e,t,n){"use strict";n.r(t);var a=n("0682"),o=n.n(a);for(var r in a)"default"!==r&&function(e){n.d(t,e,(function(){return a[e]}))}(r);t["default"]=o.a}},[["7709","common/runtime","common/vendor"]]]);