(my["webpackJsonp"]=my["webpackJsonp"]||[]).push([["pages/user/resume/personalInfo"],{1282:function(n,e,t){"use strict";(function(n){var e=t("47a9");t("9db3");e(t("3240"));var o=e(t("bda1"));my.__webpack_require_UNI_MP_PLUGIN__=t,n(o.default)}).call(this,t("6861")["createPage"])},"16da":function(n,e,t){"use strict";var o=t("6b98"),u=t.n(o);u.a},"299a":function(n,e,t){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={data:function(){return{userInfo:{},show:!1}},onLoad:function(){var n=this;this.$http.get("/person/person/details",{}).then((function(e){n.userInfo=e.data}))},methods:{setSex:function(n){this.userInfo.sex="男"==n.name,this.show=!1},getAgeFromIdCard:function(e){if(!/^\d{17}[\dXx]$/.test(e))return n.showToast({title:"请输入正确的身份证号",icon:"none"});var t=e.substring(6,14),o=parseInt(t.substring(0,4)),u=parseInt(t.substring(4,6)),i=parseInt(t.substring(6,8)),s=new Date,r=s.getFullYear(),a=s.getMonth()+1,c=s.getDate(),f=r-o;(a<u||a===u&&c<i)&&f--,f>0?this.userInfo.age=f:n.showToast({title:"身份证信息错误",icon:"none"})},submit:function(){if(!this.userInfo.name)return n.showToast({title:"请输入姓名",icon:"none"});if(!this.userInfo.sex)return n.showToast({title:"请选择性别",icon:"none"});if(!this.userInfo.age)return n.showToast({title:"请输入正确的身份证号",icon:"none"});if(!this.userInfo.phoneNumber)return n.showToast({title:"请输入手机号",icon:"none"});if(!/^1[3-9]\d{9}$/.test(this.userInfo.phoneNumber))return n.showToast({title:"请输入正确的手机号",icon:"none"});if(!this.userInfo.idNo)return n.showToast({title:"请输入身份证号",icon:"none"});if(!/^[1-9]\d{5}(19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/.test(this.userInfo.idNo))return n.showToast({title:"请输入正确的身份证号",icon:"none"});this.$http.post("/person/u",this.userInfo).then((function(e){n.showToast({title:"修改成功",icon:"none"}),setTimeout((function(){n.navigateBack()}),500)}))}}};e.default=t}).call(this,t("6861")["default"])},6771:function(n,e,t){"use strict";t.d(e,"b",(function(){return u})),t.d(e,"c",(function(){return i})),t.d(e,"a",(function(){return o}));var o={uForm:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-form/u-form")]).then(t.bind(null,"fa2a"))},uFormItem:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-form-item/u-form-item")]).then(t.bind(null,"a6fc"))},uInput:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-input/u-input")]).then(t.bind(null,"f8de"))},uCell:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-cell/u-cell")]).then(t.bind(null,"9552"))},uActionSheet:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-action-sheet/u-action-sheet")]).then(t.bind(null,"96f6"))},uButton:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-button/u-button")]).then(t.bind(null,"110b"))}},u=function(){var n=this,e=n.$createElement;n._self._c;n._isMounted||(n.e0=function(e){n.show=!0},n.e1=function(e){n.show=!1})},i=[]},"6b98":function(n,e,t){},bda1:function(n,e,t){"use strict";t.r(e);var o=t("6771"),u=t("ded4");for(var i in u)["default"].indexOf(i)<0&&function(n){t.d(e,n,(function(){return u[n]}))}(i);t("16da");var s=t("828b"),r=Object(s["a"])(u["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);e["default"]=r.exports},ded4:function(n,e,t){"use strict";t.r(e);var o=t("299a"),u=t.n(o);for(var i in o)["default"].indexOf(i)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(i);e["default"]=u.a}},[["1282","common/runtime","common/vendor"]]]);