Auto Submit

dev_local_v9_test4
autosubmit 12 months ago
parent 418d2dfe45
commit 19e55c9c6d

@ -26,7 +26,7 @@
display: block !important;
}
</style><script>if(document.domain !== "www.educoder.net") document.title = '';</script>
<script src="/react/build/umi.f2eaecec.js"></script>
<script src="/react/build/umi.d5e314fa.js"></script>
<script src="/react/build/js/public.js"></script>
</body>
</html>

File diff suppressed because one or more lines are too long

@ -1,241 +0,0 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[2717],{
/***/ 45517:
/*!**********************************************!*\
!*** ./src/layouts/NewIndexLayout/index.tsx ***!
\**********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js */ 82242);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/createForOfIteratorHelper.js */ 91232);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js */ 79800);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ 59301);
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! umi */ 53095);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! antd */ 10249);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! antd */ 44000);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! antd */ 49127);
/* harmony import */ var _utils_env__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/utils/env */ 49149);
/* harmony import */ var _components_Header_components_Join__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/components/Header/components/Join */ 12478);
/* harmony import */ var _components_Header_components_User__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/components/Header/components/User */ 33930);
/* harmony import */ var _components_Header__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/components/Header */ 82498);
/* harmony import */ var _utils_authority__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/utils/authority */ 44338);
/* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @ant-design/icons */ 38819);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
var NavBarItemDom = function NavBarItemDom(_ref) {
var DataProps = _ref.DataProps,
_ref$activeKey = _ref.activeKey,
activeKey = _ref$activeKey === void 0 ? [] : _ref$activeKey,
setActiveKey = _ref.setActiveKey,
key = _ref.key,
selectKey = _ref.selectKey;
var children = (DataProps === null || DataProps === void 0 ? void 0 : DataProps.subitem) || [];
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.Fragment, {
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)("div", {
className: "flex item-center pl-20px-rem current relative",
style: {
height: "48rem",
background: selectKey ? "#eff6ff" : ""
},
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)("div", {
className: "multi_ellipsis1",
children: DataProps === null || DataProps === void 0 ? void 0 : DataProps.name
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z, {
className: "ml-auto",
rotate: activeKey.includes(key) ? 90 : 0,
rev: undefined
}), selectKey && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)("div", {
className: "absolute h-full w-2px-rem",
style: {
background: "#3061D0",
top: 0,
right: 0
}
})]
}), (children === null || children === void 0 ? void 0 : children.length) > 0 && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)("div", {
className: "pl-10px-rem",
children: children === null || children === void 0 ? void 0 : children.map(function (item, index) {
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(NavBarItemDom, {
DataProps: item,
activeKey: activeKey,
setActiveKey: setActiveKey,
selectKey: selectKey
}, "".concat(key, "-").concat(index));
})
})]
});
};
var commonStyle = {
backgroundColor: '#fff'
};
var Page = function Page(_ref2) {
var _globalSetting$settin2, _globalSetting$settin5, _globalSetting$settin6, _user$userInfo, _user$userInfo2, _user$navigationInfo;
var dispatch = _ref2.dispatch,
globalSetting = _ref2.globalSetting,
user = _ref2.user;
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(false),
_useState2 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default()(_useState, 2),
openSearch = _useState2[0],
setOpenSearch = _useState2[1];
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_3__.useState)([]),
_useState4 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default()(_useState3, 2),
activeKey = _useState4[0],
setActiveKey = _useState4[1];
var NavBarList = (0,react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(function () {
var _globalSetting$settin;
var isHidden = function isHidden(data) {
return !(data !== null && data !== void 0 && data.hidden) && !((0,_utils_authority__WEBPACK_IMPORTED_MODULE_9__/* .isCommonStudent */ .JA)() && (data === null || data === void 0 ? void 0 : data.link) === '/paperlibrary');
};
var list = (globalSetting === null || globalSetting === void 0 || (_globalSetting$settin = globalSetting.setting) === null || _globalSetting$settin === void 0 || (_globalSetting$settin = _globalSetting$settin.navbar) === null || _globalSetting$settin === void 0 ? void 0 : _globalSetting$settin.filter(function (item) {
return isHidden(item);
})) || [];
var _iterator = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_1___default()(list),
_step;
try {
for (_iterator.s(); !(_step = _iterator.n()).done;) {
var _visibleItem$subitem;
var visibleItem = _step.value;
visibleItem.subitem = (visibleItem === null || visibleItem === void 0 || (_visibleItem$subitem = visibleItem.subitem) === null || _visibleItem$subitem === void 0 ? void 0 : _visibleItem$subitem.filter(function (item) {
return isHidden(item);
})) || [];
}
} catch (err) {
_iterator.e(err);
} finally {
_iterator.f();
}
return list;
}, [globalSetting === null || globalSetting === void 0 || (_globalSetting$settin2 = globalSetting.setting) === null || _globalSetting$settin2 === void 0 ? void 0 : _globalSetting$settin2.navbar]);
var logoUrl = (0,react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(function () {
var _globalSetting$settin3;
if (!!(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin3 = globalSetting.setting) !== null && _globalSetting$settin3 !== void 0 && _globalSetting$settin3.nav_logo_url)) {
var _globalSetting$settin4;
return "".concat(_utils_env__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z.IMG_SERVER, "/").concat(globalSetting === null || globalSetting === void 0 || (_globalSetting$settin4 = globalSetting.setting) === null || _globalSetting$settin4 === void 0 ? void 0 : _globalSetting$settin4.nav_logo_url);
} else {
return "".concat(_utils_env__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z.IMG_SERVER, "/images/avatars/LaboratorySetting/1nav?t=").concat(new Date().getTime());
}
}, [globalSetting === null || globalSetting === void 0 || (_globalSetting$settin5 = globalSetting.setting) === null || _globalSetting$settin5 === void 0 ? void 0 : _globalSetting$settin5.nav_logo_url]);
var SearchInput = function SearchInput() {
function onGlobalSearch(value) {
umi__WEBPACK_IMPORTED_MODULE_4__.history.push('/search?value=' + value);
}
if (openSearch) {
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)("div", {
onBlur: function onBlur() {
setTimeout(function () {
setOpenSearch(false);
}, 300);
},
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z.Search, {
placeholder: "\u5B9E\u8DF5\u8BFE\u7A0B/\u6559\u5B66\u8BFE\u5802/\u5B9E\u8DF5\u9879\u76EE/\u4EA4\u6D41\u95EE\u7B54",
className: "search-input mr20",
onSearch: onGlobalSearch,
autoFocus: true
})
});
} else {
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)("span", {
className: "iconfont icon-sousuo font18 current",
onClick: function onClick() {
// setOpenSearch(true)
umi__WEBPACK_IMPORTED_MODULE_4__.history.push('/search?value=');
}
});
}
};
(0,react__WEBPACK_IMPORTED_MODULE_3__.useEffect)(function () {
dispatch({
type: "globalSetting/headerFooterToggle",
payload: false
});
return function () {
dispatch({
type: "globalSetting/headerFooterToggle",
payload: true
});
};
}, []);
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {
style: commonStyle,
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z.Header, {
className: "px-20px-rem flex item-center gap-20px-rem",
style: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, commonStyle), {}, {
height: "70rem"
}),
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)("img", {
title: globalSetting === null || globalSetting === void 0 || (_globalSetting$settin6 = globalSetting.setting) === null || _globalSetting$settin6 === void 0 ? void 0 : _globalSetting$settin6.name,
src: logoUrl,
style: {
height: "54rem"
}
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)("div", {
className: "ml-auto",
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(SearchInput, {})
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_components_Header_components_Join__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, {
icon: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)("span", {
className: "iconfont icon-zengjia"
})
}), !!(user !== null && user !== void 0 && (_user$userInfo = user.userInfo) !== null && _user$userInfo !== void 0 && _user$userInfo.login) && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(umi__WEBPACK_IMPORTED_MODULE_4__.Link, {
to: "/messages/".concat(user === null || user === void 0 || (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.login, "/user_tidings"),
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(antd__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z, {
dot: user === null || user === void 0 || (_user$navigationInfo = user.navigationInfo) === null || _user$navigationInfo === void 0 || (_user$navigationInfo = _user$navigationInfo.top) === null || _user$navigationInfo === void 0 ? void 0 : _user$navigationInfo.new_message,
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)("span", {
className: "iconfont icon-xiaoxilingdang font18"
})
})
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_components_Header_components_User__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z, {
payload: (0,_components_Header__WEBPACK_IMPORTED_MODULE_8__/* .getCourseParam */ .g)()
})]
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {
style: commonStyle,
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z.Sider, {
className: "flex flex-col",
width: "212rem",
style: commonStyle,
children: NavBarList === null || NavBarList === void 0 ? void 0 : NavBarList.map(function (item, index) {
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(NavBarItemDom, {
DataProps: item,
setActiveKey: setActiveKey,
activeKey: activeKey
}, index);
})
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z.Content, {
style: {
backgroundColor: "#EEF5FE"
},
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(umi__WEBPACK_IMPORTED_MODULE_4__.Outlet, {})
})]
})]
});
};
/* harmony default export */ __webpack_exports__["default"] = ((0,umi__WEBPACK_IMPORTED_MODULE_4__.connect)(function (_ref3) {
var globalSetting = _ref3.globalSetting,
user = _ref3.user;
return {
globalSetting: globalSetting,
user: user
};
})(Page));
/***/ })
}]);

