webpackJsonp([5],{"5hqF":function(t,e){},I6JY:function(t,e,i){"use strict";var s={name:"PaperMedal",props:{value:[String,Number],name:[String,Number],unit:{type:String,default:""}}},a={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"paper-medal"},[i("div",{staticClass:"paper-medal__img"},[i("div",{staticClass:"paper-medal__value"},[i("span",[t._v(t._s(t.value)),i("i",[t._v(t._s(t.unit))])])]),t._v(" "),i("div",{staticClass:"paper-medal__info"},[t._v(t._s(t.name))])])])},staticRenderFns:[]};var r=i("C7Lr")(s,a,!1,function(t){i("5hqF")},"data-v-27681d0a",null);e.a=r.exports},Re1k:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i("I6JY"),a=i("zVNV"),r={name:"ExamResult",components:{PaperMedal:s.a},data:()=>({loaded:!1,accuracy:0,iscorrect:0,answerSheet:[],id:0,type:0,correctscore:0,sumscore:0,course_list:[]}),activated(){this.answerSheet=[],this.id=this.$route.query.id,this.type=this.$route.query.type;Object(a.l)({answerid:this.id,type:this.type,paperid:this.$route.query.paperid,categoryid:this.$route.query.categoryid}).then(t=>{if(t.result){document.title=t.data.title||"查看结果",this.course_list=t.data.course_list,this.iscorrect=1,2==this.type?this.accuracy=t.data.zhunquelv:this.accuracy=t.data.accuracy;let e=[];t.data.answer.map((t,i)=>{t.tklist&&t.tklist.map(t=>{t.userscore>0?t.right=1:t.right=0,t.useranswer&&""!==t.useranswer.toString()?t.doing=1:t.doing=0,e.push(t)})}),this.answerSheet=e,this.sumscore=t.data.sumscore}else this.iscorrect=0;this.loaded=!0})},methods:{onClickLeft(){this.$router.go(-1)},htmlfilter:t=>t?t=(t=t.replace(/\<img[^>]+>/g,"")).replace(/(\<[^>]+>)|&nbsp;/gi,"").trim():"",viewAnalysis(){this.$router.push({path:"/exam/analysis",query:{id:this.id,type:this.type,paperid:this.$route.query.paperid,categoryid:this.$route.query.categoryid,title:this.$route.query.title}})},practice(){this.$router.push({name:"MyExam"})}}},c={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.loaded?i("div",[i("div",{staticClass:"collectBank-box__head"},[i("van-nav-bar",{staticClass:"van-nav-new",attrs:{title:"考试结果","left-arrow":""},on:{"click-left":function(e){return t.onClickLeft()}}})],1),t._v(" "),1==t.type?i("paper-medal",{attrs:{value:1==t.iscorrect?t.sumscore:"",unit:1==t.iscorrect?"":"未批阅",name:"得分"}}):2==t.type?i("paper-medal",{attrs:{value:t.accuracy,unit:"%",name:"正确率"}}):t._e(),t._v(" "),t._m(0),t._v(" "),i("div",{staticClass:"paper-contianer"},[t.answerSheet.length?i("div",{staticClass:"paper-answer"},t._l(t.answerSheet,function(e,s){return i("div",{key:s,staticClass:"paper-answer__item",class:{doing:1==e.doing,error:0==e.right,right:1==e.right}},[t._v(t._s(s+1))])}),0):t._e()]),t._v(" "),t.course_list&&t.course_list.length?i("div",{staticClass:"white-bg"},[i("h2",{staticClass:"exam-title"},[t._v("试卷关联课程")]),t._v(" "),i("ul",{staticClass:"bind-course"},t._l(t.course_list,function(e){return i("li",{key:e.courseid,staticClass:"clearfix position-relative"},[i("div",{staticClass:"bind-course-img mr20 position-absolute"},[i("a",{attrs:{href:e.view_url,target:"_blank",title:e.name}},[i("img",{attrs:{src:e.photourl,alt:e.name}})])]),t._v(" "),i("div",{staticClass:"bind-course-con"},[i("h3",{staticClass:"weight-normal"},[i("a",{attrs:{href:e.view_url,target:"_blank",title:e.name}},[t._v(t._s(e.name))])]),t._v(" "),i("div",{staticClass:"bind-course-intro"},[t._v(t._s(t.htmlfilter(e.intro)))]),t._v(" "),i("p",{staticClass:"darkgray-font"},[t._v(t._s(e.learncount)+"人加入学习")])])])}),0)]):t._e(),t._v(" "),i("div",{staticStyle:{height:"69px"}}),t._v(" "),i("div",{staticClass:"paper-submit-box"},[t.iscorrect?i("div",{staticClass:"paper-submit paper-submit--default",on:{click:function(e){return t.viewAnalysis()}}},[t._v("查看解析")]):t._e(),t._v(" "),i("div",{staticClass:"paper-submit",on:{click:t.practice}},[t._v("返回练习主页")])])],1):t._e()},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"paper-opear clearfix"},[e("div",{staticClass:"paper-opear__right"},[e("div",{staticClass:"paper-icon-sign paper-icon-sign--color1"},[e("i"),this._v("已做\n      ")]),this._v(" "),e("div",{staticClass:"paper-icon-sign paper-icon-sign--color5"},[e("i"),this._v("正确\n      ")]),this._v(" "),e("div",{staticClass:"paper-icon-sign paper-icon-sign--color2"},[e("i"),this._v("错误\n      ")]),this._v(" "),e("div",{staticClass:"paper-icon-sign paper-icon-sign--color3"},[e("i"),this._v("未做\n      ")])])])}]};var n=i("C7Lr")(r,c,!1,function(t){i("ySSV")},"data-v-1ee3f69c",null);e.default=n.exports},ySSV:function(t,e){}});