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.
NewEduCoderBuild/p__Paths__HigherVocationalE...

1 line
11 KiB

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[5572],{50382:function(e,n,t){t.d(n,{Z:function(){return o}});var s=t(19973),i=t(59301),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},r=t(22589),l=function(e,n){return i.createElement(r.Z,(0,s.Z)({},e,{ref:n,icon:a}))};var o=i.forwardRef(l)},13261:function(e,n,t){var s=t(82242),i=t.n(s),a=(t(59301),t(19779)),r=t(3113),l=t(37712);n.Z=function(e){var n=e.img,t=e.buttonProps,s=void 0===t?{}:t,o=e.styles,c=void 0===o?{}:o,u=e.customText,d=e.ButtonText,p=e.ButtonClick,f=e.Buttonclass,m=e.ButtonTwo,v=e.imgStyles,h=e.loading,x=void 0!==h&&h;return(0,l.jsxs)("section",{className:"tc animated fadeIn",style:i()(i()({},{color:"#999",margin:"100px auto",visibility:x?"hidden":"visible"}),c),children:[(0,l.jsx)("img",{src:n||a,style:i()({width:288,height:200},v)}),(0,l.jsx)("p",{className:"mt20 font14",children:u||"暂时还没有相关数据哦!"}),d&&(0,l.jsx)(r.ZP,i()(i()({className:f,onClick:p},s),{},{children:d})),m&&m]})}},36588:function(e,n,t){t.r(n),t.d(n,{default:function(){return q}});var s=t(82242),i=t.n(s),a=t(7557),r=t.n(a),l=t(41498),o=t.n(l),c=t(79800),u=t.n(c),d=t(39647),p=t.n(d),f=t(59301),m=t(65363),v=t(96865),h=t(73782),x=t(6848),g="platform___ZEF0X",b="bg___RWLWw",_="banner___JVLgl",j="name___wguCW",y="card___naaKO",C="input___mOhWZ",w="in___YUJLX",N="r___qnVjP",E="case___LFJ1x",O="li___QMzLz",Z="des___DruAg",k="title___BCcq_",P="s___C669F",z="t___JHWlW",M=t(13261),S=t(79311),B=t(15309),L=t(62945),R=t.n(L),$=t(27627),T=t.p+"static/b1.13c26e4c.png",A=t.p+"static/b2.b8df7e92.png",I=t(37712),D=["user"],q=(0,m.connect)((function(e){return{user:e.user}}))((function(e){e.user,p()(e,D);var n=(0,f.useState)(""),t=u()(n,2),s=t[0],a=t[1],l=(0,f.useState)(!0),c=u()(l,2),d=c[0],L=c[1],q=(0,f.useState)(0),F=u()(q,2),Q=(F[0],F[1],(0,f.useState)([])),V=u()(Q,2),W=V[0],J=V[1];(0,f.useEffect)((function(){U()}),[]);var U=function(){var e=o()(r()().mark((function e(){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return L(!0),e.next=3,(0,S.ZP)("/api/home/child_platform.json",{method:"get",params:{school_level:1}});case 3:0===(n=e.sent).status&&J((null==n?void 0:n.subjects)||[]),L(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),G=[{path:"",image_url:T},{path:"",image_url:A}];return(0,I.jsx)("section",{className:g,children:(0,I.jsxs)(v.Z,{loading:d,active:!0,paragraph:{rows:5},children:[(0,I.jsx)("div",{className:b,children:(0,I.jsxs)("div",{className:_,children:[(0,I.jsx)("div",{style:{height:100}}),(0,I.jsx)("div",{className:j,children:"国家高职教育示范应用平台"}),(0,I.jsxs)("div",{className:y,children:[(0,I.jsxs)("div",{className:C,children:[(0,I.jsx)(h.Z,{value:s,onChange:function(e){return a(e.target.value)},placeholder:"请输入课程名称或教师姓名",className:w}),!!s&&(0,I.jsx)("b",{onClick:function(){return a("")},className:"iconfont icon-guanbi7"}),(0,I.jsx)("div",{onClick:function(){return m.history.push("/search?value=".concat(s,"&tabs=subject"))},className:N,children:(0,I.jsx)("i",{className:"iconfont icon-sousuo8"})})]}),(0,I.jsx)("div",{className:"swiperEducation",children:(0,I.jsx)(R(),i()(i()({},{loop:!0,slidesPerView:1,noSwiping:!0,autoplay:{delay:5e3,disableOnInteraction:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},pagination:{el:".swiper-pagination",clickable:!0}}),{},{children:null==G?void 0:G.map((function(e){return(0,I.jsx)("div",{onClick:function(){e.path&&(0,$.xg)(e.path)},children:(0,I.jsx)("div",{style:{cursor:e.path?"pointer":"default"},children:(0,I.jsx)("img",{width:1140,height:326,src:e.image_url,alt:""})})})}))}))})]})]})}),(0,I.jsxs)("div",{className:E,children:[(0,I.jsxs)("div",{className:j,children:[(0,I.jsx)("span",{children:"在线精品课"}),(0,I.jsx)("span",{}),(0,I.jsx)("div",{onClick:function(){return m.history.push("/paths")},children:"+ 查看更多"})]}),(0,I.jsx)("aside",{children:W.length?W.map((function(e,n){return(0,I.jsxs)("a",{href:"/paths/".concat(e.identifier),target:"_blank",className:O,children:[(0,I.jsx)("img",{src:"".concat(B.Z.IMG_SERVER,"/").concat(e.image_url)}),(0,I.jsxs)("div",{className:Z,children:[(0,I.jsx)(x.Z,{title:e.name,children:(0,I.jsx)("div",{className:k,children:e.name})}),(0,I.jsx)("div",{className:P,children:e.real_name||"-"}),(0,I.jsx)("div",{className:P,children:e.discipline||"-"}),(0,I.jsx)("div",{className:P,children:e.sub_discipline||"-"}),(0,I.jsx)("div",{className:z,children:"智慧职教"})]})]},n)})):(0,I.jsx)(M.Z,{styles:{margin:"100px auto"}})})]})]})})}))},73782:function(e,n,t){t.d(n,{Z:function(){return S}});var s=t(92310),i=t.n(s),a=t(59301),r=t(36355),l=t(32441),o=t(9937);var c=e=>{const{getPrefixCls:n,direction:t}=(0,a.useContext)(r.E_),{prefixCls:s,className:c}=e,u=n("input-group",s),d=n("input"),[p,f]=(0,o.ZP)(d),m=i()(u,{[`${u}-lg`]:"large"===e.size,[`${u}-sm`]:"small"===e.size,[`${u}-compact`]:e.compact,[`${u}-rtl`]:"rtl"===t},f,c),v=(0,a.useContext)(l.aM),h=(0,a.useMemo)((()=>Object.assign(Object.assign({},v),{isFormItemInput:!1})),[v]);return p(a.createElement("span",{className:m,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},a.createElement(l.aM.Provider,{value:h},e.children)))},u=t(9432),d=t(19973),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},f=t(22589),m=function(e,n){return a.createElement(f.Z,(0,d.Z)({},e,{ref:n,icon:p}))};var v=a.forwardRef(m),h=t(50382),x=t(55405),g=t(25629),b=t(59412),_=function(e,n){var t={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&n.indexOf(s)<0&&(t[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(s=Object.getOwnPropertySymbols(e);i<s.length;i++)n.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(t[s[i]]=e[s[i]])}return t};const j=e=>e?a.createElement(h.Z,null):a.createElement(v,null),y={click:"onClick",hover:"onMouseOver"};var C=a.forwardRef(((e,n)=>{const{visibilityToggle:t=!0}=e,s="object"==typeof t&&void 0!==t.visible,[l,o]=(0,a.useState)((()=>!!s&&t.visible)),c=(0,a.useRef)(null);a.useEffect((()=>{s&&o(t.visible)}),[s,t]);const d=(0,b.Z)(c),p=()=>{const{disabled:n}=e;n||(l&&d(),o((e=>{var n;const s=!e;return"object"==typeof t&&(null===(n=t.onVisibleChange)||void 0===n||n.call(t,s)),s})))},{className:f,prefixCls:m,inputPrefixCls:v,size:h}=e,C=_(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:w}=a.useContext(r.E_),N=w("input",v),E=w("input-password",m),O=t&&(n=>{const{action:t="click",iconRender:s=j}=e,i=y[t]||"",r=s(l),o={[i]:p,className:`${n}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return a.cloneElement(a.isValidElement(r)?r:a.createElement("span",null,r),o)})(E),Z=i()(E,f,{[`${E}-${h}`]:!!h}),k=Object.assign(Object.assign({},(0,x.Z)(C,["suffix","iconRender","visibilityToggle"])),{type:l?"text":"password",className:Z,prefixCls:N,suffix:O});return h&&(k.size=h),a.createElement(u.Z,Object.assign({ref:(0,g.sQ)(n,c)},k))})),w=t(42653),N=t(92343),E=t(3113),O=t(19716),Z=t(33234),k=function(e,n){var t={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&n.indexOf(s)<0&&(t[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(s=Object.getOwnPropertySymbols(e);i<s.length;i++)n.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(t[s[i]]=e[s[i]])}return t};var P=a.forwardRef(((e,n)=>{const{prefixCls:t,inputPrefixCls:s,className:l,size:o,suffix:c,enterButton:d=!1,addonAfter:p,loading:f,disabled:m,onSearch:v,onChange:h,onCompositionStart:x,onCompositionEnd:b}=e,_=k(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:j,direction:y}=a.useContext(r.E_),C=a.useRef(!1),P=j("input-search",t),z=j("input",s),{compactSize:M}=(0,Z.ri)(P,y),S=(0,O.Z)((e=>{var n;return null!==(n=null!=o?o:M)&&void 0!==n?n:e})),B=a.useRef(null),L=e=>{var n;document.activeElement===(null===(n=B.current)||void 0===n?void 0:n.input)&&e.preventDefault()},R=e=>{var n,t;v&&v(null===(t=null===(n=B.current)||void 0===n?void 0:n.input)||void 0===t?void 0:t.value,e,{source:"input"})},$="boolean"==typeof d?a.createElement(w.Z,null):null,T=`${P}-button`;let A;const I=d||{},D=I.type&&!0===I.type.__ANT_BUTTON;A=D||"button"===I.type?(0,N.Tm)(I,Object.assign({onMouseDown:L,onClick:e=>{var n,t;null===(t=null===(n=null==I?void 0:I.props)||void 0===n?void 0:n.onClick)||void 0===t||t.call(n,e),R(e)},key:"enterButton"},D?{className:T,size:S}:{})):a.createElement(E.ZP,{className:T,type:d?"primary":void 0,size:S,disabled:m,key:"enterButton",onMouseDown:L,onClick:R,loading:f,icon:$},d),p&&(A=[A,(0,N.Tm)(p,{key:"addonAfter"})]);const q=i()(P,{[`${P}-rtl`]:"rtl"===y,[`${P}-${S}`]:!!S,[`${P}-with-button`]:!!d},l);return a.createElement(u.Z,Object.assign({ref:(0,g.sQ)(B,n),onPressEnter:e=>{C.current||f||R(e)}},_,{size:S,onCompositionStart:e=>{C.current=!0,null==x||x(e)},onCompositionEnd:e=>{C.current=!1,null==b||b(e)},prefixCls:z,addonAfter:A,suffix:c,onChange:e=>{e&&e.target&&"click"===e.type&&v&&v(e.target.value,e,{source:"clear"}),h&&h(e)},className:q,disabled:m}))})),z=t(1643);const M=u.Z;M.Group=c,M.Search=P,M.TextArea=z.Z,M.Password=C;var S=M}}]);