You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
16 KiB
2 lines
16 KiB
(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<i.length&&r(b,h,x(o,1)),p=o[0].length,v=l,h.length>=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(b<c.length){k.lastIndex=f?0:b;var C,T=v(k,f?y(c,b):c);if(null===T||(C=M(h(k.lastIndex+(f?b:0)),c.length))===D)b=p(c,b,d);else{if(_(g,y(c,D,b)),g.length===E)return g;for(var A=1;A<=T.length-1;A++)if(_(g,T[A]),g.length===E)return g;b=D=C}}return _(g,y(c,D)),g}]}),!C,f)},4840:function(t,e,a){var r=a("825a"),s=a("5087"),i=a("b622"),c=i("species");t.exports=function(t,e){var a,i=r(t).constructor;return void 0===i||void 0==(a=r(i)[c])?e:s(a)}},"4e82":function(t,e,a){"use strict";var r=a("23e7"),s=a("e330"),i=a("59ed"),c=a("7b0b"),n=a("07fa"),o=a("577e"),u=a("d039"),l=a("addb"),p=a("a640"),h=a("04d1"),m=a("d998"),d=a("2d00"),x=a("512ce"),v=[],k=s(v.sort),E=s(v.push),D=u((function(){v.sort(void 0)})),f=u((function(){v.sort(null)})),w=p("sort"),M=!u((function(){if(d)return d<70;if(!(h&&h>3)){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;r<v.length;r++)e=v[r].k.charAt(0),s.charAt(s.length-1)!==e&&(s+=e);return"DGBEFHACIJK"!==s}})),b=D||!f||!w||!M,g=function(t){return function(e,a){return void 0===a?-1:void 0===e?1:void 0!==t?+t(e,a)||0:o(e)>o(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;r<o;r++)r in e&&E(s,e[r]);l(s,g(t)),a=s.length,r=0;while(r<a)e[r]=s[r++];while(r<o)delete e[r++];return e}})},5087:function(t,e,a){var r=a("da84"),s=a("68ee"),i=a("0d51"),c=r.TypeError;t.exports=function(t){if(s(t))return t;throw c(i(t)+" is not a constructor")}},5106:function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"practise"},[a("div",{staticClass:"practise-wrapper"},[a("div",{staticClass:"zlxc-container",staticStyle:{overflow:"visible"}},[a("div",{staticClass:"bread-crumbs"},[a("el-breadcrumb",{attrs:{separator:"/"}},[a("el-breadcrumb-item",{attrs:{to:{path:"/"}}},[t._v("首页")]),a("el-breadcrumb-item",[t._v("题库练习")]),a("el-breadcrumb-item",[t._v(t._s("sequence"==t.exerciseType?"顺序练习":"random"==t.exerciseType?"随机练习":"chapter"==t.exerciseType?"章节练习":"special"==t.exerciseType?"专项练习":"难题练习"))])],1)],1),a("div",{staticClass:"examination"},[a("div",{staticClass:"exam-type"},[a("div",{staticClass:"type-title"},[a("p",{staticClass:"title-line"}),a("p",{staticClass:"title-name"},[t._v(t._s("sequence"==t.exerciseType?"顺序练习":"random"==t.exerciseType?"随机练习":"chapter"==t.exerciseType?"章节练习":"special"==t.exerciseType?"专项练习":"难题练习"))])]),a("div",{staticClass:"car"},[a("p",{staticClass:"car-type"},[t._v("车型:"+t._s("car"==t.carType?"小车":"bus"==t.carType?"客车":"货车"))]),a("p",{staticClass:"car-suject"},[t._v("科目:"+t._s(1==t.stepType?"科目一":"科目四"))])])]),t.idMockExamDataList.length>0?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["l"])(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["k"])({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.currentTopic<this.mockExamDataList.length?this.currentMockExamData=this.mockExamDataList[this.currentTopic]:this.getQueryGetQuestionById(this.idMockExamDataList[this.currentTopic]))},tapCurrentTopicBtn:function(t){this.currentTopic=t,this.changeCurUserAnswer(this.mockExamDataList[this.currentTopic])},submitExam:function(){var t=0,e=0,a=0,r=0,s=this.mockExamDataList;s.map((function(a){a.userAnswer&&a.userAnswer==a.answer?t++:a.userAnswer&&a.userAnswer!=a.answer&&e++})),a=this.idMockExamDataList.length,r=Math.round(t/a*1e4)/100,this.proper=t,this.mistake=e,this.score=r}},watch:{}},n=c,o=(a("ba84"),a("2877")),u=Object(o["a"])(n,r,s,!1,null,"ae22e582",null);e["default"]=u.exports},"512ce":function(t,e,a){var r=a("342f"),s=r.match(/AppleWebKit\/(\d+)\./);t.exports=!!s&&+s[1]},addb:function(t,e,a){var r=a("f36a"),s=Math.floor,i=function(t,e){var a=t.length,o=s(a/2);return a<8?c(t,e):n(t,i(r(t,0,o),e),i(r(t,o),e),e)},c=function(t,e){var a,r,s=t.length,i=1;while(i<s){r=i,a=t[i];while(r&&e(t[r-1],a)>0)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<s||n<i)t[c+n]=c<s&&n<i?r(e[c],a[n])<=0?e[c++]:a[n++]:c<s?e[c++]:a[n++];return t};t.exports=i},ba84:function(t,e,a){"use strict";a("1263")},d998:function(t,e,a){var r=a("342f");t.exports=/MSIE|Trident/.test(r)}}]);
|
|
//# sourceMappingURL=chunk-5f68bc5e.e94cc04a.js.map
|