(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageTwo/me/adduser"],{"02ec":function(t,e,n){"use strict";n.r(e);var r=n("04ab"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},"04ab":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("26cb");function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s={data:function(){return{ageArr:[],sexItem:["男","女"],isHeight:!1,isEdit:!1,memInfo:{birthday:"",height:"",sex:"",name:""}}},computed:o(o({},(0,r.mapState)(["user","appTheme"])),{},{startDate:function(){return this.$tools.getDate("start")}}),methods:{confirmInfo:function(){var t=this;t.isHeight=!1,this.memInfo.name?this.memInfo.sex?this.memInfo.height?this.memInfo.birthday?t.subInfo(this.memInfo):this.$tools.msg("请选择出生日期"):this.$tools.msg("请选则身高"):this.$tools.msg("请选择性别"):this.$tools.msg("请输入用户名")},subInfo:function(e){var n=this;e.fansid=t.getStorageSync("unionid"),n.$model.getsubmit(e).then((function(e){0==e.code?(n.isEdit&&n.$store.dispatch("getUserInfo",{familyid:n.user.id}),n.$store.dispatch("getFamilyList"),n.$tools.msg("提交成功"),t.navigateBack({delta:1})):n.$tools.msg(e.message)}))},bindDateChange:function(t){this.memInfo.birthday=t.target.value},onsexArr:function(t){this.memInfo.sex="男"==this.sexItem[t.target.value]?1:2},ontypeArr:function(t){this.type="成人"==this.typeItem[t.target.value]?1:"儿童"==this.typeItem[t.target.value]?2:3}},onLoad:function(e){t.setNavigationBarColor({frontColor:"#ffffff",backgroundColor:this.appTheme});for(var n=[],r=12;r<=80;r++)n.push(r);if(this.ageArr=n,e.familayData){var i=e.familayData;this.memInfo=JSON.parse(i),this.isEdit=!0}e.type&&(this.isEdit=!1,this.memInfo={birthday:"",height:"",sex:"",name:""})}};e.default=s}).call(this,n("543d")["default"])},"4df4":function(t,e,n){"use strict";(function(t){n("e568");r(n("66fd"));var e=r(n("fbaf"));function r(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=n,t(e.default)}).call(this,n("543d")["createPage"])},5559:function(t,e,n){},8911:function(t,e,n){"use strict";var r=n("5559"),i=n.n(r);i.a},fbaf:function(t,e,n){"use strict";n.r(e);var r=n("fccf"),i=n("02ec");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("8911");var a,s=n("f0c5"),f=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,"30b576ca",null,!1,r["a"],a);e["default"]=f.exports},fccf:function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var i=function(){var t=this,e=t.$createElement;t._self._c;t._isMounted||(t.e0=function(e){t.isHeight=!1})},o=[]}},[["4df4","common/runtime","common/vendor"]]]);