(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/question/wrongTitle"],{"0369":function(e,t,n){"use strict";n.r(t);var i=n("29e6"),s=n("e807");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("2660");var u,a=n("f0c5"),o=Object(a["a"])(s["default"],i["b"],i["c"],!1,null,"1b2bc5b3",null,!1,i["a"],u);t["default"]=o.exports},2660:function(e,t,n){"use strict";var i=n("924d"),s=n.n(i);s.a},"29e6":function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var s=function(){var e=this,t=e.$createElement,n=(e._self._c,e.__map(e.questionList,(function(t,n){var i=e.__get_orig(t),s=e.questionType(t.type),r=t.videoUrl?encodeURI(t.mediaUrl):null,u=2==t.type?e.__map(e.choiceList,(function(n,i){var s=e.__get_orig(n),r=t.answerTrue.includes(i+1),u=t.answerTrue.includes(i+1);return{$orig:s,g0:r,g1:u}})):null,a=1==t.type?e.__map(2,(function(n,i){var s=e.__get_orig(n),r=t.answerTrue.includes(i+1),u=t.answerTrue.includes(i+1);return{$orig:s,g2:r,g3:u}})):null,o=1!=t.type&&3==t.type?e.__map(e.choiceList,(function(n,i){var s=e.__get_orig(n),r=t.answerTrue.includes(i+1),u=t.answerTrue.includes(i+1);return{$orig:s,g4:r,g5:u}})):null,c=2!=t.type&&1!=t.type&&3==t.type?t.answerTrue.split("").map((function(n){return t[e.choiceList[n-1]]})):null;return{$orig:i,m0:s,m1:r,l0:u,l1:a,l2:o,g6:c}})));e._isMounted||(e.e0=function(t){e.show=!0},e.e1=function(t){e.show=!1},e.e2=function(t){e.answerflag=!e.answerflag},e.e3=function(t){e.answerjump=!e.answerjump},e.e4=function(t){e.checked=!e.checked},e.e5=function(t){e.nightFlag=!e.nightFlag}),e.$mp.data=Object.assign({},{$root:{l3:n}})},r=[]},5982:function(e,t,n){"use strict";(function(e){n("63d7");i(n("66fd"));var t=i(n("0369"));function i(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},"924d":function(e,t,n){},e807:function(e,t,n){"use strict";n.r(t);var i=n("f34a"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},f34a:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("a34a")),s=n("cfae");function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n,i,s,r,u){try{var a=e[r](u),o=a.value}catch(c){return void n(c)}a.done?t(o):Promise.resolve(o).then(i,s)}function a(e){return function(){var t=this,n=arguments;return new Promise((function(i,s){var r=e.apply(t,n);function a(e){u(r,i,s,a,o,"next",e)}function o(e){u(r,i,s,a,o,"throw",e)}a(void 0)}))}}var o=function(){n.e("components/xuan-switch/xuan-switch").then(function(){return resolve(n("51c8"))}.bind(null,n)).catch(n.oe)},c={components:{selectSwitch:o},data:function(){return{loading:!0,answerflag:!1,answerjump:!0,nightFlag:!1,kemu:e.getStorageSync("kemu")||1,completeAnswer:{},show:!1,checked:!0,radio:null,result:[],userAnswer:{},questionList:{},choiceList:["an1","an2","an3","an4","an5","an6","an7"],swiperIndex:0,shakeIndex:0,pageNum:1,shake:0}},watch:{kemu:function(t){e.setStorageSync("kemu",t),this.pageNum=1,this.listInit()}},mounted:function(){this.listInit()},methods:{listInit:function(){var e=this;return a(i.default.mark((function t(){return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,(0,s.questionErrorList)({pageNum:e.pageNum,pageSize:20,kemu:e.kemu}).then((function(t){0==t.rows.length&&(t.rows[0]={question:"暂无错题"}),e.questionList=t.rows,e.$nextTick((function(){e.loading=!1}))}));case 3:case"end":return t.stop()}}),t)})))()},questionType:function(e){switch(e){case 1:return"判断";case 2:return"单选";case 3:return"多选"}},swiperChange:function(e){var t=this,n=e.detail.current-this.shakeIndex;if(this.shake+=1!=Math.pow(n,2)?-n/Math.abs(n):n,this.swiperIndex=e.detail.current,this.shakeIndex=e.detail.current,e.detail.current%10==0){if(Math.abs(this.shake)<10)return void(this.shake=0);this.pageNum+=1,questionList({pageNum:this.pageNum+1,pageSize:10,kemu:this.kemu}).then((function(n){t.shake=0,20==e.detail.current&&(t.questionList=n.rows.concat(t.questionList.slice(10))),10==e.detail.current&&(t.questionList=t.questionList.slice(0,20).concat(n.rows)),0==e.detail.current&&(t.questionList=t.questionList.slice(0,10).concat(n.rows).concat(t.questionList.slice(20)))}))}},onChange:function(e,t){this.completeAnswer[t.id]||this.answerflag||this.$set(this.userAnswer,t.id,e.detail)},singleToggle:function(e,t){var n=this;if(!this.completeAnswer[t.id]&&!this.answerflag){var i=e.currentTarget.dataset.index;this.$set(this.userAnswer,t.id,i),setTimeout((function(){n.submit(t)}),0)}},toggle:function(e,t){var n=e.currentTarget.dataset.index,i=this.$refs["checkboxes".concat(t.id)][n];i.toggle()},noop:function(){},submit:function(e){this.$set(this.completeAnswer,e.id,!0);var t=(this.userAnswer[e.id]+"").split(",").sort().join("")==e.answerTrue.split("").sort().join("");if(t){if(wx.vibrateShort(),this.answerjump){var n=this.swiperIndex;this.swiperIndex=++n%this.questionList.length}}else wx.vibrateLong()},changeSwitch:function(e){this.kemu=e?1:4}}};t.default=c}).call(this,n("543d")["default"])}},[["5982","common/runtime","common/vendor"]]]);