ExamRecord.5e9b8a55.js 4.0 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["ExamRecord"],{"0fec":function(t,a,e){"use strict";var n=e("47ae"),o=e.n(n);o.a},"47ae":function(t,a,e){},"736c":function(t,a,e){"use strict";e.d(a,"a",(function(){return o})),e.d(a,"b",(function(){return s}));var n=e("981f").default;function o(t){return n({url:"/api-student/examRegistration/applyList",method:"get",params:t})}function s(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+"~"+a.actualExamEndTime,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?a.subjectName:"通用")),a.level?e("span",[t._v("("+t._s(t._f("formatLevel")(a.level))+")")]):t._e()]},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?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=[],s=e("cf45"),i=e("736c"),r={name:"appRecord",data:function(){return localStorage.removeItem("examVideoUrl"),{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(s["a"])().android||Object(s["a"])().iPhone?document.title="考试记录":this.headerStatus=!0},methods:{getList:function(){var t=this,a=this.params;Object(i["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){localStorage.setItem("examVideoUrl",encodeURIComponent(t)),Object(s["a"])().android?EXAM.postMessage(JSON.stringify({api:"lookVideo",url:encodeURIComponent(t)})):this.$router.push({path:"/lookVideo"})},onDetail:function(t){t.isShow=!t.isShow}}},l=r,c=(e("0fec"),e("2877")),u=Object(c["a"])(l,n,o,!1,null,"210e32e5",null);a["default"]=u.exports}}]);