@ -0,0 +1,288 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[59181],{
/***/ 93295:
/*!***************************************!*\
!*** ./src/pages/Dashboard/index.tsx ***!
\***************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js */ 79800);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectDestructuringEmpty_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectDestructuringEmpty.js */ 70236);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectDestructuringEmpty_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectDestructuringEmpty_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js */ 7557);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js */ 41498);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ 59301);
/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/utils/fetch */ 48147);
/* harmony import */ var _utils_hooks_useCustomRequest__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/utils/hooks/useCustomRequest */ 69801);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
/** @description 指示板统计页 */
var getStatistic = /*#__PURE__*/function () {
var _ref = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2___default()().mark(function _callee(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2___default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
return _context.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .ZP)('/api/home/statistic.json', {
method: 'Get',
params: params
}));
case 1:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getStatistic(_x) {
return _ref.apply(this, arguments);
};
}();
var Page = function Page(_ref2) {
var _StatisticData$data, _StatisticData$data2, _StatisticData$data3, _StatisticData$data4, _StatisticData$data5, _StatisticData$data6, _StatisticData$data7, _StatisticData$data8;
_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectDestructuringEmpty_js__WEBPACK_IMPORTED_MODULE_1___default()(_ref2);
var _useCustomRequest = (0,_utils_hooks_useCustomRequest__WEBPACK_IMPORTED_MODULE_6__/* .useCustomRequest */ .U)(getStatistic, {}),
_useCustomRequest2 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0___default()(_useCustomRequest, 4),
GetStatistic = _useCustomRequest2[2],
StatisticData = _useCustomRequest2[3];
var NumList = [];
var getData = /*#__PURE__*/function () {
var _ref3 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2___default()().mark(function _callee2() {
var res;
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2___default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
_context2.next = 2;
return GetStatistic({});
case 2:
res = _context2.sent;
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
setTimeout(function () {
getData();
}, 5 * 60 * 1000);
}
case 4:
case "end":
return _context2.stop();
}
}, _callee2);
}));
return function getData() {
return _ref3.apply(this, arguments);
};
}();
(0,react__WEBPACK_IMPORTED_MODULE_4__.useEffect)(function () {
getData();
}, []);
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("div", {
className: "flex flex-col gap-20px-rem py-20px-rem px-24px-rem",
style: {
color: "#121C31"
},
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)("div", {
className: "flex gap-18px-rem ",
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)("div", {
className: "flex flex-col gap-20px-rem rounded-8px-rem bg-white py-14px-rem px-20px-rem flex-2",
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("div", {
className: "font-medium",
children: "\u5E73\u53F0\u6210\u5458"
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("div", {
className: "flex item-center justify-between",
children: [{
title: "学习总人数",
num: StatisticData === null || StatisticData === void 0 || (_StatisticData$data = StatisticData.data) === null || _StatisticData$data === void 0 || (_StatisticData$data = _StatisticData$data.platform_member) === null || _StatisticData$data === void 0 ? void 0 : _StatisticData$data.total,
icon: ""
}, {
title: "教师数",
num: StatisticData === null || StatisticData === void 0 || (_StatisticData$data2 = StatisticData.data) === null || _StatisticData$data2 === void 0 || (_StatisticData$data2 = _StatisticData$data2.platform_member) === null || _StatisticData$data2 === void 0 ? void 0 : _StatisticData$data2.teacher_count,
icon: ""
}, {
title: "学生数",
num: StatisticData === null || StatisticData === void 0 || (_StatisticData$data3 = StatisticData.data) === null || _StatisticData$data3 === void 0 || (_StatisticData$data3 = _StatisticData$data3.platform_member) === null || _StatisticData$data3 === void 0 ? void 0 : _StatisticData$data3.student_count,
icon: ""
}].map(function (item, index) {
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)("div", {
className: "flex item-center gap-10px-rem",
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("div", {
children: item === null || item === void 0 ? void 0 : item.icon
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)("div", {
className: "flex flex-col gap-4px-rem",
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("div", {
className: "text-20px-rem font-bold",
children: item === null || item === void 0 ? void 0 : item.num
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("div", {
className: "c-grey-666 text-12px-rem",
children: item === null || item === void 0 ? void 0 : item.title
})]
})]
}, index);
})
})]
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)("div", {
className: "flex flex-col gap-20px-rem rounded-8px-rem bg-white py-14px-rem px-20px-rem",
style: {
flex: "1.5"
},
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("div", {
className: "font-medium",
children: "\u5B66\u4E60\u4EBA\u6570"
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("div", {
className: "flex item-center justify-between",
children: [{
title: "今日学习人数",
num: StatisticData === null || StatisticData === void 0 || (_StatisticData$data4 = StatisticData.data) === null || _StatisticData$data4 === void 0 || (_StatisticData$data4 = _StatisticData$data4.learn_number) === null || _StatisticData$data4 === void 0 ? void 0 : _StatisticData$data4.today_learn_count,
icon: ""
}, {
title: "正在学习人数",
num: StatisticData === null || StatisticData === void 0 || (_StatisticData$data5 = StatisticData.data) === null || _StatisticData$data5 === void 0 || (_StatisticData$data5 = _StatisticData$data5.learn_number) === null || _StatisticData$data5 === void 0 ? void 0 : _StatisticData$data5.learning_count,
icon: ""
}].map(function (item, index) {
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)("div", {
className: "flex item-center gap-10px-rem",
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("div", {
children: item === null || item === void 0 ? void 0 : item.icon
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)("div", {
className: "flex flex-col gap-4px-rem",
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("div", {
className: "text-20px-rem font-bold",
children: item === null || item === void 0 ? void 0 : item.num
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("div", {
className: "c-grey-666 text-12px-rem",
children: item === null || item === void 0 ? void 0 : item.title
})]
})]
}, index);
})
})]
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)("div", {
className: "flex flex-col gap-20px-rem rounded-8px-rem bg-white py-14px-rem px-20px-rem flex-2",
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("div", {
className: "font-medium",
children: "\u6559\u5B66\u5185\u5BB9\u6982\u89C8"
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("div", {
className: "flex item-center justify-between",
children: [{
title: "实践项目数",
num: StatisticData === null || StatisticData === void 0 || (_StatisticData$data6 = StatisticData.data) === null || _StatisticData$data6 === void 0 || (_StatisticData$data6 = _StatisticData$data6.teaching_content_overview) === null || _StatisticData$data6 === void 0 ? void 0 : _StatisticData$data6.shixun_count,
icon: ""
}, {
title: "智慧课程数",
num: StatisticData === null || StatisticData === void 0 || (_StatisticData$data7 = StatisticData.data) === null || _StatisticData$data7 === void 0 || (_StatisticData$data7 = _StatisticData$data7.teaching_content_overview) === null || _StatisticData$data7 === void 0 ? void 0 : _StatisticData$data7.subject_count,
icon: ""
}, {
title: "教学课堂数",
num: StatisticData === null || StatisticData === void 0 || (_StatisticData$data8 = StatisticData.data) === null || _StatisticData$data8 === void 0 || (_StatisticData$data8 = _StatisticData$data8.teaching_content_overview) === null || _StatisticData$data8 === void 0 ? void 0 : _StatisticData$data8.course_count,
icon: ""
}].map(function (item, index) {
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)("div", {
className: "flex item-center gap-10px-rem",
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("div", {
children: item === null || item === void 0 ? void 0 : item.icon
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)("div", {
className: "flex flex-col gap-4px-rem",
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("div", {
className: "text-20px-rem font-bold",
children: item === null || item === void 0 ? void 0 : item.num
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("div", {
className: "c-grey-666 text-12px-rem",
children: item === null || item === void 0 ? void 0 : item.title
})]
})]
}, index);
})
})]
})]
})
});
};
/* harmony default export */ __webpack_exports__["default"] = (Page);
/***/ }),
/***/ 69801:
/*!*********************************************!*\
!*** ./src/utils/hooks/useCustomRequest.ts ***!
\*********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ U: function() { return /* binding */ useCustomRequest; }
/* harmony export */ });
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js */ 7557);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js */ 82242);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js */ 41498);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js */ 79800);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ 59301);
//常见的请求模式包含loading和改变params。
function useCustomRequest(request, baseParams) {
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(baseParams),
_useState2 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState, 2),
params = _useState2[0],
setParams = _useState2[1];
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(false),
_useState4 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState3, 2),
loading = _useState4[0],
setLoading = _useState4[1];
var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(),
_useState6 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState5, 2),
data = _useState6[0],
setData = _useState6[1];
var getData = /*#__PURE__*/function () {
var _ref = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee(newParams) {
var reset,
mergedParams,
res,
_args = arguments;
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
reset = _args.length > 1 && _args[1] !== undefined ? _args[1] : false;
mergedParams = reset ? baseParams : _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params), newParams);
setLoading(true);
setParams(mergedParams);
_context.next = 6;
return request(mergedParams);
case 6:
res = _context.sent;
setLoading(false);
setData(res);
return _context.abrupt("return", res);
case 10:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getData(_x) {
return _ref.apply(this, arguments);
};
}();
return [params, loading, getData, data];
}
/***/ })
}]);

