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
5.6 KiB
1 line
5.6 KiB
webpackJsonp([176],{3721:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(69),r=(a.n(n),a(70)),o=a.n(r),s=a(797),l=(a.n(s),a(798)),c=a.n(l),i=a(162),u=(a.n(i),a(161)),m=a.n(u),f=a(0),p=a.n(f),h=(a(45),a(1864)),d=(a.n(h),a(12)),g=a.n(d),b=a(5),v=a(3722),y=(a.n(v),function(e,t,a){return t&&E(e.prototype,t),a&&E(e,a),e});function E(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object(b.Q)(),Object(b.Q)("/editormd/lib/"),window.$;var x=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(k,f.Component),y(k,[{key:"componentDidMount",value:function(){var t=this,a=this.props.match.params.shixunId,e="/shixuns/"+a+"/fork_list.json";g.a.get(e,{params:{page:1,limit:8}}).then(function(e){t.setState({shixunsID:a,shixuns:e.data.shixuns,total_count:e.data.total_count,Forkvisible:!1})}).catch(function(e){console.log(e)})}},{key:"render",value:function(){function a(e){var t=e.defaultValue,a=function(e,t){var a={};for(var n in e)0<=t.indexOf(n)||Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}(e,["defaultValue"]),n=t;return p.a.createElement(h.Rating,Object.assign({},a,{value:n}))}var e=this.state,t=e.shixuns,n=e.total_count,r=e.shixunsID,s=e.Forkvisible,l=e.Forkcurrent;return p.a.createElement(p.a.Fragment,null,p.a.createElement("div",{className:"educontent mb20"},p.a.createElement("div",{className:"edu-back-white padding20 clearfix mt30"},p.a.createElement("span",{className:"fl font-16"},"Fork实训列表"),p.a.createElement("a",{href:"/shixuns/"+r+"/challenges",className:"font-16 color-grey-9 fr"},"返回")),p.a.createElement("style",null,"\n\t\t\t\t\t\t\t.taglistleft{\n\t\t\t\t\t\t\t\tposition: absolute;\n\t\t\t\t\t\t\t\tleft: 10px;\n\t\t\t\t\t\t\t\tbottom: 118px;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t"),p.a.createElement(o.a,{spinning:s,size:"large",style:{marginTop:"15%"}},p.a.createElement("div",{className:"mt30 square-list clearfix mh320"},void 0===t?" ":t.map(function(e,t){return p.a.createElement("div",{className:"square-Item",key:t,id:e.id},p.a.createElement("div",{className:"tag-green taglistleft"},p.a.createElement("span",{className:"tag-name"}," ",e.tag_name)),p.a.createElement("div",{className:!1===e.power?"closeSquare":"none"},p.a.createElement("img",{src:Object(b.M)("images/educoder/icon/lockclose.svg"),className:"mt80 mb25"}),p.a.createElement("p",{className:"font-14 color-white"},"非试用内容,需要授权")),p.a.createElement("a",{href:"/shixuns/"+e.identifier+"/challenges",className:"square-img",target:"_blank"},p.a.createElement("img",{src:"/"+e.pic})),p.a.createElement("div",{className:"square-main"},p.a.createElement("p",{className:"task-hide"},p.a.createElement("a",{href:"/shixuns/"+e.identifier+"/challenges",target:"_blank",className:"justify color-grey-name"},e.name)),p.a.createElement("p",{className:"clearfix mt8 ml-3"},p.a.createElement("span",{className:"rateYoStar fl",style:{padding:"0px",height:"20px",lineHeight:"19px",cursor:"default"},title:""},p.a.createElement(a,{key:t,allowHalf:!0,defaultValue:null===e.score_info?5:e.score_info,disabled:!0})),p.a.createElement("span",{className:"fl ml25 font-12 color-grey-9 lineh-12 mt4"},null===e.score_info?"5分":e.score_info+"分")),p.a.createElement("p",{className:"clearfix mt8 font-12 color-grey-B4"},p.a.createElement(m.a,{placement:"bottom",title:"关卡"},p.a.createElement("span",{className:"mr10 fl squareIconSpan"},p.a.createElement("i",{className:"iconfont icon-shixunguanqia fl mr3"}),e.challenges_count)),p.a.createElement(m.a,{placement:"bottom",title:"学习人数"},p.a.createElement("span",{className:"mr10 fl squareIconSpan",style:{display:0===e.stu_num?"none":"block"}},p.a.createElement("i",{className:"iconfont icon-chengyuan fl mr3"}),e.stu_num)),p.a.createElement("span",{className:"fr color-grey-B3 squareIconSpan"},e.level))))})),p.a.createElement("div",{className:"educontent mb80 edu-txt-center mt10",style:{display:8<n?"block":"none"}},p.a.createElement(c.a,{showQuickJumper:!0,defaultCurrent:1,pageSize:8,total:n,current:l,style:{display:n<9?"none":"block"},onChange:this.TPMForkonChange})))))}}]),k);function k(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,k);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,e));return n.TPMForkonChange=function(t){var a=n.props.match.params.shixunId;n.setState({Forkvisible:!0});var e="/shixuns/"+a+"/fork_list.json";g.a.get(e,{params:{page:t,limit:8}}).then(function(e){n.setState({shixunsID:a,shixuns:e.data.shixuns,total_count:e.data.total_count,Forkvisible:!1,Forkcurrent:t})}).catch(function(e){console.log(e)})},n.state={shixuns:void 0,total_count:0,shixunsID:void 0,Forkvisible:!0,Forkcurrent:1},n}t.default=x},3722:function(e,t,a){var n=a(3723);"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!1,transform:void 0};a(281)(n,r);n.locals&&(e.exports=n.locals)},3723:function(e,t,a){(e.exports=a(280)(!0)).push([e.i,".ml105{margin-left:15%}","",{version:3,sources:["/Users/yangshuming/Desktop/new__educode/educoder/public/react/src/modules/tpm/TPMFork/shixunCss/fork.css"],names:[],mappings:"AAAA,OACI,eAAiB,CACpB",file:"fork.css",sourcesContent:[".ml105 {\r\n margin-left: 15%;\r\n}"],sourceRoot:""}])}}); |