12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b1785294"],{"0a49":function(t,e,a){var s=a("9b43"),n=a("626a"),r=a("4bf8"),i=a("9def"),c=a("cd1c");t.exports=function(t,e){var a=1==t,o=2==t,u=3==t,l=4==t,d=6==t,h=5==t||d,m=e||c;return function(e,c,f){for(var p,v,b=r(e),x=n(b),y=s(c,f,3),g=i(x.length),k=0,I=a?m(e,g):o?m(e,0):void 0;g>k;k++)if((h||k in x)&&(p=x[k],v=y(p,k,b),t))if(a)I[k]=v;else if(v)switch(t){case 3:return!0;case 5:return p;case 6:return k;case 2:I.push(p)}else if(l)return!1;return d?-1:u||l?l:I}}},1169:function(t,e,a){var s=a("2d95");t.exports=Array.isArray||function(t){return"Array"==s(t)}},7514:function(t,e,a){"use strict";var s=a("5ca1"),n=a("0a49")(5),r="find",i=!0;r in[]&&Array(1)[r](function(){i=!1}),s(s.P+s.F*i,"Array",{find:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}}),a("9c6c")(r)},7803:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"register"},[a("header",[t._v("报名")]),t._m(0),t._m(1),a("van-cell-group",[a("van-field",{attrs:{required:"",label:"姓名",placeholder:"请输入姓名"},model:{value:t.stu.name,callback:function(e){t.$set(t.stu,"name",e)},expression:"stu.name"}}),a("van-cell",{attrs:{required:"",title:"性别","is-link":"",value:"请选择"},on:{click:function(e){return t.onChange("sex")}},model:{value:t.stu.sex,callback:function(e){t.$set(t.stu,"sex",e)},expression:"stu.sex"}}),a("van-cell",{attrs:{required:"",title:"生日","is-link":"",value:"请选择"},on:{click:function(e){t.birthdayStatus=!0}},model:{value:t.stu.birthday,callback:function(e){t.$set(t.stu,"birthday",e)},expression:"stu.birthday"}}),a("van-field",{attrs:{required:"",disabled:"",label:"乐团",placeholder:""},model:{value:t.stu.band,callback:function(e){t.$set(t.stu,"band",e)},expression:"stu.band"}}),a("van-cell",{attrs:{required:"",title:"年级","is-link":"",value:"请选择"},on:{click:function(e){return t.onChange("class")}},model:{value:t.stu.class,callback:function(e){t.$set(t.stu,"class",e)},expression:"stu.class"}}),a("van-field",{attrs:{required:"",label:"班级",placeholder:"请输入班级"},model:{value:t.stu.grade,callback:function(e){t.$set(t.stu,"grade",e)},expression:"stu.grade"}})],1),t._m(2),a("van-cell-group",[a("van-cell",{attrs:{required:"",title:"声部","is-link":"",value:"请选择"},on:{click:function(e){return t.onChange("major")}},model:{value:t.stu.major,callback:function(e){t.$set(t.stu,"major",e)},expression:"stu.major"}}),a("van-cell",{attrs:{required:"",title:"是否服从调配","is-link":"",value:"请选择"},on:{click:function(e){return t.onChange("adjust")}},model:{value:t.stu.adjust,callback:function(e){t.$set(t.stu,"adjust",e)},expression:"stu.adjust"}})],1),t._m(3),a("van-cell-group",[a("van-field",{attrs:{required:"",label:"家长",placeholder:"请输入家长姓名"},model:{value:t.stu.patriarch,callback:function(e){t.$set(t.stu,"patriarch",e)},expression:"stu.patriarch"}}),a("van-field",{attrs:{required:"",disabled:"",label:"手机",placeholder:"请输入手机号"},model:{value:t.stu.phone,callback:function(e){t.$set(t.stu,"phone",e)},expression:"stu.phone"}}),a("van-field",{attrs:{label:"单位",placeholder:"请输入单位名称"},model:{value:t.stu.company,callback:function(e){t.$set(t.stu,"company",e)},expression:"stu.company"}}),a("van-field",{attrs:{label:"备注",type:"textarea",placeholder:"请输入备注",rows:"2",autosize:""},model:{value:t.stu.remark,callback:function(e){t.$set(t.stu,"remark",e)},expression:"stu.remark"}})],1),a("div",{staticClass:"btn-group"},[a("van-button",{staticClass:"btn-submit",attrs:{size:"large"},on:{click:t.onSubmit}},[t._v("下一步")])],1),a("van-action-sheet",{class:["class"==t.selectName?"height3":""],attrs:{actions:t.sheetActions},on:{select:t.onSelect,cancel:function(e){t.sheetStatus=!1}},model:{value:t.sheetStatus,callback:function(e){t.sheetStatus=e},expression:"sheetStatus"}}),a("van-popup",{attrs:{position:"bottom"},model:{value:t.birthdayStatus,callback:function(e){t.birthdayStatus=e},expression:"birthdayStatus"}},[a("van-datetime-picker",{attrs:{type:"date","min-date":t.minDate,formatter:t.formatter},on:{confirm:t.onConfirmDate,cancel:function(e){t.birthdayStatus=!1}},model:{value:t.currentDate,callback:function(e){t.currentDate=e},expression:"currentDate"}})],1)],1)},n=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"banner"},[s("img",{attrs:{src:a("dfc1"),alt:""}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"reg-title"},[a("i",{staticClass:"icon card_icon"}),t._v(" 请填写学生信息 "),a("span",[t._v("(必填)")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"reg-title"},[a("i",{staticClass:"icon card_icon"}),t._v(" 请填写专业信息 "),a("span",[t._v("(必填)")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"reg-title"},[a("i",{staticClass:"icon card_icon"}),t._v(" 请填写家长信息 "),a("span",[t._v("(必填,至少1名联系人)")])])}],r=(a("7f7f"),a("28a5"),a("ac6a"),a("7514"),["北京市","县","天津市","县","石家庄市","唐山市","秦皇岛市","邯郸市","邢台市","保定市","张家口市","承德市","沧州市","廊坊市","衡水市","太原市","大同市","阳泉市","长治市","晋城市","朔州市","晋中市","运城市","忻州市","临汾市","吕梁市","呼和浩特市","包头市","乌海市","赤峰市","通辽市","鄂尔多斯市","呼伦贝尔市","巴彦淖尔市","乌兰察布市","兴安盟","锡林郭勒盟","阿拉善盟","沈阳市","大连市","鞍山市","抚顺市","本溪市","丹东市","锦州市","营口市","阜新市","辽阳市","盘锦市","铁岭市","朝阳市","葫芦岛市","长春市","吉林市","四平市","辽源市","通化市","白山市","松原市","白城市","延边朝鲜族自治州","哈尔滨市","齐齐哈尔市","鸡西市","鹤岗市","双鸭山市","大庆市","伊春市","佳木斯市","七台河市","牡丹江市","黑河市","绥化市","大兴安岭地区","上海市","县","南京市","无锡市","徐州市","常州市","苏州市","南通市","连云港市","淮安市","盐城市","扬州市","镇江市","泰州市","宿迁市","杭州市","宁波市","温州市","嘉兴市","湖州市","绍兴市","金华市","衢州市","舟山市","台州市","丽水市","合肥市","芜湖市","蚌埠市","淮南市","马鞍山市","淮北市","铜陵市","安庆市","黄山市","滁州市","阜阳市","宿州市","六安市","亳州市","池州市","宣城市","福州市","厦门市","莆田市","三明市","泉州市","漳州市","南平市","龙岩市","宁德市","南昌市","景德镇市","萍乡市","九江市","新余市","鹰潭市","赣州市","吉安市","宜春市","抚州市","上饶市","济南市","青岛市","淄博市","枣庄市","东营市","烟台市","潍坊市","济宁市","泰安市","威海市","日照市","莱芜市","临沂市","德州市","聊城市","滨州市","菏泽市","郑州市","开封市","洛阳市","平顶山市","安阳市","鹤壁市","新乡市","焦作市","濮阳市","许昌市","漯河市","三门峡市","南阳市","商丘市","信阳市","周口市","驻马店市","省直辖县级行政区划","武汉市","黄石市","十堰市","宜昌市","襄阳市","鄂州市","荆门市","孝感市","荆州市","黄冈市","咸宁市","随州市","恩施土家族苗族自治州","省直辖县级行政区划","长沙市","株洲市","湘潭市","衡阳市","邵阳市","岳阳市","常德市","张家界市","益阳市","郴州市","永州市","怀化市","娄底市","湘西土家族苗族自治州","广州市","韶关市","深圳市","珠海市","汕头市","佛山市","江门市","湛江市","茂名市","肇庆市","惠州市","梅州市","汕尾市","河源市","阳江市","清远市","东莞市","中山市","潮州市","揭阳市","云浮市","南宁市","柳州市","桂林市","梧州市","北海市","防城港市","钦州市","贵港市","玉林市","百色市","贺州市","河池市","来宾市","崇左市","海口市","三亚市","三沙市","省直辖县级行政区划","重庆市","县","成都市","自贡市","攀枝花市","泸州市","德阳市","绵阳市","广元市","遂宁市","内江市","乐山市","南充市","眉山市","宜宾市","广安市","达州市","雅安市","巴中市","资阳市","阿坝藏族羌族自治州","甘孜藏族自治州","凉山彝族自治州","贵阳市","六盘水市","遵义市","安顺市","毕节市","铜仁市","黔西南布依族苗族自治州","黔东南苗族侗族自治州","黔南布依族苗族自治州","昆明市","曲靖市","玉溪市","保山市","昭通市","丽江市","普洱市","临沧市","楚雄彝族自治州","红河哈尼族彝族自治州","文山壮族苗族自治州","西双版纳傣族自治州","大理白族自治州","德宏傣族景颇族自治州","怒江傈僳族自治州","迪庆藏族自治州","拉萨市","昌都地区","山南地区","日喀则地区","那曲地区","阿里地区","林芝地区","西安市","铜川市","宝鸡市","咸阳市","渭南市","延安市","汉中市","榆林市","安康市","商洛市","兰州市","嘉峪关市","金昌市","白银市","天水市","武威市","张掖市","平凉市","酒泉市","庆阳市","定西市","陇南市","临夏回族自治州","甘南藏族自治州","西宁市","海东市","海北藏族自治州","黄南藏族自治州","海南藏族自治州","果洛藏族自治州","玉树藏族自治州","海西蒙古族藏族自治州","银川市","石嘴山市","吴忠市","固原市","中卫市","乌鲁木齐市","克拉玛依市","吐鲁番地区","哈密地区","昌吉回族自治州","博尔塔拉蒙古自治州","巴音郭楞蒙古自治州","阿克苏地区","克孜勒苏柯尔克孜自治州","喀什地区","和田地区","伊犁哈萨克自治州","塔城地区","阿勒泰地区","直辖县"]),i=[1101,1102,1201,1202,1301,1302,1303,1304,1305,1306,1307,1308,1309,1310,1311,1401,1402,1403,1404,1405,1406,1407,1408,1409,1410,1411,1501,1502,1503,1504,1505,1506,1507,1508,1509,1522,1525,1529,2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2111,2112,2113,2114,2201,2202,2203,2204,2205,2206,2207,2208,2224,2301,2302,2303,2304,2305,2306,2307,2308,2309,2310,2311,2312,2327,3101,3102,3201,3202,3203,3204,3205,3206,3207,3208,3209,3210,3211,3212,3213,3301,3302,3303,3304,3305,3306,3307,3308,3309,3310,3311,3401,3402,3403,3404,3405,3406,3407,3408,3410,3411,3412,3413,3415,3416,3417,3418,3501,3502,3503,3504,3505,3506,3507,3508,3509,3601,3602,3603,3604,3605,3606,3607,3608,3609,3610,3611,3701,3702,3703,3704,3705,3706,3707,3708,3709,3710,3711,3712,3713,3714,3715,3716,3717,4101,4102,4103,4104,4105,4106,4107,4108,4109,4110,4111,4112,4113,4114,4115,4116,4117,4190,4201,4202,4203,4205,4206,4207,4208,4209,4210,4211,4212,4213,4228,4290,4301,4302,4303,4304,4305,4306,4307,4308,4309,4310,4311,4312,4313,4331,4401,4402,4403,4404,4405,4406,4407,4408,4409,4412,4413,4414,4415,4416,4417,4418,4419,4420,4451,4452,4453,4501,4502,4503,4504,4505,4506,4507,4508,4509,4510,4511,4512,4513,4514,4601,4602,4603,4690,5001,5002,5101,5103,5104,5105,5106,5107,5108,5109,5110,5111,5113,5114,5115,5116,5117,5118,5119,5120,5132,5133,5134,5201,5202,5203,5204,5205,5206,5223,5226,5227,5301,5303,5304,5305,5306,5307,5308,5309,5323,5325,5326,5328,5329,5331,5333,5334,5401,5421,5422,5423,5424,5425,5426,6101,6102,6103,6104,6105,6106,6107,6108,6109,6110,6201,6202,6203,6204,6205,6206,6207,6208,6209,6210,6211,6212,6229,6230,6301,6302,6322,6323,6325,6326,6327,6328,6401,6402,6403,6404,6405,6501,6502,6521,6522,6523,6527,6528,6529,6530,6531,6532,6540,6542,6543,6590];function c(t){var e;return i.find(function(a,s){a==t&&(e=r[s])}),e}var o=c,u=a("4328"),l=a.n(u),d={name:"register",data:function(){return{currentDate:new Date,minDate:new Date(1980,1,1),sheetStatus:!1,birthdayStatus:!1,stu:{name:"",sex:"请选择",birthday:"请选择",city:"请选择",band:"",class:"请选择",grade:"",major:"请选择",adjust:"是",patriarch:"",phone:"",company:"",remark:""},stuIndex:{sexNo:null,majorNo:null,subNo:null,adjustNo:1},selectName:"",sheetActions:[],dataList:{sex:[{name:"男",index:0},{name:"女",index:1}],class:[{name:"一年级"},{name:"二年级"},{name:"三年级"},{name:"四年级"},{name:"五年级"},{name:"六年级"},{name:"初一/七年级"},{name:"初二/八年级"},{name:"初三/九年级"},{name:"高一"},{name:"高二"},{name:"高三"}],adjust:[{name:"是",index:1},{name:"否",index:0}]}}},mounted:function(){var t=this,e=this.$route.query;this.stu.phone=e.phone,this.stu.city=o(e.cityId),this.stu.band=e.schoolName;var a=[];this.$axios.post("/user/getCourses",l.a.stringify({clazzId:e.classId})).then(function(e){e.data.data.forEach(function(t){var e=t.subName.split(".").reverse()[0];a.push({name:e,index:t.id,subNo:t.subId})}),t.dataList.major=a})},methods:{onSelect:function(t){this.stu[this.selectName]=t.name,this.sheetStatus=!1,"sex"==this.selectName?this.stuIndex.sexNo=t.index:"adjust"==this.selectName?this.stuIndex.adjustNo=t.index:"major"==this.selectName&&(this.stuIndex.majorNo=t.index,this.stuIndex.subNo=t.subNo)},onChange:function(t){this.sheetStatus=!0,this.sheetActions=this.dataList[t],this.selectName=t},formatter:function(t,e){return"year"===t?"".concat(e,"年"):"month"===t?"".concat(e,"月"):"day"===t?"".concat(e,"日"):e},onConfirmDate:function(){this.birthdayStatus=!1,this.stu.birthday=this.dateFormat(this.currentDate)},dateFormat:function(t){var e=new Date(t);return"".concat(e.getFullYear(),"-").concat(e.getMonth()+1,"-").concat(e.getDate())},onSubmit:function(){var t=this,e=this.onCheckForm();if(e)return this.$toast(e),!1;var a=this.stu,s=this.$route.query;this.$axios.post("/user/userApply",l.a.stringify({name:a.name,sex:this.stuIndex.sexNo,birthday:a.birthday,city:a.city,classId:s.classId,courseId:this.stuIndex.majorNo,subId:this.stuIndex.subNo,branchId:s.branchId,schoolId:s.schoolId,grade:a.class,gClass:a.grade,isAdjust:this.stuIndex.adjustNo,patriarchPhone:a.phone,patriarchName:a.patriarch,patriarchUnit:a.company,remark:a.remark})).then(function(e){var a=e.data;200==a.code?2==s.status?t.$router.push({path:"home",query:{branchId:s.branchId,stuId:a.data,classId:s.classId,cityId:s.cityId,schoolId:s.schoolId}}):t.$router.push({path:"login",query:{schoolId:s.schoolId,cityId:s.cityId}}):t.$toast(a.msg)})},onCheckForm:function(){var t=this.stu,e={name:"请输入姓名",sex:"请选择性别",birthday:"请选择生日",class:"请选择年级",grade:"请输入班级",major:"请选择声部",adjust:"请选择是否服从调配",patriarch:"请输入家长姓名",phone:"请输入电话"};for(var a in t)if(""==t[a]||"请选择"==t[a])return e[a];return""}}},h=d,m=(a("f4ee"),a("2877")),f=Object(m["a"])(h,s,n,!1,null,"a706c006",null);e["default"]=f.exports},b5d2:function(t,e,a){},cd1c:function(t,e,a){var s=a("e853");t.exports=function(t,e){return new(s(t))(e)}},dfc1:function(t,e,a){t.exports=a.p+"img/register_banner.2c5526d1.png"},e853:function(t,e,a){var s=a("d3f4"),n=a("1169"),r=a("2b4c")("species");t.exports=function(t){var e;return n(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!n(e.prototype)||(e=void 0),s(e)&&(e=e[r],null===e&&(e=void 0))),void 0===e?Array:e}},f4ee:function(t,e,a){"use strict";var s=a("b5d2"),n=a.n(s);n.a}}]);
- //# sourceMappingURL=chunk-b1785294.f8716763.js.map
|