adultDeviceApp/unpackage/dist/build/mp-weixin/components/signup/signup.js

11 lines
2.8 KiB
JavaScript

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/signup/signup"],{"6e1e":function(t,e,n){"use strict";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){u(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 u(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{info:{height:"",birthday:"",sex:0},ageArr:[]}},computed:o(o({},(0,r.mapState)(["user","isedit"])),{},{userInfo:function(){return this.user}}),mounted:function(){for(var t=[],e=12;e<=80;e++)t.push(e);this.ageArr=t,this.info=this.user},methods:{onTap:function(){},selectsex:function(t){this.info.sex=t},onBirthdayArr:function(t){this.info.birthday=t.target.value},handleCloseClick:function(){var t=this;t.info.sex?t.info.height?t.info.birthday?(t.$store.commit("changeEdit",!1),t.getResult()):t.$tools.msg("请选择出生日期"):t.$tools.msg("请选择身高"):t.$tools.msg("请选择性别")},getResult:function(){var t=this;t.$model.getResult({birthday:t.userInfo.birthday,familyid:t.userInfo.familyid,height:t.userInfo.height,sex:t.userInfo.sex}).then((function(e){t.$store.dispatch("getUserInfo",{familyid:t.userInfo.familyid}),t.$store.dispatch("getFamilyList")}))}}};e.default=s},c3b7: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},o=[]},c86f:function(t,e,n){"use strict";n.r(e);var r=n("c3b7"),i=n("d93d");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var u,s=n("f0c5"),c=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,"d5f50124",null,!1,r["a"],u);e["default"]=c.exports},d93d:function(t,e,n){"use strict";n.r(e);var r=n("6e1e"),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}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'components/signup/signup-create-component',
{
'components/signup/signup-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('543d')['createComponent'](__webpack_require__("c86f"))
})
},
[['components/signup/signup-create-component']]
]);