webpackJsonp([22],{aKPD:function(t,a){},vxMT:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var i=e("vMJZ"),s={name:"PracticeRecord",data:()=>({value:null,allData:[],pageCount:0,page:0,showList:!0,showNodata:!1,loading:!1}),methods:{onClickLeft(){this.$router.go(-1)},onSearch(){},getTestRecordList(t=1){this.loading||(this.loading=!0,Object(i.i)({categoryid:this.$route.query.categoryid,page:t,pagesize:10}).then(a=>{1==a.result?(this.allData=this.allData.concat(a.data),this.page=t,this.pageCount=a.pagecount,this.showList=!0,this.showNodata=!1):(this.showList=!1,this.showNodata=!0,this.page=0,this.pageCount=0),this.loading=!1}))},viewAnalysis(t,a,e,i){this.$router.push({path:"/exam/analysis",query:{id:t,type:2,paperid:0,categoryid:e,title:i}})}},activated(){this.allData=[],document.title="练习记录",this.getTestRecordList()}},o={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("ks-page-scroll-container",{attrs:{page:t.page,"page-count":t.pageCount},on:{"page-change":t.getTestRecordList}},[e("div",{staticClass:"practiceRecord"},[e("van-nav-bar",{attrs:{title:"练习记录","left-arrow":""},on:{"click-left":function(a){return t.onClickLeft()}}}),t._v(" "),e("div",{staticClass:"margin20"}),t._v(" "),e("div",{staticClass:"practiceRecord-top"}),t._v(" "),t.showList?e("div",{staticClass:"practiceRecord-item"},t._l(t.allData,function(a,i){return e("div",{key:i,staticClass:"practiceRecord-box"},[e("div",{staticClass:"practiceRecord-box_top"},[e("div",{staticClass:"practiceRecord-box_title"},[e("ul",[e("li",[t._v(t._s(a.title))])])]),t._v(" "),e("span",[t._v("正确率："+t._s(a.zhunquelv)+"%")])]),t._v(" "),e("div",{staticClass:"practiceRecord-box_bottom"},[e("div",{staticClass:"practiceRecord-box_type"},[e("div",[t._v("\n              练习时间："+t._s(Math.floor(a.exam_time/3600)>=10?Math.floor(a.exam_time/60):"0"+Math.floor(a.exam_time/60))+":"+t._s(Math.floor(a.exam_time/60)>=10?Math.floor(a.exam_time/60):"0"+Math.floor(a.exam_time/60))+":"+t._s(a.exam_time%60>=10?a.exam_time%60:"0"+a.exam_time%60)+"\n            ")]),t._v(" "),e("div",{staticClass:"type-flex"},[t._v("练习类型："+t._s(a.type_name))])]),t._v(" "),a.show_analysis?e("div",{staticClass:"practiceRecord-box_see",on:{click:function(e){return t.viewAnalysis(a.id,a.type,a.categoryid,a.title)}}},[t._v("查看详情")]):t._e()])])}),0):t._e(),t._v(" "),t.showNodata?e("Nodata"):t._e()],1)])},staticRenderFns:[]};var c=e("C7Lr")(s,o,!1,function(t){e("aKPD")},"data-v-20e3f31d",null);a.default=c.exports}});