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
13 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-44b0ce45"],{"04d1":function(t,a,e){var r=e("342f"),s=r.match(/firefox\/(\d+)/i);t.exports=!!s&&+s[1]},"0745":function(t,a,e){"use strict";e("e14f")},1276:function(t,a,e){"use strict";var r=e("2ba4"),s=e("c65b"),n=e("e330"),c=e("d784"),i=e("44e7"),o=e("825a"),u=e("1d80"),l=e("4840"),m=e("8aa5"),p=e("50c4"),h=e("577e"),v=e("dc4a"),x=e("f36a"),d=e("14c3"),f=e("9263"),k=e("9f7f"),E=e("d039"),D=k.UNSUPPORTED_Y,g=4294967295,b=Math.min,w=[].push,_=n(/./.exec),M=n(w),C=n("".slice),A=!E((function(){var t=/(?:)/,a=t.exec;t.exec=function(){return a.apply(this,arguments)};var e="ab".split(t);return 2!==e.length||"a"!==e[0]||"b"!==e[1]}));c("split",(function(t,a,e){var n;return n="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,e){var n=h(u(this)),c=void 0===e?g:e>>>0;if(0===c)return[];if(void 0===t)return[n];if(!i(t))return s(a,n,t,c);var o,l,m,p=[],v=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,k=new RegExp(t.source,v+"g");while(o=s(f,k,n)){if(l=k.lastIndex,l>d&&(M(p,C(n,d,o.index)),o.length>1&&o.index<n.length&&r(w,p,x(o,1)),m=o[0].length,d=l,p.length>=c))break;k.lastIndex===o.index&&k.lastIndex++}return d===n.length?!m&&_(k,"")||M(p,""):M(p,C(n,d)),p.length>c?x(p,0,c):p}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:s(a,this,t,e)}:a,[function(a,e){var r=u(this),c=void 0==a?void 0:v(a,t);return c?s(c,a,r,e):s(n,h(r),a,e)},function(t,r){var s=o(this),c=h(t),i=e(n,s,c,r,n!==a);if(i.done)return i.value;var u=l(s,RegExp),v=s.unicode,x=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(D?"g":"y"),f=new u(D?"^(?:"+s.source+")":s,x),k=void 0===r?g:r>>>0;if(0===k)return[];if(0===c.length)return null===d(f,c)?[c]:[];var E=0,w=0,_=[];while(w<c.length){f.lastIndex=D?0:w;var A,y=d(f,D?C(c,w):c);if(null===y||(A=b(p(f.lastIndex+(D?w:0)),c.length))===E)w=m(c,w,v);else{if(M(_,C(c,E,w)),_.length===k)return _;for(var T=1;T<=y.length-1;T++)if(M(_,y[T]),_.length===k)return _;w=E=A}}return M(_,C(c,E)),_}]}),!A,D)},4840:function(t,a,e){var r=e("825a"),s=e("5087"),n=e("b622"),c=n("species");t.exports=function(t,a){var e,n=r(t).constructor;return void 0===n||void 0==(e=r(n)[c])?a:s(e)}},"4e82":function(t,a,e){"use strict";var r=e("23e7"),s=e("e330"),n=e("59ed"),c=e("7b0b"),i=e("07fa"),o=e("577e"),u=e("d039"),l=e("addb"),m=e("a640"),p=e("04d1"),h=e("d998"),v=e("2d00"),x=e("512ce"),d=[],f=s(d.sort),k=s(d.push),E=u((function(){d.sort(void 0)})),D=u((function(){d.sort(null)})),g=m("sort"),b=!u((function(){if(v)return v<70;if(!(p&&p>3)){if(h)return!0;if(x)return x<603;var t,a,e,r,s="";for(t=65;t<76;t++){switch(a=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:e=3;break;case 68:case 71:e=4;break;default:e=2}for(r=0;r<47;r++)d.push({k:a+r,v:e})}for(d.sort((function(t,a){return a.v-t.v})),r=0;r<d.length;r++)a=d[r].k.charAt(0),s.charAt(s.length-1)!==a&&(s+=a);return"DGBEFHACIJK"!==s}})),w=E||!D||!g||!b,_=function(t){return function(a,e){return void 0===e?-1:void 0===a?1:void 0!==t?+t(a,e)||0:o(a)>o(e)?1:-1}};r({target:"Array",proto:!0,forced:w},{sort:function(t){void 0!==t&&n(t);var a=c(this);if(b)return void 0===t?f(a):f(a,t);var e,r,s=[],o=i(a);for(r=0;r<o;r++)r in a&&k(s,a[r]);l(s,_(t)),e=s.length,r=0;while(r<e)a[r]=s[r++];while(r<o)delete a[r++];return a}})},5087:function(t,a,e){var r=e("da84"),s=e("68ee"),n=e("0d51"),c=r.TypeError;t.exports=function(t){if(s(t))return t;throw c(n(t)+" is not a constructor")}},"512ce":function(t,a,e){var r=e("342f"),s=r.match(/AppleWebKit\/(\d+)\./);t.exports=!!s&&+s[1]},addb:function(t,a,e){var r=e("f36a"),s=Math.floor,n=function(t,a){var e=t.length,o=s(e/2);return e<8?c(t,a):i(t,n(r(t,0,o),a),n(r(t,o),a),a)},c=function(t,a){var e,r,s=t.length,n=1;while(n<s){r=n,e=t[n];while(r&&a(t[r-1],e)>0)t[r]=t[--r];r!==n++&&(t[r]=e)}return t},i=function(t,a,e,r){var s=a.length,n=e.length,c=0,i=0;while(c<s||i<n)t[c+i]=c<s&&i<n?r(a[c],e[i])<=0?a[c++]:e[i++]:c<s?a[c++]:e[i++];return t};t.exports=n},b52a:function(t,a,e){t.exports=e.p+"img/second_img_moren@2x.2eab82a3.png"},d998:function(t,a,e){var r=e("342f");t.exports=/MSIE|Trident/.test(r)},e14f:function(t,a,e){},e3bf:function(t,a,e){"use strict";e.r(a);var r=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"realistic"},[e("div",{staticClass:"realistic-wrapper"},[e("div",{staticClass:"zlxc-container",staticStyle:{overflow:"visible"}},[e("div",{staticClass:"bread-crumbs"},[e("el-breadcrumb",{attrs:{separator:"/"}},[e("el-breadcrumb-item",{attrs:{to:{path:"/"}}},[t._v("首页")]),e("el-breadcrumb-item",[t._v("题库练习")]),e("el-breadcrumb-item",[t._v("全真模拟")])],1)],1),t.mockExamDataList&&t.mockExamDataList.length>0?e("div",{staticClass:"div"},[e("div",{staticClass:"simulation"},[e("div",{staticClass:"exam-information"},[e("div",{staticClass:"info-suject"},[t._v(" "+t._s(1==t.stepType?"科目一":"科目四")+" "),e("p",{staticClass:"suject-title"},[t._v("理论考试")])]),e("div",{staticClass:"info-test"},[t._m(0),e("p",{staticClass:"test-orther"},[t._v(" 考试题数:"+t._s(t.mockExamDataList.length)+"题 ")]),e("p",{staticClass:"test-orther"},[t._v("考试时间:45分")]),e("p",{staticClass:"test-orther"},[t._v("满分100分")]),e("p",{staticClass:"test-orther"},[t._v("90分及格")])]),e("div",{staticClass:"info-suject"},[t._v(" "+t._s(t.msg)+" "),e("p",{staticClass:"suject-title"},[t._v("剩余时间")])])]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.currentMockExamData,expression:"currentMockExamData"}],staticClass:"exam-topic"},[e("div",{staticClass:"topic"},[e("div",{staticClass:"topic-sub"},[t._v("理论考试")]),e("div",{staticClass:"topic-title"},[e("p",{staticClass:"topic-num"},[t._v(t._s(t.currentTopic+1)+"、")]),e("p",{staticClass:"topic-name"},[t._v(" "+t._s(t.currentMockExamData.title)+" ")])]),e("div",{staticClass:"topic-options"},[1==t.currentMockExamData.types?e("el-radio-group",{on:{change:t.radioExamChange},model:{value:t.currentMockExamData.userAnswer,callback:function(a){t.$set(t.currentMockExamData,"userAnswer",a)},expression:"currentMockExamData.userAnswer"}},[t.currentMockExamData.optiona?e("el-radio",{attrs:{label:"A"}},[t._v("A、"+t._s(t.currentMockExamData.optiona))]):t._e(),t.currentMockExamData.optionb?e("el-radio",{attrs:{label:"B"}},[t._v("B、"+t._s(t.currentMockExamData.optionb))]):t._e(),t.currentMockExamData.optionc?e("el-radio",{attrs:{label:"C"}},[t._v("C、"+t._s(t.currentMockExamData.optionc))]):t._e(),t.currentMockExamData.optiond?e("el-radio",{attrs:{label:"D"}},[t._v("D、"+t._s(t.currentMockExamData.optiond))]):t._e()],1):t._e(),2==t.currentMockExamData.types?e("el-checkbox-group",{on:{change:t.checkExamChange},model:{value:t.currentMockExamData.userAnswerList,callback:function(a){t.$set(t.currentMockExamData,"userAnswerList",a)},expression:"currentMockExamData.userAnswerList"}},[t.currentMockExamData.optiona?e("el-checkbox",{attrs:{label:"A"}},[t._v("A、"+t._s(t.currentMockExamData.optiona))]):t._e(),t.currentMockExamData.optionb?e("el-checkbox",{attrs:{label:"B"}},[t._v("B、"+t._s(t.currentMockExamData.optionb))]):t._e(),t.currentMockExamData.optionc?e("el-checkbox",{attrs:{label:"C"}},[t._v("C、"+t._s(t.currentMockExamData.optionc))]):t._e(),t.currentMockExamData.optiond?e("el-checkbox",{attrs:{label:"D"}},[t._v("D、"+t._s(t.currentMockExamData.optiond))]):t._e()],1):t._e(),3==t.currentMockExamData.types?e("el-radio-group",{on:{change:t.radioExamChange},model:{value:t.currentMockExamData.userAnswer,callback:function(a){t.$set(t.currentMockExamData,"userAnswer",a)},expression:"currentMockExamData.userAnswer"}},[t.currentMockExamData.optiona?e("el-radio",{attrs:{label:"true"}},[t._v(t._s(t.currentMockExamData.optiona))]):t._e(),t.currentMockExamData.optionb?e("el-radio",{attrs:{label:"false"}},[t._v(t._s(t.currentMockExamData.optionb))]):t._e()],1):t._e()],1),e("div",{directives:[{name:"show",rawName:"v-show",value:t.currentMockExamData.userAnswer&&""!=t.currentMockExamData.userAnswer,expression:"\n currentMockExamData.userAnswer &&\n currentMockExamData.userAnswer != ''\n "}],staticClass:"topic-note"},[e("span",{staticClass:"outcome"},[t._v("回答"+t._s(t.currentMockExamData.userAnswer==t.currentMockExamData.answer?"正确":"错误")+"!")]),t._v("正确答案:"),e("span",{staticClass:"answer"},[t._v(t._s("true"==t.currentMockExamData.answer?"正确":"false"==t.currentMockExamData.answer?"错误":t.currentMockExamData.answer))])])]),e("div",{staticClass:"topic-prompt"},[e("div",{staticClass:"prompt"},[t._v(" "+t._s(1==t.currentMockExamData.types?"单选题":2==t.currentMockExamData.types?"多选题":"判断题")+",请选择您认为正确的答案 "),e("p",{staticClass:"suject-title"},[t._v("试题提示信息")])]),e("div",{staticClass:"manipulate"},[e("p",{class:["btn",{disabled:0==t.currentTopic}],on:{click:t.tapPreviousQuestion}},[t._v(" 上一题 ")]),e("p",{class:["btn",{disabled:t.currentTopic==t.mockExamDataList.length-1}],on:{click:t.tapNextQuestion}},[t._v(" 下一题 ")]),e("p",{staticClass:"btn submit",on:{click:t.submitExam}},[t._v("交卷")])])])]),e("div",{staticClass:"exam-card"},[e("ul",{staticClass:"card-list"},t._l(t.mockExamDataList,(function(a,r){return e("li",{key:a.id,class:["card",{correct:t.currentTopic==r},{proper:a.userAnswer&&a.answer==a.userAnswer},{mistake:a.userAnswer&&a.answer!=a.userAnswer}],on:{click:function(a){return t.tapCurrentTopicBtn(r)}}},[t._v(" "+t._s(r+1)+" ")])})),0)])]),e("div",{staticClass:"photograph"},[e("div",{staticClass:"photo-title"},[t._v("图片信息")]),"null"!=t.currentMockExamData.icon.substring(t.currentMockExamData.icon.length-4)?e("div",{staticClass:"photo"},[e("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}}),e("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()])]):e("el-empty",{attrs:{"image-size":200}})],1)])])},s=[function(){var t=this,a=t.$createElement,r=t._self._c||a;return r("div",{staticClass:"test-avator"},[r("img",{staticClass:"avator-img",attrs:{src:e("b52a")}})])}],n=(e("e9c4"),e("ac1f"),e("1276"),e("4e82"),e("a15b"),e("d81d"),e("1825")),c={name:"RealisticSimulation",data:function(){return{carType:"car",stepType:1,mockExamDataList:null,currentTopic:0,currentMockExamData:null,maxtime:2700,msg:"45:00"}},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.getQueryGetMockExam()},mounted:function(){this.timeCountDown()},methods:{timeCountDown:function(){var t=this,a=setInterval((function(){if(t.maxtime>0){var e=Math.floor(t.maxtime/60),r=Math.floor(t.maxtime%60);r<10&&(r+="0"),t.msg=e+":"+r,--t.maxtime}else clearInterval(a),t.submitExam()}),1e3)},changeCurUserAnswer:function(t){var a=JSON.parse(JSON.stringify(t));if(a){for(var e in a)2==a["types"]&&(a["userAnswerList"]=a["userAnswer"]?a["userAnswer"].split(""):[]);this.currentMockExamData=a}},getQueryGetMockExam:function(){var t=this;Object(n["j"])({carType:this.carType,stepType:this.stepType}).then((function(a){a.data.length>0&&(t.mockExamDataList=a.data,t.changeCurUserAnswer(a.data[t.currentTopic]))}))},radioExamChange:function(t){this.mockExamDataList[this.currentTopic].userAnswer=t},checkExamChange:function(t){t.sort((function(t,a){return t.localeCompare(a)}));var a=t.join("");this.currentMockExamData["userAnswer"]=a,this.mockExamDataList[this.currentTopic].userAnswer=a},tapPreviousQuestion:function(){0!=this.currentTopic&&(this.currentTopic--,this.changeCurUserAnswer(this.mockExamDataList[this.currentTopic]))},tapNextQuestion:function(){this.currentTopic!=this.mockExamDataList.length-1&&(this.currentTopic++,this.changeCurUserAnswer(this.mockExamDataList[this.currentTopic]))},tapCurrentTopicBtn:function(t){this.currentTopic=t,this.changeCurUserAnswer(this.mockExamDataList[this.currentTopic])},submitExam:function(){var t=0,a=0,e=0,r=0,s=this.mockExamDataList;s.map((function(e){e.userAnswer&&e.userAnswer==e.answer?t++:e.userAnswer&&e.userAnswer!=e.answer&&a++})),e=s.length,r=50==e?2*t:t,r>=90?this.$router.push({name:"ExamPassed",query:{proper:t,mistake:a,total:e,score:r,maxtime:this.maxtime}}):this.$router.push({name:"ExamDnotpass",query:{proper:t,mistake:a,total:e,score:r,maxtime:this.maxtime}})}},watch:{}},i=c,o=(e("0745"),e("2877")),u=Object(o["a"])(i,r,s,!1,null,"4375798c",null);a["default"]=u.exports}}]);
//# sourceMappingURL=chunk-44b0ce45.1fce1a20.js.map