AppDetail.344a507c.js 17 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["AppDetail"],{2558:function(t,e,n){"use strict";var a=n("f0da"),r=n.n(a);r.a},"5a0c":function(t,e,n){!function(e,n){t.exports=n()}(0,(function(){"use strict";var t="millisecond",e="second",n="minute",a="hour",r="day",i="week",s="month",o="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(t,e,n){var a=String(t);return!a||a.length>=e?t:""+Array(e+1-a.length).join(n)+t},d={s:f,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),a=Math.floor(n/60),r=n%60;return(e<=0?"+":"-")+f(a,2,"0")+":"+f(r,2,"0")},m:function(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),a=t.clone().add(n,s),r=e-a<0,i=t.clone().add(n+(r?-1:1),s);return Number(-(n+(e-a)/(r?a-i:i-a))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(l){return{M:s,y:u,w:i,d:r,D:"date",h:a,m:n,s:e,ms:t,Q:o}[l]||String(l||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},m={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("_")},p="en",h={};h[p]=m;var v=function(t){return t instanceof y},g=function(t,e,n){var a;if(!t)return p;if("string"==typeof t)h[t]&&(a=t),e&&(h[t]=e,a=t);else{var r=t.name;h[r]=t,a=r}return!n&&a&&(p=a),a||!n&&p},$=function(t,e){if(v(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new y(n)},b=d;b.l=g,b.i=v,b.w=function(t,e){return $(t,{locale:e.$L,utc:e.$u,$offset:e.$offset})};var y=function(){function f(t){this.$L=this.$L||g(t.locale,null,!0),this.parse(t)}var d=f.prototype;return d.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var a=e.match(l);if(a)return n?new Date(Date.UTC(a[1],a[2]-1,a[3]||1,a[4]||0,a[5]||0,a[6]||0,a[7]||0)):new Date(a[1],a[2]-1,a[3]||1,a[4]||0,a[5]||0,a[6]||0,a[7]||0)}return new Date(e)}(t),this.init()},d.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},d.$utils=function(){return b},d.isValid=function(){return!("Invalid Date"===this.$d.toString())},d.isSame=function(t,e){var n=$(t);return this.startOf(e)<=n&&n<=this.endOf(e)},d.isAfter=function(t,e){return $(t)<this.startOf(e)},d.isBefore=function(t,e){return this.endOf(e)<$(t)},d.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},d.year=function(t){return this.$g(t,"$y",u)},d.month=function(t){return this.$g(t,"$M",s)},d.day=function(t){return this.$g(t,"$W",r)},d.date=function(t){return this.$g(t,"$D","date")},d.hour=function(t){return this.$g(t,"$H",a)},d.minute=function(t){return this.$g(t,"$m",n)},d.second=function(t){return this.$g(t,"$s",e)},d.millisecond=function(e){return this.$g(e,"$ms",t)},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(t,o){var l=this,c=!!b.u(o)||o,f=b.p(t),d=function(t,e){var n=b.w(l.$u?Date.UTC(l.$y,e,t):new Date(l.$y,e,t),l);return c?n:n.endOf(r)},m=function(t,e){return b.w(l.toDate()[t].apply(l.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(e)),l)},p=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 s:return c?d(1,h):d(0,h+1);case i:var $=this.$locale().weekStart||0,y=(p<$?p+7:p)-$;return d(c?v-y:v+(6-y),h);case r:case"date":return m(g+"Hours",0);case a:return m(g+"Minutes",1);case n:return m(g+"Seconds",2);case e:return m(g+"Milliseconds",3);default:return this.clone()}},d.endOf=function(t){return this.startOf(t,!1)},d.$set=function(i,o){var l,c=b.p(i),f="set"+(this.$u?"UTC":""),d=(l={},l[r]=f+"Date",l.date=f+"Date",l[s]=f+"Month",l[u]=f+"FullYear",l[a]=f+"Hours",l[n]=f+"Minutes",l[e]=f+"Seconds",l[t]=f+"Milliseconds",l)[c],m=c===r?this.$D+(o-this.$W):o;if(c===s||c===u){var p=this.clone().set("date",1);p.$d[d](m),p.init(),this.$d=p.set("date",Math.min(this.$D,p.daysInMonth())).toDate()}else d&&this.$d[d](m);return this.init(),this},d.set=function(t,e){return this.clone().$set(t,e)},d.get=function(t){return this[b.p(t)]()},d.add=function(t,o){var l,c=this;t=Number(t);var f=b.p(o),d=function(e){var n=$(c);return b.w(n.date(n.date()+Math.round(e*t)),c)};if(f===s)return this.set(s,this.$M+t);if(f===u)return this.set(u,this.$y+t);if(f===r)return d(1);if(f===i)return d(7);var m=(l={},l[n]=6e4,l[a]=36e5,l[e]=1e3,l)[f]||1,p=this.$d.getTime()+t*m;return b.w(p,this)},d.subtract=function(t,e){return this.add(-1*t,e)},d.format=function(t){var e=this;if(!this.isValid())return"Invalid Date";var n=t||"YYYY-MM-DDTHH:mm:ssZ",a=b.z(this),r=this.$locale(),i=this.$H,s=this.$m,o=this.$M,u=r.weekdays,l=r.months,f=function(t,a,r,i){return t&&(t[a]||t(e,n))||r[a].substr(0,i)},d=function(t){return b.s(i%12||12,t,"0")},m=r.meridiem||function(t,e,n){var a=t<12?"AM":"PM";return n?a.toLowerCase():a},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:o+1,MM:b.s(o+1,2,"0"),MMM:f(r.monthsShort,o,l,3),MMMM:f(l,o),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:m(i,s,!0),A:m(i,s,!1),m:String(s),mm:b.s(s,2,"0"),s:String(this.$s),ss:b.s(this.$s,2,"0"),SSS:b.s(this.$ms,3,"0"),Z:a};return n.replace(c,(function(t,e){return e||p[t]||a.replace(":","")}))},d.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},d.diff=function(t,l,c){var f,d=b.p(l),m=$(t),p=6e4*(m.utcOffset()-this.utcOffset()),h=this-m,v=b.m(this,m);return v=(f={},f[u]=v/12,f[s]=v,f[o]=v/3,f[i]=(h-p)/6048e5,f[r]=(h-p)/864e5,f[a]=h/36e5,f[n]=h/6e4,f[e]=h/1e3,f)[d]||h,c?v:b.a(v)},d.daysInMonth=function(){return this.endOf(s).$D},d.$locale=function(){return h[this.$L]},d.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),a=g(t,e,!0);return a&&(n.$L=a),n},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(t,e){return t(e,y,$),$},$.locale=g,$.isDayjs=v,$.unix=function(t){return $(1e3*t)},$.en=h[p],$.Ls=h,$}))},"5e4c":function(t,e,n){},"69b0":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"appDetail"},[n("m-header"),n("van-cell-group",[n("van-field",{attrs:{disabled:"",label:"考级名称"},model:{value:t.form.examBaseName,callback:function(e){t.$set(t.form,"examBaseName",e)},expression:"form.examBaseName"}}),n("van-cell",{attrs:{disabled:"",title:"缴费状态"}},[t._v("\n "+t._s(t._f("studentPayStatus")(t.form.status))+"\n ")]),n("van-field",{attrs:{disabled:"",label:"考试日期"},model:{value:t.form.examStartTime,callback:function(e){t.$set(t.form,"examStartTime",e)},expression:"form.examStartTime"}}),n("van-cell",{attrs:{title:"专业等级"}},[t._v("\n "+t._s(t.form.subjectName)+"("+t._s(t._f("formatLevel")(t.form.level))+")\n ")]),n("van-field",{attrs:{disabled:"",label:"练习曲","is-link":""},on:{click:t.onOpen},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}}),n("van-field",{attrs:{disabled:"",label:"练习曲","is-link":""},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}}),n("van-field",{attrs:{disabled:"",label:"演奏曲","is-link":""},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}}),n("van-field",{attrs:{disabled:"",label:"演奏曲","is-link":""},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}}),n("van-field",{attrs:{disabled:"",label:"考级证书"},scopedSlots:t._u([{key:"input",fn:function(){return[n("van-uploader",{attrs:{name:"certificate","before-read":t.beforeRead,"before-delete":t.beforeDelete,"after-read":t.afterRead,accept:"image/*",disabled:"","max-count":1},model:{value:t.uploadCertificate,callback:function(e){t.uploadCertificate=e},expression:"uploadCertificate"}})]},proxy:!0}]),model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}}),n("van-cell",{attrs:{disabled:"",title:"乐理等级"}},[t._v("\n "+t._s(t._f("formatLevel")(t.form.lastMusicTheoryLevel))+"\n ")]),n("van-field",{attrs:{disabled:"",label:"乐理证书"},scopedSlots:t._u([{key:"input",fn:function(){return[n("van-uploader",{attrs:{name:"certificate2","before-read":t.beforeRead,"before-delete":t.beforeDelete,"after-read":t.afterRead,disabled:"",accept:"image/*","max-count":1},model:{value:t.uploadCertificate2,callback:function(e){t.uploadCertificate2=e},expression:"uploadCertificate2"}})]},proxy:!0}]),model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),n("van-cell-group",{staticStyle:{"margin-top":"20px"}},[n("van-cell",{attrs:{disabled:"",title:"报名审核"}},[t._v("\n "+t._s(t._f("studentPayStatus")(t.form.status))+"\n ")]),n("van-cell",{attrs:{title:"备注"}},[t._v("\n "+t._s(t.form.memo)+"\n ")])],1),n("van-button",{attrs:{type:"primary",round:"",block:""}},[t._v("重新提交")]),n("van-popup",{staticClass:"van-popup-song",attrs:{"close-on-click-overlay":!1},model:{value:t.songUpload.songStatus,callback:function(e){t.$set(t.songUpload,"songStatus",e)},expression:"songUpload.songStatus"}},[n("div",{staticClass:"song-popup"},[n("div",{staticClass:"title"},[t._v("自定义曲目")]),n("van-field",{attrs:{readonly:"",clearable:""},scopedSlots:t._u([{key:"input",fn:function(){return[n("van-uploader",{attrs:{"before-read":t.beforeRead,"before-delete":t.beforeDelete,"after-read":t.afterRead,multiple:"",accept:"image/*","max-count":5},model:{value:t.performNumUpload,callback:function(e){t.performNumUpload="string"===typeof e?e.trim():e},expression:"performNumUpload"}})]},proxy:!0}])}),n("p",{staticClass:"song-popup-tips"},[n("i",{staticStyle:{color:"#ee0a24"}},[t._v("*")]),t._v("支持格式:pdf,png,jpg,bmp")]),n("div",{staticClass:"popup-group"},[n("span",{on:{click:t.onSaveCancel}},[t._v("取消")]),n("span",{staticClass:"popup-sure"},[t._v("确定")])])],1)])],1)},r=[],i=n("a34a"),s=n.n(i),o=n("6e6e"),u=(n("5a0c"),n("8900"));function l(t,e,n,a,r,i,s){try{var o=t[i](s),u=o.value}catch(l){return void n(l)}o.done?e(u):Promise.resolve(u).then(a,r)}function c(t){return function(){var e=this,n=arguments;return new Promise((function(a,r){var i=t.apply(e,n);function s(t){l(i,a,r,s,o,"next",t)}function o(t){l(i,a,r,s,o,"throw",t)}s(void 0)}))}}var f={name:"appDetail",components:{MHeader:o["a"]},data:function(){var t=localStorage.getItem("recordDetail")?JSON.parse(localStorage.getItem("recordDetail")):null;return t||this.$router.replace("/appRecord"),{recordDetail:t,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},performNumUpload:[{url:"https://daya-online.oss-cn-beijing.aliyuncs.com/202007/S3wXfqp.jpg"},{url:"https://daya-online.oss-cn-beijing.aliyuncs.com/202007/S3wrElA.jpg"},{url:"https://daya-online.oss-cn-beijing.aliyuncs.com/202007/S3wuoPO.jpg"}]}},mounted:function(){document.title="报考详情",console.log(this.recordDetail);var t=this.recordDetail;this.form={paymentOrderNo:t.paymentOrderNo,examBaseName:t.examBaseName,subjectName:t.subjectName,level:t.level,status:t.status,examStartTime:t.examStartTime,lastExamCertificateUrl:t.lastExamCertificateUrl,lastMusicTheoryLevel:t.lastMusicTheoryLevel,lastMusicTheoryCertificateUrl:t.lastMusicTheoryCertificateUrl,memo:t.memo}},methods:{onOpen:function(){this.songUpload.songStatus=!0},beforeRead:function(t){var e=t.size/1024/1024<2;return!!e||(this.$toast("上传证书大小不能超过 2MB"),!1)},beforeDelete:function(t,e){var n=e.name.split("-"),a=this.form;return"certificate2"==n[0]?a.lastMusicTheoryCertificateUrl="":"certificate"==n[0]&&(a.lastExamCertificateUrl=""),!0},afterRead:function(){var t=c(s.a.mark((function t(e,n){var a,r,i,o,l;return s.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=n.name.split("-"),t.prev=1,e.status="uploading",e.message="上传中...",r=new FormData,r.append("file",e.file),t.next=8,Object(u["q"])(r);case 8:if(i=t.sent,o=i.data,200!=o.code){t.next=16;break}e.status="done",l=this.form,"certificate2"==a[0]?l.lastMusicTheoryCertificateUrl=o.data.url:"certificate"==a[0]?l.lastExamCertificateUrl=o.data.url:("practiceNum"==a[0]||"performNum"==a[0])&&(e.url=o.data.url),t.next=20;break;case 16:return e.status="failed",e.message="上传失败",this.$toast(o.msg),t.abrupt("return",!1);case 20:t.next=25;break;case 22:return t.prev=22,t.t0=t["catch"](1),t.abrupt("return",!1);case 25:case"end":return t.stop()}}),t,this,[[1,22]])})));function e(e,n){return t.apply(this,arguments)}return e}(),onSaveCancel:function(){this.songUpload.songStatus=!1}}},d=f,m=(n("9833"),n("2877")),p=Object(m["a"])(d,a,r,!1,null,"9fbc172e",null);e["default"]=p.exports},"6e6e":function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mheader"},[n("header",{staticClass:"m-nav-header",class:[{fixed:t.isFixed},{headerColor:t.isColor}]},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:t.goBack}},[n("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),n("div",{staticClass:"m-nav-bar__title"},[t._t("default",[t._v(t._s(t.name?t.name:t.$route.meta.description))])],2),n("div",{staticClass:"m-nav-bar__right"},[t._t("right")],2)])])},r=[],i={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 t=this.backUrlParams;"function"==typeof t.callBack?t.callBack():t.status?this.$router.push({path:t.path,query:t.params}):history.go(-1)}}},s=i,o=(n("2558"),n("2877")),u=Object(o["a"])(s,a,r,!1,null,"9865a7b0",null);e["a"]=u.exports},8900:function(t,e,n){"use strict";n.d(e,"n",(function(){return s})),n.d(e,"o",(function(){return o})),n.d(e,"l",(function(){return u})),n.d(e,"c",(function(){return l})),n.d(e,"i",(function(){return c})),n.d(e,"p",(function(){return f})),n.d(e,"k",(function(){return d})),n.d(e,"q",(function(){return m})),n.d(e,"h",(function(){return p})),n.d(e,"f",(function(){return h})),n.d(e,"g",(function(){return v})),n.d(e,"b",(function(){return g})),n.d(e,"j",(function(){return $})),n.d(e,"d",(function(){return b})),n.d(e,"e",(function(){return y})),n.d(e,"m",(function(){return S})),n.d(e,"a",(function(){return x}));var a=n("4328"),r=n.n(a),i=n("981f").default;function s(t){return i({url:"/api-auth/code/sendSms",method:"post",data:r.a.stringify(t)})}function o(t){return i({url:"/api-auth/smsLogin",method:"post",data:r.a.stringify(t)})}function u(t){return i({url:"/api-auth/user/noAuth/queryUserByPhone",method:"get",params:t})}function l(t){return i({url:"/api-user/examinationBasic/getInfo",method:"post",data:r.a.stringify(t)})}function c(t){return i({url:"/api-user/student/getStudent",method:"get",params:t})}function f(t){return i({url:"/api-user/student/updateInfo",method:"post",data:r.a.stringify(t)})}function d(t){return i({url:"/api-user/examRegistration/ocr",method:"post",data:t})}function m(t){return i({url:"/api-user/uploadFile",method:"post",data:t})}function p(t){return i({url:"/api-user/examSubject/getExamSubjects",method:"get",params:t})}function h(t){return i({url:"/api-user/examSubjectSong/getExamSubjectLevel",method:"get",params:t})}function v(t){return i({url:"/api-user/examSubjectSong/getExamSubjectSong",method:"get",params:t})}function g(t){return i({url:"/api-user/examRegistration/add",method:"post",data:t})}function $(t){return i({url:"/api-user/examMusicTheory/getTheoryLevelList",method:"get",params:t})}function b(t){return i({url:"/api-user/examOrder/getExamIngOrder",method:"get",params:t})}function y(t){return i({url:"/api-user/examRegistration/getExamRegistration",method:"get",params:t})}function S(t){return i({url:"/api-user/examRegistration/repay",method:"post",data:r.a.stringify(t)})}function x(t){return i({url:"/api-user/examOrder/closeOrder",method:"post",data:r.a.stringify(t)})}},9833:function(t,e,n){"use strict";var a=n("5e4c"),r=n.n(a);r.a},a34a:function(t,e,n){t.exports=n("96cf")},f0da:function(t,e,n){}}]);