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
9.9 KiB

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[5572],{50382:function(e,n,t){t.d(n,{Z:function(){return o}});var s=t(5891),a=t(59301),i={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 a.createElement(r.Z,(0,s.Z)({},e,{ref:n,icon:i}))};var o=a.forwardRef(l)},40159:function(e,n,t){t.r(n),t.d(n,{default:function(){return q}});var s=t(82242),a=t.n(s),i=t(7557),r=t.n(i),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(8785),v=t(96865),h=t(73782),x=t(6848),g="platform___ZEF0X",b="bg___RWLWw",_="banner___JVLgl",j="name___wguCW",C="card___naaKO",y="input___mOhWZ",w="in___YUJLX",E="r___qnVjP",N="case___LFJ1x",O="li___QMzLz",Z="des___DruAg",k="title___BCcq_",z="s___C669F",P="t___JHWlW",M=t(16644),S=t(92911),L=t(94334),R=t(62945),$=t.n(R),B=t(42930),A=t.p+"static/b1.13c26e4c.png",T=t.p+"static/b2.b8df7e92.png",D=t(37712),I=["user"],q=(0,m.connect)((function(e){return{user:e.user}}))((function(e){e.user,p()(e,I);var n=(0,f.useState)(""),t=u()(n,2),s=t[0],i=t[1],l=(0,f.useState)(!0),c=u()(l,2),d=c[0],R=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 R(!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)||[]),R(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),G=[{path:"",image_url:A},{path:"",image_url:T}];return(0,D.jsx)("section",{className:g,children:(0,D.jsxs)(v.Z,{loading:d,active:!0,paragraph:{rows:5},children:[(0,D.jsx)("div",{className:b,children:(0,D.jsxs)("div",{className:_,children:[(0,D.jsx)("div",{style:{height:100}}),(0,D.jsx)("div",{className:j,children:"国家高职教育示范应用平台"}),(0,D.jsxs)("div",{className:C,children:[(0,D.jsxs)("div",{className:y,children:[(0,D.jsx)(h.Z,{value:s,onChange:function(e){return i(e.target.value)},placeholder:"请输入课程名称或教师姓名",className:w}),!!s&&(0,D.jsx)("b",{onClick:function(){return i("")},className:"iconfont icon-guanbi7"}),(0,D.jsx)("div",{onClick:function(){return m.history.push("/search?value=".concat(s,"&tabs=subject"))},className:E,children:(0,D.jsx)("i",{className:"iconfont icon-sousuo8"})})]}),(0,D.jsx)("div",{className:"swiperEducation",children:(0,D.jsx)($(),a()(a()({},{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,D.jsx)("div",{onClick:function(){e.path&&(0,B.xg)(e.path)},children:(0,D.jsx)("div",{style:{cursor:e.path?"pointer":"default"},children:(0,D.jsx)("img",{width:1140,height:326,src:e.image_url,alt:""})})})}))}))})]})]})}),(0,D.jsxs)("div",{className:N,children:[(0,D.jsxs)("div",{className:j,children:[(0,D.jsx)("span",{children:"在线精品课"}),(0,D.jsx)("span",{}),(0,D.jsx)("div",{onClick:function(){return m.history.push("/paths")},children:"+ 查看更多"})]}),(0,D.jsx)("aside",{children:W.length?W.map((function(e,n){return(0,D.jsxs)("a",{href:"/paths/".concat(e.identifier),target:"_blank",className:O,children:[(0,D.jsx)("img",{src:"".concat(L.Z.IMG_SERVER,"/").concat(e.image_url)}),(0,D.jsxs)("div",{className:Z,children:[(0,D.jsx)(x.Z,{title:e.name,children:(0,D.jsx)("div",{className:k,children:e.name})}),(0,D.jsx)("div",{className:z,children:e.real_name||"-"}),(0,D.jsx)("div",{className:z,children:e.discipline||"-"}),(0,D.jsx)("div",{className:z,children:e.sub_discipline||"-"}),(0,D.jsx)("div",{className:P,children:"智慧职教"})]})]},n)})):(0,D.jsx)(M.Z,{styles:{margin:"100px auto"}})})]})]})})}))},73782:function(e,n,t){t.d(n,{Z:function(){return S}});var s=t(92310),a=t.n(s),i=t(59301),r=t(36355),l=t(32441),o=t(9937);var c=e=>{const{getPrefixCls:n,direction:t}=(0,i.useContext)(r.E_),{prefixCls:s,className:c}=e,u=n("input-group",s),d=n("input"),[p,f]=(0,o.ZP)(d),m=a()(u,{[`${u}-lg`]:"large"===e.size,[`${u}-sm`]:"small"===e.size,[`${u}-compact`]:e.compact,[`${u}-rtl`]:"rtl"===t},f,c),v=(0,i.useContext)(l.aM),h=(0,i.useMemo)((()=>Object.assign(Object.assign({},v),{isFormItemInput:!1})),[v]);return p(i.createElement("span",{className:m,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},i.createElement(l.aM.Provider,{value:h},e.children)))},u=t(9432),d=t(5891),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 i.createElement(f.Z,(0,d.Z)({},e,{ref:n,icon:p}))};var v=i.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 a=0;for(s=Object.getOwnPropertySymbols(e);a<s.length;a++)n.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(t[s[a]]=e[s[a]])}return t};const j=e=>e?i.createElement(h.Z,null):i.createElement(v,null),C={click:"onClick",hover:"onMouseOver"};var y=i.forwardRef(((e,n)=>{const{visibilityToggle:t=!0}=e,s="object"==typeof t&&void 0!==t.visible,[l,o]=(0,i.useState)((()=>!!s&&t.visible)),c=(0,i.useRef)(null);i.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,y=_(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:w}=i.useContext(r.E_),E=w("input",v),N=w("input-password",m),O=t&&(n=>{const{action:t="click",iconRender:s=j}=e,a=C[t]||"",r=s(l),o={[a]:p,className:`${n}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return i.cloneElement(i.isValidElement(r)?r:i.createElement("span",null,r),o)})(N),Z=a()(N,f,{[`${N}-${h}`]:!!h}),k=Object.assign(Object.assign({},(0,x.Z)(y,["suffix","iconRender","visibilityToggle"])),{type:l?"text":"password",className:Z,prefixCls:E,suffix:O});return h&&(k.size=h),i.createElement(u.Z,Object.assign({ref:(0,g.sQ)(n,c)},k))})),w=t(42653),E=t(92343),N=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 a=0;for(s=Object.getOwnPropertySymbols(e);a<s.length;a++)n.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(t[s[a]]=e[s[a]])}return t};var z=i.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:C}=i.useContext(r.E_),y=i.useRef(!1),z=j("input-search",t),P=j("input",s),{compactSize:M}=(0,Z.ri)(z,C),S=(0,O.Z)((e=>{var n;return null!==(n=null!=o?o:M)&&void 0!==n?n:e})),L=i.useRef(null),R=e=>{var n;document.activeElement===(null===(n=L.current)||void 0===n?void 0:n.input)&&e.preventDefault()},$=e=>{var n,t;v&&v(null===(t=null===(n=L.current)||void 0===n?void 0:n.input)||void 0===t?void 0:t.value,e,{source:"input"})},B="boolean"==typeof d?i.createElement(w.Z,null):null,A=`${z}-button`;let T;const D=d||{},I=D.type&&!0===D.type.__ANT_BUTTON;T=I||"button"===D.type?(0,E.Tm)(D,Object.assign({onMouseDown:R,onClick:e=>{var n,t;null===(t=null===(n=null==D?void 0:D.props)||void 0===n?void 0:n.onClick)||void 0===t||t.call(n,e),$(e)},key:"enterButton"},I?{className:A,size:S}:{})):i.createElement(N.ZP,{className:A,type:d?"primary":void 0,size:S,disabled:m,key:"enterButton",onMouseDown:R,onClick:$,loading:f,icon:B},d),p&&(T=[T,(0,E.Tm)(p,{key:"addonAfter"})]);const q=a()(z,{[`${z}-rtl`]:"rtl"===C,[`${z}-${S}`]:!!S,[`${z}-with-button`]:!!d},l);return i.createElement(u.Z,Object.assign({ref:(0,g.sQ)(L,n),onPressEnter:e=>{y.current||f||$(e)}},_,{size:S,onCompositionStart:e=>{y.current=!0,null==x||x(e)},onCompositionEnd:e=>{y.current=!1,null==b||b(e)},prefixCls:P,addonAfter:T,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}))})),P=t(1643);const M=u.Z;M.Group=c,M.Search=z,M.TextArea=P.Z,M.Password=y;var S=M}}]);