HHSLinkSLink/HSLink-app/unpackage/dist/build/mp-weixin/pages/tabbar/my/my.js
2020-12-19 12:13:27 +08:00

1 line
5.8 KiB
JavaScript

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/tabbar/my/my"],{"0083":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=c(n("1da1")),o=n("7960"),r=c(n("21b3"));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:"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:"green",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;a.default.post("/hs/getNoticeData",{authorId:e.getStorageSync("userInfo").user_id}).then((function(e){t.noticeNumber=e.data.messageNoticeList.length+e.data.verifyNoticeList.length,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[3].badge=t.data.articleManagementNumber,e.cuIconList[5].badge=t.data.registerManagementNumner,e.cuIconList[6].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"};e.navigateTo({url:"".concat(n[t.code])})}}};t.default=i}).call(this,n("543d")["default"])},"0213":function(e,t,n){},"0412":function(e,t,n){"use strict";var a=n("3e47"),o=n.n(a);o.a},"0c0f":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=[]},"21b3":function(e,t,n){"use strict";n.r(t);var a=n("0c0f"),o=n("9d02");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);n("0412");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},"26db":function(e,t,n){"use strict";(function(e){n("481f");a(n("66fd"));var t=a(n("ed30"));function a(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},"3e47":function(e,t,n){},"4fa4":function(e,t,n){"use strict";var a=n("0213"),o=n.n(a);o.a},"5c71":function(e,t,n){"use strict";n.r(t);var a=n("0083"),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},"64b2":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=[]},"9d02":function(e,t,n){"use strict";n.r(t);var a=n("d9f9"),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},d9f9: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},ed30:function(e,t,n){"use strict";n.r(t);var a=n("64b2"),o=n("5c71");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);n("4fa4");var c,i=n("f0c5"),u=Object(i["a"])(o["default"],a["b"],a["c"],!1,null,"36c77a12",null,!1,a["a"],c);t["default"]=u.exports}},[["26db","common/runtime","common/vendor"]]]);