You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
5.5 KiB
JavaScript
1 line
5.5 KiB
JavaScript
4 weeks ago
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/exam/index"],{3515:function(e,t,n){"use strict";var a=n("4777"),i=n.n(a);i.a},4777:function(e,t,n){},"755e":function(e,t,n){"use strict";(function(e,t){var a=n("4ea4");n("260f");a(n("66fd"));var i=a(n("d625"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(i.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},"7c5d":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){}));var a=function(){var e=this.$createElement,t=(this._self._c,this.examInfo.examQuestionLibEntityList.length),n=this.examInfo.examQuestionLibEntityList.length,a=this.examInfo.examQuestionLibEntityList.length;this.$mp.data=Object.assign({},{$root:{g0:t,g1:n,g2:a}})},i=[]},"9d6d":function(e,t,n){"use strict";(function(e){var a=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n("9523")),o=a(n("3f96")),s=n("26cb");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}var r={data:function(){return{title:"考试",examInfo:{},percent:0,showPage:{},nowPageNubmer:1,examStatus:"",planId:"",planPeopleId:"",rate:""}},components:{mHeader:function(){Promise.all([n.e("common/vendor"),n.e("pages/components/mHeader/index")]).then(function(){return resolve(n("1d12"))}.bind(null,n)).catch(n.oe)},radioPage:function(){n.e("pages/exam/radioPage").then(function(){return resolve(n("14e6"))}.bind(null,n)).catch(n.oe)},checkPage:function(){n.e("pages/exam/checkPage").then(function(){return resolve(n("cffc"))}.bind(null,n)).catch(n.oe)},flagPage:function(){n.e("pages/exam/flagPage").then(function(){return resolve(n("ad1e"))}.bind(null,n)).catch(n.oe)},passExamModal:function(){n.e("pages/exam/passExamModal").then(function(){return resolve(n("cd1b"))}.bind(null,n)).catch(n.oe)},noPassExamModal:function(){n.e("pages/exam/noPassExamModal").then(function(){return resolve(n("c299"))}.bind(null,n)).catch(n.oe)}},onLoad:function(e){this.planId=e.planId,this.planPeopleId=e.planPeopleId,this._getExamInfo(this.planId)},computed:(0,s.mapState)({askExamNum:"askExamNum"}),watch:{askExamNum:function(t){var n=this;10===t&&e.showModal({title:"提示",content:"您已答题完毕,是否交卷",confirmText:"立即交卷",cancelText:"暂不交卷",success:function(e){e.confirm&&n.submit()}})}},methods:{reExam:function(){this.examInfo.examQuestionLibEntityList.forEach((function(e){e.answers=null})),this.nowPageNubmer=1,this.$store.commit("SET_ASK_EXAM_NUM",0),this.showPageFn(),this.percentFn()},_getExamInfo:function(e){var t=this,n={planId:e};o.default.exam.getExamInfo(n).then((function(e){t.examInfo=e.data,t.$nextTick((function(){t.percentFn(),t.showPageFn()}))}))},percentFn:function(){this.percent=(this.askExamNum/this.examInfo.examQuestionLibEntityList.length*100).toFixed(0)||0},answersSave:function(e){var t,n=this,a=this.examInfo.examQuestionLibEntityList,i={};i=a.filter((function(e,t){return t===n.nowPageNubmer-1}))[0],i.answers=e,this.examInfo.examQuestionLibEntityList[this.nowPageNubmer-1]=i,t=a.filter((function(e,t){return e.answers&&e.answers.length})).length,this.$store.commit("SET_ASK_EXAM_NUM",t),this.percentFn()},answersRadio:function(e){this.answersSave(e)},answersFlag:function(e){this.answersSave(e)},answersCheck:function(e){this.answersSave(e)},showPageFn:function(){var e=this,t={};t=this.examInfo.examQuestionLibEntityList.filter((function(t,n){return n===e.nowPageNubmer-1}))[0],"string"===typeof t.options&&(t.options=JSON.parse(t.options));var n=t.type;2===n?(t.choiceImg="../../static/images/study/square-chioce.png",t.choiceImgActive="../../static/images/study/square-chioce-active.png"):(t.choiceImg="../../static/images/study/circular-choice.png",t.choiceImgActive="../../static/images/study/circular-choice-active.png"),this.showPage=t},prevPage:function(){this.nowPageNubmer<=1||(this.nowPageNubmer--,this.showPageFn())},nextPage:function(){this.no
|