my.js 2.1 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/my/my"],{"3c0e":function(n,t,e){"use strict";e.r(t);var o=e("bdf4"),a=e.n(o);for(var u in o)["default"].indexOf(u)<0&&function(n){e.d(t,n,(function(){return o[n]}))}(u);t["default"]=a.a},"3c70":function(n,t,e){"use strict";e.d(t,"b",(function(){return a})),e.d(t,"c",(function(){return u})),e.d(t,"a",(function(){return o}));var o={uniIcons:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(e.bind(null,"3d33"))}},a=function(){var n=this.$createElement;this._self._c},u=[]},"3d09":function(n,t,e){"use strict";(function(n,t){var o=e("47a9");e("7748");o(e("3240"));var a=o(e("e0ef"));n.__webpack_require_UNI_MP_PLUGIN__=e,t(a.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},5166:function(n,t,e){"use strict";var o=e("eee6"),a=e.n(o);a.a},bdf4:function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=e("4f1b"),a={data:function(){return{fansCount:{attentionCount:0,fansCount:0,roomCount:0},user:{}}},onShow:function(){n.getStorageSync("token")?(this.user=this.$store.getters.user,this.user.organizedName=this.$store.getters.organization&&this.$store.getters.organization.name,this.init()):(this.user={},this.fansCount={attentionCount:0,fansCount:0,roomCount:0})},methods:{init:function(){var n=this;(0,o.getMyCount)().then((function(t){200===t.code&&(n.fansCount=t.data)})),(0,o.getUserInfoById)(this.user.userId).then((function(t){200===t.code&&(n.user=t.data,n.user["userName"]=t.data.name,n.user["userId"]=t.data.id,n.user.organizedName=t.data.mgrOrganization&&t.data.mgrOrganization.name,n.$store.dispatch("app/changeUser",t.data))}))}}};t.default=a}).call(this,e("df3c")["default"])},e0ef:function(n,t,e){"use strict";e.r(t);var o=e("3c70"),a=e("3c0e");for(var u in a)["default"].indexOf(u)<0&&function(n){e.d(t,n,(function(){return a[n]}))}(u);e("5166");var i=e("828b"),r=Object(i["a"])(a["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);t["default"]=r.exports},eee6:function(n,t,e){}},[["3d09","common/runtime","common/vendor"]]]);