(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/Apply"],{"08cc":function(t,i,e){"use strict";var o=e("9423"),n=e.n(o);n.a},"19c6":function(t,i,e){"use strict";(function(t){var o=e("47a9");Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=o(e("7eb4")),s=o(e("7ca3")),a=o(e("ee10"));function l(t,i){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);i&&(o=o.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),e.push.apply(e,o)}return e}function r(t){for(var i=1;i"],form:{cut:"机构",yyzzdm:"",name:"",tel:"",desc:"",address:"",latitude:"",longitude:"",date:t.$u.timeFormat(new Date,"yyyy-mm-dd"),establish_time:Math.floor(Date.now()/1e3),people:"",institution:"",institutionCode:"",address_detail:"",legalEntity:"",sex:"",nation:"",outlook:"",birth:t.$u.timeFormat(new Date,"yyyy-mm-dd"),birthtime:Math.floor(Date.now()/1e3),nativePlace:"",cardNumber:"",diploma:"",post:"",socialPosition:""},apply_info:{},popupStyle:{width:"642rpx",padding:"24rpx 24rpx 42rpx 24rpx",height:"984rpx",margin:"0 auto",display:"flex",justifyContent:"start",alignItems:"center",flexColumn:"column"},scrollViewHeight:820,scrollViewContentHeight:0,columns:[["机构","个人"]],diplomaList:[["‌小学","初中","高中","‌大专","‌大学本科","‌硕士研究生","‌博士研究生"]],sexList:[["男","女"]],outlookList:[["‌中共党员","中共预备党员","共青团员","‌民革党员","‌民盟盟员","‌民建会员","‌民进会员","‌农工党党员","‌致公党党员","‌‌九三学社社员","‌‌台盟盟员","‌无党派人士‌","‌群众"]],institutionList:[],images:"",upPicUrl:"https://testy.hschool.com.cn//api/common/upload",yyzz_images:[],fileList1:[],fileList2:[],fileList3:[],fileList4:[],fileList5:[],fileList6:[],list1:"",list2:"",list3:"",list4:"",list5:"",list6:""}},onLoad:function(){this.searchStatus(),this.getAgreement(),this.getAreaList()},filters:{formatTimestamp:function(t){if(!t)return"";var i=new Date(1e3*t),e=i.getFullYear(),o=String(i.getMonth()+1).padStart(2,"0"),n=String(i.getDate()).padStart(2,"0");return"".concat(e,"-").concat(o,"-").concat(n)}},methods:{handleScroll:function(){this.agreeShow=!0},getTime:function(){var t=new Date,i=t.getFullYear(),e=String(t.getMonth()+1).padStart(2,"0"),o=String(t.getDate()).padStart(2,"0"),n="".concat(i,"-").concat(e,"-").concat(o);return n},dateShowHidden:function(){this.dateShow=!0,this.$refs.dateRef.innerValue=new Date(this.getTime()).getTime()},birthShowHidden:function(){this.birthShow=!0,this.$refs.birthRef.innerValue=new Date(this.getTime()).getTime()},datefirm:function(i){console.log(i),this.form.date=t.$u.timeFormat(i.value,"yyyy-mm-dd"),this.form.establish_time=Math.floor(new Date(i.value).getTime()/1e3),this.dateShow=!1},datecel:function(t){this.dateShow=!1},birthConfirm:function(i){this.form.birth=t.$u.timeFormat(i.value,"yyyy-mm-dd"),this.form.birthtime=Math.floor(new Date(i.value).getTime()/1e3),this.birthShow=!1},birthCancel:function(){this.birthShow=!1},close:function(){this.show=!1},cutShow:function(){this.showCut=!0,console.log("this.showCut",this.showCut)},open:function(){this.show=!0},change:function(){this.agree=!0,this.show=!1},protocolClick:function(t){this.show=!0},getAreaList:function(){var i=this;t.$u.http.get("/api/index/get_area",{params:{city:410300}}).then((function(e){1==e.code?i.institutionList[0]=e.data.map((function(t){return{name:t.label,value:t.value}})):t.showToast({title:e.msg,icon:"none",duration:2e3})})).catch((function(i){t.showToast({title:"请求失败,请稍后再试",icon:"none",duration:2e3})}))},getAgreement:function(){var i=this;t.$u.http.get("/api/index/agreement",{params:{}}).then((function(e){1==e.code?i.Negotiate=e.data.entry_agreement.replace(/\=0&&e0?this.fileList1[0].url:"",console.log("Updated list1:",this.list1)):"2"===i?(this.list2=this.fileList2.length>0?this.fileList2[0].url:"",console.log("Updated list2:",this.list2)):"3"===i?(this.list3=this.fileList3.length>0?this.fileList3[0].url:"",console.log("Updated list3:",this.list3)):"4"===i?(this.list4=this.fileList4.length>0?this.fileList4[0].url:"",console.log("Updated list4:",this.list4)):"5"===i?(this.list5=this.fileList5.length>0?this.fileList5[0].url:"",console.log("Updated list5:",this.list4)):"6"===i&&(this.list6=this.fileList6.length>0?this.fileList6[0].url:"",console.log("Updated list6:",this.list6));var o=this["list".concat(i)];Array.isArray(o)?(o.splice(e,1),console.log("Updated list".concat(i,":"),o)):console.warn("list".concat(i," is not an array, skipping splice operation"))}else console.error("Invalid index")},afterRead:function(t){var i=this;return(0,a.default)(n.default.mark((function e(){var o,s,a,l,c,u,h,f,d,m,p,g;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:o=[].concat(t.file),s=i["fileList".concat(t.name)].length,a=[{category:"user"},{category:"user"},{category:"user"},{category:"cert"},{category:"cert"},{category:"cert"}],o.map((function(e){i["fileList".concat(t.name)].push(r(r({},e),{},{status:"uploading",message:"上传中"}))})),l=0;case 5:if(!(l