(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/mine/personal"],{"2c80":function(e,n,t){"use strict";t.r(n);var u=t("a561"),a=t("d558");for(var o in a)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return a[e]}))}(o);t("c481");var i=t("f0c5"),r=Object(i["a"])(a["default"],u["b"],u["c"],!1,null,"720112e1",null,!1,u["a"],void 0);n["default"]=r.exports},3541:function(e,n,t){},"7d94":function(e,n,t){"use strict";(function(e,n){var u=t("4ea4");t("73d2");u(t("66fd"));var a=u(t("2c80"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(a.default)}).call(this,t("bc2e")["default"],t("543d")["createPage"])},a561:function(e,n,t){"use strict";t.d(n,"b",(function(){return a})),t.d(n,"c",(function(){return o})),t.d(n,"a",(function(){return u}));var u={uAvatar:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-avatar/u-avatar")]).then(t.bind(null,"51c1"))},uIcon:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(t.bind(null,"d3dc"))},uButton:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-button/u-button")]).then(t.bind(null,"7819"))}},a=function(){var e=this.$createElement;this._self._c},o=[]},a822:function(e,n,t){"use strict";(function(e){var u=t("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=u(t("b8e9")),o={data:function(){return{user:{},sexList:["保密","男","女"]}},onLoad:function(e){this.getUser(e)},methods:{getUser:function(e){var n=this;a.default.req({url:"/api/User/userinfo"},(function(t){if(console.log("个人信息=",t),1==t.code&&(n.user=t.data,e.data)){var u=JSON.parse(decodeURIComponent(e.data));u.user_name?n.user.user_name=u.user_name:n.user.work_units=u.work_units}}))},choose:function(){var n=this;e.chooseImage({count:1,sizeType:["original","compressed"],sourceType:["album"],success:function(t){var u=t.tempFilePaths;e.uploadFile({url:"https://txjxjy.com/index.php/api/Publics/uploadLocality",filePath:u[0],name:"file",formData:{user:"test"},success:function(e){var t=JSON.parse(e.data);1==t.code&&(n.user.headimg=t.data.url,a.default.req({url:"/api/User/edit_user_info",data:{headimg:n.user.headimg}},(function(e){console.log("修改头像成功")})))}})}})},change:function(e){a.default.jump("/pages/mine/change?index="+e)},bindSexChange:function(e){var n=e.detail.value;this.user.sex=n},changeAddress:function(e){var n=e.detail.value;this.user.province=n[0],this.user.city=n[1],this.user.area=n[2]},save:function(){var e=this,n=e.user;a.default.req({url:"/api/User/edit_user_info",data:{headimg:n.headimg,user_name:n.user_name,sex:n.sex,work_units:n.work_units}},(function(n){console.log("保存成功=",n),e.close()}))},close:function(){a.default.jump("/pages/mine/mine",3)}}};n.default=o}).call(this,t("543d")["default"])},c481:function(e,n,t){"use strict";var u=t("3541"),a=t.n(u);a.a},d558:function(e,n,t){"use strict";t.r(n);var u=t("a822"),a=t.n(u);for(var o in u)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return u[e]}))}(o);n["default"]=a.a}},[["7d94","common/runtime","common/vendor"]]]);