(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-form-tovolApply"],{"0a29":function(t,e,i){"use strict";i.r(e);var n=i("6728"),a=i("63f8");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("78e5");var c,s=i("f0c5"),l=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"757ce327",null,!1,n["a"],c);e["default"]=l.exports},"0bb8":function(t,e,i){"use strict";var n=i("dbce");Object.defineProperty(e,"__esModule",{value:!0}),e.loadIndexs=o,e.bannerlist=c,e.itemList=s,e.upload=l,e.groom4=r,e.groom1=u,e.groom3=d,e.myCreateCircle=v,e.getList=f,e.getNumber=p,e.add_volunteers=h,e.joinSec=b,e.joinSecc=x,e.getdis=g,e.tocall=m,e.training=k,e.getseek=w,e.getcomAddress=y,e.getrescue=C,e.change_rescue=A,e.getListAED=E,e.getDistance=_,e.deleteList=j,e.getListMechanism=G,e.add_company=S;var a=n(i("9fc4"));function o(t){return(0,a.default)({url:"/api/index",method:"get",data:t})}function c(t){return(0,a.default)({url:"/api/article/list/1",method:"get",data:t})}function s(t){return(0,a.default)({url:"/api/article/list/4",method:"get",data:t})}function l(t){return(0,a.upFilse)({url:"/api/upload/image",method:"post",data:t})}function r(t){return(0,a.default)({url:"/api/groom/list/4",method:"get",data:t})}function u(t){return(0,a.default)({url:"/api/groom/list/1",method:"get",data:t})}function d(t){return(0,a.default)({url:"/api/groom/list/3",method:"get",data:t})}function v(t){return(0,a.default)({url:"/api/circle/mycreate",method:"post",data:t})}function f(t){return(0,a.default)({url:"/api/sign_cell",method:"post",data:t})}function p(t){return(0,a.default)({url:"/api/get_rescuer",method:"get",data:t})}function h(t){return(0,a.default)({url:"/api/add_registration",method:"post",data:t})}function b(t){return(0,a.default)({url:"/api/add_volunteers",method:"post",data:t})}function x(t){return(0,a.default)({url:"/api/add_donation",method:"post",data:t})}function g(t){return(0,a.default)({url:"/api/getdis",method:"get",data:t})}function m(t){return(0,a.default)({url:"/api/do_getdis",method:"get",data:t})}function k(t){return(0,a.default)({url:"/api/training",method:"get",data:t})}function w(t){return(0,a.default)({url:"/api/seek",method:"get",data:t})}function y(t){return(0,a.default)({url:"/api/get_commonly",method:"get",data:t})}function C(t){return(0,a.default)({url:"/api/rescueee",method:"get",data:t})}function A(t){return(0,a.default)({url:"/api/change_rescue",method:"get",data:t})}function E(t){return(0,a.default)({url:"/api/getAed",method:"get",data:t})}function _(t){return(0,a.default)({url:"/api/aeddiss",method:"get",data:t})}function j(t){return(0,a.default)({url:"/api/del_resc",method:"get",data:t})}function G(t){return(0,a.default)({url:"/api/mechanism",method:"get",data:t})}function S(t){return(0,a.default)({url:"/api/add_company",method:"post",data:t})}},"10d1":function(t,e,i){"use strict";var n,a=i("da84"),o=i("e2cc"),c=i("f183"),s=i("6d61"),l=i("acac"),r=i("861d"),u=i("69f3").enforce,d=i("7f9a"),v=!a.ActiveXObject&&"ActiveXObject"in a,f=Object.isExtensible,p=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},h=t.exports=s("WeakMap",p,l);if(d&&v){n=l.getConstructor(p,"WeakMap",!0),c.REQUIRED=!0;var b=h.prototype,x=b["delete"],g=b.has,m=b.get,k=b.set;o(b,{delete:function(t){if(r(t)&&!f(t)){var e=u(this);return e.frozen||(e.frozen=new n),x.call(this,t)||e.frozen["delete"](t)}return x.call(this,t)},has:function(t){if(r(t)&&!f(t)){var e=u(this);return e.frozen||(e.frozen=new n),g.call(this,t)||e.frozen.has(t)}return g.call(this,t)},get:function(t){if(r(t)&&!f(t)){var e=u(this);return e.frozen||(e.frozen=new n),g.call(this,t)?m.call(this,t):e.frozen.get(t)}return m.call(this,t)},set:function(t,e){if(r(t)&&!f(t)){var i=u(this);i.frozen||(i.frozen=new n),g.call(this,t)?k.call(this,t,e):i.frozen.set(t,e)}else k.call(this,t,e);return this}})}},"17e8":function(t,e,i){"use strict";var n=i("4ea4");i("99af"),i("caad"),i("a15b"),i("2532"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("96cf");var a=n(i("1da1")),o=n(i("5530")),c=i("595b"),s=i("2f62"),l=i("0bb8"),r=i("582d"),u={data:function(){this.getDate({format:!0});return{otherjob:"",otherspe:"",loding:!1,array:["男","女"],chooseEdu:["博士后","博士","硕士","本科","专科","其他"],chooseVol:["有","无"],is_experience:[{id:1,name:"有"},{id:2,name:"无"}],chooseExp:["是","否"],days:[{value:"1",name:"早上"},{value:"2",name:"中午"},{value:"3",name:"晚上"}],quantum:"",items:[{value:"1",name:"星期一"},{value:"2",name:"星期二"},{value:"3",name:"星期三"},{value:"4",name:"星期四"},{value:"5",name:"星期五"},{value:"6",name:"星期六"},{value:"7",name:"星期日"}],dates:"",works:[{value:"1",name:"赈灾工作"},{value:"2",name:"救护培训"},{value:"3",name:"护送服务"},{value:"4",name:"编辑及出版"},{value:"5",name:"医疗护理服务"},{value:"6",name:"探访服务"},{value:"7",name:"外语翻译"},{value:"8",name:"调查服务"},{value:"9",name:"联络服务"},{value:"10",name:"宣传及推广"},{value:"11",name:"文书档案工作"},{value:"12",name:"其它(请注明)"}],taste:"",worksText:"",expertise:[{value:"1",name:"医疗护理"},{value:"2",name:"紧急救护"},{value:"3",name:"出版/美术设计"},{value:"4",name:"影音制作"},{value:"5",name:"文艺演出"},{value:"6",name:"网络软件"},{value:"7",name:"摄影摄像"},{value:"8",name:"电脑中文打字"},{value:"9",name:"汽车驾驶"},{value:"10",name:"外语翻译"},{value:"11",name:"法律咨询"},{value:"12",name:"文案策划"},{value:"13",name:"其它(请注明)"}],speciali:"",current:"",is_vol:[{id:1,name:"有"},{id:2,name:"无"}],index:0,email:"",cardimg:"",zip:"",name:"",sex:"请选择你的性别",birth:"请选择你的生日",fillingDate:"",phone:"",mobile:"",address:"",work:"",specialty:"",education:"请选择教育程度",checked1:"",checked:"",expertiseText:"",Getchecked:!1}},onShow:function(){this.hasLogin||((0,c.saveUrl)(),uni.showModal({title:"登录",content:"您未登录,是否马上登陆?",success:function(t){t.confirm&&(0,c.interceptor)()},fail:function(t){console.log(t)}}))},computed:(0,o.default)((0,o.default)({},(0,s.mapState)("user",["userInfo","baseURL","hasLogin"])),{},{startDate:function(){return this.getDate("start")},endDate:function(){return this.getDate("end")}}),methods:{join:function(){var t=this;return(0,a.default)(regeneratorRuntime.mark((function e(){var i,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=t,""!=i.name){e.next=4;break}return i.$api.msg("请输入您的姓名"),e.abrupt("return");case 4:if(""!=i.sex&&"请选择你的性别"!=i.sex){e.next=7;break}return i.$api.msg("请输入您的性别"),e.abrupt("return");case 7:if(""!=i.birth&&"请选择你的生日"!=i.birth){e.next=10;break}return i.$api.msg("请填写您的生日"),e.abrupt("return");case 10:if(n=/^(\+?0?86-?)?1[\d]\d{9}$/,""!=i.phone){e.next=14;break}return i.$api.msg("请填写您的移动电话"),e.abrupt("return");case 14:if(n.test(i.phone)){e.next=17;break}return i.$api.msg("请填写正确的移动电话"),e.abrupt("return");case 17:if(""!=i.checked1){e.next=20;break}return i.$api.msg("请选择有无服务经验"),e.abrupt("return");case 20:if(""!=i.checked){e.next=23;break}return i.$api.msg("请选择是否接受过志愿者服务"),e.abrupt("return");case 23:if(""!=i.cardimg){e.next=26;break}return i.$api.msg("请上传您的证件"),e.abrupt("return");case 26:if(i.quantum){e.next=29;break}return t.$api.msg("请选择时间段!"),e.abrupt("return");case 29:if(i.dates){e.next=32;break}return t.$api.msg("请选择日期!"),e.abrupt("return");case 32:if(0!=i.Getchecked){e.next=35;break}return t.$api.msg("请阅读并同意个人声明!"),e.abrupt("return");case 35:i.loding=!0,(0,l.add_volunteers)({name:i.name,sex:i.sex,birth:i.birth,picture:i.cardimg,phone:i.phone,mobile:i.mobile,email:i.email,address:i.address,zip:i.zip,work:i.work,specialty:i.specialty,zy:i.zy,education:"请选择教育程度"==i.education?"":i.education,is_vol:i.checked,is_experience:i.checked1,quantum:i.quantum,date:i.dates,taste:i.taste,make_taste:i.worksText,speciali:i.speciali,make_speciali:i.expertiseText}).then((function(t){i.sex="请选择你的性别",i.education="请选择教育程度",i.birth="请选择你的生日",uni.navigateTo({url:"../joinSuc/joinNow"})})).catch((function(t){console.log("出错了"),console.log(t)}));case 37:case"end":return e.stop()}}),e)})))()},imgsub:function(){var t=this;console.log("imgsub"),(0,r.upload)({filename:""}).then((function(e){t.cardimg=e[0].url}))},bindPickerSex:function(t){this.sex=this.array[t.target.value],this.index=t.target.value+1},bindPickerEdu:function(t){this.education=this.chooseEdu[t.target.value],this.index=t.target.value+1},bindDateChange:function(t){this.birth=t.target.value},fillingDateChange:function(t){this.fillingDate=t.target.value},bindPickerVol:function(t){this.is_vol=this.chooseVol[t.target.value],this.index=t.target.value+1},radioChange1:function(t){this.checked1=t.detail.value,console.log(this.checked1,"有无服务经验")},radioChange:function(t){this.checked=t.detail.value,console.log(this.checked,"是否受过志愿服务")},Getcheckbox:function(){var t=this;t.Getchecked=!t.Getchecked},getDate:function(t){var e=new Date,i=e.getFullYear(),n=e.getMonth()+1,a=e.getDate();return"start"===t?i-=60:"end"===t&&(i+=2),n=n>9?n:"0"+n,a=a>9?a:"0"+a,"".concat(i,"-").concat(n,"-").concat(a)},checkboxChange:function(t){for(var e=this.days,i=t.detail.value,n=0,a=e.length;n