1 line
2.4 KiB
JavaScript
1 line
2.4 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/me/pagesOne/userInfoChange/userInfoChange"],{"0915":function(t,n,e){},"49a6":function(t,n,e){"use strict";e.r(n);var a=e("f454"),o=e("8a39");for(var u in o)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(u);e("ff05");var i=e("f0c5"),r=Object(i["a"])(o["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);n["default"]=r.exports},"5e6b":function(t,n,e){"use strict";(function(t){var n=e("4ea4");e("0178");n(e("66fd"));var a=n(e("49a6"));wx.__webpack_require_UNI_MP_PLUGIN__=e,t(a.default)}).call(this,e("543d")["createPage"])},"8a39":function(t,n,e){"use strict";e.r(n);var a=e("d4f7"),o=e.n(a);for(var u in a)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(u);n["default"]=o.a},d4f7:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e={data:function(){return{userInfo:{},avatar:"",mobile:""}},onLoad:function(){var n=t.getStorageSync("userInfo");this.avatar=this.URL+n.avatar,this.userInfo.avatar=n.avatar,this.userInfo.username=n.username,this.userInfo.token=this.app.token,this.mobile=n.mobile},methods:{setProfile:function(){var t=this,n=this.$tools.formInfo(this.userInfo);if(!n)return this.showtt("请修改会员信息");this.axiosFromToken("POST","user/updateinfo",this.userInfo,"加载中").then((function(n){1==n.code?(t.showtt("更新成功"),setTimeout((function(){t.goBack()}),400)):t.showtt(n.msg)}))},lookImage:function(){var n=this;t.chooseImage({count:1,success:function(t){n.upload(t.tempFilePaths[0])},fail:function(t){console.log(t,"选择图片")}})},upload:function(n){var e=this,a=this;t.showLoading({title:"加载中"}),t.uploadFile({url:a.$tools.httpOne+"common/upload",filePath:n,name:"file",header:{token:a.app.token},success:function(t){t=JSON.parse(t.data),a.avatar=n,a.userInfo.avatar=t.data.url},complete:function(){t.hideLoading()},fail:function(t){e.$tools.showtt("上传失败,请重试")}})}}};n.default=e}).call(this,e("543d")["default"])},f454:function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return u})),e.d(n,"a",(function(){return a}));var a={uniNavBar:function(){return e.e("uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar").then(e.bind(null,"9df8"))}},o=function(){var t=this.$createElement;this._self._c},u=[]},ff05:function(t,n,e){"use strict";var a=e("0915"),o=e.n(a);o.a}},[["5e6b","common/runtime","common/vendor"]]]); |