(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/mine/exam/exam"],{"0140":function(e,t,n){"use strict";n.r(t);var a=n("af01"),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(o);t["default"]=i.a},3719:function(e,t,n){"use strict";(function(e,t){var a=n("4ea4");n("73d2");a(n("66fd"));var i=a(n("674a"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(i.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},"674a":function(e,t,n){"use strict";n.r(t);var a=n("d651"),i=n("0140");for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);n("fe99");var c=n("f0c5"),u=Object(c["a"])(i["default"],a["b"],a["c"],!1,null,"5c39f9f5",null,!1,a["a"],void 0);t["default"]=u.exports},"9c60":function(e,t,n){},af01:function(e,t,n){"use strict";var a=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n("b8e9")),o={data:function(){return{tabs:[{name:"考试记录"},{name:"收藏题目"}],active:0,record:[],collect:[],page:1,limit:10,type:1}},onLoad:function(){this.getExam(this.type)},methods:{getExam:function(e){var t=this;i.default.req({url:"/api/User/myExaminationApplet",data:{page:t.page,limit:t.limit,type:e}},(function(e){console.log("我的考试：",e),1==e.code&&(1==t.type?t.record=e.data.list:t.collect=e.data.list)}))},changeTab:function(e){this.active=e.index,this.type=this.active+1,this.getExam(this.type)},toDetail:function(e){1==this.record[e].can_test?this.record[e].pass_history?i.default.info("您已经考试及格了，无需再参加考试了"):(i.default.jump("/pages/index/exam/exam?id="+this.record[e].course_id),this.exam.show=!1):i.default.info("未到时间")},wrong:function(e){i.default.jump("/pages/mine/exam/wrong?id="+e)}}};t.default=o},d651:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a}));var a={uTabs:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-tabs/u-tabs")]).then(n.bind(null,"4fca"))},uIcon:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(n.bind(null,"d3dc"))}},i=function(){var e=this,t=e.$createElement,n=(e._self._c,0==e.active&&e.record.length>0),a=0==e.active&&0==e.record.length,i=1==e.active&&e.collect.length>0,o=1==e.active&&0==e.collect.length;e.$mp.data=Object.assign({},{$root:{g0:n,g1:a,g2:i,g3:o}})},o=[]},fe99:function(e,t,n){"use strict";var a=n("9c60"),i=n.n(a);i.a}},[["3719","common/runtime","common/vendor"]]]);