@ -0,0 +1,200 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[8011],{
/***/ 70238:
/*!*******************************************************!*\
!*** ./src/pages/Home/NewIndex/index.tsx + 1 modules ***!
\*******************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"default": function() { return /* binding */ NewIndex; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(79800);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectDestructuringEmpty.js
var objectDestructuringEmpty = __webpack_require__(70236);
var objectDestructuringEmpty_default = /*#__PURE__*/__webpack_require__.n(objectDestructuringEmpty);
// EXTERNAL MODULE: ./src/service/home.ts
var home = __webpack_require__(8509);
// EXTERNAL MODULE: ./src/utils/hooks/useCustomRequest.ts
var useCustomRequest = __webpack_require__(69801);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/spin/index.js + 1 modules
var spin = __webpack_require__(71418);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
var message = __webpack_require__(8591);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(49149);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
var _umi_production_exports = __webpack_require__(53095);
;// CONCATENATED MODULE: ./src/pages/Home/NewIndex/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var NewIndexmodules = ({"itemActive":"itemActive___UbXp5"});
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(44338);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(44862);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Home/NewIndex/index.tsx
var Page = function Page(_ref) {
var _PlatformSystemsData$;
objectDestructuringEmpty_default()(_ref);
var _useCustomRequest = (0,useCustomRequest/* useCustomRequest */.U)(home/* getPlatformSystems */.QY, {}),
_useCustomRequest2 = slicedToArray_default()(_useCustomRequest, 4),
PlatformSystemsLoading = _useCustomRequest2[1],
GetPlatformSystems = _useCustomRequest2[2],
PlatformSystemsData = _useCustomRequest2[3];
(0,_react_17_0_2_react.useEffect)(function () {
GetPlatformSystems({});
}, []);
return /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
spinning: PlatformSystemsLoading,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "flex flex-col item-center justify-center h-screen w-full",
style: {
overflow: "hidden",
padding: "0 360rem",
background: "url(".concat(__webpack_require__(/*! @/pages/User/NewLogin/imgs/bg.png */ 67858), ") 0 center / 100% 100% no-repeat")
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: __webpack_require__(/*! @/assets/images/common/logo.png */ 80824),
style: {
height: "68rem"
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "flex flex-wrap px-30px-rem py-60px-rem gap-24px-rem rounded-20px-rem mt-60px-rem",
style: {
background: "linear-gradient( 180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.3) 100%)",
border: "2rem solid #fff",
backdropFilter: "blur(4rem)",
width: "1205rem"
},
children: PlatformSystemsData === null || PlatformSystemsData === void 0 || (_PlatformSystemsData$ = PlatformSystemsData.data) === null || _PlatformSystemsData$ === void 0 || (_PlatformSystemsData$ = _PlatformSystemsData$.list) === null || _PlatformSystemsData$ === void 0 ? void 0 : _PlatformSystemsData$.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "flex flex-col item-center gap-10px-rem rounded-10px-rem pt-20px-rem pb-12px-rem px-12px-rem current text-16px-rem text-center font-medium ".concat(NewIndexmodules.itemActive),
onClick: function onClick() {
if ((item === null || item === void 0 ? void 0 : item.url) == "/admins" && !(0,authority/* isSuperAdmins */.Ny)()) {
message/* default */.ZP.warning("只有管理员可进,您暂无权限");
return;
}
if (item !== null && item !== void 0 && item.url) {
if ((item === null || item === void 0 ? void 0 : item.url) == "/admins") {
(0,util/* openNewWindow */.xg)(item === null || item === void 0 ? void 0 : item.url);
} else {
_umi_production_exports.history.push(item === null || item === void 0 ? void 0 : item.url);
}
}
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: "".concat(env/* default */.Z === null || env/* default */.Z === void 0 ? void 0 : env/* default */.Z.IMG_SERVER).concat(item === null || item === void 0 ? void 0 : item.pic)
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: item === null || item === void 0 ? void 0 : item.name
})]
}, index);
})
})]
})
});
};
/* harmony default export */ var NewIndex = (Page);
/***/ }),
/***/ 69801:
/*!*********************************************!*\
!*** ./src/utils/hooks/useCustomRequest.ts ***!
\*********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ U: function() { return /* binding */ useCustomRequest; }
/* harmony export */ });
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js */ 7557);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js */ 82242);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js */ 41498);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js */ 79800);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ 59301);
//常见的请求模式包含loading和改变params。
function useCustomRequest(request, baseParams) {
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(baseParams),
_useState2 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState, 2),
params = _useState2[0],
setParams = _useState2[1];
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(false),
_useState4 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState3, 2),
loading = _useState4[0],
setLoading = _useState4[1];
var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(),
_useState6 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState5, 2),
data = _useState6[0],
setData = _useState6[1];
var getData = /*#__PURE__*/function () {
var _ref = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee(newParams) {
var reset,
mergedParams,
res,
_args = arguments;
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
reset = _args.length > 1 && _args[1] !== undefined ? _args[1] : false;
mergedParams = reset ? baseParams : _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params), newParams);
setLoading(true);
setParams(mergedParams);
_context.next = 6;
return request(mergedParams);
case 6:
res = _context.sent;
setLoading(false);
setData(res);
return _context.abrupt("return", res);
case 10:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getData(_x) {
return _ref.apply(this, arguments);
};
}();
return [params, loading, getData, data];
}
/***/ })
}]);

