船员公众号
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.

1 line
13 KiB

2 months ago
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/exercises/index"],{"0a45":function(t,e,n){},"0bac":function(t,e,n){"use strict";n.r(e);var i=n("881d"),o=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=o.a},"555a":function(t,e,n){"use strict";n.r(e);var i=n("98f6"),o=n("0bac");for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);n("5f26");var s=n("828b"),u=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"b627d902",null,!1,i["a"],void 0);e["default"]=u.exports},"5f26":function(t,e,n){"use strict";var i=n("0a45"),o=n.n(i);o.a},"881d":function(t,e,n){"use strict";(function(t){var i=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("7eb4")),r=i(n("ee10")),s={data:function(){return{playType:1,isShowCard:!1,start_time:1e5,answer:"",category_id:"",teamIndex:0,successNum:0,errorNum:0,type:0,count:-1,list:[],resultList:[],questionList:[],fontSize:30,fontSize1:26,fontWeight:!0,info:{question_info:[]},timeData:{},log_id:0,page:1,innerAudioContext:null,isPlay:!1,current_question_id:"",next_question_id:"",current_question_choice:"",safeBottom:"",correctArr:[],errorArr:[]}},onLoad:function(e){var n=t.getSystemInfoSync(),i=n.safeAreaInsets;this.safeBottom=null===i||void 0===i?void 0:i.bottom,this.category_id=e.id?e.id:"",this.innerAudioContext=t.createInnerAudioContext({useWebAudioImplement:!1}),this.type=e.type,0==this.type||1==this.type?this.getZhengTiList():3==this.type?this.getShunxiTiList():this.getMoniList()},methods:{updateFont:function(t){1==t?this.fontSize<70?this.fontSize++:this.fontSize:2==t?this.fontSize>20?this.fontSize--:this.fontSize:3==t&&(this.fontWeight=!this.fontWeight)},openPage:function(e){var n=this;2==e?n.teamIndex==n.count?t.showModal({title:"交卷确认",content:"你确定要交卷吗?",confirmText:"确认",cancelText:"取消",confirmColor:"#2080F9",success:function(e){e.confirm&&t.showModal({title:"再次确认",content:"你确定要交卷吗?",confirmText:"确认",cancelText:"取消",confirmColor:"#2080F9",success:function(t){t.confirm&&n.getInfo(2)}})}}):t.showModal({title:"请确认",content:"你确定要交卷吗?",confirmText:"继续答题",cancelText:"确认",confirmColor:"#2080F9",success:function(e){e.cancel&&t.showModal({title:"再次确认",content:"你确定要交卷吗?",confirmText:"确认",cancelText:"取消",confirmColor:"#2080F9",success:function(t){t.confirm&&n.getInfo(3)}})}}):t.navigateBack({delta:1})},onChange:function(e){this.timeData=e,this.count>0&&0==e.days&&0==e.hours&&0==e.milliseconds&&0==e.minutes&&0==e.seconds&&t.showModal({title:"温馨提示",content:"当前刷题时间已结束,请返回上一页",showCancel:!1,confirmColor:"#2080F9",success:function(e){e.confirm&&t.navigateBack({delta:1})}})},toPlayAudio:function(t){var e=this;console.log(t),0==this.isPlay?(1==this.playType?(this.innerAudioContext.src=t,this.innerAudioContext.play(),this.playType=2):this.innerAudioContext.play(),this.isPlay=!0):(this.isPlay=!1,this.innerAudioContext.pause()),this.innerAudioContext.onPlay((function(){console.log("开始播放")})),this.innerAudioContext.onEnded((function(){e.isPlay=!1}))},toSelect:function(t){if(1!=this.info.question_info.isDisable){this.info.question_info.isDisable=!0,this.info.question_info.choice.map((function(t){t.isSelect=!1}));var e=this.list[this.teamIndex-1];this.info.question_info.choice[t].name==this.info.question_info.correct?(this.info.question_info.choice[t].isSelect=!0,this.info.question_info.choice[t].isErrow=!1,this.successNum++,this.correctArr.push(e)):(this.info.question_info.choice[t].isSelect=!1,this.info.question_info.choice[t].isErrow=!0,this.errorNum++,this.errorArr.push(e)),this.info.question_info.value=this.info.question_info.choice[t],this.current_question_choice=this.info.question_info.choice[t].name}},toSumbit:function(){var e=this;return(0,r.default)(o.default.mark((function n(){var i,r,s;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e,[],n.next=4,e.$