person.js 3.6 KB

12
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/person/person"],{175:function(e,n,t){"use strict";(function(e,n){var r=t(4);t(26);r(t(25));var s=r(t(176));e.__webpack_require_UNI_MP_PLUGIN__=t,n(s.default)}).call(this,t(1)["default"],t(2)["createPage"])},176:function(e,n,t){"use strict";t.r(n);var r=t(177),s=t(179);for(var o in s)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return s[e]}))}(o);t(181);var i,a=t(32),c=Object(a["default"])(s["default"],r["render"],r["staticRenderFns"],!1,null,null,null,!1,r["components"],i);c.options.__file="pages/person/person.vue",n["default"]=c.exports},177:function(e,n,t){"use strict";t.r(n);var r=t(178);t.d(n,"render",(function(){return r["render"]})),t.d(n,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(n,"components",(function(){return r["components"]}))},178:function(e,n,t){"use strict";var r;t.r(n),t.d(n,"render",(function(){return s})),t.d(n,"staticRenderFns",(function(){return i})),t.d(n,"recyclableRender",(function(){return o})),t.d(n,"components",(function(){return r}));try{r={customWaterfallsFlow:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/custom-waterfalls-flow/components/custom-waterfalls-flow/custom-waterfalls-flow")]).then(t.bind(null,274))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var s=function(){var e=this,n=e.$createElement;e._self._c},o=!1,i=[];s._withStripped=!0},179:function(e,n,t){"use strict";t.r(n);var r=t(180),s=t.n(r);for(var o in r)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(o);n["default"]=s.a},180:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=t(73),s=t(55),o={data:function(){return{user:{},list:[],isFans:0,userId:4}},onLoad:function(e){e.userId&&(this.userId=e.userId),this.init()},methods:{init:function(){var e=this;(0,r.getUserInfoById)(this.userId).then((function(n){200===n.code&&(e.user=n.data,e.user.organizedName=n.data.mgrOrganization.name)})),(0,s.getHouseListByPage)({currPage:1,pageSize:100,chargePersonId:this.userId}).then((function(n){200===n.code&&(e.list=n.data.dataList.map((function(n){return{houseId:n.id,image:e.imageUrl(n.showPicture),title:"".concat(n.projectItemName,"-").concat(n.projectItemTargetName,"-").concat(n.roomNumber)}})))})),this.initFans()},initFans:function(){var e=this;(0,r.isFans)(this.userId).then((function(n){200===n.code&&(e.isFans=n.data?1:2)}))},fans:function(){1===this.isFans?(0,r.cancelAttention)(this.userId).then(this.successFans):(0,r.attention)(this.userId).then(this.successFans)},successFans:function(e){200===e.code&&(this.$toast(1===this.isFans?"取消成功":"关注成功"),this.initFans())},clickItem:function(e){this.$navigateTo("/pages/house/house?houseId="+e.houseId)},imageUrl:function(e){return e?JSON.parse(e)[0].url:"https://assets.api.uizard.io/api/cdn/stream/c05650d2-192b-4a56-ae97-05638f53804c.png"}}};n.default=o},181:function(e,n,t){"use strict";t.r(n);var r=t(182),s=t.n(r);for(var o in r)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(o);n["default"]=s.a},182:function(e,n,t){}},[[175,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/person/person.js.map