HHSLinkSLink/HSLink-app/unpackage/dist/build/mp-weixin/pages/person-info-page/person-info-page.js

1 line
4.3 KiB
JavaScript
Raw Normal View History

2020-12-19 12:13:27 +08:00
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/person-info-page/person-info-page"],{"0412":function(t,e,n){"use strict";var o=n("3e47"),a=n.n(o);a.a},"0c0f":function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return o}));var a=function(){var t=this,e=t.$createElement,n=(t._self._c,t.userName.slice(0,1));t.$mp.data=Object.assign({},{$root:{g0:n}})},r=[]},"21b3":function(t,e,n){"use strict";n.r(e);var o=n("0c0f"),a=n("9d02");for(var r in a)"default"!==r&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("0412");var u,i=n("f0c5"),s=Object(i["a"])(a["default"],o["b"],o["c"],!1,null,"79e5d186",null,!1,o["a"],u);e["default"]=s.exports},"3e47":function(t,e,n){},"44a0":function(t,e,n){},"5be0":function(t,e,n){"use strict";var o=n("44a0"),a=n.n(o);a.a},"721b":function(t,e,n){"use strict";(function(t){n("481f");o(n("66fd"));var e=o(n("d753"));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},"9d02":function(t,e,n){"use strict";n.r(e);var o=n("d9f9"),a=n.n(o);for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=a.a},a522:function(t,e,n){"use strict";n.r(e);var o=n("f2e7"),a=n.n(o);for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=a.a},bbce:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return o}));var o={noData:function(){return Promise.all([n.e("common/vendor"),n.e("components/noData/noData")]).then(n.bind(null,"c48a"))}},a=function(){var t=this,e=t.$createElement;t._self._c},r=[]},d753:function(t,e,n){"use strict";n.r(e);var o=n("bbce"),a=n("a522");for(var r in a)"default"!==r&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("5be0");var u,i=n("f0c5"),s=Object(i["a"])(a["default"],o["b"],o["c"],!1,null,"6e77a188",null,!1,o["a"],u);e["default"]=s.exports},d9f9:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={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:{}};e.default=o},f2e7:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n("1da1")),a=(n("7960"),r(n("21b3")));function r(t){return t&&t.__esModule?t:{default:t}}var u=function(){Promise.all([n.e("common/vendor"),n.e("components/noData/noData")]).then(function(){return resolve(n("c48a"))}.bind(null,n)).catch(n.oe)},i={components:{noData:u,avatar:a.default},data:function(){return{userId:"",userInfo:{},noData:!1,noticeList:[]}},onLoad:function(t){this.userId=t.userId},mounted:function(){this.getUserInfo()},onPullDownRefresh:function(){this.getUserInfo()},onNavigationBarButtonTap:function(){t.setStorageSync("otherInfo",this.userInfo),t.navigateTo({url:"/pages/tabbar/message/chat-page"})},methods:{addFollow:function(e){var n=this;o.default.post("/hs/addFollow",{userId:t.getStorageSync("userInfo").user_id,followId:e.user_id}).then((function(t){n.getUserInfo(),console.log("加关注",t)}),(function(t){console.log("err",t)}))},cancelFollow:function(e){var n=this;t.showModal({title:"取消关注",content:"确认取消关注?",success:function(a){a.confirm&&o.default.post("/hs/cancelFollow",{userId:t.getStorageSync("userInfo").user_id,followId:e.user_id}).then((function(t){n.getUserInfo(),console.log("取消关注",t)}),(function(t){console.log("err",t)}))}})},goToDetails:function(e){t.navigateTo({url:"/pages/tabbar/homepage/data-details?noticeId="+e.id})},getUserInfo:function(){var e=this;o.default.post("/hs/getPersonalInfo",{userId:t.getStorageSync("userInfo").user_id,releaseId:this.userId}).then((function(n){t.startPullDownRefresh(),console.log("个人信息",n),e.userInfo=n.data.person