require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_user/user/personInfo"],{617:function(n,e,t){"use strict";(function(n,e){var r=t(4);t(26);r(t(25));var u=r(t(618));n.__webpack_require_UNI_MP_PLUGIN__=t,e(u.default)}).call(this,t(1)["default"],t(2)["createPage"])},618:function(n,e,t){"use strict";t.r(e);var r=t(619),u=t(621);for(var o in u)["default"].indexOf(o)<0&&function(n){t.d(e,n,(function(){return u[n]}))}(o);t(623);var i,a=t(34),s=Object(a["default"])(u["default"],r["render"],r["staticRenderFns"],!1,null,"4b0f3268",null,!1,r["components"],i);s.options.__file="pages_user/user/personInfo.vue",e["default"]=s.exports},619:function(n,e,t){"use strict";t.r(e);var r=t(620);t.d(e,"render",(function(){return r["render"]})),t.d(e,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(e,"components",(function(){return r["components"]}))},620:function(n,e,t){"use strict";var r;t.r(e),t.d(e,"render",(function(){return u})),t.d(e,"staticRenderFns",(function(){return i})),t.d(e,"recyclableRender",(function(){return o})),t.d(e,"components",(function(){return r}));var u=function(){var n=this,e=n.$createElement,t=(n._self._c,null!=n.user?n.utils.parsePhone(n.user.phone):null);n.$mp.data=Object.assign({},{$root:{g0:t}})},o=!1,i=[];u._withStripped=!0},621:function(n,e,t){"use strict";t.r(e);var r=t(622),u=t.n(r);for(var o in r)["default"].indexOf(o)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(o);e["default"]=u.a},622:function(n,e,t){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(163),u={data:function(){return{user:null}},onLoad:function(){this.getUserInfo()},methods:{bindblur:function(n){this.user.nickname=n.detail.value},bindinput:function(n){this.user.nickname=n.detail.value},onChooseAvatar:function(e){var t=this,r=e.detail.avatarUrl;n.uploadFile({url:n.getStorageSync("requestPath")+"/app/common/uploadOSS",filePath:r,name:"file",formData:{user:"test"},success:function(n){t.user.avatar=JSON.parse(n.data).url}})},submit:function(){(0,r.editUser)(this.user).then((function(e){200==e.code?(n.showToast({icon:"success",title:"修改成功"}),setTimeout((function(){n.navigateBack({delta:1})}),2e3)):n.showToast({icon:"none",title:e.msg})}),(function(n){}))},getUserInfo:function(){var e=this;(0,r.getUserInfo)().then((function(t){200==t.code?null!=t.user&&(e.user=t.user):n.showToast({icon:"none",title:"请求失败"})}),(function(n){}))}}};e.default=u}).call(this,t(2)["default"])},623:function(n,e,t){"use strict";t.r(e);var r=t(624),u=t.n(r);for(var o in r)["default"].indexOf(o)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(o);e["default"]=u.a},624:function(n,e,t){}},[[617,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages_user/user/personInfo.js.map