index-legacy-3a126c95.js 21 KB

1
  1. !function(){function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},n(t)}function t(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t=function(){return e};var e={},o=Object.prototype,r=o.hasOwnProperty,i=Object.defineProperty||function(n,t,e){n[t]=e.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(n,t,e){return Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}),n[t]}try{c({},"")}catch(S){c=function(n,t,e){return n[t]=e}}function f(n,t,e,o){var r=t&&t.prototype instanceof h?t:h,a=Object.create(r.prototype),s=new C(o||[]);return i(a,"_invoke",{value:x(n,e,s)}),a}function d(n,t,e){try{return{type:"normal",arg:n.call(t,e)}}catch(S){return{type:"throw",arg:S}}}e.wrap=f;var p={};function h(){}function v(){}function y(){}var w={};c(w,s,(function(){return this}));var A=Object.getPrototypeOf,g=A&&A(A(k([])));g&&g!==o&&r.call(g,s)&&(w=g);var b=y.prototype=h.prototype=Object.create(w);function m(n){["next","throw","return"].forEach((function(t){c(n,t,(function(n){return this._invoke(t,n)}))}))}function _(t,e){function o(i,a,s,u){var l=d(t[i],t,a);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==n(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(n){o("next",n,s,u)}),(function(n){o("throw",n,s,u)})):e.resolve(f).then((function(n){c.value=n,s(c)}),(function(n){return o("throw",n,s,u)}))}u(l.arg)}var a;i(this,"_invoke",{value:function(n,t){function r(){return new e((function(e,r){o(n,t,e,r)}))}return a=a?a.then(r,r):r()}})}function x(n,t,e){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return q()}for(e.method=r,e.arg=i;;){var a=e.delegate;if(a){var s=I(a,e);if(s){if(s===p)continue;return s}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===o)throw o="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);o="executing";var u=d(n,t,e);if("normal"===u.type){if(o=e.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(o="completed",e.method="throw",e.arg=u.arg)}}}function I(n,t){var e=t.method,o=n.iterator[e];if(void 0===o)return t.delegate=null,"throw"===e&&n.iterator.return&&(t.method="return",t.arg=void 0,I(n,t),"throw"===t.method)||"return"!==e&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+e+"' method")),p;var r=d(o,n.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,p;var i=r.arg;return i?i.done?(t[n.resultName]=i.value,t.next=n.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function L(n){var t={tryLoc:n[0]};1 in n&&(t.catchLoc=n[1]),2 in n&&(t.finallyLoc=n[2],t.afterLoc=n[3]),this.tryEntries.push(t)}function T(n){var t=n.completion||{};t.type="normal",delete t.arg,n.completion=t}function C(n){this.tryEntries=[{tryLoc:"root"}],n.forEach(L,this),this.reset(!0)}function k(n){if(n){var t=n[s];if(t)return t.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var e=-1,o=function t(){for(;++e<n.length;)if(r.call(n,e))return t.value=n[e],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:q}}function q(){return{value:void 0,done:!0}}return v.prototype=y,i(b,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,l,"GeneratorFunction"),e.isGeneratorFunction=function(n){var t="function"==typeof n&&n.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(n){return Object.setPrototypeOf?Object.setPrototypeOf(n,y):(n.__proto__=y,c(n,l,"GeneratorFunction")),n.prototype=Object.create(b),n},e.awrap=function(n){return{__await:n}},m(_.prototype),c(_.prototype,u,(function(){return this})),e.AsyncIterator=_,e.async=function(n,t,o,r,i){void 0===i&&(i=Promise);var a=new _(f(n,t,o,r),i);return e.isGeneratorFunction(t)?a:a.next().then((function(n){return n.done?n.value:a.next()}))},m(b),c(b,l,"Generator"),c(b,s,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),e.keys=function(n){var t=Object(n),e=[];for(var o in t)e.push(o);return e.reverse(),function n(){for(;e.length;){var o=e.pop();if(o in t)return n.value=o,n.done=!1,n}return n.done=!0,n}},e.values=k,C.prototype={constructor:C,reset:function(n){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!n)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var n=this.tryEntries[0].completion;if("throw"===n.type)throw n.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var t=this;function e(e,o){return a.type="throw",a.arg=n,t.next=e,o&&(t.method="next",t.arg=void 0),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(n,t){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===n||"continue"===n)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=n,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(n,t){if("throw"===n.type)throw n.arg;return"break"===n.type||"continue"===n.type?this.next=n.arg:"return"===n.type?(this.rval=this.arg=n.arg,this.method="return",this.next="end"):"normal"===n.type&&t&&(this.next=t),p},finish:function(n){for(var t=this.tryEntries.length-1;t>=0;--t){var e=this.tryEntries[t];if(e.finallyLoc===n)return this.complete(e.completion,e.afterLoc),T(e),p}},catch:function(n){for(var t=this.tryEntries.length-1;t>=0;--t){var e=this.tryEntries[t];if(e.tryLoc===n){var o=e.completion;if("throw"===o.type){var r=o.arg;T(e)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(n,t,e){return this.delegate={iterator:k(n),resultName:t,nextLoc:e},"next"===this.method&&(this.arg=void 0),p}},e}function e(n,t,e,o,r,i,a){try{var s=n[i](a),u=s.value}catch(l){return void e(l)}s.done?t(u):Promise.resolve(u).then(o,r)}function o(n){return function(){var t=this,o=arguments;return new Promise((function(r,i){var a=n.apply(t,o);function s(n){e(a,r,i,s,u,"next",n)}function u(n){e(a,r,i,s,u,"throw",n)}s(void 0)}))}}System.register(["./index-legacy-15796ce2.js","./index-legacy-11103645.js","./index-legacy-060897ef.js","./index-legacy-aa0977bf.js","./index-legacy-42407e59.js","./index-legacy-576fe6d3.js","./index-legacy-d678f0e1.js","./index-legacy-b018a587.js","./index-legacy-16b17ab2.js","./index-legacy-0f59b63e.js"],(function(n,e){"use strict";var r,i,a,s,u,l,c,f,d,p,h,v,y,w,A,g,b,m,_,x,I,L,T,C,k,q,S,E,B,j,O,R,P,U,N,G=document.createElement("style");return G.textContent="._unitDetail_11n89_1{min-height:100vh;overflow:hidden;background:url("+new URL("bg-a9662afa.png",e.meta.url).href+") no-repeat top center;background-size:contain;position:relative;background-color:#abe8ff}._unitSwipe_11n89_9{margin-top:2rem}._unitSwipe_11n89_9 ._questionTitle_11n89_12{display:flex;align-items:center;justify-content:space-between;font-size:.37333rem;font-weight:700;color:#333;padding-bottom:.32rem}._unitSwipe_11n89_9 ._questionTitle_11n89_12 ._questionNum_11n89_21 span{color:#ff5a56}._unitSwipe_11n89_9 ._questionTitle_11n89_12 ._questionType_11n89_24{display:flex;align-items:center}._unitSwipe_11n89_9 ._questionTitle_11n89_12 ._questionType_11n89_24 span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:4.26667rem}._unitSwipe_11n89_9 ._questionTitle_11n89_12 ._questionType_11n89_24 i{margin-right:.16rem;display:inline-block;width:.53333rem;height:.53333rem;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAKKADAAQAAAABAAAAKAAAAAB65masAAACuElEQVRYCe2YT2sTURDAZzabFjSxiCC1qcFqS7BYQWkEwZv9AB4qeBb8Ar0Lgne/QMVeRCT05LmlHoQiVdRW7MFKxZpqKR40pWDi7jiz8TWb7L50s7u2he5C2Hnz95d5u499D2+WSik4wJdxgNkcNLMV8H5f5ciAsTUGSF2tNhkTYqVmwZfb5VPLfnad7lHu2/l0CvJIlPX1Iayu2pmZu+vZbbfdA1hIVWYZo+h2apKJoJv7XjpdLtuGMfmxlnnQmlT5y58dSm9NGLZ9h3U5IGXxuSMB114AyF51W32muA2cO5ILcuF7BfPX26n+jeFmE4DoCmblnfiwLddq9x97a/sA+odqtQRnjxrW3MP+zQHlI7LogGhHp2yd3qMDSkWiE8ew9kQVd2TWqXGUu+cZDJ+Mio/z6zecePJOVdi8MQICpG265YBgWBxvXKyAiHilXqLd6+qFaKfZATxzaeRaCqkXNsvt/NvaCKFPHHjFCH2du3xh3CL8/vnN0gtJ4rwkQ6MXJ0yDniPC09CZOZAXYVN+kXIwg7AIk+RxkhFZPDURHxyDUw2P19k+TAPYf6Jw8sIgTP86GCmTCu7JA2R66z+RY7riWQcFBl0fRW45Imh8gBFBdOEJoK4zQfVJB4N2SueXdFDXmaD6pINBO6XzSzqo60xQfdLBoJ3S+R2iDlq/G01wyw1tKCnS53lTxZ9rAGvzrOINicgxXfEBClj5ZUxYjTSeZ/Cr2dOw7rHkV9vTwcnjRRis/oAU2HuKZ/EGc6XLe1qiAKuKpsb7ieXuk2q4n3eHyZliApziPfHGftK4awuLMInO6eCn1+/nWA54hudOBTA4OjLPm1j/A0/EhZVXS00Hks3Ru4/UFO/uqfGwqnjdMGmMza1HxlW7hjOasMDqyICri4vbXO1Z4IodOnqWmQ7j/7v7Xwtnr/nyIvR9AAAAAElFTkSuQmCC) no-repeat center;background-size:contain}._wapList_11n89_42{width:1.17333rem;height:1.30667rem;flex-shrink:0;margin-left:.48rem}._btnSection_11n89_48{background-color:#fff;padding-top:.53333rem;--van-button-default-height: 1.30667rem}._btnSection_11n89_48 ._prevBtn_11n89_53,._btnSection_11n89_48 ._nextBtn_11n89_54,._btnSection_11n89_48 ._activePrevBtn_11n89_55{width:3.30667rem!important;border:none;color:#fff}._btnSection_11n89_48 ._prevBtn_11n89_53{background:url("+new URL("prev_btn_bg-b6b2b4bd.png",e.meta.url).href+") no-repeat center;background-size:contain}._btnSection_11n89_48 ._activePrevBtn_11n89_55{background:url("+new URL("next_btn_bg-efb37605.png",e.meta.url).href+") no-repeat center;background-size:contain}._btnSection_11n89_48 ._nextBtn_11n89_54{background:url("+new URL("next_btn_bg-efb37605.png",e.meta.url).href+") no-repeat center;background-size:contain}._btnSection_11n89_48 .van-button--disabled{color:#587c98}._btnSection_11n89_48 .van-button--disabled:before{opacity:.2!important}._right_11n89_78{color:#14c295}._error_11n89_81{color:#ff5a56}\n",document.head.appendChild(G),{setters:[function(n){r=n.d,i=n.U,a=n.q,s=n.r,u=n.x,l=n.e,c=n.y,f=n.ag,d=n.a,p=n.S,h=n.A,v=n.C,y=n.V,w=n.a1,A=n.D,g=n.z,b=n.Z},function(n){m=n.e,_=n.Q,x=n.C,I=n.D,L=n.K,T=n.P,C=n.i,k=n.A,q=n.a,S=n.R},function(n){E=n.M},function(n){B=n.E},function(n){j=n.b,O=n.u,R=n.a},function(n){P=n.S,U=n.a},function(n){N=n.I},null,null,null],execute:function(){var e="_unitDetail_11n89_1",G="_unitSwipe_11n89_9",K="_questionTitle_11n89_12",M="_questionNum_11n89_21",Q="_questionType_11n89_24",z="_wapList_11n89_42",F="_btnSection_11n89_48",H="_prevBtn_11n89_53",X="_nextBtn_11n89_54",Z="_activePrevBtn_11n89_55",D="_right_11n89_78",W="_error_11n89_81";n("default",r({name:"unit-detail",setup:function(){var n=i(),r=a(),Y=s(),V=u({type:n.query.type,knowledgePointIds:n.query.knowledgePointIds,lessonCoursewareId:n.query.lessonCoursewareId,background:"transparent",color:"#fff",visiableError:!1,visiableAnswer:!1,id:n.query.id,currentIndex:0,questionList:[],visiableInfo:{show:!1,operationType:"RESULT",type:"DEFAULT",content:"",showCancelButton:!1,confirmButtonText:"",cancelButtonText:"",title:""},nextStatus:!1,swipeHeight:"auto",answerAnalysis:"",questionTypeCode:"",overResult:{time:"00:00",questionLength:0,errorLength:0,rate:0}}),J=j(1e3,{controls:!0}),$=J.counter,nn=(J.resume,J.pause),tn=function(){var n=o(t().mark((function n(){var e,o,r;return t().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,A.post("/edu-app/studentUnitExamination/queryPracticeModeExam",{data:{lessonCoursewareId:V.lessonCoursewareId}});case 3:e=n.sent,o=e.data,(r=o||{}).examinationQuestionAdds.forEach((function(n){n.showAnalysis=!1,n.analysis={message:n.answerAnalysis,topic:!0,userResult:!1},n.userAnswer=[]})),V.questionList=r.examinationQuestionAdds||[],n.next=12;break;case 10:n.prev=10,n.t0=n.catch(0);case 12:case"end":return n.stop()}}),n,null,[[0,10]])})));return function(){return n.apply(this,arguments)}}(),en=function(){var n=o(t().mark((function n(){var e,o,r,i,a;return t().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,e=V.questionList||[],o={},e.forEach((function(n,t){t===V.currentIndex&&(o={questionId:n.id,details:n.userAnswer||[]})})),n.next=6,A.post("/edu-app/studentUnitExamination/submitTrainingAnswer",{hideLoading:!0,data:o});case 6:if(r=n.sent,i=r.data,e.forEach((function(n,t){t===V.currentIndex&&(V.answerAnalysis=n.answerAnalysis,V.questionTypeCode=n.questionTypeCode,n.showAnalysis=!0,n.analysis.userResult=i)})),V.questionList.length!==V.currentIndex+1){n.next=19;break}return m.emit("unitAudioStop"),V.visiableInfo.show=!0,V.visiableInfo.title="练习完成",V.visiableInfo.showCancelButton=!0,V.visiableInfo.operationType="CONTINUE",V.visiableInfo.cancelButtonText="再等等",V.visiableInfo.confirmButtonText="确认完成",V.visiableInfo.content="确认本次练习的题目都完成了吗?",n.abrupt("return");case 19:i?null===(a=Y.value)||void 0===a||a.next():V.visiableError=!0,n.next=24;break;case 22:n.prev=22,n.t0=n.catch(0);case 24:case"end":return n.stop()}}),n,null,[[0,22]])})));return function(){return n.apply(this,arguments)}}(),on=l((function(){var n=V.questionList||[],t=0,e=0,o=0;return n.forEach((function(n){n.showAnalysis&&(t+=1,n.analysis.userResult?e+=1:o+=1)})),{count:t,passCount:e,noPassCount:o}})),rn=0,an=function n(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];g((function(){t&&window.scrollTo(0,0),setTimeout((function(){var e,o=null===(e=document.querySelectorAll(".van-swipe-item")[V.currentIndex])||void 0===e?void 0:e.querySelector(".swipe-item-question"),r=null==o?void 0:o.querySelectorAll(".answerTitleImg img"),i=!0;null==r||r.forEach((function(n){console.log(n.complete),n.complete||(i=!1)})),!i&&rn<3&&setTimeout((function(){rn+=1,n(t)}),300),i&&(rn=0);var a=b(o);V.swipeHeight=a.height}),100)}))},sn=function(){"RESULT"===V.visiableInfo.operationType?(V.visiableInfo.show=!1,r.back(),fn()):"BACK"===V.visiableInfo.operationType?(V.visiableInfo.show=!1,fn()):"CONTINUE"===V.visiableInfo.operationType&&ln()},un=function(){var n=o(t().mark((function n(){return t().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:"RESULT"===V.visiableInfo.operationType||("BACK"===V.visiableInfo.operationType?(V.visiableInfo.show=!1,window.history.pushState(null,"",document.URL),window.addEventListener("popstate",cn,!1)):"CONTINUE"===V.visiableInfo.operationType&&(V.visiableInfo.show=!1));case 1:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}(),ln=function(){var n=on.value,t=0;n.count>0&&(t=Math.floor(n.passCount/n.count*100));var e=$.value,o=Math.floor(e/60)>=10?Math.floor(e/60):"0"+Math.floor(e/60),r=e%60>=10?e%60:"0"+e%60;V.overResult={time:o+":"+r,questionLength:n.count,errorLength:n.noPassCount,rate:t},nn(),$.value=0,V.visiableInfo.show=!0,V.visiableInfo.title="已完成",V.visiableInfo.showCancelButton=!1,V.visiableInfo.operationType="RESULT",V.visiableInfo.confirmButtonText="确认",V.visiableInfo.content="<div>您已完成本次测试,答对<span class='".concat(D,"'>").concat(n.passCount,"</span>,答错<span class='").concat(W,"'>").concat(n.count-n.passCount,"</span>,正确率").concat(t,"%~</div>")},cn=function(){var n=on.value;V.visiableInfo.show=!0,V.visiableInfo.title="确认退出吗?",V.visiableInfo.showCancelButton=!0,V.visiableInfo.operationType="BACK",V.visiableInfo.cancelButtonText="取消",V.visiableInfo.confirmButtonText="确定",V.visiableInfo.content="您已经完成".concat(n.passCount+n.noPassCount,"道题了,继续做题可以巩固所学知识哦~"),m.emit("unitAudioStop")},fn=function(){window.removeEventListener("popstate",cn,!1),r.back()};return c(o(t().mark((function n(){return t().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return O(document,"scroll",(function(){R().y.value>52?(V.background="#fff",V.color="#323333"):(V.background="transparent",V.color="#fff")})),n.next=3,tn();case 3:an(),window.history.pushState(null,"",document.URL),window.addEventListener("popstate",cn,!1);case 6:case"end":return n.stop()}}),n)})))),f((function(){m.emit("unitAudioStop")})),function(){var n,t;return d("div",{class:e},[d(E,{position:"top"},{default:function(){return[d(p,{border:!1,background:V.background,color:V.color},null)]}}),d(P,{loop:!1,showIndicators:!1,ref:Y,duration:300,touchable:!1,class:G,style:{paddingBottom:"12px"},lazyRender:!0,height:V.swipeHeight,onChange:function(n){m.emit("unitAudioStop"),V.currentIndex=n,an()}},(t=n=V.questionList.map((function(n,t){return d(U,null,{default:function(){return[d("div",{class:"swipe-item-question"},[n.questionTypeCode===_.RADIO&&d(x,{value:n.userAnswer,"onUpdate:value":function(t){return n.userAnswer=t},index:t+1,data:n,type:"radio",showAnalysis:n.showAnalysis,analysis:n.analysis},{title:function(){return d("div",{class:K},[d("div",{class:M},[d("span",null,[V.currentIndex+1]),h("/"),V.questionList.length]),d("div",{class:Q},[d("i",null,null),d("span",null,[n.knowledgePointName])])])}}),n.questionTypeCode===_.CHECKBOX&&d(x,{value:n.userAnswer,"onUpdate:value":function(t){return n.userAnswer=t},index:t+1,data:n,type:"checkbox",showAnalysis:n.showAnalysis,analysis:n.analysis},{title:function(){return d("div",{class:K},[d("div",{class:M},[d("span",null,[V.currentIndex+1]),h("/"),V.questionList.length]),d("div",{class:Q},[d("i",null,null),d("span",null,[n.knowledgePointName])])])}}),n.questionTypeCode===_.SORT&&d(I,{value:n.userAnswer,"onUpdate:value":[function(t){return n.userAnswer=t},function(){var t=!(n.userAnswer&&n.userAnswer.length>0);an(t)}],data:n,index:t+1,showAnalysis:n.showAnalysis,analysis:n.analysis},{title:function(){return d("div",{class:K},[d("div",{class:M},[d("span",null,[V.currentIndex+1]),h("/"),V.questionList.length]),d("div",{class:Q},[d("i",null,null),d("span",null,[n.knowledgePointName])])])}}),n.questionTypeCode===_.LINK&&d(L,{value:n.userAnswer,"onUpdate:value":function(t){return n.userAnswer=t},data:n,index:t+1,showAnalysis:n.showAnalysis,analysis:n.analysis},{title:function(){return d("div",{class:K},[d("div",{class:M},[d("span",null,[V.currentIndex+1]),h("/"),V.questionList.length]),d("div",{class:Q},[d("i",null,null),d("span",null,[n.knowledgePointName])])])}}),n.questionTypeCode===_.PLAY&&d(T,{value:n.userAnswer,"onUpdate:value":function(t){return n.userAnswer=t},data:n,index:t+1,unitId:V.id,showAnalysis:n.showAnalysis,analysis:n.analysis},{title:function(){return d("div",{class:K},[d("div",{class:M},[d("span",null,[V.currentIndex+1]),h("/"),V.questionList.length]),d("div",{class:Q},[d("i",null,null),d("span",null,[n.knowledgePointName])])])}})])]}})})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!w(t)?n:{default:function(){return[n]}})),d(E,{position:"bottom"},{default:function(){return[d("div",{class:["btnGroup btnMore",F]},[d(v,{round:!0,block:!0,class:V.currentIndex>0?Z:H,disabled:!(V.currentIndex>0),onClick:function(){var n;null===(n=Y.value)||void 0===n||n.prev()}},{default:function(){return[h("上一题")]}}),d(v,{block:!0,round:!0,class:X,onClick:en,loading:V.nextStatus,disabled:V.nextStatus},{default:function(){return[V.questionList.length===V.currentIndex+1?"提交":"下一题"]}}),d(N,{src:C,class:[z,"van-haptics-feedback"],onClick:function(){return V.visiableAnswer=!0}},null)])]}}),d(k,{show:V.visiableAnswer,"onUpdate:show":function(n){return V.visiableAnswer=n},title:"题目列表",safeAreaInsetBottom:!0},{default:function(){return[d(q,{value:V.questionList,onSelect:function(n){var t;null===(t=Y.value)||void 0===t||t.swipeTo(n,{immediate:!0}),V.visiableAnswer=!1}},null)]}}),d(y,{show:V.visiableError,"onUpdate:show":function(n){return V.visiableError=n},style:{width:"90%"},round:!0,closeOnClickOverlay:!1},{default:function(){return[d(B,{onClose:function(){return V.visiableError=!1},answerAnalysis:V.answerAnalysis,questionTypeCode:V.questionTypeCode,onConform:function(){var n;null===(n=Y.value)||void 0===n||n.next(),V.answerAnalysis=""}},null)]}}),d(y,{show:V.visiableInfo.show,"onUpdate:show":function(n){return V.visiableInfo.show=n},closeOnClickOverlay:!1,style:{background:"transparent",width:"100%",maxWidth:"100%",transform:"translateY(-55%)"}},{default:function(){return[d(S,{title:V.visiableInfo.title,showCancelButton:V.visiableInfo.showCancelButton,cancelButtonText:V.visiableInfo.cancelButtonText,confirmButtonText:V.visiableInfo.confirmButtonText,status:V.visiableInfo.type,content:V.visiableInfo.content,contentHtml:!0,onConform:sn,onClose:un},null)]}})])}}}))}}}))}();