(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageTwo/me/adduser"],{"2e60":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement;t._self._c;t._isMounted||(t.e0=function(e){t.isHeight=!1})},r=[]},5201:function(t,e,n){"use strict";var i=n("cdcd"),r=n.n(i);r.a},5373:function(t,e,n){"use strict";n.r(e);var i=n("2e60"),r=n("f188");for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);n("5201");var a=n("f0c5"),s=Object(a["a"])(r["default"],i["b"],i["c"],!1,null,"f4de0c7e",null,!1,i["a"],void 0);e["default"]=s.exports},"5d95":function(t,e,n){"use strict";(function(t,e){var i=n("4ea4");n("6808");i(n("66fd"));var r=i(n("5373"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(r.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},cdcd:function(t,e,n){},e311:function(t,e,n){"use strict";(function(t){var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("9523")),o=n("26cb");function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){(0,r.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var f={data:function(){return{ageArr:[],sexItem:["男","女"],isHeight:!1,isEdit:!1,memInfo:{birthday:"",height:"",sex:"",name:""}}},computed:s(s({},(0,o.mapState)(["user","appTheme"])),{},{startDate:function(){return this.$tools.getDate("start")}}),methods:{confirmInfo:function(){this.isHeight=!1,this.memInfo.name?this.memInfo.sex?this.memInfo.height?this.memInfo.birthday?this.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=[],i=12;i<=80;i++)n.push(i);if(this.ageArr=n,e.familayData){var r=e.familayData;this.memInfo=JSON.parse(r),this.isEdit=!0}e.type&&(this.isEdit=!1,this.memInfo={birthday:"",height:"",sex:"",name:""})}};e.default=f}).call(this,n("543d")["default"])},f188:function(t,e,n){"use strict";n.r(e);var i=n("e311"),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=r.a}},[["5d95","common/runtime","common/vendor"]]]);