(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{709:function(e,t,a){},710:function(e,t,a){},773:function(e,t,a){"use strict";a.r(t);var n=a(7),s=a(8),c=a(10),o=a(9),r=a(11),i=a(0),l=a.n(i),m=(a(709),a(15)),u=a.n(m),w=a(33),p=(a(710),function(){return l.a.createElement("div",{className:"open-app"},l.a.createElement("p",{className:"left"},"\u66f4\u591a\u8bd5\u9898\u8bf7\u524d\u5f80App\u67e5\u770b"),l.a.createElement("button",{className:"right"},"\u5728APP\u6253\u5f00"))}),h=a(4);a.d(t,"default",function(){return d});var d=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(c.a)(this,Object(o.a)(t).call(this,e))).showAnswer=function(){a.setState({isShowAnswer:!a.state.isShowAnswer})},a.state={isShowAnswer:!1,questionData:{}},a}return Object(r.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this;h.c.get("".concat(API.home,"/m/dailyQuestion")).then(function(t){e.setState({questionData:t.data.data})})}},{key:"render",value:function(){var e=this.state,t=e.questionData,a=t.ques,n=t.type_id,s=t.options,c=t.analysis,o=t.category,r=e.isShowAnswer;return l.a.createElement("div",{className:"examination"},l.a.createElement("div",{className:"question-container"},l.a.createElement("div",{className:"topic"},l.a.createElement(w.h,{className:"category-tag"},o),a),1===n&&l.a.createElement(f,{className:"options",options:s,showCorrect:this.state.isShowAnswer}),!r&&l.a.createElement("div",{className:"show-answer",onClick:this.showAnswer},l.a.createElement("span",null,"\u67e5\u770b\u89e3\u6790",l.a.createElement("i",{className:"iconfont iconiconfront-69"})))),r&&l.a.createElement(E,{content:c,isShowAnswer:!0}),l.a.createElement(p,null))}}]),t}(i.PureComponent),f=l.a.memo(function(e){var t=e.options,a=e.showCorrect;return l.a.createElement("ul",{className:"options"},t.map(function(e,t){return l.a.createElement("li",{key:t,className:u()("option",{active:1===e.is_ans&&a})},l.a.createElement("span",{className:"alphabet"},String.fromCharCode(65+t)),e.des)}))}),E=l.a.memo(function(e){var t=e.content,a=e.isShowAnswer;return l.a.createElement("div",{className:u()("answer",{scale:a})},l.a.createElement("p",{className:"legend"},"\u89e3\u6790"),l.a.createElement("p",{className:"content"},t))})}}]);
//# sourceMappingURL=Examination.04d34ba8.chunk.js.map