(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["ExamRecord"],{2686:function(t,a,e){"use strict";var n=e("2e36"),o=e.n(n);o.a},"2e36":function(t,a,e){},"736c":function(t,a,e){"use strict";e.d(a,"a",(function(){return o})),e.d(a,"b",(function(){return i}));var n=e("981f").default;function o(t){return n({url:"/api-student/examRegistration/applyList",method:"get",params:t})}function i(t){return n({url:"/api-student/examRegistration/examList",method:"get",params:t})}},"96eb":function(t,a,e){t.exports=e.p+"img/noData.6f9e45d3.png"},ba08:function(t,a,e){"use strict";e.r(a);var n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"appRecord"},[e("div",{staticClass:"container"},[t.dataShow?e("div",{key:"data"},[e("van-list",{attrs:{finished:t.finished,"finished-text":" "},on:{load:t.getList},model:{value:t.loading,callback:function(a){t.loading=a},expression:"loading"}},t._l(t.dataList,(function(a,n){return e("van-cell-group",{key:n,staticClass:"section"},[e("van-cell",{attrs:{value:a.examBaseName,title:"考级名称"}}),e("van-cell",{attrs:{value:a.actualExamStartTime,title:"考试日期"}}),e("van-cell",{attrs:{title:"专业等级"},scopedSlots:t._u([{key:"default",fn:function(){return[t._v("\n\t\t\t\t\t\t\t"+t._s(a.subjectName)+"("+t._s(t._f("formatLevel")(a.level))+")\n\t\t\t\t\t\t")]},proxy:!0}],null,!0)}),a.isShow?e("div",{staticClass:"van-hairline--bottom"},[e("van-cell",{attrs:{value:a.cardNo?a.cardNo:"暂无",title:"准考证号"}}),e("van-cell",{attrs:{value:t._f("formatLevel")(a.examMusicTheoryLevel),title:"乐理等级"}}),e("van-cell",{attrs:{value:a.level,title:"考试地点"}},[a.examAddress?e("span",[t._v("\n\t\t\t\t\t\t\t\t"+t._s(a.examAddress)+"\n\t\t\t\t\t\t\t")]):e("span",[t._v("\n\t\t\t\t\t\t\t\t线上网络教室\n\t\t\t\t\t\t\t")])])],1):t._e(),e("van-cell",{attrs:{title:"考试状态"},scopedSlots:t._u([{key:"default",fn:function(){return[t._v("\n\t\t\t\t\t\t\t"+t._s(t._f("resultStatus")(a.isFinishedExam))+"\n\t\t\t\t\t\t")]},proxy:!0}],null,!0)}),e("van-cell",{attrs:{title:"考试结果",border:!a.isShow}},[a.result&&"RESULT_CONFIRM"===a.examStatus?e("span",{class:"FAIL"==a.result?"error":"success"},[t._v(t._s(t._f("resultType")(a.result)))]):e("span",[t._v("暂无")])]),a.isShow&&a.videoUrl?e("div",[e("van-button",{staticClass:"van-hairline--top-bottom",attrs:{type:"default",block:""},on:{click:function(e){return t.onVideoLook(a.videoUrl)}}},[t._v("考级回看")])],1):t._e(),a.isShow?e("van-button",{attrs:{type:"default",block:""},on:{click:function(e){return t.onDetail(a)}}},[t._v("\n\t\t\t\t\t\t点击收起\n\t\t\t\t\t\t"),e("van-icon",{staticClass:"arrow",attrs:{name:"arrow-up"}})],1):e("van-button",{attrs:{type:"default",block:""},on:{click:function(e){return t.onDetail(a)}}},[t._v("\n\t\t\t\t\t\t展开全部\n\t\t\t\t\t\t"),e("van-icon",{staticClass:"arrow",attrs:{name:"arrow-down"}})],1)],1)})),1)],1):e("van-empty",{key:"data",staticClass:"custom-image",attrs:{image:t.noDataImg,description:"暂无考试记录"}})],1)])},o=[],i=e("cf45"),s=e("736c"),r={name:"appRecord",data:function(){return{headerStatus:!1,noDataImg:e("96eb"),dataShow:!0,loading:!1,finished:!1,dataList:[],params:{page:1,rows:20},show:!1}},mounted:function(){var t=this.$route.query;t.Authorization&&localStorage.setItem("Authorization",decodeURI(t.Authorization)),Object(i["a"])().android||Object(i["a"])().iPhone?document.title="考试记录":this.headerStatus=!0},methods:{getList:function(){var t=this,a=this.params;Object(s["b"])(a).then((function(e){var n=e.data;if(t.loading=!1,200==n.code){var o=n.data;a.page=o.pageNo,o.rows.forEach((function(t){t.isShow=!1})),t.dataList=t.dataList.concat(o.rows),a.page>=o.totalPage&&(t.finished=!0),t.params.page++}else t.finished=!0;t.dataList.length<=0&&(t.dataShow=!1)})).catch((function(){t.finished=!0,t.dataShow=!1}))},onVideoLook:function(t){Object(i["a"])().android?EXAM.postMessage(JSON.stringify({api:"lookVideo",url:encodeURIComponent(t)})):this.$router.push({path:"/lookVideo",query:{url:encodeURIComponent(t)}})},onDetail:function(t){t.isShow=!t.isShow}}},l=r,c=(e("2686"),e("2877")),u=Object(c["a"])(l,n,o,!1,null,"2cb27e96",null);a["default"]=u.exports}}]);