(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-myInfo-myInfo"],{"2e61":function(e,t,i){var n=i("8aa5f");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=i("4f06").default;a("4c6c9551",n,!0,{sourceMap:!1,shadowMode:!1})},"7e2f":function(e,t,i){"use strict";var n=i("ee27");i("99af"),i("a434"),i("4d63"),i("ac1f"),i("25f0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(i("f6ba")),o=i("37f6"),r=i("b742"),s=((new Date).getTime(),{data:function(){return{userInfo:(0,r.getStorage)("userInfo"),deptmentList:[{name:"请选择..."}],deptmentListIndex:0,userTypeList:[{name:"请选择..."},{name:"内部人员"},{name:"支撑人员"}],userTypeIndex:0,imgs:[],lifeImgs:[],showCar2:!1,eAccount:{name:"",jobNum:"",mealCardNum:"",idCardNum:"",carIdNumOne:"",carIdNumTwo:"",phoneNum:"",userType:"",departmentId:"",departmentName:"",img:"",lifeImg:""},carIdNumOneNew:"",carIdNumTwoNew:"",buttonText:"确认",items:[{name:"内部人员"},{name:"支撑人员"}]}},components:{uniCalendar:a.default},created:function(){},onLoad:function(){this.getDepartment(),this.loadData()},methods:{radioChange:function(e){this.eAccount.userType=e.detail.value},changeUserType:function(e){this.userTypeIndex=e.detail.value},loadData:function(){var e=this,t=this.userInfo.userId,i={method:o.getEAccount,data:{userId:t}};(0,r.callbackRequest)(i).then((function(t){if(t=t.data,console.log("9999--",t),"1"==t.returnCode)if(t.returnData){if(t.returnData.eAccount){var i=t.returnData.eAccount;e.eAccount=i,e.eAccount.carIdNumOne=i.carIdNumOne||"",e.eAccount.carIdNumTwo=i.carIdNumTwo||"",e.carIdNumOneNew=e.eAccount.carIdNumOne,e.carIdNumTwoNew=e.eAccount.carIdNumTwo,e.eAccount.carIdNumTwo&&(e.showCar2=!0);for(var n=0;n/?~!@#¥……&*——|{}【】‘;:”“'。,、?]");if(e.jobNum)if(e.jobNum&&t.test(e.jobNum))(0,r.alertTip)("工号不得含有特殊字符");else if(e.mealCardNum)if(e.mealCardNum&&t.test(e.mealCardNum))(0,r.alertTip)("餐卡号不得含有特殊字符");else if(e.idCardNum)if(!e.idCardNum||r.regIdCard.test(e.idCardNum))if(e.userType=1,"请选择..."!=this.deptmentList[this.deptmentListIndex].name)if(e.phoneNum)if(r.regPhone.test(e.phoneNum))if(e.img=this.imgs[0],e.lifeImg=this.lifeImgs[0],e.img)if(e.lifeImg){e.userId=this.userInfo.id,e.departmentId=this.deptmentList[this.deptmentListIndex].id+"",e.departmentName=this.deptmentList[this.deptmentListIndex].name,e.carIdNumOneNew=this.carIdNumOneNew,e.carIdNumTwoNew=this.carIdNumTwoNew,this.$delete(e,"id"),this.$delete(e,"createdTime"),this.$delete(e,"updateTime");var i="确定提交吗?";(0,r.sureAlterTip)("提示",i,!0).then((function(t){if(200===t){var i={method:o.saveEAccount,data:e};(0,r.callbackRequest)(i).then((function(e){e=e.data,"1"==e.returnCode?((0,r.alertTip)(e.returnMsg),setTimeout((function(e){uni.redirectTo({url:"/pages/index/index"})}),2e3)):(0,r.alertTip)(e.returnMsg)}))}}))}else(0,r.alertTip)("请上传自拍大头照");else(0,r.alertTip)("请上传证件照");else(0,r.alertTip)("手机号格式有误");else(0,r.alertTip)("请填写手机号");else(0,r.alertTip)("请选择部门");else(0,r.alertTip)("身份证号码格式有误");else(0,r.alertTip)("请输入身份证号");else(0,r.alertTip)("请输入餐卡号");else(0,r.alertTip)("请输入工号")},chooseImg:function(){var e=this;uni.chooseImage({count:2,success:function(t){var n=t.tempFiles[0].size/1024;return n<60?((0,r.alertTip)("证件照不得小于60KB,请重新选择"),void(e.imgs=[])):n/1024>10?((0,r.alertTip)("证件照不得大于10MB,请重新选择"),void(e.imgs=[])):void uni.getImageInfo({src:t.tempFilePaths[0],success:function(n){if(n.width<200||n.height<200)return(0,r.alertTip)("证件照分辨率过低,请重新选择"),void(e.imgs=[]);var a,o;(function(){var s="",c=t.tempFilePaths;for(a=0;a10)return(0,r.alertTip)("自拍大头照不得大于10MB,请重新选择"),void(e.life_imgs=[]);uni.getImageInfo({src:t.tempFilePaths[0],success:function(n){if(n.width<200||n.height<200)return(0,r.alertTip)("自拍大头照分辨率过低,请重新选择"),void(e.lifeImgs=[]);var a,o;(function(){var s="",c=t.tempFilePaths;for(a=0;a0?"margin-left: 30upx;":"",attrs:{value:t.name,checked:t.name===e.eAccount.userType}}),i("v-uni-text",{staticStyle:{"margin-left":"10upx"}},[e._v(e._s(t.name))])],1)})),1)],1)],1),i("v-uni-view",{staticClass:"form-item"},[i("v-uni-text",{staticClass:"label"},[e._v("部门")]),i("v-uni-view",{staticClass:"ipt-box select"},[i("v-uni-image",{staticClass:"arrow",attrs:{src:"/static/icons/right-arrow.png",mode:""}}),e.deptmentList.length>0?i("v-uni-picker",{staticClass:"picker",attrs:{range:e.deptmentList,"range-key":"name"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.changeDepartment.apply(void 0,arguments)}}},[i("v-uni-view",[e._v(e._s(e.deptmentList[e.deptmentListIndex].name))])],1):e._e()],1)],1),i("v-uni-view",{staticClass:"form-item"},[i("v-uni-text",{staticClass:"label"},[e._v("手机号码")]),i("v-uni-view",{staticClass:"ipt-box"},[i("v-uni-input",{attrs:{type:"text",placeholder:"请填写手机号码",maxlength:"11"},model:{value:e.eAccount.phoneNum,callback:function(t){e.$set(e.eAccount,"phoneNum",t)},expression:"eAccount.phoneNum"}})],1)],1),i("v-uni-view",{staticClass:"form-item"},[i("v-uni-text",{staticClass:"label"},[e._v("车牌号")]),i("v-uni-view",{staticClass:"ipt-box add"},[i("v-uni-text",{staticClass:"arrow",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.addCarId.apply(void 0,arguments)}}},[e._v("+")]),i("v-uni-input",{attrs:{type:"text",placeholder:"请填写车牌号",maxlength:"8"},model:{value:e.carIdNumOneNew,callback:function(t){e.carIdNumOneNew=t},expression:"carIdNumOneNew"}})],1)],1),e.showCar2?i("v-uni-view",{staticClass:"form-item"},[i("v-uni-text",{staticClass:"label"},[e._v("车牌号")]),i("v-uni-view",{staticClass:"ipt-box add"},[i("v-uni-text",{staticClass:"arrow",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.clearCarId.apply(void 0,arguments)}}},[e._v("-")]),i("v-uni-input",{attrs:{type:"text",placeholder:"请填写车牌号",maxlength:"8"},model:{value:e.carIdNumTwoNew,callback:function(t){e.carIdNumTwoNew=t},expression:"carIdNumTwoNew"}})],1)],1):e._e(),i("v-uni-view",{staticClass:"form-item"},[i("v-uni-text",{staticClass:"label"},[e._v("证件照")]),i("br"),i("v-uni-view",{staticClass:"info"},[e._v("大小在60K以上10M以内、分辨率在200*200以上的电子证件照,无过度美颜。")]),i("v-uni-view",{staticClass:"img-box"},[e._l(e.imgs,(function(t,n){return i("v-uni-view",{key:n,staticClass:"img-item"},[i("v-uni-image",{staticClass:"remove-btn",attrs:{src:"/static/icons/delete-icon.png",mode:""},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.removeImg(n)}}}),i("v-uni-image",{staticClass:"img",attrs:{src:t,mode:""}})],1)})),e.imgs.length<1?i("v-uni-view",{staticClass:"img-item upload-btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.chooseImg()}}},[i("v-uni-image",{staticClass:"img",attrs:{src:"/static/imgs/tianjia-img.png",mode:""}})],1):e._e()],2)],1),i("v-uni-view",{staticClass:"form-item"},[i("v-uni-text",{staticClass:"label"},[e._v("自拍大头照")]),i("br"),i("v-uni-view",{staticClass:"info"},[e._v("大小在60K以上10M以内、分辨率在200*200以上的电子证件照,无过度美颜。")]),i("v-uni-view",{staticClass:"img-box"},[e._l(e.lifeImgs,(function(t,n){return i("v-uni-view",{key:n,staticClass:"img-item"},[i("v-uni-image",{staticClass:"remove-btn",attrs:{src:"/static/icons/delete-icon.png",mode:""},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.removeLifeImg(n)}}}),i("v-uni-image",{staticClass:"img",attrs:{src:t,mode:""}})],1)})),e.lifeImgs.length<1?i("v-uni-view",{staticClass:"img-item upload-btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.chooseLifeImg()}}},[i("v-uni-image",{staticClass:"img",attrs:{src:"/static/imgs/tianjia-img.png",mode:""}})],1):e._e()],2)],1)],1),i("v-uni-view",{staticClass:"occupied"}),i("v-uni-view",{staticClass:"footer-btn footer-btn-color",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.submit()}}},[i("v-uni-view",{staticClass:"btn-blue"},[e._v(e._s(e.buttonText))])],1)],1)],1)},o=[];i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){return n}))},b420:function(e,t,i){var n=i("23e7"),a=i("621a"),o=i("a981");n({global:!0,forced:!o},{DataView:a.DataView})},bbb7:function(e,t,i){"use strict";i.r(t);var n=i("7e2f"),a=i.n(n);for(var o in n)"default"!==o&&function(e){i.d(t,e,(function(){return n[e]}))}(o);t["default"]=a.a},c4bf:function(e,t,i){"use strict";i.r(t);var n=i("9a48"),a=i("bbb7");for(var o in a)"default"!==o&&function(e){i.d(t,e,(function(){return a[e]}))}(o);i("f59c");var r,s=i("f0c5"),c=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"ab00e038",null,!1,n["a"],r);t["default"]=c.exports},e121:function(e,t,i){var n,a;i("c19f"),i("ace4"),i("b420"),i("a9e3"),i("d3b7"),i("ac1f"),i("466d"),i("5319"),i("5cc6"),i("9a8c"),i("a975"),i("735e"),i("c1ac"),i("d139"),i("3a7b"),i("d5d6"),i("82f8"),i("e91f"),i("60bd"),i("5f96"),i("3280"),i("3fcc"),i("ca91"),i("25a1"),i("cd26"),i("3c5d"),i("2954"),i("649e"),i("219c"),i("170b"),i("b39a"),i("72f7"),function(){var i=!1,o=function e(t){return t instanceof e?t:this instanceof e?void(this.EXIFwrapped=t):new e(t)};e.exports&&(t=e.exports=o),t.EXIF=o;var r=o.Tags={36864:"ExifVersion",40960:"FlashpixVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37500:"MakerNote",37510:"UserComment",40964:"RelatedSoundFile",36867:"DateTimeOriginal",36868:"DateTimeDigitized",37520:"SubsecTime",37521:"SubsecTimeOriginal",37522:"SubsecTimeDigitized",33434:"ExposureTime",33437:"FNumber",34850:"ExposureProgram",34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:"OECF",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureBias",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37396:"SubjectArea",37386:"FocalLength",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41492:"SubjectLocation",41493:"ExposureIndex",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRation",41989:"FocalLengthIn35mmFilm",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",40965:"InteroperabilityIFDPointer",42016:"ImageUniqueID"},s=o.TiffTags={256:"ImageWidth",257:"ImageHeight",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer",40965:"InteroperabilityIFDPointer",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",274:"Orientation",277:"SamplesPerPixel",284:"PlanarConfiguration",530:"YCbCrSubSampling",531:"YCbCrPositioning",282:"XResolution",283:"YResolution",296:"ResolutionUnit",273:"StripOffsets",278:"RowsPerStrip",279:"StripByteCounts",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",301:"TransferFunction",318:"WhitePoint",319:"PrimaryChromaticities",529:"YCbCrCoefficients",532:"ReferenceBlackWhite",306:"DateTime",270:"ImageDescription",271:"Make",272:"Model",305:"Software",315:"Artist",33432:"Copyright"},c=o.GPSTags={0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential"},l=o.StringValues={ExposureProgram:{0:"Not defined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},SensingMethod:{1:"Not defined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},SceneType:{1:"Directly photographed"},CustomRendered:{0:"Normal process",1:"Custom process"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},GainControl:{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},SubjectDistanceRange:{0:"Unknown",1:"Macro",2:"Close view",3:"Distant view"},FileSource:{3:"DSC"},Components:{0:"",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"}};function d(e){return!!e.exifdata}function u(e,t){t=t||e.match(/^data\:([^\;]+)\;base64,/im)[1]||"",e=e.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var i=atob(e),n=i.length,a=new ArrayBuffer(n),o=new Uint8Array(a),r=0;r4?m:t+8,r=[],c=0;c4?m:t+8,w(e,o,f-1);case 3:if(1==f)return e.getUint16(t+8,!a);for(o=f>2?m:t+8,r=[],c=0;c