(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5f68bc5e"],{"04d1":function(t,e,a){var r=a("342f"),s=r.match(/firefox\/(\d+)/i);t.exports=!!s&&+s[1]},1263:function(t,e,a){},1276:function(t,e,a){"use strict";var r=a("2ba4"),s=a("c65b"),i=a("e330"),c=a("d784"),n=a("44e7"),o=a("825a"),u=a("1d80"),l=a("4840"),p=a("8aa5"),h=a("50c4"),m=a("577e"),d=a("dc4a"),x=a("f36a"),v=a("14c3"),k=a("9263"),E=a("9f7f"),D=a("d039"),f=E.UNSUPPORTED_Y,w=4294967295,M=Math.min,b=[].push,g=i(/./.exec),_=i(b),y=i("".slice),C=!D((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var a="ab".split(t);return 2!==a.length||"a"!==a[0]||"b"!==a[1]}));c("split",(function(t,e,a){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,a){var i=m(u(this)),c=void 0===a?w:a>>>0;if(0===c)return[];if(void 0===t)return[i];if(!n(t))return s(e,i,t,c);var o,l,p,h=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),v=0,E=new RegExp(t.source,d+"g");while(o=s(k,E,i)){if(l=E.lastIndex,l>v&&(_(h,y(i,v,o.index)),o.length>1&&o.index=c))break;E.lastIndex===o.index&&E.lastIndex++}return v===i.length?!p&&g(E,"")||_(h,""):_(h,y(i,v)),h.length>c?x(h,0,c):h}:"0".split(void 0,0).length?function(t,a){return void 0===t&&0===a?[]:s(e,this,t,a)}:e,[function(e,a){var r=u(this),c=void 0==e?void 0:d(e,t);return c?s(c,e,r,a):s(i,m(r),e,a)},function(t,r){var s=o(this),c=m(t),n=a(i,s,c,r,i!==e);if(n.done)return n.value;var u=l(s,RegExp),d=s.unicode,x=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(f?"g":"y"),k=new u(f?"^(?:"+s.source+")":s,x),E=void 0===r?w:r>>>0;if(0===E)return[];if(0===c.length)return null===v(k,c)?[c]:[];var D=0,b=0,g=[];while(b3)){if(m)return!0;if(x)return x<603;var t,e,a,r,s="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:a=3;break;case 68:case 71:a=4;break;default:a=2}for(r=0;r<47;r++)v.push({k:e+r,v:a})}for(v.sort((function(t,e){return e.v-t.v})),r=0;ro(a)?1:-1}};r({target:"Array",proto:!0,forced:b},{sort:function(t){void 0!==t&&i(t);var e=c(this);if(M)return void 0===t?k(e):k(e,t);var a,r,s=[],o=n(e);for(r=0;r0?a("div",[t.currentMockExamData?a("div",{staticClass:"exam-topic"},[a("div",{staticClass:"topic-vessel"},[a("div",{staticClass:"left-vessel"},[a("div",{staticClass:"topic-title"},[a("p",{staticClass:"topic-num"},[t._v(t._s(t.currentTopic+1)+"/"+t._s(t.idMockExamDataList.length)+"、")]),a("p",{staticClass:"topic-name"},[t._v(t._s(t.currentMockExamData.title))])]),a("div",{staticClass:"topic-options"},[1==t.currentMockExamData.types?a("el-radio-group",{on:{change:t.radioExamChange},model:{value:t.currentMockExamData.userAnswer,callback:function(e){t.$set(t.currentMockExamData,"userAnswer",e)},expression:"currentMockExamData.userAnswer"}},[t.currentMockExamData.optiona?a("el-radio",{class:{"radio-error":t.currentMockExamData.userAnswer&&"A"!==t.currentMockExamData.answer},attrs:{label:"A"}},[t._v("A、"+t._s(t.currentMockExamData.optiona))]):t._e(),t.currentMockExamData.optionb?a("el-radio",{class:{"radio-error":t.currentMockExamData.userAnswer&&"B"!==t.currentMockExamData.answer},attrs:{label:"B"}},[t._v("B、"+t._s(t.currentMockExamData.optionb))]):t._e(),t.currentMockExamData.optionc?a("el-radio",{class:{"radio-error":t.currentMockExamData.userAnswer&&"C"!==t.currentMockExamData.answer},attrs:{label:"C"}},[t._v("C、"+t._s(t.currentMockExamData.optionc))]):t._e(),t.currentMockExamData.optiond?a("el-radio",{class:{"radio-error":t.currentMockExamData.userAnswer&&"D"!==t.currentMockExamData.answer},attrs:{label:"D"}},[t._v("D、"+t._s(t.currentMockExamData.optiond))]):t._e()],1):t._e(),2==t.currentMockExamData.types?a("el-checkbox-group",{on:{change:t.checkExamChange},model:{value:t.currentMockExamData.userAnswerList,callback:function(e){t.$set(t.currentMockExamData,"userAnswerList",e)},expression:"currentMockExamData.userAnswerList"}},[t.currentMockExamData.optiona?a("el-checkbox",{class:{"checkbox-error":t.currentMockExamData.userAnswer&&t.currentMockExamData.answer.indexOf("A")<0},attrs:{label:"A"}},[t._v("A、"+t._s(t.currentMockExamData.optiona))]):t._e(),t.currentMockExamData.optionb?a("el-checkbox",{class:{"checkbox-error":t.currentMockExamData.userAnswer&&t.currentMockExamData.answer.indexOf("B")<0},attrs:{label:"B"}},[t._v("B、"+t._s(t.currentMockExamData.optionb))]):t._e(),t.currentMockExamData.optionc?a("el-checkbox",{class:{"checkbox-error":t.currentMockExamData.userAnswer&&t.currentMockExamData.answer.indexOf("C")<0},attrs:{label:"C"}},[t._v("C、"+t._s(t.currentMockExamData.optionc))]):t._e(),t.currentMockExamData.optiond?a("el-checkbox",{class:{"checkbox-error":t.currentMockExamData.userAnswer&&t.currentMockExamData.answer.indexOf("D")<0},attrs:{label:"D"}},[t._v("D、"+t._s(t.currentMockExamData.optiond))]):t._e()],1):t._e(),3==t.currentMockExamData.types?a("el-radio-group",{on:{change:t.radioExamChange},model:{value:t.currentMockExamData.userAnswer,callback:function(e){t.$set(t.currentMockExamData,"userAnswer",e)},expression:"currentMockExamData.userAnswer"}},[t.currentMockExamData.optiona?a("el-radio",{class:{"radio-error":t.currentMockExamData.userAnswer&&"true"!==t.currentMockExamData.answer},attrs:{label:"true"}},[t._v(t._s(t.currentMockExamData.optiona))]):t._e(),t.currentMockExamData.optionb?a("el-radio",{class:{"radio-error":t.currentMockExamData.userAnswer&&"false"!==t.currentMockExamData.answer},attrs:{label:"false"}},[t._v(t._s(t.currentMockExamData.optionb))]):t._e()],1):t._e()],1)]),a("div",{staticClass:"right-vessel"},[t.currentMockExamData.icon&&"null"!=t.currentMockExamData.icon.substring(t.currentMockExamData.icon.length-4)?a("div",{staticClass:"photo"},[a("img",{directives:[{name:"show",rawName:"v-show",value:"mp4"!=t.currentMockExamData.icon.substring(t.currentMockExamData.icon.length-3),expression:"\n currentMockExamData.icon.substring(\n currentMockExamData.icon.length - 3\n ) != 'mp4'\n "}],staticClass:"photo-img",attrs:{src:t.currentMockExamData.icon}}),a("video",{directives:[{name:"show",rawName:"v-show",value:"mp4"==t.currentMockExamData.icon.substring(t.currentMockExamData.icon.length-3),expression:"\n currentMockExamData.icon.substring(\n currentMockExamData.icon.length - 3\n ) == 'mp4'\n "}],staticClass:"photo-img",attrs:{src:t.currentMockExamData.icon,autoplay:"",controls:"",controlslist:"nodownload nofullscreen noremoteplayback"}})]):t._e()])]),a("div",{staticClass:"topic-note"},[t._v(t._s(1==t.currentMockExamData.types?"单选题":2==t.currentMockExamData.types?"多选题":"判断题")+",请选择你认为正确的答案!")]),a("div",{staticClass:"topic-operate"},[a("div",{staticClass:"operate-choose"},[a("p",{class:["choose",{disabled:0==t.currentTopic}],on:{click:t.tapPreviousQuestion}},[t._v("上一题")]),a("p",{class:["choose",{disabled:t.currentTopic==t.idMockExamDataList.length-1}],on:{click:t.tapNextQuestion}},[t._v("下一题")])]),a("div",{staticClass:"operate-show"},[a("p",{class:["show",{detail:!t.isExamDetail}],on:{click:function(e){t.isExamDetail=!t.isExamDetail}}},[t._v("显示详解")]),a("p",{class:["show",{detail:!t.isAnswer}],on:{click:function(e){t.isAnswer=!t.isAnswer}}},[t._v("显示答题卡")])])]),a("div",{staticClass:"topic-auto"},[a("div",{staticClass:"auto-choose"},[a("el-checkbox",{model:{value:t.isAutoNext,callback:function(e){t.isAutoNext=e},expression:"isAutoNext"}},[t._v("答对自动下一题")])],1),a("div",{staticClass:"completions"},[a("div",{staticClass:"outcome"},[a("p",{staticClass:"outcome-label"},[t._v("答对: ")]),a("p",{staticClass:"outcome-upshot"},[t._v(" "+t._s(t.proper)+"题")])]),a("div",{staticClass:"outcome"},[a("p",{staticClass:"outcome-label"},[t._v("答错: ")]),a("p",{staticClass:"outcome-upshot"},[t._v(" "+t._s(t.mistake)+"题")])]),a("div",{staticClass:"outcome"},[a("p",{staticClass:"outcome-label"},[t._v("正确率: ")]),a("p",{staticClass:"outcome-upshot"},[t._v(" "+t._s(t.score)+"%")])])])])]):t._e(),a("div",{directives:[{name:"show",rawName:"v-show",value:t.isAnswer,expression:"isAnswer"}],staticClass:"exam-answersheet"},[a("ul",{staticClass:"answer-sheet"},t._l(t.mockExamDataList,(function(e,r){return a("li",{key:e.id,class:["sheet-li",{correct:t.currentTopic==r},{proper:e.userAnswer&&e.answer==e.userAnswer},{mistake:e.userAnswer&&e.answer!=e.userAnswer}],on:{click:function(e){return t.tapCurrentTopicBtn(r)}}},[t._v(" "+t._s(r+1)+" ")])})),0)]),t.currentMockExamData&&t.isExamDetail?a("div",{staticClass:"exam-analyze"},[a("div",{staticClass:"analyze-title"},[t._v("试题详解")]),a("div",{staticClass:"analyze-con"},[a("p",{staticClass:"con-note"},[t._v("官方解析")]),a("p",{staticClass:"con-detail"},[t._v(t._s(t.currentMockExamData.resolving))])])]):t._e()]):a("el-empty",{attrs:{description:"暂无任何题目"}})],1)])])])},s=[],i=(a("e9c4"),a("ac1f"),a("1276"),a("4e82"),a("a15b"),a("d81d"),a("1825")),c={name:"PractisePage",data:function(){return{isRemindEnd:!1,isExamDetail:!1,isAnswer:!0,isAutoNext:!1,exerciseType:"sequence",carType:"car",stepType:1,isOrder:!0,chapter:0,hardLevel:1,knowType:0,mockExamDataList:[],idMockExamDataList:[],currentTopic:0,currentMockExamData:null,proper:0,mistake:0,score:0}},computed:{},created:function(){this.carType="trolley"==this.$route.query.carType?"car":this.$route.query.carType,this.stepType="branchOne"==this.$route.query.stepType?1:4,this.isOrder="order"==this.$route.query.isOrder,this.exerciseType=this.$route.query.exerciseType,this.chapter=this.$route.query.chapter?this.$route.query.chapter:0,this.hardLevel=this.$route.query.hardLevel?this.$route.query.hardLevel:1,this.knowType=this.$route.query.knowType?this.$route.query.knowType:0,this.getQueryGetQuestionIdList()},methods:{openMessage:function(){var t=this;this.$alert("已经到达最后一题","提示",{confirmButtonText:"确定",callback:function(e){t.isRemindEnd=!0}})},changeCurUserAnswer:function(t){var e=JSON.parse(JSON.stringify(t));if(e){for(var a in e)2==e["types"]&&(e["userAnswerList"]=e["userAnswer"]?e["userAnswer"].split(""):[]);this.currentMockExamData=e}},getQueryGetQuestionIdList:function(){var t=this,e={carType:this.carType,stepType:this.stepType,isOrder:this.isOrder};0!=this.chapter&&(e=Object.assign(e,{chapter:this.chapter})),1!=this.hardLevel&&(e=Object.assign(e,{hardLevel:this.hardLevel})),0!=this.knowType&&(e=Object.assign(e,{knowType:this.knowType})),Object(i["k"])(e).then((function(e){e.data.length>0&&(t.idMockExamDataList=e.data,t.getQueryGetQuestionById(e.data[t.currentTopic]))}))},getQueryGetQuestionById:function(t){var e=this;Object(i["j"])({id:t}).then((function(t){t.data&&(e.changeCurUserAnswer(t.data),e.mockExamDataList[e.currentTopic]=t.data)}))},radioExamChange:function(t){this.mockExamDataList[this.currentTopic]=this.currentMockExamData,this.submitExam(),this.currentTopic+1!=this.idMockExamDataList.length||this.isRemindEnd||this.openMessage(),this.isAutoNext&&this.currentMockExamData.answer==t&&this.tapNextQuestion()},checkExamChange:function(t){t.sort((function(t,e){return t.localeCompare(e)}));var e=t.join("");this.currentMockExamData["userAnswer"]=e,this.mockExamDataList[this.currentTopic]=this.currentMockExamData,this.submitExam(),this.currentTopic+1!=this.idMockExamDataList.length||this.isRemindEnd||this.openMessage(),this.isAutoNext&&this.currentMockExamData.answer==e&&this.tapNextQuestion()},tapPreviousQuestion:function(){0!=this.currentTopic&&(this.currentTopic--,this.changeCurUserAnswer(this.mockExamDataList[this.currentTopic]))},tapNextQuestion:function(){this.currentTopic!=this.idMockExamDataList.length-1&&(this.currentTopic++,this.currentTopic0)t[r]=t[--r];r!==i++&&(t[r]=a)}return t},n=function(t,e,a,r){var s=e.length,i=a.length,c=0,n=0;while(c