|
|
|
|
@ -915,6 +915,9 @@ var zh_CN = __webpack_require__(81863);
|
|
|
|
|
var _umi_production_exports = __webpack_require__(3125);
|
|
|
|
|
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 13 modules
|
|
|
|
|
var Header = __webpack_require__(93454);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/toConsumableArray.js
|
|
|
|
|
var toConsumableArray = __webpack_require__(37205);
|
|
|
|
|
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js
|
|
|
|
|
var regeneratorRuntime = __webpack_require__(7557);
|
|
|
|
|
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
|
|
|
|
|
@ -967,6 +970,7 @@ var jsx_runtime = __webpack_require__(37712);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var _excluded = ["user", "account", "globalSetting", "loading", "dispatch"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -990,46 +994,49 @@ var _excluded = ["user", "account", "globalSetting", "loading", "dispatch"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var AccountPage = function AccountPage(_ref) {
|
|
|
|
|
var _recommendData$, _recommendData$2, _recommendData$3, _recommendData$4, _recommendData$5, _recommendData$slice;
|
|
|
|
|
var _recommendData$2, _recommendData$3, _recommendData$4, _recommendData$5, _recommendData$6, _recommendData$slice;
|
|
|
|
|
var user = _ref.user,
|
|
|
|
|
account = _ref.account,
|
|
|
|
|
globalSetting = _ref.globalSetting,
|
|
|
|
|
loading = _ref.loading,
|
|
|
|
|
dispatch = _ref.dispatch,
|
|
|
|
|
props = objectWithoutProperties_default()(_ref, _excluded);
|
|
|
|
|
var statisticData = [{
|
|
|
|
|
icon: 'iconfont icon-zaixianrenshu1',
|
|
|
|
|
count: 83145,
|
|
|
|
|
title: '累计学习人数(人)'
|
|
|
|
|
}, {
|
|
|
|
|
icon: 'iconfont icon-zaixianrenshu1',
|
|
|
|
|
count: 6612,
|
|
|
|
|
title: '在线人数(人)'
|
|
|
|
|
}, {
|
|
|
|
|
icon: 'iconfont icon-pingcecishu',
|
|
|
|
|
count: 17117,
|
|
|
|
|
title: '评测次数(次)'
|
|
|
|
|
}, {
|
|
|
|
|
icon: 'iconfont icon-xianshangkaoshi',
|
|
|
|
|
count: 6,
|
|
|
|
|
title: '线上考试(场)'
|
|
|
|
|
}, {
|
|
|
|
|
icon: 'iconfont icon-shiyanhuanjing1',
|
|
|
|
|
count: 32,
|
|
|
|
|
title: '实验环境(种)'
|
|
|
|
|
}, {
|
|
|
|
|
icon: 'iconfont icon-shijiankechengfabu',
|
|
|
|
|
count: 16,
|
|
|
|
|
title: '实践课程(门)'
|
|
|
|
|
}, {
|
|
|
|
|
icon: 'iconfont icon-shijiankechengfabu',
|
|
|
|
|
count: 8,
|
|
|
|
|
title: '实践项目(个)'
|
|
|
|
|
}, {
|
|
|
|
|
icon: 'iconfont icon-shijiankechengfabu',
|
|
|
|
|
count: 107,
|
|
|
|
|
title: '试题库题(道)'
|
|
|
|
|
}];
|
|
|
|
|
var _useState = (0,_react_17_0_2_react.useState)([{
|
|
|
|
|
icon: 'iconfont icon-leijixuexirenshu1',
|
|
|
|
|
count: 83145,
|
|
|
|
|
title: '累计学习人数(人)'
|
|
|
|
|
}, {
|
|
|
|
|
icon: 'iconfont icon-zaixianrenshu2',
|
|
|
|
|
count: 6612,
|
|
|
|
|
title: '在线人数(人)'
|
|
|
|
|
}, {
|
|
|
|
|
icon: 'iconfont icon-pingcecishu1',
|
|
|
|
|
count: 17117,
|
|
|
|
|
title: '评测次数(次)'
|
|
|
|
|
}, {
|
|
|
|
|
icon: 'iconfont icon-xianshangkaoshi1',
|
|
|
|
|
count: 6,
|
|
|
|
|
title: '线上考试(场)'
|
|
|
|
|
}, {
|
|
|
|
|
icon: 'iconfont icon-shiyanhuanjing',
|
|
|
|
|
count: 32,
|
|
|
|
|
title: '实验环境(种)'
|
|
|
|
|
}, {
|
|
|
|
|
icon: 'iconfont icon-shijiankecheng1',
|
|
|
|
|
count: 16,
|
|
|
|
|
title: '实践课程(门)'
|
|
|
|
|
}, {
|
|
|
|
|
icon: 'iconfont icon-shijianxiangmu2',
|
|
|
|
|
count: 8,
|
|
|
|
|
title: '实践项目(个)'
|
|
|
|
|
}, {
|
|
|
|
|
icon: 'iconfont icon-shititiku',
|
|
|
|
|
count: 107,
|
|
|
|
|
title: '试题库题(道)'
|
|
|
|
|
}]),
|
|
|
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
|
|
|
statisticData = _useState2[0],
|
|
|
|
|
setStatisticData = _useState2[1];
|
|
|
|
|
var laborList = [{
|
|
|
|
|
id: 0,
|
|
|
|
|
title: "实验室管理",
|
|
|
|
|
@ -1055,30 +1062,26 @@ var AccountPage = function AccountPage(_ref) {
|
|
|
|
|
img: jiaoxueketang_namespaceObject,
|
|
|
|
|
link: '/classrooms'
|
|
|
|
|
}];
|
|
|
|
|
var _useState = (0,_react_17_0_2_react.useState)(0),
|
|
|
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
|
|
|
activeLaborId = _useState2[0],
|
|
|
|
|
setActiveLaborId = _useState2[1];
|
|
|
|
|
var _useState3 = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
var _useState3 = (0,_react_17_0_2_react.useState)(0),
|
|
|
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
|
|
|
radioList = _useState4[0],
|
|
|
|
|
setRadioList = _useState4[1];
|
|
|
|
|
activeLaborId = _useState4[0],
|
|
|
|
|
setActiveLaborId = _useState4[1];
|
|
|
|
|
var _useState5 = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
_useState6 = slicedToArray_default()(_useState5, 2),
|
|
|
|
|
recommendData = _useState6[0],
|
|
|
|
|
setRecommendData = _useState6[1];
|
|
|
|
|
radioList = _useState6[0],
|
|
|
|
|
setRadioList = _useState6[1];
|
|
|
|
|
var _useState7 = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
|
|
|
recommendShixun = _useState8[0],
|
|
|
|
|
setRecommendShixun = _useState8[1];
|
|
|
|
|
var _useState9 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
recommendData = _useState8[0],
|
|
|
|
|
setRecommendData = _useState8[1];
|
|
|
|
|
var _useState9 = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
_useState10 = slicedToArray_default()(_useState9, 2),
|
|
|
|
|
pageLoading = _useState10[0],
|
|
|
|
|
setPageLoading = _useState10[1];
|
|
|
|
|
var _useState11 = (0,_react_17_0_2_react.useState)({}),
|
|
|
|
|
recommendShixun = _useState10[0],
|
|
|
|
|
setRecommendShixun = _useState10[1];
|
|
|
|
|
var _useState11 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState12 = slicedToArray_default()(_useState11, 2),
|
|
|
|
|
statisTicCount = _useState12[0],
|
|
|
|
|
setStatisTicCount = _useState12[1];
|
|
|
|
|
pageLoading = _useState12[0],
|
|
|
|
|
setPageLoading = _useState12[1];
|
|
|
|
|
var getBRoadData = /*#__PURE__*/function () {
|
|
|
|
|
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
|
|
|
@ -1109,6 +1112,7 @@ var AccountPage = function AccountPage(_ref) {
|
|
|
|
|
}();
|
|
|
|
|
var getCourseData = /*#__PURE__*/function () {
|
|
|
|
|
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
|
|
|
|
|
var _res$index_statistics, _res$index_statistics2, _res$index_statistics3, _res$index_statistics4, _res$index_statistics5, _res$index_statistics6, _res$index_statistics7, _res$index_statistics8;
|
|
|
|
|
var res;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
|
|
|
|
|
while (1) switch (_context2.prev = _context2.next) {
|
|
|
|
|
@ -1119,7 +1123,16 @@ var AccountPage = function AccountPage(_ref) {
|
|
|
|
|
res = _context2.sent;
|
|
|
|
|
setRecommendData((res === null || res === void 0 ? void 0 : res.recommend_subjects) || []);
|
|
|
|
|
setRecommendShixun((res === null || res === void 0 ? void 0 : res.recommend_shixuns) || []);
|
|
|
|
|
case 5:
|
|
|
|
|
statisticData[0].count = res === null || res === void 0 || (_res$index_statistics = res.index_statistics) === null || _res$index_statistics === void 0 ? void 0 : _res$index_statistics.total_user_count;
|
|
|
|
|
statisticData[1].count = res === null || res === void 0 || (_res$index_statistics2 = res.index_statistics) === null || _res$index_statistics2 === void 0 ? void 0 : _res$index_statistics2.user_online_count;
|
|
|
|
|
statisticData[2].count = res === null || res === void 0 || (_res$index_statistics3 = res.index_statistics) === null || _res$index_statistics3 === void 0 ? void 0 : _res$index_statistics3.evaluate_count;
|
|
|
|
|
statisticData[3].count = res === null || res === void 0 || (_res$index_statistics4 = res.index_statistics) === null || _res$index_statistics4 === void 0 ? void 0 : _res$index_statistics4.exercise_count;
|
|
|
|
|
statisticData[4].count = res === null || res === void 0 || (_res$index_statistics5 = res.index_statistics) === null || _res$index_statistics5 === void 0 ? void 0 : _res$index_statistics5.repository_count;
|
|
|
|
|
statisticData[5].count = res === null || res === void 0 || (_res$index_statistics6 = res.index_statistics) === null || _res$index_statistics6 === void 0 ? void 0 : _res$index_statistics6.subject_count;
|
|
|
|
|
statisticData[6].count = res === null || res === void 0 || (_res$index_statistics7 = res.index_statistics) === null || _res$index_statistics7 === void 0 ? void 0 : _res$index_statistics7.shixun_count;
|
|
|
|
|
statisticData[7].count = res === null || res === void 0 || (_res$index_statistics8 = res.index_statistics) === null || _res$index_statistics8 === void 0 ? void 0 : _res$index_statistics8.question_count;
|
|
|
|
|
setStatisticData(toConsumableArray_default()(statisticData));
|
|
|
|
|
case 14:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context2.stop();
|
|
|
|
|
}
|
|
|
|
|
@ -1208,6 +1221,9 @@ var AccountPage = function AccountPage(_ref) {
|
|
|
|
|
src: junduibaowei_namespaceObject,
|
|
|
|
|
height: 100
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
_umi_production_exports.history.push('/paths?order=hot');
|
|
|
|
|
},
|
|
|
|
|
children: ["\u67E5\u770B\u66F4\u591A", /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
|
|
className: "iconfont icon-jiantou3"
|
|
|
|
|
})]
|
|
|
|
|
@ -1215,18 +1231,22 @@ var AccountPage = function AccountPage(_ref) {
|
|
|
|
|
}), !!(recommendData !== null && recommendData !== void 0 && recommendData.length) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: HomeVer2modules.firstCourseWrap,
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
var _recommendData$;
|
|
|
|
|
_umi_production_exports.history.push("/paths/".concat(recommendData === null || recommendData === void 0 || (_recommendData$ = recommendData[0]) === null || _recommendData$ === void 0 ? void 0 : _recommendData$.identifier));
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: HomeVer2modules.firstCourseImg,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
|
|
className: HomeVer2modules.cover,
|
|
|
|
|
src: "".concat(env/* default */.Z.IMG_SERVER, "/").concat(recommendData === null || recommendData === void 0 || (_recommendData$ = recommendData[0]) === null || _recommendData$ === void 0 ? void 0 : _recommendData$.image_url) || "".concat(env/* default */.Z.IMG_SERVER, "/").concat(recommendData === null || recommendData === void 0 || (_recommendData$2 = recommendData[0]) === null || _recommendData$2 === void 0 ? void 0 : _recommendData$2.pic)
|
|
|
|
|
src: "".concat(env/* default */.Z.IMG_SERVER, "/").concat(recommendData === null || recommendData === void 0 || (_recommendData$2 = recommendData[0]) === null || _recommendData$2 === void 0 ? void 0 : _recommendData$2.image_url) || "".concat(env/* default */.Z.IMG_SERVER, "/").concat(recommendData === null || recommendData === void 0 || (_recommendData$3 = recommendData[0]) === null || _recommendData$3 === void 0 ? void 0 : _recommendData$3.pic)
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: HomeVer2modules.firstCourseStage,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: HomeVer2modules.firststageName,
|
|
|
|
|
children: recommendData === null || recommendData === void 0 || (_recommendData$3 = recommendData[0]) === null || _recommendData$3 === void 0 ? void 0 : _recommendData$3.name
|
|
|
|
|
children: recommendData === null || recommendData === void 0 || (_recommendData$4 = recommendData[0]) === null || _recommendData$4 === void 0 ? void 0 : _recommendData$4.name
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: HomeVer2modules.firstStageCount,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
@ -1234,18 +1254,23 @@ var AccountPage = function AccountPage(_ref) {
|
|
|
|
|
children: "\u7AE0\u8282\u6570"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: "ml10",
|
|
|
|
|
children: recommendData === null || recommendData === void 0 || (_recommendData$4 = recommendData[0]) === null || _recommendData$4 === void 0 ? void 0 : _recommendData$4.stages_count
|
|
|
|
|
children: recommendData === null || recommendData === void 0 || (_recommendData$5 = recommendData[0]) === null || _recommendData$5 === void 0 ? void 0 : _recommendData$5.stages_count
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
children: "\u5B66\u4E60\u4EBA\u6570"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: "ml10",
|
|
|
|
|
children: recommendData === null || recommendData === void 0 || (_recommendData$5 = recommendData[0]) === null || _recommendData$5 === void 0 ? void 0 : _recommendData$5.members_count
|
|
|
|
|
children: recommendData === null || recommendData === void 0 || (_recommendData$6 = recommendData[0]) === null || _recommendData$6 === void 0 ? void 0 : _recommendData$6.members_count
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
var _recommendData$7;
|
|
|
|
|
_umi_production_exports.history.push("/paths/".concat(recommendData === null || recommendData === void 0 || (_recommendData$7 = recommendData[0]) === null || _recommendData$7 === void 0 ? void 0 : _recommendData$7.identifier));
|
|
|
|
|
},
|
|
|
|
|
className: "current",
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
style: {
|
|
|
|
|
marginRight: '8px',
|
|
|
|
|
@ -1263,6 +1288,9 @@ var AccountPage = function AccountPage(_ref) {
|
|
|
|
|
children: recommendData === null || recommendData === void 0 || (_recommendData$slice = recommendData.slice(1, 4)) === null || _recommendData$slice === void 0 ? void 0 : _recommendData$slice.map(function (item, index) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: HomeVer2modules.subCourseItem,
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
_umi_production_exports.history.push("/paths/".concat(item === null || item === void 0 ? void 0 : item.identifier));
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: HomeVer2modules.imgSty,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
|
|
@ -1307,6 +1335,9 @@ var AccountPage = function AccountPage(_ref) {
|
|
|
|
|
src: guangbo_namespaceObject,
|
|
|
|
|
height: 100
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
_umi_production_exports.history.push('/broadcast');
|
|
|
|
|
},
|
|
|
|
|
children: ["\u67E5\u770B\u66F4\u591A", /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
|
|
className: "iconfont icon-jiantou3"
|
|
|
|
|
})]
|
|
|
|
|
@ -1315,6 +1346,9 @@ var AccountPage = function AccountPage(_ref) {
|
|
|
|
|
children: radioList.map(function (item, index) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: HomeVer2modules.RadioItem,
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
_umi_production_exports.history.push("/broadcast/".concat(item === null || item === void 0 ? void 0 : item.id, "/detail?tabId=public"));
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: HomeVer2modules.dateWrap,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
@ -1327,7 +1361,7 @@ var AccountPage = function AccountPage(_ref) {
|
|
|
|
|
title: item === null || item === void 0 ? void 0 : item.name,
|
|
|
|
|
children: item === null || item === void 0 ? void 0 : item.name
|
|
|
|
|
})]
|
|
|
|
|
});
|
|
|
|
|
}, index);
|
|
|
|
|
})
|
|
|
|
|
}), !(radioList !== null && radioList !== void 0 && radioList.length) && /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {})]
|
|
|
|
|
})]
|
|
|
|
|
@ -1395,6 +1429,9 @@ var AccountPage = function AccountPage(_ref) {
|
|
|
|
|
src: shijianxiangmu_namespaceObject,
|
|
|
|
|
height: 100
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
_umi_production_exports.history.push('/shixuns?order=hot');
|
|
|
|
|
},
|
|
|
|
|
children: ["\u67E5\u770B\u66F4\u591A", /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
|
|
className: "iconfont icon-jiantou3"
|
|
|
|
|
})]
|