(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_managedata/userInfo"],{294:function(e,n,t){"use strict";(function(e,n){var r=t(4);t(26);r(t(25));var o=r(t(295));e.__webpack_require_UNI_MP_PLUGIN__=t,n(o.default)}).call(this,t(1)["default"],t(2)["createPage"])},295:function(e,n,t){"use strict";t.r(n);var r=t(296),o=t(298);for(var a in o)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(a);t(300),t(302);var i,u=t(34),s=Object(u["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,"5e4d6600",null,!1,r["components"],i);s.options.__file="pages_managedata/userInfo.vue",n["default"]=s.exports},296:function(e,n,t){"use strict";t.r(n);var r=t(297);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"]}))},297:function(e,n,t){"use strict";var r;t.r(n),t.d(n,"render",(function(){return o})),t.d(n,"staticRenderFns",(function(){return i})),t.d(n,"recyclableRender",(function(){return a})),t.d(n,"components",(function(){return r}));try{r={uAvatar:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-avatar/u-avatar")]).then(t.bind(null,639))}}}catch(u){if(-1===u.message.indexOf("Cannot find module")||-1===u.message.indexOf(".vue"))throw u;console.error(u.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范，文档：https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范，需手动引入，并在 components 中注册该组件")}var o=function(){var e=this,n=e.$createElement;e._self._c},a=!1,i=[];o._withStripped=!0},298:function(e,n,t){"use strict";t.r(n);var r=t(299),o=t.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(a);n["default"]=o.a},299:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=t(232),o={data:function(){return{avatar:this.$store.state.imgpath+"/app/images/detault_head.jpg",nickName:"",deptName:"",postNames:"",phonenumber:"",email:"",sex:"",qrCodeWeixin:"",isShow:!1,userId:void 0,roleNames:""}},onLoad:function(e){},computed:{imgPath:function(){return this.$store.state.imgpath}},onShow:function(){this.getCompanyUser()},methods:{bindUser:function(n){var t=this;t.nickName=n.nickName,t.deptName=n.companyName?n.companyName:"暂无",t.phonenumber=n.phonenumber?n.phonenumber:"暂无",n.posts&&(t.postNames=n.posts.map((function(e){return e.postName})).join(",")),n.roles&&(this.roleNames=n.roles.map((function(e){return e.roleName})).join(",")),t.email=n.email?n.email:"暂无",0==n.sex?t.sex="男":1==n.sex?t.sex="女":2==n.sex&&(t.sex="未知"),t.qrCodeWeixin=e.getStorageSync("requestPath")+n.qrCodeWeixin,n.avatar&&(t.avatar=e.getStorageSync("requestPath")+n.avatar)},getCompanyUser:function(){var e={},n=this;(0,r.getCompanyUser)(e).then((function(e){n.bindUser(e.user)}),(function(e){}))},callPhone:function(n){e.makePhoneCall({phoneNumber:n})},editInfo:function(){e.navigateTo({url:"editUser"})}}};n.default=o}).call(this,t(2)["default"])},300:function(e,n,t){"use strict";t.r(n);var r=t(301),o=t.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(a);n["default"]=o.a},301:function(e,n,t){},302:function(e,n,t){"use strict";t.r(n);var r=t(303),o=t.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(a);n["default"]=o.a},303:function(e,n,t){}},[[294,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../.sourcemap/mp-weixin/pages_managedata/userInfo.js.map