1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesEnroll/intentionForm"],{"45f0":function(e,t,n){"use strict";n.r(t);var r=n("ea59"),u=n("5cae");for(var i in u)"default"!==i&&function(e){n.d(t,e,(function(){return u[e]}))}(i);n("6ed5"),n("867d");var o,c=n("f0c5"),a=Object(c["a"])(u["default"],r["b"],r["c"],!1,null,"ecea344c",null,!1,r["a"],o);t["default"]=a.exports},"5cae":function(e,t,n){"use strict";n.r(t);var r=n("e404"),u=n.n(r);for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t["default"]=u.a},6617:function(e,t,n){},"6cca":function(e,t,n){},"6ed5":function(e,t,n){"use strict";var r=n("6617"),u=n.n(r);u.a},"867d":function(e,t,n){"use strict";var r=n("6cca"),u=n.n(r);u.a},bae5:function(e,t,n){"use strict";(function(e){n("43f2");r(n("66fd"));var t=r(n("45f0"));function r(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},e404:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n("2f62");function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=n("bf52"),a=n("8335"),s={computed:i({},(0,r.mapGetters)(["customStyle"])),data:function(){return{form:{studentName:"",parentsName:"",sex:"",age:"",birthday:"",phone:"",remark:""},rules:{studentName:[{required:!0,message:"请输入学员姓名",trigger:"change"}],parentsName:[{required:!0,message:"请输入家长姓名",trigger:"change"}],sex:[{required:!0,message:"请选择学员性别",trigger:"change"}],age:[{required:!0,message:"请输入学员年龄",trigger:"change"}],birthday:[{required:!0,message:"请选择学生生日",trigger:"change"}],phone:[{required:!0,message:"请输入手机号码",trigger:"change"},{pattern:/^1[0-9]{10}$/g,transform:function(e){return String(e)},message:"请输入正确格式的手机号码"}]},sexShow:!1,sexList:[{text:"男"},{text:"女"}],birthdayShow:!1,birthdayParams:{year:!0,month:!0,day:!0,hour:!1,minute:!1,second:!1}}},onLoad:function(){},onReady:function(){this.$refs.form.setRules(this.rules)},methods:{setSex:function(e){this.form.sex=this.sexList[e].text},setBirthday:function(e){this.form.birthday=e.year+"-"+e.month+"-"+e.day},submitForm:function(){var t=this;this.$refs.form.validate((function(n){n&&c.request(a.submitIntentionForm,i({},t.form),"POST").then((function(n){t.$refs.uTips.show({title:"提交成功",type:"success"}),setTimeout((function(){e.navigateBack()}),1e3)})).catch((function(e){t.$refs.uTips.show({title:e.message,type:"warning"})}))}))}}};t.default=s}).call(this,n("543d")["default"])},ea59:function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return r}));var r={uForm:function(){return n.e("uview-ui/components/u-form/u-form").then(n.bind(null,"3b0c"))},uFormItem:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-form-item/u-form-item")]).then(n.bind(null,"c9c6"))},uInput:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-input/u-input")]).then(n.bind(null,"7bd3"))},uActionSheet:function(){return n.e("uview-ui/components/u-action-sheet/u-action-sheet").then(n.bind(null,"999b"))},uPicker:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-picker/u-picker")]).then(n.bind(null,"c643"))},uButton:function(){return n.e("uview-ui/components/u-button/u-button").then(n.bind(null,"4058"))},uTopTips:function(){return n.e("uview-ui/components/u-top-tips/u-top-tips").then(n.bind(null,"83e4"))}},u=function(){var e=this,t=e.$createElement;e._self._c;e._isMounted||(e.e0=function(t){e.sexShow=!0},e.e1=function(t){e.birthdayShow=!0})},i=[]}},[["bae5","common/runtime","common/vendor"]]]);
|