@x-edu/live-player 0.0.49 → 0.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/XEduLivePlayer.common.js +177 -243
- package/package.json +1 -1
|
@@ -2700,41 +2700,6 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
2700
2700
|
/* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
|
|
2701
2701
|
|
|
2702
2702
|
|
|
2703
|
-
/***/ }),
|
|
2704
|
-
|
|
2705
|
-
/***/ 2429:
|
|
2706
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2707
|
-
|
|
2708
|
-
"use strict";
|
|
2709
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3645);
|
|
2710
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
2711
|
-
// Imports
|
|
2712
|
-
|
|
2713
|
-
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
2714
|
-
// Module
|
|
2715
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".MobileListItem-module_mobileContainer_pKQh1{display:flex;flex-direction:column;background:#fff;border-radius:8px;overflow:hidden;height:100%}.MobileListItem-module_mobileCoverWrap_wkE2E{position:relative;width:100%;padding-top:56.25%;overflow:hidden;background:#f0f0f0}.MobileListItem-module_mobileCover_LFdCM{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;display:block}.MobileListItem-module_mobileContent_gMOFL{padding:12px;display:flex;flex-direction:column;flex:1}.MobileListItem-module_mobileTitleRow_GOyCv{margin-bottom:4px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:24px;font-size:16px;min-height:49px}.MobileListItem-module_mobileStatusTag_gy7Sz{margin-right:4px!important;flex-shrink:0;margin-top:2px;font-size:10px!important;height:16px!important;line-height:20px!important}.MobileListItem-module_mobileStatusTag_gy7Sz img{width:12px!important;height:12px!important}.MobileListItem-module_mobileTitle_uRghs{display:inline;color:#333;font-size:12px;font-style:normal;font-weight:500;line-height:18px}.MobileListItem-module_mobileMetaRow_e-nuZ{margin-bottom:12px}.MobileListItem-module_mobileMetaText_zGT4Y{display:flex;align-items:center;font-size:10px;color:#999;line-height:18px}.MobileListItem-module_mobileMetaIcon_dAPzw{width:16px;height:16px;opacity:.6}.MobileListItem-module_countDownLabel_tj8Bg,.MobileListItem-module_mobileMetaIcon_dAPzw{margin-right:4px}.MobileListItem-module_countDown_CsZ2j{display:inline-flex}.MobileListItem-module_mobileFooterRow_xOlHB{justify-content:flex-end;flex:1 1 auto}.MobileListItem-module_mobileFooterRow_xOlHB,.MobileListItem-module_mobileHeat_6t7My{display:flex;align-items:center}.MobileListItem-module_mobileHeat_6t7My{font-size:10px;color:#666;flex-shrink:0}.MobileListItem-module_mobileHeatIcon_ME2tA{width:14px;height:14px;margin-right:4px;padding-bottom:2px}.MobileListItem-module_mobileAction_5o8i4{margin-left:auto}", ""]);
|
|
2716
|
-
// Exports
|
|
2717
|
-
___CSS_LOADER_EXPORT___.locals = {
|
|
2718
|
-
"mobileContainer": "MobileListItem-module_mobileContainer_pKQh1",
|
|
2719
|
-
"mobileCoverWrap": "MobileListItem-module_mobileCoverWrap_wkE2E",
|
|
2720
|
-
"mobileCover": "MobileListItem-module_mobileCover_LFdCM",
|
|
2721
|
-
"mobileContent": "MobileListItem-module_mobileContent_gMOFL",
|
|
2722
|
-
"mobileTitleRow": "MobileListItem-module_mobileTitleRow_GOyCv",
|
|
2723
|
-
"mobileStatusTag": "MobileListItem-module_mobileStatusTag_gy7Sz",
|
|
2724
|
-
"mobileTitle": "MobileListItem-module_mobileTitle_uRghs",
|
|
2725
|
-
"mobileMetaRow": "MobileListItem-module_mobileMetaRow_e-nuZ",
|
|
2726
|
-
"mobileMetaText": "MobileListItem-module_mobileMetaText_zGT4Y",
|
|
2727
|
-
"mobileMetaIcon": "MobileListItem-module_mobileMetaIcon_dAPzw",
|
|
2728
|
-
"countDownLabel": "MobileListItem-module_countDownLabel_tj8Bg",
|
|
2729
|
-
"countDown": "MobileListItem-module_countDown_CsZ2j",
|
|
2730
|
-
"mobileFooterRow": "MobileListItem-module_mobileFooterRow_xOlHB",
|
|
2731
|
-
"mobileHeat": "MobileListItem-module_mobileHeat_6t7My",
|
|
2732
|
-
"mobileHeatIcon": "MobileListItem-module_mobileHeatIcon_ME2tA",
|
|
2733
|
-
"mobileAction": "MobileListItem-module_mobileAction_5o8i4"
|
|
2734
|
-
};
|
|
2735
|
-
/* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
2703
|
/***/ }),
|
|
2739
2704
|
|
|
2740
2705
|
/***/ 1631:
|
|
@@ -2856,6 +2821,41 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
2856
2821
|
/* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
|
|
2857
2822
|
|
|
2858
2823
|
|
|
2824
|
+
/***/ }),
|
|
2825
|
+
|
|
2826
|
+
/***/ 4975:
|
|
2827
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2828
|
+
|
|
2829
|
+
"use strict";
|
|
2830
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3645);
|
|
2831
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
2832
|
+
// Imports
|
|
2833
|
+
|
|
2834
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
2835
|
+
// Module
|
|
2836
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".MobileListItem-module_mobileContainer_wfLKG{display:flex;flex-direction:column;border-radius:8px;overflow:hidden;height:100%;background:linear-gradient(180deg,#fff,#fff 62.98%,rgba(0,247,255,.08));border:1px solid #eef4ff}.MobileListItem-module_mobileCoverWrap_271x\\+{position:relative;width:100%;padding-top:56.25%;overflow:hidden;background:#f0f0f0}.MobileListItem-module_mobileCover_LBJ85{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;display:block}.MobileListItem-module_mobileContent_zA7iL{padding:12px;display:flex;flex-direction:column;flex:1}.MobileListItem-module_mobileTitleRow_O\\+\\+oM{margin-bottom:4px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:24px;font-size:16px;min-height:49px}.MobileListItem-module_mobileStatusTag_ZDlxf{margin-right:4px!important;flex-shrink:0;margin-top:2px;font-size:10px!important;height:16px!important;line-height:20px!important}.MobileListItem-module_mobileStatusTag_ZDlxf img{width:12px!important;height:12px!important}.MobileListItem-module_mobileTitle_Qpabu{display:inline;color:#333;font-size:12px;font-style:normal;font-weight:500;line-height:18px}.MobileListItem-module_mobileMetaRow_P0gQ\\+{margin-bottom:12px}.MobileListItem-module_mobileMetaText_DNbQG{display:flex;align-items:center;font-size:10px;color:#999;line-height:18px}.MobileListItem-module_mobileMetaIcon_uoXZB{width:16px;height:16px;opacity:.6}.MobileListItem-module_countDownLabel_DV35Y,.MobileListItem-module_mobileMetaIcon_uoXZB{margin-right:4px}.MobileListItem-module_countDown_\\+eGzt{display:inline-flex}.MobileListItem-module_mobileFooterRow_ekYRA{justify-content:flex-end;flex:1 1 auto}.MobileListItem-module_mobileFooterRow_ekYRA,.MobileListItem-module_mobileHeat_V3\\+9A{display:flex;align-items:center}.MobileListItem-module_mobileHeat_V3\\+9A{font-size:10px;color:#666;flex-shrink:0}.MobileListItem-module_mobileHeatIcon_ZgirG{width:14px;height:14px;margin-right:4px;padding-bottom:2px}.MobileListItem-module_mobileAction_j\\+w5d{margin-left:auto}", ""]);
|
|
2837
|
+
// Exports
|
|
2838
|
+
___CSS_LOADER_EXPORT___.locals = {
|
|
2839
|
+
"mobileContainer": "MobileListItem-module_mobileContainer_wfLKG",
|
|
2840
|
+
"mobileCoverWrap": "MobileListItem-module_mobileCoverWrap_271x+",
|
|
2841
|
+
"mobileCover": "MobileListItem-module_mobileCover_LBJ85",
|
|
2842
|
+
"mobileContent": "MobileListItem-module_mobileContent_zA7iL",
|
|
2843
|
+
"mobileTitleRow": "MobileListItem-module_mobileTitleRow_O++oM",
|
|
2844
|
+
"mobileStatusTag": "MobileListItem-module_mobileStatusTag_ZDlxf",
|
|
2845
|
+
"mobileTitle": "MobileListItem-module_mobileTitle_Qpabu",
|
|
2846
|
+
"mobileMetaRow": "MobileListItem-module_mobileMetaRow_P0gQ+",
|
|
2847
|
+
"mobileMetaText": "MobileListItem-module_mobileMetaText_DNbQG",
|
|
2848
|
+
"mobileMetaIcon": "MobileListItem-module_mobileMetaIcon_uoXZB",
|
|
2849
|
+
"countDownLabel": "MobileListItem-module_countDownLabel_DV35Y",
|
|
2850
|
+
"countDown": "MobileListItem-module_countDown_+eGzt",
|
|
2851
|
+
"mobileFooterRow": "MobileListItem-module_mobileFooterRow_ekYRA",
|
|
2852
|
+
"mobileHeat": "MobileListItem-module_mobileHeat_V3+9A",
|
|
2853
|
+
"mobileHeatIcon": "MobileListItem-module_mobileHeatIcon_ZgirG",
|
|
2854
|
+
"mobileAction": "MobileListItem-module_mobileAction_j+w5d"
|
|
2855
|
+
};
|
|
2856
|
+
/* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
|
|
2857
|
+
|
|
2858
|
+
|
|
2859
2859
|
/***/ }),
|
|
2860
2860
|
|
|
2861
2861
|
/***/ 4979:
|
|
@@ -30651,17 +30651,6 @@ var Request = /*#__PURE__*/function () {
|
|
|
30651
30651
|
}();
|
|
30652
30652
|
|
|
30653
30653
|
|
|
30654
|
-
;// CONCATENATED MODULE: ./src/util/getTimestamp.js
|
|
30655
|
-
/**
|
|
30656
|
-
* 获取时间戳
|
|
30657
|
-
* @param {number} second 时间间隔,以秒为单位,超过
|
|
30658
|
-
* @returns {string} 时间戳
|
|
30659
|
-
*/
|
|
30660
|
-
function getTimestamp(second) {
|
|
30661
|
-
// 转换毫秒
|
|
30662
|
-
var now = Math.floor(Date.now() / 1000);
|
|
30663
|
-
return Math.floor(now / second) * second;
|
|
30664
|
-
}
|
|
30665
30654
|
// EXTERNAL MODULE: ./src/util/env.js
|
|
30666
30655
|
var util_env = __webpack_require__(2983);
|
|
30667
30656
|
// EXTERNAL MODULE: ./src/util/url.js
|
|
@@ -30871,21 +30860,17 @@ function generateCommonAPI(params) {
|
|
|
30871
30860
|
var api = rawAPI(helper_objectSpread({}, params));
|
|
30872
30861
|
api.interceptors.request.use( /*#__PURE__*/function () {
|
|
30873
30862
|
var _ref = helper_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(c) {
|
|
30874
|
-
var _c$params$v;
|
|
30875
|
-
|
|
30876
30863
|
return regenerator_default().wrap(function _callee$(_context) {
|
|
30877
30864
|
while (1) {
|
|
30878
30865
|
switch (_context.prev = _context.next) {
|
|
30879
30866
|
case 0:
|
|
30880
|
-
c.params = c.params || {};
|
|
30881
|
-
|
|
30882
|
-
|
|
30883
|
-
c.params.v = (_c$params$v = c.params.v) !== null && _c$params$v !== void 0 ? _c$params$v : getTimestamp(10 * 60);
|
|
30884
|
-
}
|
|
30867
|
+
c.params = c.params || {}; // if (process.env.SDP_ENV !== 'ncet-xedu') {
|
|
30868
|
+
// c.params.v = c.params.v ?? getTimestamp(10 * 60)
|
|
30869
|
+
// }
|
|
30885
30870
|
|
|
30886
30871
|
return _context.abrupt("return", c);
|
|
30887
30872
|
|
|
30888
|
-
case
|
|
30873
|
+
case 2:
|
|
30889
30874
|
case "end":
|
|
30890
30875
|
return _context.stop();
|
|
30891
30876
|
}
|
|
@@ -54846,15 +54831,15 @@ function getResourceLikes(_x, _x2) {
|
|
|
54846
54831
|
} // 获取资源点赞
|
|
54847
54832
|
|
|
54848
54833
|
function _getResourceLikes() {
|
|
54849
|
-
_getResourceLikes = like_asyncToGenerator( /*#__PURE__*/
|
|
54834
|
+
_getResourceLikes = like_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(resId, type) {
|
|
54850
54835
|
var _yield$xProxy$get, data;
|
|
54851
54836
|
|
|
54852
|
-
return
|
|
54837
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
54853
54838
|
while (1) {
|
|
54854
54839
|
switch (_context.prev = _context.next) {
|
|
54855
54840
|
case 0:
|
|
54856
54841
|
_context.next = 2;
|
|
54857
|
-
return
|
|
54842
|
+
return xProxy.get("/v1/res_stats/".concat(resId), {
|
|
54858
54843
|
params: {
|
|
54859
54844
|
type: type
|
|
54860
54845
|
}
|
|
@@ -54945,10 +54930,10 @@ function getStatByChunk(_x6, _x7) {
|
|
|
54945
54930
|
|
|
54946
54931
|
|
|
54947
54932
|
function _getStatByChunk() {
|
|
54948
|
-
_getStatByChunk = like_asyncToGenerator( /*#__PURE__*/
|
|
54933
|
+
_getStatByChunk = like_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee5(resIds, requestFn) {
|
|
54949
54934
|
var chunkSize, _yield$requestFn, data, _ref2, chunkCount, result, t;
|
|
54950
54935
|
|
|
54951
|
-
return
|
|
54936
|
+
return regenerator_default().wrap(function _callee5$(_context5) {
|
|
54952
54937
|
while (1) {
|
|
54953
54938
|
switch (_context5.prev = _context5.next) {
|
|
54954
54939
|
case 0:
|
|
@@ -54973,10 +54958,10 @@ function _getStatByChunk() {
|
|
|
54973
54958
|
t = new Array(chunkCount).fill(0);
|
|
54974
54959
|
_context5.next = 14;
|
|
54975
54960
|
return Promise.all(t.map( /*#__PURE__*/function () {
|
|
54976
|
-
var _ref = like_asyncToGenerator( /*#__PURE__*/
|
|
54961
|
+
var _ref = like_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee4(v, i) {
|
|
54977
54962
|
var chunk, _yield$requestFn2, data;
|
|
54978
54963
|
|
|
54979
|
-
return
|
|
54964
|
+
return regenerator_default().wrap(function _callee4$(_context4) {
|
|
54980
54965
|
while (1) {
|
|
54981
54966
|
switch (_context4.prev = _context4.next) {
|
|
54982
54967
|
case 0:
|
|
@@ -55020,18 +55005,18 @@ function getResourceStat(_x8) {
|
|
|
55020
55005
|
} // 批量获取评价统计
|
|
55021
55006
|
|
|
55022
55007
|
function _getResourceStat() {
|
|
55023
|
-
_getResourceStat = like_asyncToGenerator( /*#__PURE__*/
|
|
55024
|
-
return
|
|
55008
|
+
_getResourceStat = like_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee7(resIds) {
|
|
55009
|
+
return regenerator_default().wrap(function _callee7$(_context7) {
|
|
55025
55010
|
while (1) {
|
|
55026
55011
|
switch (_context7.prev = _context7.next) {
|
|
55027
55012
|
case 0:
|
|
55028
55013
|
return _context7.abrupt("return", getStatByChunk(resIds, /*#__PURE__*/function () {
|
|
55029
|
-
var _ref3 = like_asyncToGenerator( /*#__PURE__*/
|
|
55030
|
-
return
|
|
55014
|
+
var _ref3 = like_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee6(chunk) {
|
|
55015
|
+
return regenerator_default().wrap(function _callee6$(_context6) {
|
|
55031
55016
|
while (1) {
|
|
55032
55017
|
switch (_context6.prev = _context6.next) {
|
|
55033
55018
|
case 0:
|
|
55034
|
-
return _context6.abrupt("return",
|
|
55019
|
+
return _context6.abrupt("return", x_proxy.get("/v1/res_stats/actions/query?res_ids=".concat(chunk.join(','))));
|
|
55035
55020
|
|
|
55036
55021
|
case 1:
|
|
55037
55022
|
case "end":
|
|
@@ -61382,9 +61367,9 @@ var SvgVideoMobile = function SvgVideoMobile(props) {
|
|
|
61382
61367
|
};
|
|
61383
61368
|
|
|
61384
61369
|
/* harmony default export */ var video_mobile = ("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTkuMzMzOTggMi4zMzM5OEM5LjY1NjE2IDIuMzMzOTggOS45MTczMiAyLjU5NTE1IDkuOTE3MzIgMi45MTczMlY1LjM2NzMyTDEyLjk1ODQgMy4yMzg1N0MxMy4wOTA0IDMuMTQ2MTkgMTMuMjcyMiAzLjE3ODI4IDEzLjM2NDYgMy4zMTAyNUMxMy4zOTg5IDMuMzU5MjcgMTMuNDE3MyAzLjQxNzY3IDEzLjQxNzMgMy40Nzc1MVYxMC41MjM4QzEzLjQxNzMgMTAuNjg0OSAxMy4yODY3IDEwLjgxNTUgMTMuMTI1NyAxMC44MTU1QzEzLjA2NTggMTAuODE1NSAxMy4wMDc0IDEwLjc5NyAxMi45NTg0IDEwLjc2MjdMOS45MTczMiA4LjYzMzk4VjExLjA4NEM5LjkxNzMyIDExLjQwNjIgOS42NTYxNiAxMS42NjczIDkuMzMzOTggMTEuNjY3M0gxLjE2NzMyQzAuODQ1MTU0IDExLjY2NzMgMC41ODM5ODQgMTEuNDA2MiAwLjU4Mzk4NCAxMS4wODRWMi45MTczMkMwLjU4Mzk4NCAyLjU5NTE1IDAuODQ1MTU0IDIuMzMzOTggMS4xNjczMiAyLjMzMzk4SDkuMzMzOThaTTguNzUwNjUgMy41MDA2NUgxLjc1MDY1VjEwLjUwMDdIOC43NTA2NVYzLjUwMDY1Wk00LjMxNzMyIDUuMTUwNzFDNC4zNjE2OSA1LjE1MDcxIDQuNDA1MTUgNS4xNjMzNiA0LjQ0MjU5IDUuMTg3MThMNi45ODI5OCA2LjgwMzc4QzcuMDkxNzEgNi44NzI5NiA3LjEyMzczIDcuMDE3MjIgNy4wNTQ1NSA3LjEyNTk1QzcuMDM2MjMgNy4xNTQ3MSA3LjAxMTc5IDcuMTc5MTUgNi45ODI5OCA3LjE5NzUzTDQuNDQyNTkgOC44MTQxMkM0LjMzMzg3IDguODgzMyA0LjE4OTY1IDguODUxMjggNC4xMjA0NyA4Ljc0MjU0QzQuMDk2NjQgOC43MDUwOSA0LjA4Mzk4IDguNjYxNjMgNC4wODM5OCA4LjYxNzI0VjUuMzg0MDRDNC4wODM5OCA1LjI1NTE4IDQuMTg4NDUgNS4xNTA3MSA0LjMxNzMyIDUuMTUwNzFaTTEyLjI1MDcgNS4xNTgwOEw5LjkxNzMyIDYuNzkxMjNWNy4yMTAwN0wxMi4yNTA3IDguODQzMjNWNS4xNTgwOFoiIGZpbGw9IiM5OTk5OTkiLz4KPC9zdmc+Cg==");
|
|
61385
|
-
// EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[2]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[3]!./node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[4]!./src/list/
|
|
61386
|
-
var MobileListItem_module = __webpack_require__(
|
|
61387
|
-
;// CONCATENATED MODULE: ./src/list/
|
|
61370
|
+
// EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[2]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[3]!./node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[4]!./src/list/mobile/MobileListItem.module.less
|
|
61371
|
+
var MobileListItem_module = __webpack_require__(4975);
|
|
61372
|
+
;// CONCATENATED MODULE: ./src/list/mobile/MobileListItem.module.less
|
|
61388
61373
|
|
|
61389
61374
|
|
|
61390
61375
|
|
|
@@ -61411,7 +61396,7 @@ var MobileListItem_module_update = injectStylesIntoStyleTag_default()(MobileList
|
|
|
61411
61396
|
|
|
61412
61397
|
|
|
61413
61398
|
|
|
61414
|
-
/* harmony default export */ var
|
|
61399
|
+
/* harmony default export */ var mobile_MobileListItem_module = (MobileListItem_module/* default */.Z && MobileListItem_module/* default.locals */.Z.locals ? MobileListItem_module/* default.locals */.Z.locals : undefined);
|
|
61415
61400
|
|
|
61416
61401
|
;// CONCATENATED MODULE: ./src/list/ListItem/liveStatus/img/progress.svg
|
|
61417
61402
|
var progress_path, progress_path2, progress_path3;
|
|
@@ -61784,9 +61769,9 @@ function Action_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
61784
61769
|
|
|
61785
61770
|
|
|
61786
61771
|
var Actions = {
|
|
61787
|
-
1: '
|
|
61772
|
+
1: '进入',
|
|
61788
61773
|
// 直播中 或者开播前15min
|
|
61789
|
-
2: '
|
|
61774
|
+
2: '查看',
|
|
61790
61775
|
// 回放
|
|
61791
61776
|
3: '预约',
|
|
61792
61777
|
// 预告 且开播时间大于 15min
|
|
@@ -61945,7 +61930,7 @@ function Action(_ref) {
|
|
|
61945
61930
|
onClick: handleBtnClick
|
|
61946
61931
|
}, Actions[curAction]);
|
|
61947
61932
|
}
|
|
61948
|
-
;// CONCATENATED MODULE: ./src/list/
|
|
61933
|
+
;// CONCATENATED MODULE: ./src/list/mobile/MobileListItem.jsx
|
|
61949
61934
|
|
|
61950
61935
|
|
|
61951
61936
|
function MobileListItem_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -61983,7 +61968,6 @@ function MobileListItem_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr
|
|
|
61983
61968
|
|
|
61984
61969
|
|
|
61985
61970
|
|
|
61986
|
-
|
|
61987
61971
|
var getLiveStatus = function getLiveStatus(item) {
|
|
61988
61972
|
var _ref = item || {},
|
|
61989
61973
|
startTime = _ref.begin_time,
|
|
@@ -62002,6 +61986,8 @@ var getLiveStatus = function getLiveStatus(item) {
|
|
|
62002
61986
|
|
|
62003
61987
|
function MobileListItem(_ref2) {
|
|
62004
61988
|
var propData = _ref2.data,
|
|
61989
|
+
_ref2$liveExt = _ref2.liveExt,
|
|
61990
|
+
liveExt = _ref2$liveExt === void 0 ? {} : _ref2$liveExt,
|
|
62005
61991
|
themeName = _ref2.themeName,
|
|
62006
61992
|
subscription = _ref2.subscription,
|
|
62007
61993
|
onDetailClick = _ref2.onDetailClick,
|
|
@@ -62050,47 +62036,19 @@ function MobileListItem(_ref2) {
|
|
|
62050
62036
|
};
|
|
62051
62037
|
}();
|
|
62052
62038
|
|
|
62053
|
-
var
|
|
62054
|
-
|
|
62055
|
-
liveExt = _useState6[0],
|
|
62056
|
-
setLiveExt = _useState6[1];
|
|
62057
|
-
|
|
62058
|
-
(0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect)(function () {
|
|
62059
|
-
MobileListItem_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2() {
|
|
62060
|
-
var res;
|
|
62039
|
+
var handleDetailClick = /*#__PURE__*/function () {
|
|
62040
|
+
var _ref4 = MobileListItem_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2() {
|
|
62061
62041
|
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
62062
62042
|
while (1) {
|
|
62063
62043
|
switch (_context2.prev = _context2.next) {
|
|
62064
|
-
case 0:
|
|
62065
|
-
_context2.next = 2;
|
|
62066
|
-
return getResourceLikes(liveId);
|
|
62067
|
-
|
|
62068
|
-
case 2:
|
|
62069
|
-
res = _context2.sent;
|
|
62070
|
-
setLiveExt(res || {});
|
|
62071
|
-
|
|
62072
|
-
case 4:
|
|
62073
|
-
case "end":
|
|
62074
|
-
return _context2.stop();
|
|
62075
|
-
}
|
|
62076
|
-
}
|
|
62077
|
-
}, _callee2);
|
|
62078
|
-
}))();
|
|
62079
|
-
}, []);
|
|
62080
|
-
|
|
62081
|
-
var handleDetailClick = /*#__PURE__*/function () {
|
|
62082
|
-
var _ref5 = MobileListItem_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3() {
|
|
62083
|
-
return regenerator_default().wrap(function _callee3$(_context3) {
|
|
62084
|
-
while (1) {
|
|
62085
|
-
switch (_context3.prev = _context3.next) {
|
|
62086
62044
|
case 0:
|
|
62087
62045
|
if (!(data.login && !isLogin)) {
|
|
62088
|
-
|
|
62046
|
+
_context2.next = 3;
|
|
62089
62047
|
break;
|
|
62090
62048
|
}
|
|
62091
62049
|
|
|
62092
62050
|
handleLogin(data);
|
|
62093
|
-
return
|
|
62051
|
+
return _context2.abrupt("return");
|
|
62094
62052
|
|
|
62095
62053
|
case 3:
|
|
62096
62054
|
if (onDetailClick) {
|
|
@@ -62101,14 +62059,14 @@ function MobileListItem(_ref2) {
|
|
|
62101
62059
|
|
|
62102
62060
|
case 4:
|
|
62103
62061
|
case "end":
|
|
62104
|
-
return
|
|
62062
|
+
return _context2.stop();
|
|
62105
62063
|
}
|
|
62106
62064
|
}
|
|
62107
|
-
},
|
|
62065
|
+
}, _callee2);
|
|
62108
62066
|
}));
|
|
62109
62067
|
|
|
62110
62068
|
return function handleDetailClick() {
|
|
62111
|
-
return
|
|
62069
|
+
return _ref4.apply(this, arguments);
|
|
62112
62070
|
};
|
|
62113
62071
|
}();
|
|
62114
62072
|
|
|
@@ -62116,58 +62074,58 @@ function MobileListItem(_ref2) {
|
|
|
62116
62074
|
if (liveStatus === 2 || liveStatus === 3 || liveStatus === 1 || countDownFinish) {
|
|
62117
62075
|
var timeLabel = "".concat(beginAt.format('YYYY/MM/DD HH:mm'), " \u5F00\u64AD");
|
|
62118
62076
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62119
|
-
className:
|
|
62077
|
+
className: mobile_MobileListItem_module.mobileMetaText
|
|
62120
62078
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("img", {
|
|
62121
62079
|
src: video_mobile,
|
|
62122
|
-
className:
|
|
62080
|
+
className: mobile_MobileListItem_module.mobileMetaIcon,
|
|
62123
62081
|
alt: ""
|
|
62124
62082
|
}), timeLabel);
|
|
62125
62083
|
}
|
|
62126
62084
|
|
|
62127
62085
|
if (liveStatus === 0) {
|
|
62128
62086
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62129
|
-
className:
|
|
62087
|
+
className: mobile_MobileListItem_module.mobileMetaText
|
|
62130
62088
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("span", {
|
|
62131
|
-
className:
|
|
62089
|
+
className: mobile_MobileListItem_module.countDownLabel
|
|
62132
62090
|
}, "\u8DDD\u5F00\u59CB:"), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(ListItem_LiveCountDown, {
|
|
62133
62091
|
key: data.live_id,
|
|
62134
62092
|
endTime: dayjs_min_default()(data.begin_time).valueOf(),
|
|
62135
62093
|
onFinish: handleCountDownFinish,
|
|
62136
|
-
className:
|
|
62094
|
+
className: mobile_MobileListItem_module.countDown
|
|
62137
62095
|
}));
|
|
62138
62096
|
}
|
|
62139
62097
|
};
|
|
62140
62098
|
|
|
62141
62099
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62142
|
-
className: classnames_default()(
|
|
62100
|
+
className: classnames_default()(mobile_MobileListItem_module.mobileContainer, themeName),
|
|
62143
62101
|
onClick: handleDetailClick
|
|
62144
62102
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62145
|
-
className:
|
|
62103
|
+
className: mobile_MobileListItem_module.mobileCoverWrap
|
|
62146
62104
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(component_Avatar, {
|
|
62147
62105
|
src: coverUrl || live,
|
|
62148
62106
|
errorImg: live,
|
|
62149
|
-
className:
|
|
62107
|
+
className: mobile_MobileListItem_module.mobileCover
|
|
62150
62108
|
})), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62151
|
-
className:
|
|
62109
|
+
className: mobile_MobileListItem_module.mobileContent
|
|
62152
62110
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62153
|
-
className:
|
|
62111
|
+
className: mobile_MobileListItem_module.mobileTitleRow
|
|
62154
62112
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(liveStatus_LiveStatus, {
|
|
62155
62113
|
status: liveStatus,
|
|
62156
|
-
className:
|
|
62114
|
+
className: mobile_MobileListItem_module.mobileStatusTag
|
|
62157
62115
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("span", {
|
|
62158
|
-
className:
|
|
62116
|
+
className: mobile_MobileListItem_module.mobileTitle
|
|
62159
62117
|
}, liveName)), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62160
|
-
className:
|
|
62118
|
+
className: mobile_MobileListItem_module.mobileMetaRow
|
|
62161
62119
|
}, renderStatusText()), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62162
|
-
className:
|
|
62120
|
+
className: mobile_MobileListItem_module.mobileFooterRow
|
|
62163
62121
|
}, liveExt.total_uv ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62164
|
-
className:
|
|
62122
|
+
className: mobile_MobileListItem_module.mobileHeat
|
|
62165
62123
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("img", {
|
|
62166
62124
|
src: fire_fill,
|
|
62167
|
-
className:
|
|
62125
|
+
className: mobile_MobileListItem_module.mobileHeatIcon,
|
|
62168
62126
|
alt: ""
|
|
62169
62127
|
}), formatUVCount(liveExt.total_uv || 0)) : null, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62170
|
-
className:
|
|
62128
|
+
className: mobile_MobileListItem_module.mobileAction
|
|
62171
62129
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(Action, {
|
|
62172
62130
|
data: data,
|
|
62173
62131
|
subscription: subscription,
|
|
@@ -62237,6 +62195,7 @@ function MobileLiveList(_ref) {
|
|
|
62237
62195
|
var loading = _ref.loading,
|
|
62238
62196
|
loadingMore = _ref.loadingMore,
|
|
62239
62197
|
list = _ref.list,
|
|
62198
|
+
liveExtMap = _ref.liveExtMap,
|
|
62240
62199
|
hasMore = _ref.hasMore,
|
|
62241
62200
|
onNextPage = _ref.onNextPage,
|
|
62242
62201
|
isPad = _ref.isPad,
|
|
@@ -62305,6 +62264,7 @@ function MobileLiveList(_ref) {
|
|
|
62305
62264
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(MobileListItem, {
|
|
62306
62265
|
themeName: themeName,
|
|
62307
62266
|
data: listItem,
|
|
62267
|
+
liveExt: liveExtMap[listItem.live_id] || {},
|
|
62308
62268
|
subscription: subscription,
|
|
62309
62269
|
onDetailClick: onDetailClick,
|
|
62310
62270
|
handleLogin: handleLogin,
|
|
@@ -62535,7 +62495,6 @@ function ListItem_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
62535
62495
|
|
|
62536
62496
|
|
|
62537
62497
|
|
|
62538
|
-
|
|
62539
62498
|
var ListItem_TagName = {
|
|
62540
62499
|
0: '直播预告',
|
|
62541
62500
|
1: '直播中',
|
|
@@ -62567,6 +62526,8 @@ function ListItem(_ref2) {
|
|
|
62567
62526
|
handleLogin = _ref2.handleLogin,
|
|
62568
62527
|
isLogin = _ref2.isLogin,
|
|
62569
62528
|
onSubscribe = _ref2.onSubscribe,
|
|
62529
|
+
_ref2$liveExt = _ref2.liveExt,
|
|
62530
|
+
liveExt = _ref2$liveExt === void 0 ? {} : _ref2$liveExt,
|
|
62570
62531
|
_ref2$viewMode = _ref2.viewMode,
|
|
62571
62532
|
viewMode = _ref2$viewMode === void 0 ? 'list' : _ref2$viewMode,
|
|
62572
62533
|
cardStyle = _ref2.cardStyle;
|
|
@@ -62581,47 +62542,19 @@ function ListItem(_ref2) {
|
|
|
62581
62542
|
var coverUrl = (data === null || data === void 0 ? void 0 : data.cover_url) || live;
|
|
62582
62543
|
var liveStatus = ListItem_getLiveStatus(data);
|
|
62583
62544
|
|
|
62584
|
-
var
|
|
62585
|
-
|
|
62586
|
-
liveExt = _useState4[0],
|
|
62587
|
-
setLiveExt = _useState4[1];
|
|
62588
|
-
|
|
62589
|
-
(0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect)(function () {
|
|
62590
|
-
ListItem_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
62591
|
-
var res;
|
|
62545
|
+
var handleDetailClick = /*#__PURE__*/function () {
|
|
62546
|
+
var _ref3 = ListItem_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
62592
62547
|
return regenerator_default().wrap(function _callee$(_context) {
|
|
62593
62548
|
while (1) {
|
|
62594
62549
|
switch (_context.prev = _context.next) {
|
|
62595
|
-
case 0:
|
|
62596
|
-
_context.next = 2;
|
|
62597
|
-
return getResourceLikes(liveId);
|
|
62598
|
-
|
|
62599
|
-
case 2:
|
|
62600
|
-
res = _context.sent;
|
|
62601
|
-
setLiveExt(res || {});
|
|
62602
|
-
|
|
62603
|
-
case 4:
|
|
62604
|
-
case "end":
|
|
62605
|
-
return _context.stop();
|
|
62606
|
-
}
|
|
62607
|
-
}
|
|
62608
|
-
}, _callee);
|
|
62609
|
-
}))();
|
|
62610
|
-
}, []);
|
|
62611
|
-
|
|
62612
|
-
var handleDetailClick = /*#__PURE__*/function () {
|
|
62613
|
-
var _ref4 = ListItem_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2() {
|
|
62614
|
-
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
62615
|
-
while (1) {
|
|
62616
|
-
switch (_context2.prev = _context2.next) {
|
|
62617
62550
|
case 0:
|
|
62618
62551
|
if (!(data.login && !isLogin)) {
|
|
62619
|
-
|
|
62552
|
+
_context.next = 3;
|
|
62620
62553
|
break;
|
|
62621
62554
|
}
|
|
62622
62555
|
|
|
62623
62556
|
handleLogin(data);
|
|
62624
|
-
return
|
|
62557
|
+
return _context.abrupt("return");
|
|
62625
62558
|
|
|
62626
62559
|
case 3:
|
|
62627
62560
|
if (onDetailClick) {
|
|
@@ -62633,14 +62566,14 @@ function ListItem(_ref2) {
|
|
|
62633
62566
|
|
|
62634
62567
|
case 4:
|
|
62635
62568
|
case "end":
|
|
62636
|
-
return
|
|
62569
|
+
return _context.stop();
|
|
62637
62570
|
}
|
|
62638
62571
|
}
|
|
62639
|
-
},
|
|
62572
|
+
}, _callee);
|
|
62640
62573
|
}));
|
|
62641
62574
|
|
|
62642
62575
|
return function handleDetailClick() {
|
|
62643
|
-
return
|
|
62576
|
+
return _ref3.apply(this, arguments);
|
|
62644
62577
|
};
|
|
62645
62578
|
}();
|
|
62646
62579
|
|
|
@@ -62834,6 +62767,7 @@ function list_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
62834
62767
|
|
|
62835
62768
|
|
|
62836
62769
|
|
|
62770
|
+
|
|
62837
62771
|
var PageSize = 12;
|
|
62838
62772
|
var ViewModes = {
|
|
62839
62773
|
LIST: 'list',
|
|
@@ -62920,6 +62854,11 @@ function PublicLiveList(_ref) {
|
|
|
62920
62854
|
viewMode = _useState18[0],
|
|
62921
62855
|
setViewMode = _useState18[1];
|
|
62922
62856
|
|
|
62857
|
+
var _useState19 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)({}),
|
|
62858
|
+
_useState20 = list_slicedToArray(_useState19, 2),
|
|
62859
|
+
liveExtMap = _useState20[0],
|
|
62860
|
+
setLiveExtMap = _useState20[1];
|
|
62861
|
+
|
|
62923
62862
|
var canSwitchView = !isMobile;
|
|
62924
62863
|
var effectiveViewMode = canSwitchView ? viewMode : ViewModes.LIST;
|
|
62925
62864
|
|
|
@@ -63014,86 +62953,7 @@ function PublicLiveList(_ref) {
|
|
|
63014
62953
|
|
|
63015
62954
|
setTotal(count || 0);
|
|
63016
62955
|
setLoading(false);
|
|
63017
|
-
setLoadingMore(false);
|
|
63018
|
-
// {
|
|
63019
|
-
// live_id: 'ac56674a-81cc-4401-8895-ccf1896fcfa0',
|
|
63020
|
-
// live_name: '推进整本书阅读课程化建设,打造书香教室111111',
|
|
63021
|
-
// lecture_user_id: 452641273747,
|
|
63022
|
-
// lecture_user_name: '李其',
|
|
63023
|
-
// begin_time: '2023-11-18T15:19:00.000+0800',
|
|
63024
|
-
// end_time: '2023-11-18T19:30:00.000+0800',
|
|
63025
|
-
// duration: null,
|
|
63026
|
-
// status:0,
|
|
63027
|
-
// type: 1,
|
|
63028
|
-
// view_replay: 1,
|
|
63029
|
-
// replay_url: 'https://cdncs.ykt.cbern.com.cn/v0.1/static/xedu_nd_meeting/live/64e8ccaacd42c00011712808/64e8ccaacd42c00011712808-1693377380963-upload-1.m3u8',
|
|
63030
|
-
// provide_record: 2,
|
|
63031
|
-
// conference_id: '807172129',
|
|
63032
|
-
// room_id: '64e8ccaacd42c00011712808',
|
|
63033
|
-
// chat_room_id: '6038005',
|
|
63034
|
-
// chat_room_convid: '4617293527729099756',
|
|
63035
|
-
// chat_enabled: false,
|
|
63036
|
-
// play_smart_link: 'https://x-link.ykt.eduyun.cn/smart_links/225041074225153?qrEventName=smartlink',
|
|
63037
|
-
// sub_type: 1,
|
|
63038
|
-
// video_url: 'https://cdncs.ykt.cbern.com.cn/v0.1/download?path=/xxuexiimbr/replays/25304756_1693380769228.mp4',
|
|
63039
|
-
// tenant_id: 416,
|
|
63040
|
-
// login: false,
|
|
63041
|
-
// description: null,
|
|
63042
|
-
// desc_pic_web_url: 'https://bdcs-file-1.ykt.cbern.com.cn/bd_x_live/%E5%AD%99%E7%8E%89%E7%BA%A2%E5%86%85%E5%AE%B9%E4%BB%8B%E7%BB%8D(6)_1692978325699.jpg',
|
|
63043
|
-
// desc_pic_mobile_url: 'https://bdcs-file-1.ykt.cbern.com.cn/bd_x_live/%E5%AD%99%E7%8E%89%E7%BA%A2%20%E6%89%8B%E6%9C%BA%E7%AB%AF_1692978330612.jpg',
|
|
63044
|
-
// cover_url: 'https://bdcs-file-1.ykt.cbern.com.cn/zxx/X-COURSE/416/1_1693400535645.jpg',
|
|
63045
|
-
// cover_pic_web_url: 'https://bdcs-file-1.ykt.cbern.com.cn/bd_x_live/%E5%AD%99%E7%8E%89%E7%BA%A2_1692978313015.jpg',
|
|
63046
|
-
// cover_pic_mobile_url: 'https://bdcs-file-1.ykt.cbern.com.cn/bd_x_live/%E5%AD%99%E7%8E%89%E7%BA%A2_1692978318463.jpg',
|
|
63047
|
-
// create_user_id: 452672293205,
|
|
63048
|
-
// create_time: '2023-08-25T23:45:47.000+0800',
|
|
63049
|
-
// first_begin_time: null,
|
|
63050
|
-
// scope_type: 'e_teacher_studio',
|
|
63051
|
-
// scope_id: '7294ef75-b01c-4a2e-af81-b32310dc8510',
|
|
63052
|
-
// scope_name: '孙玉红名师工作室',
|
|
63053
|
-
// scope_link: 'https://x-link.ykt.eduyun.cn/smart_links/146348054036481?qrEventName=smartlink',
|
|
63054
|
-
// scope_image: 'https://bdcs-file-2.ykt.cbern.com.cn/e_teacher_studio/b84ae1fb-9b36-441c-ba7f-5e739ca89669.jpg',
|
|
63055
|
-
// env: 'product',
|
|
63056
|
-
// chat_type: false,
|
|
63057
|
-
// discuss_chat_type: false,
|
|
63058
|
-
// comment_chat_room_id: null,
|
|
63059
|
-
// comment_chat_room_convid: null,
|
|
63060
|
-
// message_interval: 5,
|
|
63061
|
-
// bid: null,
|
|
63062
|
-
// replay_begin_time: '2023-08-31T10:00:00.000+0800',
|
|
63063
|
-
// replay_end_time: null,
|
|
63064
|
-
// view_replay_type: 0,
|
|
63065
|
-
// view_replay_name: null,
|
|
63066
|
-
// view_replay_url: null,
|
|
63067
|
-
// create_user_user_facade: {
|
|
63068
|
-
// user_id: 452672293205,
|
|
63069
|
-
// user_name: '康晓宇',
|
|
63070
|
-
// nick_name: null,
|
|
63071
|
-
// nick_name_full: null,
|
|
63072
|
-
// nick_name_short: null,
|
|
63073
|
-
// create_time: '2023-07-14T10:15:15.099+0800',
|
|
63074
|
-
// org_exinfo: {
|
|
63075
|
-
// node_id: 0,
|
|
63076
|
-
// node_name: '',
|
|
63077
|
-
// org_id: 594001860704,
|
|
63078
|
-
// org_name: null,
|
|
63079
|
-
// org_full_name: null,
|
|
63080
|
-
// org_user_code: '',
|
|
63081
|
-
// real_name: '康晓宇',
|
|
63082
|
-
// real_name_full: 'kangxiaoyu',
|
|
63083
|
-
// real_name_short: 'kxy'
|
|
63084
|
-
// },
|
|
63085
|
-
// email: null,
|
|
63086
|
-
// mobile: null,
|
|
63087
|
-
// avatar_url: 'http://uc-gateway.ykt.eduyun.cn/v1.1/users/452672293205/avatar_url?size=80&SDP-APP-ID=e5649925-441d-4a53-b525-51a2f1c4e0a8',
|
|
63088
|
-
// display_name: '康晓宇',
|
|
63089
|
-
// display_real_name: '康晓宇',
|
|
63090
|
-
// icon: 'http://uc-gateway.ykt.eduyun.cn/v1.1/users/452672293205/avatar_url?size=80&SDP-APP-ID=e5649925-441d-4a53-b525-51a2f1c4e0a8',
|
|
63091
|
-
// existed: true
|
|
63092
|
-
// }
|
|
63093
|
-
// }
|
|
63094
|
-
// ])
|
|
63095
|
-
// setTotal(1)
|
|
63096
|
-
// setLoading(false)
|
|
62956
|
+
setLoadingMore(false);
|
|
63097
62957
|
|
|
63098
62958
|
case 20:
|
|
63099
62959
|
case "end":
|
|
@@ -63106,7 +62966,79 @@ function PublicLiveList(_ref) {
|
|
|
63106
62966
|
}
|
|
63107
62967
|
|
|
63108
62968
|
getList();
|
|
63109
|
-
}, [page, status, refreshPage]);
|
|
62969
|
+
}, [page, status, refreshPage]); // 批量获取列表资源统计,按 item.live_id 建立映射供子项复用
|
|
62970
|
+
|
|
62971
|
+
(0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect)(function () {
|
|
62972
|
+
var ids = list_toConsumableArray(new Set((list || []).map(function (item) {
|
|
62973
|
+
return item === null || item === void 0 ? void 0 : item.live_id;
|
|
62974
|
+
}).filter(Boolean)));
|
|
62975
|
+
|
|
62976
|
+
if (!ids.length) {
|
|
62977
|
+
setLiveExtMap({});
|
|
62978
|
+
return;
|
|
62979
|
+
}
|
|
62980
|
+
|
|
62981
|
+
var canceled = false;
|
|
62982
|
+
|
|
62983
|
+
var loadStats = /*#__PURE__*/function () {
|
|
62984
|
+
var _ref2 = list_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2() {
|
|
62985
|
+
var stats, nextMap, statList;
|
|
62986
|
+
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
62987
|
+
while (1) {
|
|
62988
|
+
switch (_context2.prev = _context2.next) {
|
|
62989
|
+
case 0:
|
|
62990
|
+
_context2.prev = 0;
|
|
62991
|
+
_context2.next = 3;
|
|
62992
|
+
return getResourceStat(ids);
|
|
62993
|
+
|
|
62994
|
+
case 3:
|
|
62995
|
+
stats = _context2.sent;
|
|
62996
|
+
|
|
62997
|
+
if (!canceled) {
|
|
62998
|
+
_context2.next = 6;
|
|
62999
|
+
break;
|
|
63000
|
+
}
|
|
63001
|
+
|
|
63002
|
+
return _context2.abrupt("return");
|
|
63003
|
+
|
|
63004
|
+
case 6:
|
|
63005
|
+
nextMap = {};
|
|
63006
|
+
statList = stats || [];
|
|
63007
|
+
statList.forEach(function (item) {
|
|
63008
|
+
if ((item === null || item === void 0 ? void 0 : item.id) !== undefined && (item === null || item === void 0 ? void 0 : item.id) !== null) {
|
|
63009
|
+
nextMap[item.id] = item;
|
|
63010
|
+
}
|
|
63011
|
+
});
|
|
63012
|
+
setLiveExtMap(nextMap);
|
|
63013
|
+
_context2.next = 15;
|
|
63014
|
+
break;
|
|
63015
|
+
|
|
63016
|
+
case 12:
|
|
63017
|
+
_context2.prev = 12;
|
|
63018
|
+
_context2.t0 = _context2["catch"](0);
|
|
63019
|
+
|
|
63020
|
+
if (!canceled) {
|
|
63021
|
+
setLiveExtMap({});
|
|
63022
|
+
}
|
|
63023
|
+
|
|
63024
|
+
case 15:
|
|
63025
|
+
case "end":
|
|
63026
|
+
return _context2.stop();
|
|
63027
|
+
}
|
|
63028
|
+
}
|
|
63029
|
+
}, _callee2, null, [[0, 12]]);
|
|
63030
|
+
}));
|
|
63031
|
+
|
|
63032
|
+
return function loadStats() {
|
|
63033
|
+
return _ref2.apply(this, arguments);
|
|
63034
|
+
};
|
|
63035
|
+
}();
|
|
63036
|
+
|
|
63037
|
+
loadStats();
|
|
63038
|
+
return function () {
|
|
63039
|
+
canceled = true;
|
|
63040
|
+
};
|
|
63041
|
+
}, [list]);
|
|
63110
63042
|
var themeName = (0,cjs/* getXEduThemeName */.gV)();
|
|
63111
63043
|
var hasMore = list.length < total;
|
|
63112
63044
|
|
|
@@ -63130,6 +63062,7 @@ function PublicLiveList(_ref) {
|
|
|
63130
63062
|
loading: loading,
|
|
63131
63063
|
loadingMore: loadingMore,
|
|
63132
63064
|
list: list,
|
|
63065
|
+
liveExtMap: liveExtMap,
|
|
63133
63066
|
hasMore: hasMore,
|
|
63134
63067
|
onNextPage: function onNextPage() {
|
|
63135
63068
|
return setPage(function (prev) {
|
|
@@ -63169,6 +63102,7 @@ function PublicLiveList(_ref) {
|
|
|
63169
63102
|
themeName: themeName,
|
|
63170
63103
|
isMobile: isMobile,
|
|
63171
63104
|
data: listItem,
|
|
63105
|
+
liveExt: liveExtMap[listItem.live_id] || {},
|
|
63172
63106
|
key: listItem.live_id,
|
|
63173
63107
|
subscription: subscription,
|
|
63174
63108
|
onDetailClick: onDetailClick,
|