AppRecord.64fdd551.js 11 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["AppRecord"],{"5a0c":function(t,e,n){!function(e,n){t.exports=n()}(0,(function(){"use strict";var t="millisecond",e="second",n="minute",i="hour",a="day",r="week",s="month",u="quarter",o="year",c=/^(\d{4})-?(\d{1,2})-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,f=/\[([^\]]+)]|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,h=function(t,e,n){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(n)+t},d={s:h,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),i=Math.floor(n/60),a=n%60;return(e<=0?"+":"-")+h(i,2,"0")+":"+h(a,2,"0")},m:function(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,s),a=e-i<0,r=t.clone().add(n+(a?-1:1),s);return Number(-(n+(e-i)/(a?i-r:r-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(c){return{M:s,y:o,w:r,d:a,D:"date",h:i,m:n,s:e,ms:t,Q:u}[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},l={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",p={};p[m]=l;var $=function(t){return t instanceof D},v=function(t,e,n){var i;if(!t)return m;if("string"==typeof t)p[t]&&(i=t),e&&(p[t]=e,i=t);else{var a=t.name;p[a]=t,i=a}return!n&&i&&(m=i),i||!n&&m},g=function(t,e){if($(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new D(n)},y=d;y.l=v,y.i=$,y.w=function(t,e){return g(t,{locale:e.$L,utc:e.$u,$offset:e.$offset})};var D=function(){function h(t){this.$L=this.$L||v(t.locale,null,!0),this.parse(t)}var d=h.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(y.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(c);if(i)return n?new Date(Date.UTC(i[1],i[2]-1,i[3]||1,i[4]||0,i[5]||0,i[6]||0,i[7]||0)):new Date(i[1],i[2]-1,i[3]||1,i[4]||0,i[5]||0,i[6]||0,i[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 y},d.isValid=function(){return!("Invalid Date"===this.$d.toString())},d.isSame=function(t,e){var n=g(t);return this.startOf(e)<=n&&n<=this.endOf(e)},d.isAfter=function(t,e){return g(t)<this.startOf(e)},d.isBefore=function(t,e){return this.endOf(e)<g(t)},d.$g=function(t,e,n){return y.u(t)?this[e]:this.set(n,t)},d.year=function(t){return this.$g(t,"$y",o)},d.month=function(t){return this.$g(t,"$M",s)},d.day=function(t){return this.$g(t,"$W",a)},d.date=function(t){return this.$g(t,"$D","date")},d.hour=function(t){return this.$g(t,"$H",i)},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,u){var c=this,f=!!y.u(u)||u,h=y.p(t),d=function(t,e){var n=y.w(c.$u?Date.UTC(c.$y,e,t):new Date(c.$y,e,t),c);return f?n:n.endOf(a)},l=function(t,e){return y.w(c.toDate()[t].apply(c.toDate("s"),(f?[0,0,0,0]:[23,59,59,999]).slice(e)),c)},m=this.$W,p=this.$M,$=this.$D,v="set"+(this.$u?"UTC":"");switch(h){case o:return f?d(1,0):d(31,11);case s:return f?d(1,p):d(0,p+1);case r:var g=this.$locale().weekStart||0,D=(m<g?m+7:m)-g;return d(f?$-D:$+(6-D),p);case a:case"date":return l(v+"Hours",0);case i:return l(v+"Minutes",1);case n:return l(v+"Seconds",2);case e:return l(v+"Milliseconds",3);default:return this.clone()}},d.endOf=function(t){return this.startOf(t,!1)},d.$set=function(r,u){var c,f=y.p(r),h="set"+(this.$u?"UTC":""),d=(c={},c[a]=h+"Date",c.date=h+"Date",c[s]=h+"Month",c[o]=h+"FullYear",c[i]=h+"Hours",c[n]=h+"Minutes",c[e]=h+"Seconds",c[t]=h+"Milliseconds",c)[f],l=f===a?this.$D+(u-this.$W):u;if(f===s||f===o){var m=this.clone().set("date",1);m.$d[d](l),m.init(),this.$d=m.set("date",Math.min(this.$D,m.daysInMonth())).toDate()}else d&&this.$d[d](l);return this.init(),this},d.set=function(t,e){return this.clone().$set(t,e)},d.get=function(t){return this[y.p(t)]()},d.add=function(t,u){var c,f=this;t=Number(t);var h=y.p(u),d=function(e){var n=g(f);return y.w(n.date(n.date()+Math.round(e*t)),f)};if(h===s)return this.set(s,this.$M+t);if(h===o)return this.set(o,this.$y+t);if(h===a)return d(1);if(h===r)return d(7);var l=(c={},c[n]=6e4,c[i]=36e5,c[e]=1e3,c)[h]||1,m=this.$d.getTime()+t*l;return y.w(m,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",i=y.z(this),a=this.$locale(),r=this.$H,s=this.$m,u=this.$M,o=a.weekdays,c=a.months,h=function(t,i,a,r){return t&&(t[i]||t(e,n))||a[i].substr(0,r)},d=function(t){return y.s(r%12||12,t,"0")},l=a.meridiem||function(t,e,n){var i=t<12?"AM":"PM";return n?i.toLowerCase():i},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:u+1,MM:y.s(u+1,2,"0"),MMM:h(a.monthsShort,u,c,3),MMMM:h(c,u),D:this.$D,DD:y.s(this.$D,2,"0"),d:String(this.$W),dd:h(a.weekdaysMin,this.$W,o,2),ddd:h(a.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(r),HH:y.s(r,2,"0"),h:d(1),hh:d(2),a:l(r,s,!0),A:l(r,s,!1),m:String(s),mm:y.s(s,2,"0"),s:String(this.$s),ss:y.s(this.$s,2,"0"),SSS:y.s(this.$ms,3,"0"),Z:i};return n.replace(f,(function(t,e){return e||m[t]||i.replace(":","")}))},d.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},d.diff=function(t,c,f){var h,d=y.p(c),l=g(t),m=6e4*(l.utcOffset()-this.utcOffset()),p=this-l,$=y.m(this,l);return $=(h={},h[o]=$/12,h[s]=$,h[u]=$/3,h[r]=(p-m)/6048e5,h[a]=(p-m)/864e5,h[i]=p/36e5,h[n]=p/6e4,h[e]=p/1e3,h)[d]||p,f?$:y.a($)},d.daysInMonth=function(){return this.endOf(s).$D},d.$locale=function(){return p[this.$L]},d.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),i=v(t,e,!0);return i&&(n.$L=i),n},d.clone=function(){return y.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()},h}();return g.prototype=D.prototype,g.extend=function(t,e){return t(e,D,g),g},g.locale=v,g.isDayjs=$,g.unix=function(t){return g(1e3*t)},g.en=p[m],g.Ls=p,g}))},"736c":function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return r}));var i=n("981f").default;function a(t){return i({url:"/api-student/examRegistration/applyList",method:"get",params:t})}function r(t){return i({url:"/api-student/examRegistration/examList",method:"get",params:t})}},"7d75":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"appRecord"},[t.dataShow?n("div",{key:"data"},[n("van-list",{attrs:{finished:t.finished,"finished-text":" "},on:{load:t.getList},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},t._l(t.dataList,(function(e,i){return n("van-cell-group",{key:i,staticClass:"section"},[n("van-cell",{attrs:{value:e.examBaseName,title:"考级名称"}}),n("van-cell",{attrs:{title:"专业等级"},scopedSlots:t._u([{key:"default",fn:function(){return[t._v("\n\t\t\t\t\t\t"+t._s(e.subjectName?e.subjectName:"通用")),e.level?n("span",[t._v("("+t._s(t._f("formatLevel")(e.level))+")")]):t._e()]},proxy:!0}],null,!0)}),n("van-cell",{attrs:{value:e.examTime,title:"预计考试日期"}}),"AUDIT_REJECT"==e.status?n("van-cell",{attrs:{title:"报名审核"}},[e.status?n("div",["AUDIT_PASS"===e.status?n("p",{staticClass:"pass"},[t._v("已通过")]):"AUDIT_WAIT"===e.status?n("p",[t._v("等待审核")]):n("p",{staticClass:"noPass"},[t._v("未通过")])]):t._e()]):t._e(),n("van-button",{attrs:{type:"default",block:""},on:{click:function(n){return t.onDetail(e)}}},[t._v("查看详情")])],1)})),1)],1):n("van-empty",{key:"data",staticClass:"custom-image",attrs:{image:t.noDataImg,description:"暂无报考记录"}})],1)},a=[],r=n("a34a"),s=n.n(r),u=n("cf45"),o=n("5a0c"),c=n.n(o),f=n("736c");function h(t,e,n,i,a,r,s){try{var u=t[r](s),o=u.value}catch(c){return void n(c)}u.done?e(o):Promise.resolve(o).then(i,a)}function d(t){return function(){var e=this,n=arguments;return new Promise((function(i,a){var r=t.apply(e,n);function s(t){h(r,i,a,s,u,"next",t)}function u(t){h(r,i,a,s,u,"throw",t)}s(void 0)}))}}var l={name:"appRecord",data:function(){return{headerStatus:!1,dataShow:!0,loading:!1,finished:!1,dataList:[],noDataImg:n("96eb"),params:{paymentStatus:1,page:1,rows:20},dataShow2:!0,loading2:!1,finished2:!1,dataList2:[],params2:{paymentStatus:0,page:1,rows:20}}},mounted:function(){var t=this.$route.query;t.Authorization&&localStorage.setItem("Authorization",decodeURI(t.Authorization)),Object(u["a"])().android||Object(u["a"])().iPhone?document.title="报考记录":this.headerStatus=!0},methods:{getList:function(){var t=d(s.a.mark((function t(){var e,n=this;return s.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=this.params,t.next=3,Object(f["a"])(e).then((function(t){var i=t.data;if(n.loading=!1,200==i.code){var a=i.data;e.page=a.pageNo,a.rows.forEach((function(t){t.isShow=!1,t.examTime=c()(t.examStartTime).format("YYYY-MM-DD")+"~"+c()(t.examEndTime).format("YYYY-MM-DD")})),n.dataList=n.dataList.concat(a.rows),e.page>=a.totalPage&&(n.finished=!0),n.params.page++}else n.finished=!0;n.dataList.length<=0&&(n.dataShow=!1)})).catch((function(){n.finished=!0,n.dataShow=!1}));case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),getList2:function(){var t=d(s.a.mark((function t(){var e,n=this;return s.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=this.params2,t.next=3,Object(f["a"])(e).then((function(t){var i=t.data;if(n.loading2=!1,200==i.code){var a=i.data;e.page=a.pageNo,a.rows.forEach((function(t){t.isShow=!1,t.examTime=c()(t.examStartTime).format("YYYY-MM-DD")+"~"+c()(t.examEndTime).format("YYYY-MM-DD")})),n.dataList2=n.dataList.concat(a.rows),e.page>=a.totalPage&&(n.finished2=!0),n.params.page++}else n.finished2=!0;n.dataList.length<=0&&(n.dataShow2=!1)})).catch((function(){n.finished2=!0,n.dataShow2=!1}));case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),onDetail:function(t){this.$router.push({path:"/appDetail",query:{examRegistrationId:t.id}})}}},m=l,p=(n("c73a"),n("2877")),$=Object(p["a"])(m,i,a,!1,null,"43d2ec5e",null);e["default"]=$.exports},8118:function(t,e,n){},"96eb":function(t,e,n){t.exports=n.p+"img/noData.6f9e45d3.png"},a34a:function(t,e,n){t.exports=n("96cf")},c73a:function(t,e,n){"use strict";var i=n("8118"),a=n.n(i);a.a}}]);