filesbox/web/dist/80203.e6d9ee26.async.js

42 lines
23 KiB
JavaScript
Raw Permalink Normal View History

2024-07-26 06:10:54 +00:00
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[80203],{96278:function(w){w.exports={root:"root___7VXfh",colorWeak:"colorWeak___2fQ5G","ant-layout":"ant-layout___2lk2i",globalSpin:"globalSpin___3wjkL","ant-table":"ant-table___3MoMQ","ant-table-thead":"ant-table-thead___2F4eD","ant-table-tbody":"ant-table-tbody___1iFAX",formBox:"formBox___1MR6m",hrefModal:"hrefModal___GOUPi",shop:"shop___3KrmS"}},64752:function(){},99428:function(w,B,s){"use strict";s.r(B),s.d(B,{default:function(){return C}});var I=s(71194),R=s(50146),Z=s(13062),K=s(71230),te=s(89032),_=s(15746),se=s(63185),V=s(9676),H=s(36877),X=s(18480),ne=s(34792),$=s(48086),L=s(43358),J=s(34041),U=s(67294),S=s(28216),g=s(96278),m=s.n(g),N=s(5283),Y=s.n(N),z=s(41273),M=s(56173),r=s(85893),P,h,A=J.Z.Option,c=J.Z.OptGroup,C=(P=(0,S.$j)(F=>{var e=F.commondesign,a=F.page,l=F.globaldesign;return{commondesign:e,page:a,globaldesign:l}}),P(h=class extends U.PureComponent{constructor(){super(...arguments);this.state={visible:!1,styleType:"xtwlb",classify:[],startNum:1,endNum:10,list:[],options:[],courseId:"",classOptions:[],chapterOptions:[],courseWareIds:[],loading:!1,sPriceDate:0,sNum:0,sDesc:0,sTeacher:0},this.getClassifyList=()=>{var e=this.props.dispatch;e({type:"page/getClassifyList",payload:{needShare:!0},callback:a=>{this.setState({options:a.data})}})},this.updataDomCallBack=e=>{var a=this,l=this.props.differenceType;l==1?a.pcDom(e):a.mobileDom(e)},this.pcDom=e=>{var a=this,l=this.props.commondesign,v=l.Courseware,t=v.element,E=v.callback,b=v.callClose,u="",y;switch(t.css("height","auto"),e.styleType){case"xtwlb":t.css({width:"100%",left:0}),u='<ul class="xtwlb newxtwlb">',y=n=>`<li>
<a href="`.concat((0,M.II)(n,a),`">
<div class="coverBox">
<div class="maskBox">
<img src="`).concat(n.thumb||n.avatar,`"/>
<div class="coverMask">`).concat(parseInt(e.sDesc)==1?n.introduce:"",`</div>
</div>
</div>
<p class="title">`).concat(n.courseWareName,`</p>
`).concat(parseInt(e.sTeacher)==1?'<p class="teacher">'.concat(n.realName,"</p>"):"",`
<p class="info">
`).concat(parseInt(e.sNum)==1?'<span class="sNum"><i class="iconfont icon-eye"></i>'.concat(n.popularityCount,"</span>"):"",`
`).concat(parseInt(e.sPriceDate)==1?'<span class="sPriceDate">'.concat(n.price?"\uFFE5".concat(JSON.parse(n.price)[0]/100,"/").concat(JSON.parse(n.price)[1],"\u5929"):"\u514D\u8D39","</span>"):"",`
</p>
</a>
</li>`);break;case"twlb":t.css({width:"100%",left:0}),u='<ul class="twlb newtwlb">',y=n=>`<li>
<a href=`.concat((0,M.II)(n,a),`>
<div class="coverBox">
<img src="`).concat(n.cover,`"/>
</div>
<div class="rightBox">
<p><span class="title">`).concat(n.courseWareName,"</span>").concat(parseInt(e.sPriceDate)==1?'<span class="sPriceDate">'.concat(n.price?"\uFFE5".concat(JSON.parse(n.price)[0]/100,"/").concat(JSON.parse(n.price)[1],"\u5929"):"\u514D\u8D39","</span>"):"",`</p>
`).concat(parseInt(e.sDesc)==1?'<p class="introduce">'.concat(n.introduce,"</p>"):"",`
`).concat(parseInt(e.sTeacher)==1?'<p class="teacher">'.concat(n.realName,"</p>"):"",`
<p class="info">
`).concat(parseInt(e.sNum)==1?'<span class="sNum"><i class="iconfont icon-eye"></i>'.concat(n.popularityCount,"</span>"):"",`
</p>
</div>
</a>
</li>`);break;case"btrqlb":t.css({width:"100%",left:0}),u='<ul class="btrqlb newbtrqlb">',y=n=>`<li>
<a href=`.concat((0,M.II)(n,a),`>
<div class="rightBox">
<p><span class="title">`).concat(n.courseWareName,"</span>").concat(parseInt(e.sPriceDate)==1?'<span class="sPriceDate">'.concat(n.price?"\uFFE5".concat(JSON.parse(n.price)[0]/100,"/").concat(JSON.parse(n.price)[1],"\u5929"):"\u514D\u8D39","</span>"):"",`</p>
`).concat(parseInt(e.sDesc)==1?'<p class="introduce"> '.concat(n.introduce," </p>"):"",`
`).concat(parseInt(e.sTeacher)==1?'<p class="teacher">'.concat(n.realName,"</p>"):"",`
<p class="info">
`).concat(parseInt(e.sNum)==1?'<span class="sNum"><i class="iconfont icon-eye"></i>'.concat(n.popularityCount,"</span>"):"",`
</p>
</div>
</a>
</li>`);break;default:}for(var O=0,f=e.list.length;O<f;O++){var d=e.list[O];u+=y(d)}u+="</ul>";var D=t.find(".boxHtml");D.length>0?D.html(u):t.html('<div class="boxHtml">'+u+"</div>"),t.css({backgroundColor:"#fff"}),t.attr("data-courseware",JSON.stringify({styleType:e.styleType,classify:e.classify,courseId:e.courseId,courseWareIds:e.courseWareIds,sPriceDate:e.sPriceDate,sNum:e.sNum,sDesc:e.sDesc,sTeacher:e.sTeacher}))},this.mobileDom=e=>{var a=this,l=this.props.commondesign,v=l.Courseware,t=v.element,E=v.callback,b=v.callClose,u="",y,O=parseInt(e.sNum),f=parseInt(e.sTeacher);switch(t.css({height:"auto"}),e.styleType){case"wzlb":u='<ul class="wzlb">',y=o=>'<li><a href="'+(0,M.II)(o,a)+'"><span class="title">'+o.courseWareName+'</span><span class="teacher">'+o.realName+"</span></a></li>";break;case"xtwlb":t.css({width:"100%",left:0}),u='<ul class="xtwlb">',y=o=>'<li><a href="'+(0,M.II)(o,a)+'"><img src="'+o.cover+'"/><span class="title">'+o.courseWareName+"</span>"+(f==1?'<span class="teacher">'+o.realName+"</span>":"")+(O==1?'<span class="curren">'+o.popularityCount+"</span>":"")+"</a></li>";break;case"twlb":t.css({width:"100%",left:0}),u='<ul class="twlb">',y=o=>'<li><a href="'+(0,M.II)(o,a)+'"><img src="'+o.cover+'"/><span class="rser"><span class="title">'+o.courseWareName+'</span><span class="introduce">'+o.introduce+"</span>"+(f==1?'<span class="teacher">'+o.realName+"</span>":"")+(O==1?'<span class="curren">'+o.popularityCount+"</span>":"")+"</span></a></li>";break;case"ttlb":t.css({width:"100%",left:0}),u='<ul class="ttlb">',u+='<li class="one"><a href="'+(0,M.II)(e.list[0])+'"><img src="'+e.list[0].cover+'"/><span class="rser"><span class="title">'+e.list[0].courseWareName+'</span><span class="teacher">'+e.list[0].realName+'</span><span class="introduce" style="display:block;">'+e.list[0].introduce+"</span></span></a></li>",y=o=>'<li><a href="'+(0,M.II)(o,a)+'"><span class="title">'+o.courseWareName+'</span><span class="teacher">'+o.realName+"</span></a></li>";break;case"btrqlb":t.css({width:"100%",left:0}),u='<ul class="btrqlb">',y=o=>'<li><a href="'+(0,M.II)(o,a)+'"><span class="title">'+o.courseWareName+'</span><span class="introduce">'+o.introduce+"</span>"+(f==1?'<span class="teacher">'+o.realName+"</span>":"")+(O==1?'<span class="curren">'+o.popularityCount+"</span>":"")+"</a></li>";break;default:}for(var d=0,D=e.list.length;d<D;d++){var n=e.list[d];u+=y(n)}var i=t.find(".boxHtml");i.length>0?i.html(u):t.html('<div class="boxHtml">'+u+"</div>"),t.css({backgroundColor:"#fff"}),t.attr("data-courseware",JSON.stringify({styleType:e.styleType,classify:e.classify,courseId:e.courseId,courseWareIds:e.courseWareIds,sNum:e.sNum,sTeacher:e.sTeacher}))},this.show=e=>{var a=this,l=this.props.dispatch;e?(e=JSON.parse(e),this.setState({styleType:e.styleType,classify:e.classify,courseId:e.courseId,courseWareIds:e.courseWareIds,startNum:e.startNum,endNum:e.endNum,sPriceDate:e.sPriceDate||0,sNum:e.sNum||0,sDesc:e.sDesc||0,sTeacher:e.sTeacher||0}),l({type:"page/getCourseListByParams",payload:{mainClassify:e.classify[0],childClassify:e.classify[1],currentPage:1,pageSize:1e3},callback:v=>{a.setState({classOptions:Array.isArray(v.data.list)?v.data.list:[]})}}),e.courseId&&l({type:"page/getCourseWareList",payload:{currentPage:1,pageSize:1e3,courseId:e.courseId},callback:v=>{v.success&&this.setState({chapterOptions:v.data.list})}})):this.setState({styleType:"xtwlb",classify:[],list:[],courseId:"",courseWareIds:[],sPriceDate:0,sNum:0,sDesc:0,sTeacher:0})},this.renderStyle=()=>{var e=this.state.styleType,a=l=>{l.target.classList[0]=="styleli"&&this.setState({styleType:l.target.dataset.type})};return(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"label",children:"\u98CE\u683C\uFF1A"}),(0,r.jsxs)("div",{className:"content",onClick:a,children:[!1,(0,r.jsx)("div",{className:"styleli xtwlb "+(e=="xtwlb"?"on":""),"data-type":"xtwlb"}),(0,r.jsx)("div",{className:"styleli twlb "+(e=="twlb"?"on":""),"data-type":"twlb"}),!1,(0,r.jsx)("div",{className:"styleli btrqlb "+(e=="btrqlb"?"on":""),"data-type":"btrqlb"})]})]}