(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-study-detail"],{"06fa":function(t,i,e){"use strict";e.r(i);var n=e("d1c6"),o=e.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){e.d(i,t,(function(){return n[t]}))}(a);i["default"]=o.a},4163:function(t,i,e){"use strict";e.r(i);var n=e("b498"),o=e("544d");for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(i,t,(function(){return o[t]}))}(a);e("c4a6");var s=e("828b"),r=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"1badb2c4",null,!1,n["a"],void 0);i["default"]=r.exports},"544d":function(t,i,e){"use strict";e.r(i);var n=e("a12e"),o=e.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){e.d(i,t,(function(){return n[t]}))}(a);i["default"]=o.a},"796a":function(t,i,e){var n=e("c86c");i=n(!1),i.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-view[data-v-a0cad060], uni-scroll-view[data-v-a0cad060], uni-swiper-item[data-v-a0cad060]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-divider[data-v-a0cad060]{display:flex;flex-direction:row;flex-direction:row;align-items:center;margin:15px 0}.u-divider__text[data-v-a0cad060]{margin:0 15px}.u-divider__dot[data-v-a0cad060]{font-size:12px;margin:0 12px;color:#c0c4cc}',""]),t.exports=i},"9b68":function(t,i,e){var n=e("796a");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=e("967d").default;o("4f007c50",n,!0,{sourceMap:!1,shadowMode:!1})},"9ffc":function(t,i,e){"use strict";e.r(i);var n=e("a938"),o=e("06fa");for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(i,t,(function(){return o[t]}))}(a);e("a78d");var s=e("828b"),r=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"a0cad060",null,!1,n["a"],void 0);i["default"]=r.exports},a12e:function(t,i,e){"use strict";e("6a54");var n=e("f5bd").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var o=n(e("2634")),a=n(e("2fdc"));e("fd3c");var s={data:function(){return{playType:1,page:1,chapter_id:"",teamIndex:0,successNum:0,errorNum:0,type:0,count:0,list:[],fontSize:30,cid:"",fontSize1:26,fontWeight:!0,info:{question_info:[]},safeBottom:"",isPlay:!1,innerAudioContext:null,current_question_id:"",next_question_id:"",current_question_choice:""}},onLoad:function(t){this.type=t.type,this.chapter_id=t.id,this.cid=t.cid;var i=uni.getSystemInfoSync(),e=i.safeAreaInsets;this.safeBottom=null===e||void 0===e?void 0:e.bottom,uni.setNavigationBarTitle({title:1!=t.type?"章节练习":"章节错误题"}),0==t.type||2==t.type?this.getZhangJieList():this.getCuowuList(),this.innerAudioContext=uni.createInnerAudioContext({useWebAudioImplement:!1})},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)},updateFont1:function(t){1==t?this.fontSize1<70?this.fontSize1++:this.fontSize1:2==t&&(this.fontSize1>20?this.fontSize1--:this.fontSize1)},openPage:function(){uni.navigateBack({delta:1})},toPlayAudio:function(t){var i=this;0==this.isPlay?(1==this.playType?(console.log(111),this.innerAudioContext.src=t,this.innerAudioContext.play(),this.playType=2):(console.log(22),this.innerAudioContext.play()),this.isPlay=!0):(this.isPlay=!1,this.innerAudioContext.pause()),this.innerAudioContext.onPlay((function(){console.log("开始播放")})),this.innerAudioContext.onEnded((function(){i.isPlay=!1}))},toSelect:function(t){1!=this.info.question_info.isDisable&&(this.info.question_info.isDisable=!0,this.info.question_info.choice.map((function(t){t.isSelect=!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.info.question_info.choice[t].isSelect=!1,this.info.question_info.choice[t].isErrow=!0,this.errorNum++),this.current_question_choice=this.info.question_info.choice[t].name)},getZhangJieList:function(){var t=this;return(0,a.default)((0,o.default)().mark((function i(){var e,n,a;return(0,o.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,t.$api.chapterQuestionsList({is_free:0==t.type?0:1,chapter_id:0==t.type?t.chapter_id:"",category_id:0==t.type?t.cid:t.chapter_id,page:t.page});case 2:e=i.sent,n=e.code,a=e.data,e.msg,200==n&&(t.list=a.list,t.count=a.count,t.count>0&&(t.next_question_id=a.list[0],t.getInfo()));case 7:case"end":return i.stop()}}),i)})))()},getCuowuList:function(){var t=this;return(0,a.default)((0,o.default)().mark((function i(){var e,n,a,s;return(0,o.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,t.$api.chapterErrorQuestionsList({category_id:t.chapter_id,page:t.page});case 2:e=i.sent,n=e.code,a=e.data,s=e.msg,200==n?(t.list=a.list,t.count=a.count,t.count>0&&(t.next_question_id=a.list[0],t.getInfo())):uni.showToast({icon:"none",title:s});case 7:case"end":return i.stop()}}),i)})))()},getInfo:function(t){var i=this;return(0,a.default)((0,o.default)().mark((function e(){var n,a,s,r,c;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(1!=t){e.next=9;break}if(i.current_question_choice){e.next=4;break}return uni.showToast({icon:"none",title:"请选择答案!"}),e.abrupt("return");case 4:i.current_question_id=i.teamIndex>i.count?"":i.list[i.teamIndex-1],i.next_question_id=i.teamIndex>i.count?"":i.list[i.teamIndex],i.isPlay=!1,i.playType=1,i.innerAudioContext.pause();case 9:return uni.showLoading({title:"加载中"}),e.next=12,i.$api.chapterQuestionsInfo({next_question_id:i.next_question_id,current_question_id:i.current_question_id,current_question_choice:i.current_question_choice,is_error:i.type});case 12:n=e.sent,a=n.code,s=n.data,r=n.msg,200==a?(uni.hideLoading(),c=s,c.question_info.isDisable=!1,c.question_info&&c.question_info.choice&&c.question_info.choice.map((function(t){t.isSelect=!1,t.isErrow=!1})),i.teamIndex++,i.current_question_choice="",i.info=c):uni.showToast({icon:"none",title:r});case 17:case"end":return e.stop()}}),e)})))()}},onUnload:function(){this.innerAudioContext.src="",this.innerAudioContext.stop(),this.innerAudioContext.destroy()},destroyed:function(){this.innerAudioContext.src="",this.innerAudioContext.stop(),this.innerAudioContext.destroy()}};i.default=s},a78d:function(t,i,e){"use strict";var n=e("9b68"),o=e.n(n);o.a},a938:function(t,i,e){"use strict";e.d(i,"b",(function(){return o})),e.d(i,"c",(function(){return a})),e.d(i,"a",(function(){return n}));var n={uLine:e("7dc1").default},o=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",{staticClass:"u-divider",style:[t.$u.addStyle(t.customStyle)],on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.click.apply(void 0,arguments)}}},[e("u-line",{attrs:{color:t.lineColor,customStyle:t.leftLineStyle,hairline:t.hairline,dashed:t.dashed}}),t.dot?e("v-uni-text",{staticClass:"u-divider__dot"},[t._v("●")]):t.text?e("v-uni-text",{staticClass:"u-divider__text",style:[t.textStyle]},[t._v(t._s(t.text))]):t._e(),e("u-line",{attrs:{color:t.lineColor,customStyle:t.rightLineStyle,hairline:t.hairline,dashed:t.dashed}})],1)},a=[]},b498:function(t,i,e){"use strict";e.d(i,"b",(function(){return o})),e.d(i,"c",(function(){return a})),e.d(i,"a",(function(){return n}));var n={uDivider:e("9ffc").default,uEmpty:e("7018").default,uButton:e("63ee").default},o=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",{staticClass:"study-detail"},[t.info.question_info.title?e("v-uni-view",{staticClass:"study-detail-section"},[e("v-uni-view",{staticClass:"li"},[e("v-uni-view",{staticClass:"tit",style:{fontSize:t.fontSize+"rpx",fontWeight:t.fontWeight?"normal":"bold"}},[t._v(t._s(t.teamIndex)+"、"),e("v-uni-view",{staticClass:"content",domProps:{innerHTML:t._s(t.info.question_info.title)}})],1),t.info.question_info.title_img?e("v-uni-view",{staticClass:"title_img"},[e("v-uni-image",{attrs:{mode:"widthFix",src:t.info.question_info.title_img}})],1):t._e(),t.info.question_info.title_video?e("v-uni-view",{staticClass:"title_video"},[e("v-uni-video",{attrs:{src:t.info.question_info.title_video}})],1):t._e(),t._l(t.info.question_info.choice,(function(i,n){return e("v-uni-view",{key:n,staticClass:"con",class:i.isSelect?"right":i.isErrow?"wrong":"",style:{fontSize:t.fontSize+"rpx"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.toSelect(n)}}},[t._v(t._s(i.name)+"."+t._s(i.value)),e("v-uni-view",{staticClass:"mark"},[i.isSelect?e("v-uni-image",{attrs:{src:t.staticUrl("/static/icon-study-right.png")}}):[i.isErrow?e("v-uni-image",{attrs:{src:t.staticUrl("/static/icon-study-wrong.png")}}):t._e(),t.current_question_choice&&t.info.question_info.correct==i.name?e("v-uni-image",{attrs:{src:t.staticUrl("/static/icon-study-right.png")}}):t._e()]],2)],1)}))],2),e("v-uni-view",{staticClass:"btns"},[e("v-uni-view",{staticClass:"btn",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.updateFont(1)}}},[t._v("放大")]),e("v-uni-view",{staticClass:"btn",staticStyle:{"margin-left":"20rpx","margin-right":"20rpx"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.updateFont(2)}}},[t._v("缩小")]),e("v-uni-view",{staticClass:"btn",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.updateFont(3)}}},[t._v(t._s(t.fontWeight?"加粗":"恢复"))])],1),t.current_question_choice?e("v-uni-view",{staticClass:"tips"},[e("v-uni-view",{staticClass:"title"},[e("u-divider",{attrs:{text:"提示"}})],1),e("v-uni-view",{staticClass:"content",style:{fontSize:t.fontSize1+"rpx"},domProps:{innerHTML:t._s(t.info.question_info.prompt)}})],1):t._e(),t.current_question_choice?e("v-uni-view",{staticClass:"btns"},[e("v-uni-view",{staticClass:"btn",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.updateFont1(1)}}},[t._v("放大")]),e("v-uni-view",{staticClass:"btn",staticStyle:{"margin-left":"20rpx","margin-right":"20rpx"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.updateFont1(2)}}},[t._v("缩小")])],1):t._e()],1):t._e(),0==t.info.question_info.length&&t.count>=0?e("v-uni-view",{staticClass:"study-detail-section"},[0==t.count?e("v-uni-view",{staticClass:"empty",staticStyle:{"margin-top":"200rpx"}},[e("u-empty",{attrs:{mode:"data",text:"暂无相关信息"}})],1):[e("v-uni-view",{staticClass:"empty",staticStyle:{"margin-top":"200rpx","margin-bottom":"100rpx"}},[e("u-empty",{attrs:{mode:"data",text:"当前题库全部练完"}})],1),e("u-button",{attrs:{color:"#2080F9"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.openPage(8)}}},[t._v("返回上一页")])]],2):t._e(),t.info.question_info.title&&t.teamIndex<=t.count?e("v-uni-view",{staticClass:"study-detail-bottom",style:{"padding-bottom":t.safeBottom+"px"}},[e("v-uni-view",{staticClass:"check"},[e("v-uni-view",{staticClass:"a"},[e("v-uni-image",{attrs:{src:t.staticUrl("/static/icon-study-yes.png")}}),t._v(t._s(t.successNum))],1),e("v-uni-view",{staticClass:"b"},[e("v-uni-image",{attrs:{src:t.staticUrl("/static/icon-study-no.png")}}),t._v(t._s(t.errorNum))],1)],1),t.info.question_info.speech?e("v-uni-view",{staticClass:"listen",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.toPlayAudio(t.info.question_info.speech)}}},[0==t.isPlay?e("v-uni-image",{attrs:{src:t.staticUrl("/static/icon-listen.png")}}):e("v-uni-image",{attrs:{src:t.staticUrl("/static/icon-listen-on.png")}}),e("v-uni-text",{class:t.isPlay?"on":""},[t._v("听题")])],1):t._e(),e("v-uni-view",{staticClass:"btn",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.getInfo(1)}}},[t._v("下一题")])],1):t._e()],1)},a=[]},c4a6:function(t,i,e){"use strict";var n=e("fea4"),o=e.n(n);o.a},d1c6:function(t,i,e){"use strict";e("6a54");var n=e("f5bd").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var o=n(e("db03")),a={name:"u-divider",mixins:[uni.$u.mpMixin,uni.$u.mixin,o.default],computed:{textStyle:function(){var t={};return t.fontSize=uni.$u.addUnit(this.textSize),t.color=this.textColor,t},leftLineStyle:function(){var t={};return"left"===this.textPosition?t.width="80rpx":t.flex=1,t},rightLineStyle:function(){var t={};return"right"===this.textPosition?t.width="80rpx":t.flex=1,t}},methods:{click:function(){this.$emit("click")}}};i.default=a},db03:function(t,i,e){"use strict";e("6a54"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,e("64aa");var n={props:{dashed:{type:Boolean,default:uni.$u.props.divider.dashed},hairline:{type:Boolean,default:uni.$u.props.divider.hairline},dot:{type:Boolean,default:uni.$u.props.divider.dot},textPosition:{type:String,default:uni.$u.props.divider.textPosition},text:{type:[String,Number],default:uni.$u.props.divider.text},textSize:{type:[String,Number],default:uni.$u.props.divider.textSize},textColor:{type:String,default:uni.$u.props.divider.textColor},lineColor:{type:String,default:uni.$u.props.divider.lineColor}}};i.default=n},f54d:function(t,i,e){var n=e("c86c");i=n(!1),i.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.study-detail[data-v-1badb2c4]{padding-bottom:%?140?%;overflow:hidden}.study-detail-section[data-v-1badb2c4]{width:100%;padding:0 %?25?% %?20?%;overflow:hidden;box-sizing:border-box}.study-detail-section .btns[data-v-1badb2c4]{padding:%?25?%;box-sizing:border-box;margin-top:%?20?%;display:flex;justify-content:center}.study-detail-section .btns .btn[data-v-1badb2c4]{flex:1;line-height:%?80?%;border-radius:%?10?%;text-align:center;background-color:#2080f9;font-size:%?28?%;color:#fff}.study-detail-section .tips[data-v-1badb2c4]{background-color:#fff;border-radius:%?20?%;padding:%?25?%;box-sizing:border-box;margin-top:%?20?%;line-height:1.5;letter-spacing:.5px;color:#6b6b6b}.study-detail-section .tips .title[data-v-1badb2c4]{padding:0 %?30?%}.study-detail-section .li[data-v-1badb2c4]{width:90%;margin:%?20?% auto 0;padding:%?30?%;background:#fff;border-radius:%?20?%;box-shadow:%?0?% %?5?% %?10?% %?0?% rgba(32,79,156,.06);border-radius:%?20?%}.study-detail-section .li .tit[data-v-1badb2c4]{overflow:hidden;padding-bottom:%?10?%;color:#333;display:flex;align-items:flex-start}.study-detail-section .li .title_img[data-v-1badb2c4]{width:100%}.study-detail-section .li .title_img uni-image[data-v-1badb2c4]{width:100%}.study-detail-section .li .title_video[data-v-1badb2c4]{width:100%;height:%?300?%}.study-detail-section .li .title_video uni-video[data-v-1badb2c4]{width:100%;height:100%}.study-detail-section .li .con[data-v-1badb2c4]{overflow:hidden;display:flex;align-items:center;justify-content:space-between;margin-top:%?20?%;padding:%?30?%;background:#f6f6f6;color:#333;line-height:%?50?%;position:relative}.study-detail-section .li .con.right[data-v-1badb2c4]{color:#49c99c;background-color:#f3f8f6}.study-detail-section .li .con.wrong[data-v-1badb2c4]{color:#fa6e6e;background-color:#fff3f3}.study-detail-section .li .con .mark[data-v-1badb2c4]{width:%?60?%;height:%?60?%;position:absolute;right:%?10?%;top:50%;margin-top:%?-30?%;z-index:2}.study-detail-section .li .con .mark uni-image[data-v-1badb2c4]{width:100%;height:100%}.study-detail-bottom[data-v-1badb2c4]{position:fixed;bottom:0;width:100%;height:%?100?%;background:#fff;display:flex;align-items:center;justify-content:space-between}.study-detail-bottom .check[data-v-1badb2c4]{margin-left:%?20?%;line-height:%?30?%}.study-detail-bottom .check .a[data-v-1badb2c4]{float:left;display:flex;align-items:center;margin-right:%?30?%;font-size:%?30?%;color:#37c594}.study-detail-bottom .check .b[data-v-1badb2c4]{float:left;display:flex;align-items:center;font-size:%?30?%;color:#f01b1b}.study-detail-bottom .check uni-image[data-v-1badb2c4]{width:%?44?%;height:%?44?%;margin-right:%?10?%}.study-detail-bottom .listen[data-v-1badb2c4]{display:flex;align-items:center;font-size:%?26?%;line-height:%?30?%;color:#666}.study-detail-bottom .listen uni-text.on[data-v-1badb2c4]{color:#2080f9}.study-detail-bottom .listen uni-image[data-v-1badb2c4]{width:%?44?%;height:%?44?%;margin-right:%?12?%}.study-detail-bottom .btn[data-v-1badb2c4]{width:%?141?%;margin-right:%?20?%;font-size:%?28?%;line-height:%?57?%;color:#2080f9;text-align:center;background:#fff;border:1px solid #2080f9;border-radius:%?29?%}',""]),t.exports=i},fea4:function(t,i,e){var n=e("f54d");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=e("967d").default;o("c3daec9a",n,!0,{sourceMap:!1,shadowMode:!1})}}]);