(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/setting/avatar"],{"00b7":function(n,t,e){"use strict";e.d(t,"b",(function(){return r})),e.d(t,"c",(function(){return o})),e.d(t,"a",(function(){return a}));var a={okingtzCropper:function(){return e.e("uni_modules/okingtz-cropper/components/okingtz-cropper/okingtz-cropper").then(e.bind(null,"de81"))}},r=function(){var n=this,t=n.$createElement;n._self._c},o=[]},"53df":function(n,t,e){"use strict";(function(n){e("3690");a(e("66fd"));var t=a(e("a615"));function a(n){return n&&n.__esModule?n:{default:n}}wx.__webpack_require_UNI_MP_PLUGIN__=e,n(t.default)}).call(this,e("543d")["createPage"])},"92ac":function(n,t,e){"use strict";e.r(t);var a=e("c3d7"),r=e.n(a);for(var o in a)"default"!==o&&function(n){e.d(t,n,(function(){return a[n]}))}(o);t["default"]=r.a},a615:function(n,t,e){"use strict";e.r(t);var a=e("00b7"),r=e("92ac");for(var o in r)"default"!==o&&function(n){e.d(t,n,(function(){return r[n]}))}(o);var u,c=e("f0c5"),i=Object(c["a"])(r["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],u);t["default"]=i.exports},c3d7:function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(){e.e("uni_modules/okingtz-cropper/components/okingtz-cropper/okingtz-cropper").then(function(){return resolve(e("de81"))}.bind(null,e)).catch(e.oe)},r={components:{OkingtzCropper:a},data:function(){return{avatar:"/static/logo.png"}},onLoad:function(){var t=n.getStorageSync("MD_userInfo2");this.avatar=t.avatar},methods:{uploadSuccess:function(t){var e=this,a=n.getStorageSync("MD_token")||"";n.uploadFile({url:n.baseUrl+"api/upload/cloud",filePath:t,name:"upload",formData:{token:a},success:function(t){var a=JSON.parse(t.data);e.avatar=a.data.url,n.api.base.apiuseredit({avatar:e.avatar}).then((function(t){n.api.base.apiuserinfo().then((function(t){n.setStorageSync("MD_userInfo2",t)})),n.$msgConfirm("编辑成功",(function(){n.reLaunch({url:"/pages/index/index"})}),(function(){n.reLaunch({url:"/pages/index/index"})}))}))}})}}};t.default=r}).call(this,e("543d")["default"])}},[["53df","common/runtime","common/vendor"]]]);