AppRecord.b223c558.js 12 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["AppRecord"],{2558:function(t,e,n){"use strict";var a=n("f0da"),i=n.n(a);i.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",i="day",r="week",s="month",o="quarter",u="year",c=/^(\d{4})-?(\d{1,2})-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,h=/\[([^\]]+)]|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),i=n%60;return(e<=0?"+":"-")+f(a,2,"0")+":"+f(i,2,"0")},m:function(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),a=t.clone().add(n,s),i=e-a<0,r=t.clone().add(n+(i?-1:1),s);return Number(-(n+(e-a)/(i?a-r:r-a))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(c){return{M:s,y:u,w:r,d:i,D:"date",h:a,m:n,s:e,ms:t,Q:o}[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 v=function(t){return t instanceof w},$=function(t,e,n){var a;if(!t)return m;if("string"==typeof t)p[t]&&(a=t),e&&(p[t]=e,a=t);else{var i=t.name;p[i]=t,a=i}return!n&&a&&(m=a),a||!n&&m},g=function(t,e){if(v(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new w(n)},y=d;y.l=$,y.i=v,y.w=function(t,e){return g(t,{locale:e.$L,utc:e.$u,$offset:e.$offset})};var w=function(){function f(t){this.$L=this.$L||$(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(y.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(c);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 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",u)},d.month=function(t){return this.$g(t,"$M",s)},d.day=function(t){return this.$g(t,"$W",i)},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 c=this,h=!!y.u(o)||o,f=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 h?n:n.endOf(i)},l=function(t,e){return y.w(c.toDate()[t].apply(c.toDate("s"),(h?[0,0,0,0]:[23,59,59,999]).slice(e)),c)},m=this.$W,p=this.$M,v=this.$D,$="set"+(this.$u?"UTC":"");switch(f){case u:return h?d(1,0):d(31,11);case s:return h?d(1,p):d(0,p+1);case r:var g=this.$locale().weekStart||0,w=(m<g?m+7:m)-g;return d(h?v-w:v+(6-w),p);case i:case"date":return l($+"Hours",0);case a:return l($+"Minutes",1);case n:return l($+"Seconds",2);case e:return l($+"Milliseconds",3);default:return this.clone()}},d.endOf=function(t){return this.startOf(t,!1)},d.$set=function(r,o){var c,h=y.p(r),f="set"+(this.$u?"UTC":""),d=(c={},c[i]=f+"Date",c.date=f+"Date",c[s]=f+"Month",c[u]=f+"FullYear",c[a]=f+"Hours",c[n]=f+"Minutes",c[e]=f+"Seconds",c[t]=f+"Milliseconds",c)[h],l=h===i?this.$D+(o-this.$W):o;if(h===s||h===u){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,o){var c,h=this;t=Number(t);var f=y.p(o),d=function(e){var n=g(h);return y.w(n.date(n.date()+Math.round(e*t)),h)};if(f===s)return this.set(s,this.$M+t);if(f===u)return this.set(u,this.$y+t);if(f===i)return d(1);if(f===r)return d(7);var l=(c={},c[n]=6e4,c[a]=36e5,c[e]=1e3,c)[f]||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",a=y.z(this),i=this.$locale(),r=this.$H,s=this.$m,o=this.$M,u=i.weekdays,c=i.months,f=function(t,a,i,r){return t&&(t[a]||t(e,n))||i[a].substr(0,r)},d=function(t){return y.s(r%12||12,t,"0")},l=i.meridiem||function(t,e,n){var a=t<12?"AM":"PM";return n?a.toLowerCase():a},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:o+1,MM:y.s(o+1,2,"0"),MMM:f(i.monthsShort,o,c,3),MMMM:f(c,o),D:this.$D,DD:y.s(this.$D,2,"0"),d:String(this.$W),dd:f(i.weekdaysMin,this.$W,u,2),ddd:f(i.weekdaysShort,this.$W,u,3),dddd:u[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:a};return n.replace(h,(function(t,e){return e||m[t]||a.replace(":","")}))},d.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},d.diff=function(t,c,h){var f,d=y.p(c),l=g(t),m=6e4*(l.utcOffset()-this.utcOffset()),p=this-l,v=y.m(this,l);return v=(f={},f[u]=v/12,f[s]=v,f[o]=v/3,f[r]=(p-m)/6048e5,f[i]=(p-m)/864e5,f[a]=p/36e5,f[n]=p/6e4,f[e]=p/1e3,f)[d]||p,h?v:y.a(v)},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(),a=$(t,e,!0);return a&&(n.$L=a),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()},f}();return g.prototype=w.prototype,g.extend=function(t,e){return t(e,w,g),g},g.locale=$,g.isDayjs=v,g.unix=function(t){return g(1e3*t)},g.en=p[m],g.Ls=p,g}))},"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)])])},i=[],r={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=r,o=(n("2558"),n("2877")),u=Object(o["a"])(s,a,i,!1,null,"9865a7b0",null);e["a"]=u.exports},"736c":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r}));n("4328");var a=n("981f").default;function i(t){return a({url:"/api-user/examRegistration/applyList",method:"get",params:t})}function r(t){return a({url:"/api-user/examRegistration/examList",method:"get",params:t})}},"7d75":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:"appRecord"},[t.headerStatus?n("m-header"):t._e(),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,a){return n("van-cell-group",{key:a,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)+"("+t._s(t._f("formatLevel")(e.level))+")\n\t\t\t\t\t")]},proxy:!0}],null,!0)}),n("van-cell",{attrs:{value:e.examTime,title:"考试日期"}}),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",attrs:{description:"暂无已缴费记录"}})],1)},i=[],r=n("a34a"),s=n.n(r),o=n("6e6e"),u=n("cf45"),c=n("5a0c"),h=n.n(c),f=n("736c");function d(t,e,n,a,i,r,s){try{var o=t[r](s),u=o.value}catch(c){return void n(c)}o.done?e(u):Promise.resolve(u).then(a,i)}function l(t){return function(){var e=this,n=arguments;return new Promise((function(a,i){var r=t.apply(e,n);function s(t){d(r,a,i,s,o,"next",t)}function o(t){d(r,a,i,s,o,"throw",t)}s(void 0)}))}}var m={name:"appRecord",components:{MHeader:o["a"]},data:function(){return{headerStatus:!1,dataShow:!0,loading:!1,finished:!1,dataList:[],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=l(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 a=t.data;if(n.loading=!1,200==a.code){var i=a.data;e.page=i.pageNo,i.rows.forEach((function(t){t.isShow=!1,t.examTime=h()(t.examStartTime).format("YYYY-MM-DD")+"~"+h()(t.examEndTime).format("YYYY-MM-DD")})),n.dataList=n.dataList.concat(i.rows),e.page>=i.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=l(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 a=t.data;if(n.loading2=!1,200==a.code){var i=a.data;e.page=i.pageNo,i.rows.forEach((function(t){t.isShow=!1,t.examTime=h()(t.examStartTime).format("YYYY-MM-DD")+"~"+h()(t.examEndTime).format("YYYY-MM-DD")})),n.dataList2=n.dataList.concat(i.rows),e.page>=i.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}})}}},p=m,v=(n("977b"),n("2877")),$=Object(v["a"])(p,a,i,!1,null,"371c3518",null);e["default"]=$.exports},"977b":function(t,e,n){"use strict";var a=n("d16b"),i=n.n(a);i.a},a34a:function(t,e,n){t.exports=n("96cf")},d16b:function(t,e,n){},f0da:function(t,e,n){}}]);