(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/setting/avatar"],{"2a81":function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a={components:{OkingtzCropper:function(){e.e("uni_modules/okingtz-cropper/components/okingtz-cropper/okingtz-cropper").then(function(){return resolve(e("f14d"))}.bind(null,e)).catch(e.oe)}},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=a}).call(this,e("543d")["default"])},"657b":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,"f14d"))}},r=function(){var n=this.$createElement;this._self._c},o=[]},a883:function(n,t,e){"use strict";(function(n,t){var a=e("4ea4");e("2ab2");a(e("66fd"));var r=a(e("f106"));n.__webpack_require_UNI_MP_PLUGIN__=e,t(r.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},b825:function(n,t,e){"use strict";e.r(t);var a=e("2a81"),r=e.n(a);for(var o in a)["default"].indexOf(o)<0&&function(n){e.d(t,n,(function(){return a[n]}))}(o);t["default"]=r.a},f106:function(n,t,e){"use strict";e.r(t);var a=e("657b"),r=e("b825");for(var o in r)["default"].indexOf(o)<0&&function(n){e.d(t,n,(function(){return r[n]}))}(o);var u=e("f0c5"),i=Object(u["a"])(r["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);t["default"]=i.exports}},[["a883","common/runtime","common/vendor"]]]);