AppDetail.bea59a75.js 32 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["AppDetail"],{2347:function(e,t,a){},2558:function(e,t,a){"use strict";var r=a("f0da"),n=a.n(r);n.a},3908:function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));a("433b");var r=a("d399");function n(e){e?r["a"].loading({duration:0,forbidClick:!0,message:"加载中..."}):r["a"].clear()}},"69b0":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"appDetail"},[e.headerStatus?a("m-header"):e._e(),a("van-cell-group",[a("van-field",{attrs:{disabled:"",label:"考级名称"},model:{value:e.form.examBaseName,callback:function(t){e.$set(e.form,"examBaseName",t)},expression:"form.examBaseName"}}),a("van-cell",{attrs:{disabled:"",title:"缴费状态"}},[e.form.status?a("div",["PAY_WAIT"===e.form.status?a("p",{staticClass:"noPass"},[e._v("未缴费")]):a("p",{staticClass:"pass"},[e._v("已缴费")])]):e._e()]),a("van-field",{attrs:{disabled:"",label:"考试日期"},model:{value:e.form.examStartTime,callback:function(t){e.$set(e.form,"examStartTime",t)},expression:"form.examStartTime"}}),a("van-cell",{attrs:{title:"专业等级"}},[e._v("\n "+e._s(e.form.subjectName)),e.form.level||0==e.form.level?a("span",[e._v("("+e._s(e._f("formatLevel")(e.form.level))+")")]):e._e()]),e._l(e.practiceInfo,(function(t,r){return a("van-cell",{key:r,attrs:{title:"练习曲"+e.numberToCN(r),"is-link":""},on:{click:function(t){return e.onOpen("practice",r)}}},[e._v("\n "+e._s(t.songName)+" "+e._s(t.songAuthor?"-"+t.songAuthor:t.songAuthor)+"\n ")])})),e._l(e.performInfo,(function(t,r){return a("van-cell",{key:r,attrs:{title:"演奏曲"+e.numberToCN(r),"is-link":""},on:{click:function(t){return e.onOpen("perform",r)}}},[e._v("\n "+e._s(t.songName)+" "+e._s(t.songAuthor?"-"+t.songAuthor:t.songAuthor)+"\n ")])})),a("van-field",{attrs:{disabled:"",label:"考级证书"},scopedSlots:e._u([{key:"input",fn:function(){return[a("van-uploader",{attrs:{name:"certificate","before-read":e.beforeRead,"before-delete":e.beforeDelete,"after-read":e.afterRead,accept:"image/*",disabled:!e.form.editStatus,deletable:e.form.editStatus,"max-count":1},model:{value:e.uploadCertificate,callback:function(t){e.uploadCertificate=t},expression:"uploadCertificate"}})]},proxy:!0}]),model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}}),a("van-cell",{attrs:{disabled:"",title:"乐理等级"}},[e._v("\n "+e._s(e._f("formatLevel")(e.form.lastMusicTheoryLevel))+"\n ")]),a("van-field",{attrs:{disabled:"",label:"乐理证书"},scopedSlots:e._u([{key:"input",fn:function(){return[a("van-uploader",{attrs:{name:"certificate2","before-read":e.beforeRead,"before-delete":e.beforeDelete,"after-read":e.afterRead,accept:"image/*",disabled:!e.form.editStatus,deletable:e.form.editStatus,"max-count":1},model:{value:e.uploadCertificate2,callback:function(t){e.uploadCertificate2=t},expression:"uploadCertificate2"}})]},proxy:!0}]),model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],2),a("van-cell-group",{staticClass:"memos"},[a("van-cell",{attrs:{disabled:"",title:"报名审核"}},[e.form.status?a("div",["AUDIT_PASS"===e.form.status?a("p",{staticClass:"pass"},[e._v("已通过")]):"AUDIT_WAIT"===e.form.status?a("p",[e._v("等待审核")]):a("p",{staticClass:"noPass"},[e._v("未通过")])]):e._e()]),a("van-cell",{attrs:{title:"备注"}},[e._v("\n "+e._s(e.form.memo)+"\n ")])],1),e.form.editStatus?a("van-button",{attrs:{type:"primary",round:"",block:""},on:{click:e.onSubmit}},[e._v("重新提交")]):e._e(),a("van-popup",{staticClass:"van-popup-song",attrs:{"close-on-click-overlay":!1},model:{value:e.songUpload.songStatus,callback:function(t){e.$set(e.songUpload,"songStatus",t)},expression:"songUpload.songStatus"}},[a("div",{staticClass:"song-popup"},[a("div",{staticClass:"title"},[e._v("自定义曲目")]),a("van-field",{attrs:{name:"songName",disabled:!e.form.editStatus,label:"曲名",placeholder:"请输入曲名"},scopedSlots:e._u([{key:"label",fn:function(){return[a("i",{staticStyle:{color:"#ee0a24"}},[e._v("*")]),e._v("曲名")]},proxy:!0}]),model:{value:e.songUpload.songName,callback:function(t){e.$set(e.songUpload,"songName",t)},expression:"songUpload.songName"}}),a("van-field",{attrs:{name:"songAuthor",disabled:!e.form.editStatus,label:"作者",placeholder:"请输入作者"},scopedSlots:e._u([{key:"label",fn:function(){return[a("i",{staticStyle:{color:"#ffffff"}},[e._v("*")]),e._v("作者")]},proxy:!0}]),model:{value:e.songUpload.songAuthor,callback:function(t){e.$set(e.songUpload,"songAuthor",t)},expression:"songUpload.songAuthor"}}),a("van-field",{attrs:{readonly:"",clearable:""},scopedSlots:e._u([{key:"input",fn:function(){return["practice"==e.songUpload.indexName?a("van-uploader",{attrs:{name:e.songUpload.indexName+"-"+e.songUpload.index,"before-read":e.beforeRead,"before-delete":e.beforeDelete,"after-read":e.afterRead,multiple:"",disabled:!e.form.editStatus,deletable:e.form.editStatus,accept:"image/*","max-count":5},model:{value:e.practiceUpload[e.songUpload.index],callback:function(t){e.$set(e.practiceUpload,e.songUpload.index,"string"===typeof t?t.trim():t)},expression:"practiceUpload[songUpload.index]"}}):e._e(),"perform"==e.songUpload.indexName?a("van-uploader",{attrs:{name:e.songUpload.indexName+"-"+e.songUpload.index,"before-read":e.beforeRead,"before-delete":e.beforeDelete,"after-read":e.afterRead,multiple:"",disabled:!e.form.editStatus,deletable:e.form.editStatus,accept:"image/*","max-count":5},model:{value:e.performUpload[e.songUpload.index],callback:function(t){e.$set(e.performUpload,e.songUpload.index,"string"===typeof t?t.trim():t)},expression:"performUpload[songUpload.index]"}}):e._e()]},proxy:!0}])}),a("p",{staticClass:"song-popup-tips"},[a("i",{staticStyle:{color:"#ee0a24"}},[e._v("*")]),e._v("支持格式:png,jpg,bmp")]),a("div",{staticClass:"popup-group"},[a("span",{on:{click:e.onSaveCancel}},[e._v("取消")]),a("span",{staticClass:"popup-sure",on:{click:e.onSaveUpload}},[e._v("确定")])])],1)])],1)},n=[],o=a("a34a"),i=a.n(o),s=a("6e6e"),l=a("cf45"),u=a("3908"),c=(a("6f45"),a("8900")),d=a("736c");function f(e,t,a,r,n,o,i){try{var s=e[o](i),l=s.value}catch(u){return void a(u)}s.done?t(l):Promise.resolve(l).then(r,n)}function p(e){return function(){var t=this,a=arguments;return new Promise((function(r,n){var o=e.apply(t,a);function i(e){f(o,r,n,i,s,"next",e)}function s(e){f(o,r,n,i,s,"throw",e)}i(void 0)}))}}var m={name:"appDetail",components:{MHeader:s["a"]},data:function(){var e=this.$route.query;return{headerStatus:!1,examRegistrationId:e.examRegistrationId,form:{id:null,paymentOrderNo:null,examBaseName:null,subjectName:null,level:null,status:null,examStartTime:null,lastExamCertificateUrl:null,lastMusicTheoryLevel:null,lastMusicTheoryCertificateUrl:null,memo:null,practiceSongIdList:null,performSongIdList:null,editStatus:!1},uploadCertificate:[],uploadCertificate2:[],songUpload:{songStatus:!1,indexName:null,index:null,songName:null,songAuthor:null},practiceNum:null,performUpload:[],performUploadTemp:[],performInfo:[],performNum:null,practiceUpload:[],practiceUploadTemp:[],practiceInfo:[]}},mounted:function(){var e=this.$route.query;e.Authorization&&localStorage.setItem("Authorization",decodeURI(e.Authorization)),Object(l["a"])().android||Object(l["a"])().iPhone?document.title="报考详情":this.headerStatus=!0,this.__init()},methods:{__init:function(){var e=p(i.a.mark((function e(){var t,a,r,n,o=this;return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return Object(u["a"])(!0),e.prev=1,e.next=4,Object(d["a"])({page:1,rows:20,examRegistrationId:this.examRegistrationId});case 4:t=e.sent,Object(u["a"])(!1),a=t.data,200==a.code&&(r=a.data.rows?a.data.rows[0]:{},this.form={id:r.id,paymentOrderNo:r.paymentOrderNo,examBaseName:r.examBaseName,subjectName:r.subjectName,level:r.level,status:r.status,examStartTime:r.examStartTime,lastExamCertificateUrl:r.lastExamCertificateUrl,lastMusicTheoryLevel:r.lastMusicTheoryLevel,lastMusicTheoryCertificateUrl:r.lastMusicTheoryCertificateUrl,memo:r.memo,practiceSongIdList:r.practiceSongIdList,performSongIdList:r.performSongIdList,editStatus:"AUDIT_PASS"!==r.status&&"AUDIT_WAIT"!==r.status},r.lastExamCertificateUrl&&(this.uploadCertificate=[{url:r.lastExamCertificateUrl}]),r.lastMusicTheoryCertificateUrl&&(this.uploadCertificate2=[{url:r.lastMusicTheoryCertificateUrl}]),n=r.songJson?JSON.parse(r.songJson):[],n.forEach((function(e){var t=e.uploadUrl?e.uploadUrl.split(","):[],a=[];t.forEach((function(e){a.push({url:e})})),"PRACTICE"===e.type?(o.practiceUpload.push(a),o.practiceUploadTemp.push(a),o.practiceInfo.push(e)):"PERFORM"===e.type&&(o.performUpload.push(a),o.performUploadTemp.push(a),o.performInfo.push(e))})),this.practiceNum=this.practiceUpload.length,this.performNum=this.performUpload.length),e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](1),Object(u["a"])(!1);case 13:case"end":return e.stop()}}),e,this,[[1,10]])})));function t(){return e.apply(this,arguments)}return t}(),onOpen:function(e,t){var a=this.songUpload,r=this.practiceInfo[t],n=this.performInfo[t],o=this.form.practiceSongIdList,i=this.form.performSongIdList;if("perform"==e){if(i)return;a.songName=n?n.songName:null,a.songAuthor=n?n.songAuthor:null}else if("practice"==e){if(o)return;a.songName=r?r.songName:null,a.songAuthor=r?r.songAuthor:null}a.indexName=e,a.index=t,a.songStatus=!0},beforeRead:function(e){var t=e.size/1024/1024<5;return!!t||(this.$toast("上传图片大小不能超过 5MB"),!1)},beforeDelete:function(e,t){var a=t.name.split("-"),r=this.form;return"certificate2"==a[0]?r.lastMusicTheoryCertificateUrl="":"certificate"==a[0]&&(r.lastExamCertificateUrl=""),!0},afterRead:function(){var e=p(i.a.mark((function e(t,a){var r,n,o,s,l;return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=a.name.split("-"),e.prev=1,t.status="uploading",t.message="上传中...",n=new FormData,n.append("file",t.file),e.next=8,Object(c["r"])(n);case 8:if(o=e.sent,s=o.data,200!=s.code){e.next=16;break}t.status="done",l=this.form,"certificate2"==r[0]?l.lastMusicTheoryCertificateUrl=s.data.url:"certificate"==r[0]?l.lastExamCertificateUrl=s.data.url:("practice"==r[0]||"perform"==r[0])&&(t.url=s.data.url),e.next=20;break;case 16:return t.status="failed",t.message="上传失败",this.$toast(s.msg),e.abrupt("return",!1);case 20:e.next=25;break;case 22:return e.prev=22,e.t0=e["catch"](1),e.abrupt("return",!1);case 25:case"end":return e.stop()}}),e,this,[[1,22]])})));function t(t,a){return e.apply(this,arguments)}return t}(),onSubmit:function(){var e=p(i.a.mark((function e(){var t,a,r,n,o,s,l;return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.onCheckFields()){e.next=2;break}return e.abrupt("return");case 2:return t=[],a=this.practiceUpload,this.practiceInfo.forEach((function(e){var r=[];a[e.index].forEach((function(e){r.push(e.url)})),t.push({songName:e.songName,songAuthor:e.songAuthor,index:e.index,type:"PRACTICE",uploadUrl:r.join(",")})})),r=this.performNumUpload,this.performInfo.forEach((function(e){var a=[];r[e.index].forEach((function(e){a.push(e.url)})),t.push({songName:e.songName,songAuthor:e.songAuthor,index:e.index,type:"PERFORM",uploadUrl:a.join(",")})})),n=this.form,o={id:n.id,lastExamCertificateUrl:n.lastExamCertificateUrl,lastMusicTheoryCertificateUrl:n.lastMusicTheoryCertificateUrl,songJson:JSON.stringify(t),status:"AUDIT_WAIT"},Object(u["a"])(!0),e.prev=10,e.next=13,Object(c["c"])(o);case 13:s=e.sent,Object(u["a"])(!1),l=s.data,200==l.code?(this.practiceUpload=[],this.practiceUploadTemp=[],this.practiceInfo=[],this.performUpload=[],this.performUploadTemp=[],this.performInfo=[],this.__init()):this.$toast(l.msg),e.next=22;break;case 19:e.prev=19,e.t0=e["catch"](10),Object(u["a"])(!1);case 22:case"end":return e.stop()}}),e,this,[[10,19]])})));function t(){return e.apply(this,arguments)}return t}(),onCheckFields:function(){var e=this.form;return this.practiceUpload.length!=this.practiceNum?(this.$toast("请上传练习曲"),!1):this.performUpload.length!=this.performNum?(this.$toast("请上传演奏曲"),!1):!(e.level>2&&0==e.lastMusicTheoryLevel&&!e.lastMusicTheoryCertificateUrl)||(this.$toast("请上传乐理证书"),!1)},onSaveCancel:function(){this.songUpload.songStatus=!1,this.performUpload=JSON.parse(JSON.stringify(this.performUploadTemp)),this.practiceUpload=JSON.parse(JSON.stringify(this.practiceUploadTemp))},onSaveUpload:function(){var e=this.songUpload;if(e.songName){if("practice"==e.indexName){var t=this.practiceUpload[e.index],a=t?t.length:0;if(!(t&&a>0&&t[0].url))return void this.$toast("请上传文件");if(!t[a-1].url)return void this.$toast("上传曲谱中,请稍等");this.practiceInfo[e.index]=JSON.parse(JSON.stringify(e)),this.practiceUploadTemp=JSON.parse(JSON.stringify(this.practiceUpload))}else if("perform"==e.indexName){var r=this.performUpload[e.index],n=r?r.length:0;if(!(r&&n>0))return void this.$toast("请上传文件");if(!r[n-1].url)return void this.$toast("上传曲谱中,请稍等");this.performInfo[e.index]=JSON.parse(JSON.stringify(e)),this.performUploadTemp=JSON.parse(JSON.stringify(this.performUpload))}e.songName=null,e.songAuthor=null,e.songStatus=!1}else this.$toast("请输入曲名")},numberToCN:function(e){var t={0:"一",1:"二",2:"三",3:"四",4:"五"};return t[e]}},filters:{filterStatus:function(e){var t={PAY_WAIT:"未缴费",AUDIT_WAIT:"等待审核",AUDIT_PASS:"通过",AUDIT_REJECT:"拒绝",REFUNDED:"已退款"};return t[e]}}},g=m,h=(a("75bf"),a("2877")),v=Object(h["a"])(g,r,n,!1,null,"2de31f86",null);t["default"]=v.exports},"6e6e":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"mheader"},[a("header",{staticClass:"m-nav-header",class:[{fixed:e.isFixed},{headerColor:e.isColor}]},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:e.goBack}},[a("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),a("div",{staticClass:"m-nav-bar__title"},[e._t("default",[e._v(e._s(e.name?e.name:e.$route.meta.description))])],2),a("div",{staticClass:"m-nav-bar__right"},[e._t("right")],2)])])},n=[],o={name:"mheader",props:{name:String,isBack:{type:Boolean,default:!0},isFixed:{type:Boolean,default:!0},isColor:{type:Boolean,default:!1},backUrl:{type:Object,default:function(){return{callBack:null,status:!1,path:"",params:{}}}}},data:function(){return{title:this.name,backUrlParams:this.backUrl}},methods:{goBack:function(){var e=this.backUrlParams;"function"==typeof e.callBack?e.callBack():e.status?this.$router.push({path:e.path,query:e.params}):history.go(-1)}}},i=o,s=(a("2558"),a("2877")),l=Object(s["a"])(i,r,n,!1,null,"9865a7b0",null);t["a"]=l.exports},"6f45":function(e,t,a){var r,o;(function(){var a=!1,i=function(e){return e instanceof i?e:this instanceof i?void(this.EXIFwrapped=e):new i(e)};e.exports&&(t=e.exports=i),t.EXIF=i;var s=i.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"},l=i.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"},u=i.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"},c=i.IFD1Tags={256:"ImageWidth",257:"ImageHeight",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",273:"StripOffsets",274:"Orientation",277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",282:"XResolution",283:"YResolution",284:"PlanarConfiguration",296:"ResolutionUnit",513:"JpegIFOffset",514:"JpegIFByteCount",529:"YCbCrCoefficients",530:"YCbCrSubSampling",531:"YCbCrPositioning",532:"ReferenceBlackWhite"},d=i.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 f(e){return!!e.exifdata}function p(e,t){t=t||e.match(/^data\:([^\;]+)\;base64,/im)[1]||"",e=e.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var a=atob(e),r=a.length,n=new ArrayBuffer(r),o=new Uint8Array(n),i=0;i<r;i++)o[i]=a.charCodeAt(i);return n}function m(e,t){var a=new XMLHttpRequest;a.open("GET",e,!0),a.responseType="blob",a.onload=function(e){200!=this.status&&0!==this.status||t(this.response)},a.send()}function g(e,t){function r(a){var r=h(a);e.exifdata=r||{};var n=v(a);if(e.iptcdata=n||{},i.isXmpEnabled){var o=T(a);e.xmpdata=o||{}}t&&t.call(e)}if(e.src)if(/^data\:/i.test(e.src)){var n=p(e.src);r(n)}else if(/^blob\:/i.test(e.src)){var o=new FileReader;o.onload=function(e){r(e.target.result)},m(e.src,(function(e){o.readAsArrayBuffer(e)}))}else{var s=new XMLHttpRequest;s.onload=function(){if(200!=this.status&&0!==this.status)throw"Could not load image";r(s.response),s=null},s.open("GET",e.src,!0),s.responseType="arraybuffer",s.send(null)}else if(self.FileReader&&(e instanceof self.Blob||e instanceof self.File)){o=new FileReader;o.onload=function(e){a&&console.log("Got file of length "+e.target.result.byteLength),r(e.target.result)},o.readAsArrayBuffer(e)}}function h(e){var t=new DataView(e);if(a&&console.log("Got file of length "+e.byteLength),255!=t.getUint8(0)||216!=t.getUint8(1))return a&&console.log("Not a valid JPEG"),!1;var r,n=2,o=e.byteLength;while(n<o){if(255!=t.getUint8(n))return a&&console.log("Not a valid marker at offset "+n+", found: "+t.getUint8(n)),!1;if(r=t.getUint8(n+1),a&&console.log(r),225==r)return a&&console.log("Found 0xFFE1 marker"),P(t,n+4,t.getUint16(n+2)-2);n+=2+t.getUint16(n+2)}}function v(e){var t=new DataView(e);if(a&&console.log("Got file of length "+e.byteLength),255!=t.getUint8(0)||216!=t.getUint8(1))return a&&console.log("Not a valid JPEG"),!1;var r=2,n=e.byteLength,o=function(e,t){return 56===e.getUint8(t)&&66===e.getUint8(t+1)&&73===e.getUint8(t+2)&&77===e.getUint8(t+3)&&4===e.getUint8(t+4)&&4===e.getUint8(t+5)};while(r<n){if(o(t,r)){var i=t.getUint8(r+7);i%2!==0&&(i+=1),0===i&&(i=4);var s=r+8+i,l=t.getUint16(r+6+i);return b(e,s,l)}r++}}var S={120:"caption",110:"credit",25:"keywords",55:"dateCreated",80:"byline",85:"bylineTitle",122:"captionWriter",105:"headline",116:"copyright",15:"category"};function b(e,t,a){var r,n,o,i,s=new DataView(e),l={},u=t;while(u<t+a)28===s.getUint8(u)&&2===s.getUint8(u+1)&&(i=s.getUint8(u+2),i in S&&(o=s.getInt16(u+3),o+5,n=S[i],r=I(s,u+5,o),l.hasOwnProperty(n)?l[n]instanceof Array?l[n].push(r):l[n]=[l[n],r]:l[n]=r)),u++;return l}function x(e,t,r,n,o){var i,s,l,u=e.getUint16(r,!o),c={};for(l=0;l<u;l++)i=r+12*l+2,s=n[e.getUint16(i,!o)],!s&&a&&console.log("Unknown tag: "+e.getUint16(i,!o)),c[s]=U(e,i,t,r,o);return c}function U(e,t,a,r,n){var o,i,s,l,u,c,d=e.getUint16(t+2,!n),f=e.getUint32(t+4,!n),p=e.getUint32(t+8,!n)+a;switch(d){case 1:case 7:if(1==f)return e.getUint8(t+8,!n);for(o=f>4?p:t+8,i=[],l=0;l<f;l++)i[l]=e.getUint8(o+l);return i;case 2:return o=f>4?p:t+8,I(e,o,f-1);case 3:if(1==f)return e.getUint16(t+8,!n);for(o=f>2?p:t+8,i=[],l=0;l<f;l++)i[l]=e.getUint16(o+2*l,!n);return i;case 4:if(1==f)return e.getUint32(t+8,!n);for(i=[],l=0;l<f;l++)i[l]=e.getUint32(p+4*l,!n);return i;case 5:if(1==f)return u=e.getUint32(p,!n),c=e.getUint32(p+4,!n),s=new Number(u/c),s.numerator=u,s.denominator=c,s;for(i=[],l=0;l<f;l++)u=e.getUint32(p+8*l,!n),c=e.getUint32(p+4+8*l,!n),i[l]=new Number(u/c),i[l].numerator=u,i[l].denominator=c;return i;case 9:if(1==f)return e.getInt32(t+8,!n);for(i=[],l=0;l<f;l++)i[l]=e.getInt32(p+4*l,!n);return i;case 10:if(1==f)return e.getInt32(p,!n)/e.getInt32(p+4,!n);for(i=[],l=0;l<f;l++)i[l]=e.getInt32(p+8*l,!n)/e.getInt32(p+4+8*l,!n);return i}}function y(e,t,a){var r=e.getUint16(t,!a);return e.getUint32(t+2+12*r,!a)}function C(e,t,a,r){var n=y(e,t+a,r);if(!n)return{};if(n>e.byteLength)return{};var o=x(e,t,t+n,c,r);if(o["Compression"])switch(o["Compression"]){case 6:if(o.JpegIFOffset&&o.JpegIFByteCount){var i=t+o.JpegIFOffset,s=o.JpegIFByteCount;o["blob"]=new Blob([new Uint8Array(e.buffer,i,s)],{type:"image/jpeg"})}break;case 1:console.log("Thumbnail image format is TIFF, which is not implemented.");break;default:console.log("Unknown thumbnail image format '%s'",o["Compression"])}else 2==o["PhotometricInterpretation"]&&console.log("Thumbnail image format is RGB, which is not implemented.");return o}function I(e,t,a){var r="";for(n=t;n<t+a;n++)r+=String.fromCharCode(e.getUint8(n));return r}function P(e,t){if("Exif"!=I(e,t,4))return a&&console.log("Not valid EXIF data! "+I(e,t,4)),!1;var r,n,o,i,c,f=t+6;if(18761==e.getUint16(f))r=!1;else{if(19789!=e.getUint16(f))return a&&console.log("Not valid TIFF data! (no 0x4949 or 0x4D4D)"),!1;r=!0}if(42!=e.getUint16(f+2,!r))return a&&console.log("Not valid TIFF data! (no 0x002A)"),!1;var p=e.getUint32(f+4,!r);if(p<8)return a&&console.log("Not valid TIFF data! (First offset less than 8)",e.getUint32(f+4,!r)),!1;if(n=x(e,f,f+p,l,r),n.ExifIFDPointer)for(o in i=x(e,f,f+n.ExifIFDPointer,s,r),i){switch(o){case"LightSource":case"Flash":case"MeteringMode":case"ExposureProgram":case"SensingMethod":case"SceneCaptureType":case"SceneType":case"CustomRendered":case"WhiteBalance":case"GainControl":case"Contrast":case"Saturation":case"Sharpness":case"SubjectDistanceRange":case"FileSource":i[o]=d[o][i[o]];break;case"ExifVersion":case"FlashpixVersion":i[o]=String.fromCharCode(i[o][0],i[o][1],i[o][2],i[o][3]);break;case"ComponentsConfiguration":i[o]=d.Components[i[o][0]]+d.Components[i[o][1]]+d.Components[i[o][2]]+d.Components[i[o][3]];break}n[o]=i[o]}if(n.GPSInfoIFDPointer)for(o in c=x(e,f,f+n.GPSInfoIFDPointer,u,r),c){switch(o){case"GPSVersionID":c[o]=c[o][0]+"."+c[o][1]+"."+c[o][2]+"."+c[o][3];break}n[o]=c[o]}return n["thumbnail"]=C(e,f,p,r),n}function T(e){if("DOMParser"in self){var t=new DataView(e);if(a&&console.log("Got file of length "+e.byteLength),255!=t.getUint8(0)||216!=t.getUint8(1))return a&&console.log("Not a valid JPEG"),!1;var r=2,n=e.byteLength,o=new DOMParser;while(r<n-4){if("http"==I(t,r,4)){var i=r-1,s=t.getUint16(r-2)-1,l=I(t,i,s),u=l.indexOf("xmpmeta>")+8;l=l.substring(l.indexOf("<x:xmpmeta"),u);var c=l.indexOf("x:xmpmeta")+10;l=l.slice(0,c)+'xmlns:Iptc4xmpCore="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tiff="http://ns.adobe.com/tiff/1.0/" xmlns:plus="http://schemas.android.com/apk/lib/com.google.android.gms.plus" xmlns:ext="http://www.gettyimages.com/xsltExtension/1.0" xmlns:exif="http://ns.adobe.com/exif/1.0/" xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#" xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#" xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/" xmlns:xapGImg="http://ns.adobe.com/xap/1.0/g/img/" xmlns:Iptc4xmpExt="http://iptc.org/std/Iptc4xmpExt/2008-02-29/" '+l.slice(c);var d=o.parseFromString(l,"text/xml");return w(d)}r++}}}function N(e){var t={};if(1==e.nodeType){if(e.attributes.length>0){t["@attributes"]={};for(var a=0;a<e.attributes.length;a++){var r=e.attributes.item(a);t["@attributes"][r.nodeName]=r.nodeValue}}}else if(3==e.nodeType)return e.nodeValue;if(e.hasChildNodes())for(var n=0;n<e.childNodes.length;n++){var o=e.childNodes.item(n),i=o.nodeName;if(null==t[i])t[i]=N(o);else{if(null==t[i].push){var s=t[i];t[i]=[],t[i].push(s)}t[i].push(N(o))}}return t}function w(e){try{var t={};if(e.children.length>0)for(var a=0;a<e.children.length;a++){var r=e.children.item(a),n=r.attributes;for(var o in n){var i=n[o],s=i.nodeName,l=i.nodeValue;void 0!==s&&(t[s]=l)}var u=r.nodeName;if("undefined"==typeof t[u])t[u]=N(r);else{if("undefined"==typeof t[u].push){var c=t[u];t[u]=[],t[u].push(c)}t[u].push(N(r))}}else t=e.textContent;return t}catch(d){console.log(d.message)}}i.enableXmp=function(){i.isXmpEnabled=!0},i.disableXmp=function(){i.isXmpEnabled=!1},i.getData=function(e,t){return!((self.Image&&e instanceof self.Image||self.HTMLImageElement&&e instanceof self.HTMLImageElement)&&!e.complete)&&(f(e)?t&&t.call(e):g(e,t),!0)},i.getTag=function(e,t){if(f(e))return e.exifdata[t]},i.getIptcTag=function(e,t){if(f(e))return e.iptcdata[t]},i.getAllTags=function(e){if(!f(e))return{};var t,a=e.exifdata,r={};for(t in a)a.hasOwnProperty(t)&&(r[t]=a[t]);return r},i.getAllIptcTags=function(e){if(!f(e))return{};var t,a=e.iptcdata,r={};for(t in a)a.hasOwnProperty(t)&&(r[t]=a[t]);return r},i.pretty=function(e){if(!f(e))return"";var t,a=e.exifdata,r="";for(t in a)a.hasOwnProperty(t)&&("object"==typeof a[t]?a[t]instanceof Number?r+=t+" : "+a[t]+" ["+a[t].numerator+"/"+a[t].denominator+"]\r\n":r+=t+" : ["+a[t].length+" values]\r\n":r+=t+" : "+a[t]+"\r\n");return r},i.readFromBinaryFile=function(e){return h(e)},r=[],o=function(){return i}.apply(t,r),void 0===o||(e.exports=o)}).call(this)},"736c":function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return o}));a("4328");var r=a("981f").default;function n(e){return r({url:"/api-user/examRegistration/applyList",method:"get",params:e})}function o(e){return r({url:"/api-user/examRegistration/examList",method:"get",params:e})}},"75bf":function(e,t,a){"use strict";var r=a("2347"),n=a.n(r);n.a},8900:function(e,t,a){"use strict";a.d(t,"o",(function(){return i})),a.d(t,"p",(function(){return s})),a.d(t,"m",(function(){return l})),a.d(t,"d",(function(){return u})),a.d(t,"j",(function(){return c})),a.d(t,"q",(function(){return d})),a.d(t,"l",(function(){return f})),a.d(t,"r",(function(){return p})),a.d(t,"i",(function(){return m})),a.d(t,"g",(function(){return g})),a.d(t,"h",(function(){return h})),a.d(t,"b",(function(){return v})),a.d(t,"c",(function(){return S})),a.d(t,"k",(function(){return b})),a.d(t,"e",(function(){return x})),a.d(t,"f",(function(){return U})),a.d(t,"n",(function(){return y})),a.d(t,"a",(function(){return C}));var r=a("4328"),n=a.n(r),o=a("981f").default;function i(e){return o({url:"/api-auth/code/sendSms",method:"post",data:n.a.stringify(e)})}function s(e){return o({url:"/api-auth/smsLogin",method:"post",data:n.a.stringify(e)})}function l(e){return o({url:"/api-auth/user/noAuth/queryUserByPhone",method:"get",params:e})}function u(e){return o({url:"/api-user/examinationBasic/getInfo",method:"post",data:n.a.stringify(e)})}function c(e){return o({url:"/api-user/student/getStudent",method:"get",params:e})}function d(e){return o({url:"/api-user/student/updateInfo",method:"post",data:n.a.stringify(e)})}function f(e){return o({url:"/api-user/examRegistration/ocr",method:"post",data:e})}function p(e){return o({url:"/api-user/uploadFile",method:"post",data:e})}function m(e){return o({url:"/api-user/examSubject/getExamSubjects",method:"get",params:e})}function g(e){return o({url:"/api-user/examSubjectSong/getExamSubjectLevel",method:"get",params:e})}function h(e){return o({url:"/api-user/examSubjectSong/getExamSubjectSong",method:"get",params:e})}function v(e){return o({url:"/api-user/examRegistration/add",method:"post",data:e})}function S(e){return o({url:"/api-user/examRegistration/update",method:"post",data:e})}function b(e){return o({url:"/api-user/examMusicTheory/getTheoryLevelList",method:"get",params:e})}function x(e){return o({url:"/api-user/examOrder/getExamIngOrder",method:"get",params:e})}function U(e){return o({url:"/api-user/examRegistration/getExamRegistration",method:"get",params:e})}function y(e){return o({url:"/api-user/examRegistration/repay",method:"post",data:n.a.stringify(e)})}function C(e){return o({url:"/api-user/examOrder/closeOrder",method:"post",data:n.a.stringify(e)})}},a34a:function(e,t,a){e.exports=a("96cf")},f0da:function(e,t,a){}}]);