1 line
6.0 KiB
JavaScript
1 line
6.0 KiB
JavaScript
|
(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/setting
|