Files

33 lines
48 KiB
Plaintext
Raw Normal View History

2026-11-06 08:29:11 +08:00
0\r§mûüYÁBhttps://now.bdstatic.com/store/v2/e8a15f8/fe-cms/46416aa/js/bjCollege.25a2e7e23bb17770.js"use strict";(self.webpackChunkFeReactApp=self.webpackChunkFeReactApp||[]).push([["6195"],{955644:function(e,t,s){s.d(t,{A:function(){return p}}),s(695856),s(201405),s(428995);var r=s(491188),a=s(728359),i=s(730681),n=s(100113),c=s.n(n),l=s(696157),o=s(945091);function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var s=0,r=Array(t);s<t;s++)r[s]=e[s];return r}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var s=0,r=Array(t);s<t;s++)r[s]=e[s];return r}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var s,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],n=!0,c=!1;try{for(a=a.call(e);!(n=(s=a.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){c=!0,r=e}finally{try{n||null==a.return||a.return()}finally{if(c)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var s=Object.prototype.toString.call(e).slice(8,-1);if("Object"===s&&e.constructor&&(s=e.constructor.name),"Map"===s||"Set"===s)return Array.from(s);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return d(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var p=e=>{var t=e||{},s=t.data,n=s.url,d=s.course_id,p=s.cover,g=s.type,b=s.level,m=s.title,v=s.view_count,f=s.duration,x=s.iscollected,y=t.needExposure,j=t.onClickCallback,C=void 0===j?()=>{}:j,_=t.onCollectCallback,w=void 0===_?()=>{}:_,k=t.itemExposeCb,S=void 0===k?()=>{}:k,N=t.completeCourseAPI,A=void 0===N?"/activity/bjhcollege/completeCourse":N,O=t.needCollect,P=t.className,T=h((0,a.useState)("0px"),2),I=T[0],D=T[1],L=h((0,a.useState)(null),2),R=L[0];L[1];var F=(0,a.useRef)(null),E=()=>{d&&l.request.get(A,{course_id:d}),C&&C()};(0,a.useEffect)(()=>{var e;e=0,b&&R&&(e=R.clientWidth+4),D("".concat(e,"px")),y&&((e,t)=>{if(window.IntersectionObserver){var s=(null==t?void 0:t.observerOptions)||{threshold:[0,.5,1]},r=null;(r=new IntersectionObserver(a=>{var i=(function(e){if(Array.isArray(e))return e}(a)||function(e,t){var s,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],n=!0,c=!1;try{for(a=a.call(e);!(n=(s=a.next()).done)&&(i.push(s.value),1!==i.length);n=!0);}catch(e){c=!0,r=e}finally{try{n||null==a.return||a.return()}finally{if(c)throw r}}return i}}(a,1)||function(e,t){if(e){if("string"==typeof e)return u(e,1);var s=Object.prototype.toString.call(e).slice(8,-1);if("Object"===s&&e.constructor&&(s=e.constructor.name),"Map"===s||"Set"===s)return Array.from(s);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return u(e,1)}}(a,1)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];i.isIntersecting?i.intersectionRatio>=s.threshold[1]&&("expose"!==e.expose&&t.onExpose(e),e.expose="expose",!t.always&&"function"!=typeof t.onHide&&r&&r.unobserve(e)):"function"==typeof t.onHide&&"expose"===e.expose&&(t.onHide(e),e.expose=void 0,!t.always&&r&&r.unobserve(e))},s)).observe(e)}})(F.current,{onExpose(){S&&S(d)},onHide(){}})},[]);var V=(0,a.useCallback)(()=>{window.open(n,"_blank"),E()},[n,E]),q=(0,a.useCallback)(()=>{var e=x?o.kV.cancelcollection:o.kV.collection;l.request.get(e,{course_id:d}).then(e=>{0===e.errno?w():i.message.error(e.errmsg)}).catch()},[x,d]);return(0,r.jsx)("div",{className:c()("client_components_courseItem component-course-item",void 0===P?"":P),ref:F,children:(0,r.jsxs)("div",{className:"course-item",children:[(0,r.jsxs)("div",{className:"wrap-cover",onClick:V,children:[(0,r.jsx)("div",{className:"img-div",style:{backgroundImage:'url("'.concat(p,'")')}}),(0,r.jsx)("div",{className:"tip",children:(()=>{switch(g){case"video":return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("img",{className:"video",src:"https:/
//# sourceMappingURL=bjCollege.25a2e7e23bb17770.js.mapØA
—EoúômÖß
GET (â È"
accept-rangesbytes"(
access-control-allow-credentialstrue"
access-control-allow-origin*"
age3642"G
cache-control6public, max-age=31536000, s-maxage=31536000, immutable"
content-encodingbr"'
content-md5larB+K94r9KWHzxEZiUOCw=="5
content-type%application/javascript; charset=utf-8"%
dateThu, 05 Nov 2026 09:11:37 GMT"*
etag""95aac1f8af78afd2961f3c4466250e0b""(
expiresSun, 08 Nov 2026 07:55:51 GMT".
last-modifiedThu, 05 Nov 2026 06:18:38 GMT"(
ohc-cache-hitcz7cm60 [2], czix94 [2]"
ohc-file-size11116"6
ohc-global-saved-timeThu, 05 Nov 2026 07:55:51 GMT"
server JSP3/2.0.14"+
strict-transport-securitymax-age=259200"
timing-allow-origin*"!
x-bce-content-crc32
3755371791""
x-bce-content-crc32c
1489091404"/
x-bce-content-crc64ecma17513547318014200542"j