@ -0,0 +1,16 @@
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.4.9@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.4.9@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Home/NewIndex/index.less?modules ***!
\**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.itemActive___UbXp5 {
color: #262A46;
max-width: 170rem;
background-color: rgba(255, 255, 255, 0.7);
-webkit-backdrop-filter: blur(0rem);
backdrop-filter: blur(0rem);
border: 1rem solid #DAE6FF;
}
.itemActive___UbXp5:hover {
box-shadow: 0px 6px 14px 0px rgba(177, 221, 255, 0.84);
border: 1px solid #1668FF;
}

@ -1,52 +0,0 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[8011],{
/***/ 70631:
/*!*******************************************!*\
!*** ./src/pages/Home/NewIndex/index.tsx ***!
\*******************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectDestructuringEmpty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectDestructuringEmpty.js */ 70236);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectDestructuringEmpty_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectDestructuringEmpty_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 59301);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
var Page = function Page(_ref) {
_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectDestructuringEmpty_js__WEBPACK_IMPORTED_MODULE_0___default()(_ref);
var List = [{
name: "信创化实验条件综合管理子系统",
img: ""
}];
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)("div", {
className: "flex flex-col item-center justify-center h-screen w-full",
style: {
overflow: "hidden",
padding: "0 360rem",
background: "url(".concat(__webpack_require__(/*! @/pages/User/NewLogin/imgs/bg.png */ 67858), ") 0 center / 100% 100% no-repeat")
},
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("img", {
src: __webpack_require__(/*! @/assets/images/common/logo.png */ 80824),
style: {
height: "68rem"
}
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", {
className: "flex flex-wrap px-30px-rem py-60px-rem gap-24px-rem rounded-20px-rem mt-60px-rem",
style: {
background: "linear-gradient( 180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.3) 100%)",
border: "2rem solid #fff",
backdropFilter: "blur(4rem)",
width: "1200rem"
}
})]
});
};
/* harmony default export */ __webpack_exports__["default"] = (Page);
/***/ })
}]);

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save