| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["AppDetail"],{"12ae":function(e,t,a){},"5a0c":function(e,t,a){!function(t,a){e.exports=a()}(0,(function(){"use strict";var e="millisecond",t="second",a="minute",n="hour",r="day",i="week",o="month",s="quarter",u="year",l=/^(\d{4})-?(\d{1,2})-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,c=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f=function(e,t,a){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(a)+e},d={s:f,z:function(e){var t=-e.utcOffset(),a=Math.abs(t),n=Math.floor(a/60),r=a%60;return(t<=0?"+":"-")+f(n,2,"0")+":"+f(r,2,"0")},m:function(e,t){var a=12*(t.year()-e.year())+(t.month()-e.month()),n=e.clone().add(a,o),r=t-n<0,i=e.clone().add(a+(r?-1:1),o);return Number(-(a+(t-n)/(r?n-i:i-n))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(l){return{M:o,y:u,w:i,d:r,D:"date",h:n,m:a,s:t,ms:e,Q:s}[l]||String(l||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},m="en",h={};h[m]=p;var v=function(e){return e instanceof y},g=function(e,t,a){var n;if(!e)return m;if("string"==typeof e)h[e]&&(n=e),t&&(h[e]=t,n=e);else{var r=e.name;h[r]=e,n=r}return!a&&n&&(m=n),n||!a&&m},$=function(e,t){if(v(e))return e.clone();var a="object"==typeof t?t:{};return a.date=e,a.args=arguments,new y(a)},b=d;b.l=g,b.i=v,b.w=function(e,t){return $(e,{locale:t.$L,utc:t.$u,$offset:t.$offset})};var y=function(){function f(e){this.$L=this.$L||g(e.locale,null,!0),this.parse(e)}var d=f.prototype;return d.parse=function(e){this.$d=function(e){var t=e.date,a=e.utc;if(null===t)return new Date(NaN);if(b.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(l);if(n)return a?new Date(Date.UTC(n[1],n[2]-1,n[3]||1,n[4]||0,n[5]||0,n[6]||0,n[7]||0)):new Date(n[1],n[2]-1,n[3]||1,n[4]||0,n[5]||0,n[6]||0,n[7]||0)}return new Date(t)}(e),this.init()},d.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},d.$utils=function(){return b},d.isValid=function(){return!("Invalid Date"===this.$d.toString())},d.isSame=function(e,t){var a=$(e);return this.startOf(t)<=a&&a<=this.endOf(t)},d.isAfter=function(e,t){return $(e)<this.startOf(t)},d.isBefore=function(e,t){return this.endOf(t)<$(e)},d.$g=function(e,t,a){return b.u(e)?this[t]:this.set(a,e)},d.year=function(e){return this.$g(e,"$y",u)},d.month=function(e){return this.$g(e,"$M",o)},d.day=function(e){return this.$g(e,"$W",r)},d.date=function(e){return this.$g(e,"$D","date")},d.hour=function(e){return this.$g(e,"$H",n)},d.minute=function(e){return this.$g(e,"$m",a)},d.second=function(e){return this.$g(e,"$s",t)},d.millisecond=function(t){return this.$g(t,"$ms",e)},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(e,s){var l=this,c=!!b.u(s)||s,f=b.p(e),d=function(e,t){var a=b.w(l.$u?Date.UTC(l.$y,t,e):new Date(l.$y,t,e),l);return c?a:a.endOf(r)},p=function(e,t){return b.w(l.toDate()[e].apply(l.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),l)},m=this.$W,h=this.$M,v=this.$D,g="set"+(this.$u?"UTC":"");switch(f){case u:return c?d(1,0):d(31,11);case o:return c?d(1,h):d(0,h+1);case i:var $=this.$locale().weekStart||0,y=(m<$?m+7:m)-$;return d(c?v-y:v+(6-y),h);case r:case"date":return p(g+"Hours",0);case n:return p(g+"Minutes",1);case a:return p(g+"Seconds",2);case t:return p(g+"Milliseconds",3);default:return this.clone()}},d.endOf=function(e){return this.startOf(e,!1)},d.$set=function(i,s){var l,c=b.p(i),f="set"+(this.$u?"UTC":""),d=(l={},l[r]=f+"Date",l.date=f+"Date",l[o]=f+"Month",l[u]=f+"FullYear",l[n]=f+"Hours",l[a]=f+"Minutes",l[t]=f+"Seconds",l[e]=f+"Milliseconds",l)[c],p=c===r?this.$D+(s-this.$W):s;if(c===o||c===u){var m=this.clone().set("date",1);m.$d[d](p),m.init(),this.$d=m.set("date",Math.min(this.$D,m.daysInMonth())).toDate()}else d&&this.$d[d](p);return this.init(),this},d.set=function(e,t){return this.clone().$set(e,t)},d.get=function(e){return this[b.p(e)]()},d.add=function(e,s){var l,c=this;e=Number(e);var f=b.p(s),d=function(t){var a=$(c);return b.w(a.date(a.date()+Math.round(t*e)),c)};if(f===o)return this.set(o,this.$M+e);if(f===u)return this.set(u,this.$y+e);if(f===r)return d(1);if(f===i)return d(7);var p=(l={},l[a]=6e4,l[n]=36e5,l[t]=1e3,l)[f]||1,m=this.$d.getTime()+e*p;return b.w(m,this)},d.subtract=function(e,t){return this.add(-1*e,t)},d.format=function(e){var t=this;if(!this.isValid())return"Invalid Date";var a=e||"YYYY-MM-DDTHH:mm:ssZ",n=b.z(this),r=this.$locale(),i=this.$H,o=this.$m,s=this.$M,u=r.weekdays,l=r.months,f=function(e,n,r,i){return e&&(e[n]||e(t,a))||r[n].substr(0,i)},d=function(e){return b.s(i%12||12,e,"0")},p=r.meridiem||function(e,t,a){var n=e<12?"AM":"PM";return a?n.toLowerCase():n},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:b.s(s+1,2,"0"),MMM:f(r.monthsShort,s,l,3),MMMM:f(l,s),D:this.$D,DD:b.s(this.$D,2,"0"),d:String(this.$W),dd:f(r.weekdaysMin,this.$W,u,2),ddd:f(r.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(i),HH:b.s(i,2,"0"),h:d(1),hh:d(2),a:p(i,o,!0),A:p(i,o,!1),m:String(o),mm:b.s(o,2,"0"),s:String(this.$s),ss:b.s(this.$s,2,"0"),SSS:b.s(this.$ms,3,"0"),Z:n};return a.replace(c,(function(e,t){return t||m[e]||n.replace(":","")}))},d.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},d.diff=function(e,l,c){var f,d=b.p(l),p=$(e),m=6e4*(p.utcOffset()-this.utcOffset()),h=this-p,v=b.m(this,p);return v=(f={},f[u]=v/12,f[o]=v,f[s]=v/3,f[i]=(h-m)/6048e5,f[r]=(h-m)/864e5,f[n]=h/36e5,f[a]=h/6e4,f[t]=h/1e3,f)[d]||h,c?v:b.a(v)},d.daysInMonth=function(){return this.endOf(o).$D},d.$locale=function(){return h[this.$L]},d.locale=function(e,t){if(!e)return this.$L;var a=this.clone(),n=g(e,t,!0);return n&&(a.$L=n),a},d.clone=function(){return b.w(this.$d,this)},d.toDate=function(){return new Date(this.valueOf())},d.toJSON=function(){return this.isValid()?this.toISOString():null},d.toISOString=function(){return this.$d.toISOString()},d.toString=function(){return this.$d.toUTCString()},f}();return $.prototype=y.prototype,$.extend=function(e,t){return e(t,y,$),$},$.locale=g,$.isDayjs=v,$.unix=function(e){return $(1e3*e)},$.en=h[m],$.Ls=h,$}))},"69b0":function(e,t,a){"use strict";a.r(t);var n=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:"缴费状态"}},["PAY_WAIT"===e.form.status?a("p",{staticClass:"noPass"},[e._v("未缴费")]):a("p",{staticClass:"pass"},[e._v("已缴费")])]),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._s(e._f("formatLevel")(e.form.level))+")\n ")]),e._l(e.performInfo,(function(t,n){return a("van-cell",{key:n,attrs:{title:"练习曲"+e.numberToCN(n),"is-link":""},on:{click:function(t){return e.onOpen("perform",n)}}},[e._v("\n "+e._s(t.songName)+" "+e._s(t.songAuthor?"-"+t.songAuthor:t.songAuthor)+"\n ")])})),e._l(e.practiceInfo,(function(t,n){return a("van-cell",{key:n,attrs:{title:"演奏曲"+e.numberToCN(n),"is-link":""},on:{click:function(t){return e.onOpen("practice",n)}}},[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:"",deletable:!1,"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/*","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",{staticStyle:{"margin-top":"20px"}},[a("van-cell",{attrs:{disabled:"",title:"报名审核"}},["AUDIT_PASS"===e.form.status?a("p",{staticClass:"pass"},[e._v("已通过")]):a("p",{staticClass:"noPass"},[e._v("未通过")])]),a("van-cell",{attrs:{title:"备注"}},[e._v("\n "+e._s(e.form.memo)+"\n ")])],1),a("van-button",{attrs:{type:"primary",round:"",block:""}},[e._v("重新提交")]),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",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.name,callback:function(t){e.$set(e.songUpload,"name",t)},expression:"songUpload.name"}}),a("van-field",{attrs:{name:"songAuthor",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.author,callback:function(t){e.$set(e.songUpload,"author",t)},expression:"songUpload.author"}}),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:"",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:"",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"},[e._v("确定")])])],1)])],1)},r=[],i=a("a34a"),o=a.n(i),s=a("6e6e"),u=a("cf45"),l=(a("5a0c"),a("3908")),c=a("9455"),f=a("8900"),d=a("736c");function p(e,t,a,n,r,i,o){try{var s=e[i](o),u=s.value}catch(l){return void a(l)}s.done?t(u):Promise.resolve(u).then(n,r)}function m(e){return function(){var t=this,a=arguments;return new Promise((function(n,r){var i=e.apply(t,a);function o(e){p(i,n,r,o,s,"next",e)}function s(e){p(i,n,r,o,s,"throw",e)}o(void 0)}))}}var h={name:"appDetail",components:{MHeader:s["a"]},data:function(){var e=this.$route.query;return{headerStatus:!1,examRegistrationId:e.examRegistrationId,form:{paymentOrderNo:null,examBaseName:null,subjectName:null,level:null,status:null,examStartTime:null,lastExamCertificateUrl:null,lastMusicTheoryLevel:null,lastMusicTheoryCertificateUrl:null,memo:null},uploadCertificate:[],uploadCertificate2:[],songUpload:{songStatus:!1,indexName:null,index:null,name:null,author:null},performUpload:[],performInfo:[],practiceUpload:[],practiceInfo:[]}},mounted:function(){var e=this.$route.query;e.Authorization&&localStorage.setItem("Authorization",decodeURI(e.Authorization)),Object(u["a"])().android||Object(u["a"])().iPhone?document.title="报考详情":this.headerStatus=!0,this.__init()},methods:{__init:function(){var e=m(o.a.mark((function e(){var t,a,n,r,i=this;return o.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return Object(l["a"])(!0),e.prev=1,e.next=4,Object(d["a"])({page:1,rows:20,examRegistrationId:this.examRegistrationId});case 4:t=e.sent,a=t.data,200==a.code&&(n=a.data.rows?a.data.rows[0]:{},this.form={paymentOrderNo:n.paymentOrderNo,examBaseName:n.examBaseName,subjectName:n.subjectName,level:n.level,status:n.status,examStartTime:n.examStartTime,lastExamCertificateUrl:n.lastExamCertificateUrl,lastMusicTheoryLevel:n.lastMusicTheoryLevel,lastMusicTheoryCertificateUrl:n.lastMusicTheoryCertificateUrl,memo:n.memo},n.lastExamCertificateUrl&&(this.uploadCertificate=[{url:n.lastExamCertificateUrl}]),n.lastMusicTheoryCertificateUrl&&(this.uploadCertificate2=[{url:n.lastMusicTheoryCertificateUrl}]),r=n.songJson?JSON.parse(n.songJson):[],console.log(r),r.forEach((function(e){var t=e.uploadUrl.split(","),a=[];t.forEach((function(e){a.push({url:e})})),"PRACTICE"===e.type?(i.practiceUpload.push(a),i.practiceInfo.push(e)):"PERFORM"===e.type&&(i.performUpload.push(a),i.performInfo.push(e))})),console.log({practiceInfo:this.practiceInfo,practiceUpload:this.practiceUpload,performInfo:this.performInfo,performUpload:this.performUpload})),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](1);case 11:Object(l["a"])(!1);case 12:case"end":return e.stop()}}),e,this,[[1,9]])})));function t(){return e.apply(this,arguments)}return t}(),onOpen:function(e,t){var a=this.songUpload;a.indexName=e,a.index=t;var n=this.practiceInfo[t],r=this.performInfo[t];"perform"==e?(a.name=r?r.songName:null,a.author=r?r.songAuthor:null):"practice"==e&&(a.name=n?n.songName:null,a.author=n?n.songAuthor:null),a.songStatus=!0},beforeRead:function(e){var t=e.size/1024/1024<5;return t?new Promise((function(t){c["a"].getOrientation(e).then((function(a){if(a&&""!=a&&1!=a){var n=new FileReader,r=new Image;n.onload=function(n){r.src=n.target.result,r.onload=function(){var n=c["a"].rotateImage(r,r.width,r.height,a),i=c["a"].dataURLtoFile(n,e.name);t(i)}},n.readAsDataURL(e)}else t(e)}))})):(this.$toast("上传图片大小不能超过 5MB"),!1)},beforeDelete:function(e,t){var a=t.name.split("-"),n=this.form;return"certificate2"==a[0]?n.lastMusicTheoryCertificateUrl="":"certificate"==a[0]&&(n.lastExamCertificateUrl=""),!0},afterRead:function(){var e=m(o.a.mark((function e(t,a){var n,r,i,s,u;return o.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=a.name.split("-"),e.prev=1,t.status="uploading",t.message="上传中...",r=new FormData,r.append("file",t.file),e.next=8,Object(f["q"])(r);case 8:if(i=e.sent,s=i.data,200!=s.code){e.next=16;break}t.status="done",u=this.form,"certificate2"==n[0]?u.lastMusicTheoryCertificateUrl=s.data.url:"certificate"==n[0]?u.lastExamCertificateUrl=s.data.url:("practiceNum"==n[0]||"performNum"==n[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}(),onSaveCancel:function(){this.songUpload.songStatus=!1},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]}}},v=h,g=(a("bd33"),a("2877")),$=Object(g["a"])(v,n,r,!1,null,"37d79618",null);t["default"]=$.exports},"736c":function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return i}));a("4328");var n=a("981f").default;function r(e){return n({url:"/api-user/examRegistration/applyList",method:"get",params:e})}function i(e){return n({url:"/api-user/examRegistration/examList",method:"get",params:e})}},bd33:function(e,t,a){"use strict";var n=a("12ae"),r=a.n(n);r.a}}]);
|