(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageTwo/me/userEdit"],{"0a2c":function(e,t,n){"use strict";(function(e,t){var o=n("47a9");n("6caf");o(n("3240"));var r=o(n("6685"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(r.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},4346:function(e,t,n){"use strict";n.r(t);var o=n("ba9c"),r=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(a);t["default"]=r.a},4368:function(e,t,n){},6685:function(e,t,n){"use strict";n.r(t);var o=n("ad45"),r=n("4346");for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);n("ba78");var i=n("828b"),s=Object(i["a"])(r["default"],o["b"],o["c"],!1,null,"5043e6ae",null,!1,o["a"],void 0);t["default"]=s.exports},ad45:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){}));var o=function(){var e=this,t=e.$createElement;e._self._c;e._isMounted||(e.e0=function(t){e.memInfo.nickname=""})},r=[]},ba78:function(e,t,n){"use strict";var o=n("4368"),r=n.n(o);r.a},ba9c:function(e,t,n){"use strict";(function(e){var o=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n("7ca3")),a=n("8f59");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var s={data:function(){return{ageArr:[],sexItem:["男","女"],isEdit:!1,memInfo:{age:"",height:"",weight:"",gender:"",nickname:""}}},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){(0,r.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},(0,a.mapState)(["user","appTheme"])),onLoad:function(e){for(var t=[],n=5;n<=80;n++)t.push(n);if(this.ageArr=t,e.familayData){var o=e.familayData;this.memInfo=JSON.parse(o),this.isEdit=!0,console.log("编辑",this.memInfo)}else this.memInfo=this.user},methods:{confirmInfo:function(){this.memInfo.nickname?this.memInfo.gender?this.memInfo.age?this.memInfo.height?this.memInfo.weight?this.subInfo(this.memInfo):this.$tools.msg("请输入体重"):this.$tools.msg("请输入身高"):this.$tools.msg("请选择年龄"):this.$tools.msg("请选择性别"):this.$tools.msg("请输入昵称")},subInfo:function(t){var n=this;n.$model.getUserInfoEdit(t).then((function(t){0==t.code?(n.$tools.msg("提交成功"),n.handleHomeUserInfo(),e.navigateBack({delta:1})):n.$tools.msg(t.message)}))},handleHomeUserInfo:function(){var e=this;e.$model.getHomeUserInfo({}).then((function(t){0==t.code&&e.$store.commit("changeUserInfo",t.data)}))},onsexArr:function(e){this.memInfo.gender="男"==this.sexItem[e.target.value]?1:2},onageArr:function(e){this.memInfo.age=this.ageArr[e.target.value]}}};t.default=s}).call(this,n("df3c")["default"])}},[["0a2c","common/runtime","common/vendor"]]]);