|
|
|
|
@ -14,20 +14,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
|
|
/* 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 _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/toConsumableArray.js */ 37205);
|
|
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_toConsumableArray_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_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ 59301);
|
|
|
|
|
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! umi */ 48938);
|
|
|
|
|
/* 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 antd__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! antd */ 20834);
|
|
|
|
|
/* harmony import */ var _components_Header_components_Join__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/components/Header/components/Join */ 59873);
|
|
|
|
|
/* harmony import */ var _components_Header_components_User__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/components/Header/components/User */ 72670);
|
|
|
|
|
/* harmony import */ var _components_Header__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/components/Header */ 94758);
|
|
|
|
|
/* harmony import */ var _utils_authority__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/utils/authority */ 65241);
|
|
|
|
|
/* harmony import */ var _utils_util__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @/utils/util */ 82338);
|
|
|
|
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
|
|
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ 59301);
|
|
|
|
|
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! umi */ 48938);
|
|
|
|
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! antd */ 10249);
|
|
|
|
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! antd */ 44000);
|
|
|
|
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! antd */ 49127);
|
|
|
|
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! antd */ 20834);
|
|
|
|
|
/* harmony import */ var _components_Header_components_Join__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/components/Header/components/Join */ 59873);
|
|
|
|
|
/* harmony import */ var _components_Header_components_User__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/components/Header/components/User */ 72670);
|
|
|
|
|
/* harmony import */ var _components_Header__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/components/Header */ 94758);
|
|
|
|
|
/* harmony import */ var _utils_authority__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/utils/authority */ 65241);
|
|
|
|
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -40,88 +37,26 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var NavBarItemDom = function NavBarItemDom(_ref) {
|
|
|
|
|
var _split;
|
|
|
|
|
var DataProps = _ref.DataProps,
|
|
|
|
|
activeKey = _ref.activeKey,
|
|
|
|
|
setActiveKey = _ref.setActiveKey,
|
|
|
|
|
key = _ref.key,
|
|
|
|
|
_ref$selectKey = _ref.selectKey,
|
|
|
|
|
selectKey = _ref$selectKey === void 0 ? [] : _ref$selectKey,
|
|
|
|
|
setSelectKey = _ref.setSelectKey,
|
|
|
|
|
index = _ref.index;
|
|
|
|
|
var children = (DataProps === null || DataProps === void 0 ? void 0 : DataProps.subitem) || [];
|
|
|
|
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
|
|
|
children: [/*#__PURE__*/_jsxs("div", {
|
|
|
|
|
className: "flex item-center pl-20px-rem current relative",
|
|
|
|
|
style: {
|
|
|
|
|
height: "48rem",
|
|
|
|
|
background: activeKey == (DataProps === null || DataProps === void 0 ? void 0 : DataProps.link) ? "#eff6ff" : "",
|
|
|
|
|
paddingLeft: "".concat((((_split = "".concat(key || index).split("-")) === null || _split === void 0 ? void 0 : _split.length) - 1) * 10 + 20, "rem")
|
|
|
|
|
},
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
var _DataProps$link;
|
|
|
|
|
setActiveKey(DataProps === null || DataProps === void 0 ? void 0 : DataProps.link);
|
|
|
|
|
setSelectKey(selectKey.includes(key) ? selectKey.filter(function (item) {
|
|
|
|
|
return item !== key;
|
|
|
|
|
}) : [].concat(_toConsumableArray(selectKey), [key]));
|
|
|
|
|
if (DataProps !== null && DataProps !== void 0 && (_DataProps$link = DataProps.link) !== null && _DataProps$link !== void 0 && _DataProps$link.includes("http")) {
|
|
|
|
|
openNewWindow(DataProps === null || DataProps === void 0 ? void 0 : DataProps.link);
|
|
|
|
|
} else {
|
|
|
|
|
history.push(DataProps === null || DataProps === void 0 ? void 0 : DataProps.link);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/_jsx("div", {
|
|
|
|
|
className: "multi_ellipsis1",
|
|
|
|
|
children: DataProps === null || DataProps === void 0 ? void 0 : DataProps.name
|
|
|
|
|
}), (children === null || children === void 0 ? void 0 : children.length) > 0 && /*#__PURE__*/_jsx(RightOutlined, {
|
|
|
|
|
className: "ml-auto",
|
|
|
|
|
rotate: selectKey.includes(key) ? 90 : 0,
|
|
|
|
|
rev: undefined
|
|
|
|
|
}), activeKey == (DataProps === null || DataProps === void 0 ? void 0 : DataProps.link) && /*#__PURE__*/_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 && selectKey.includes(key) && (children === null || children === void 0 ? void 0 : children.map(function (item, i) {
|
|
|
|
|
return /*#__PURE__*/_jsx(NavBarItemDom, {
|
|
|
|
|
DataProps: item,
|
|
|
|
|
index: "".concat(key || index, "-").concat(i),
|
|
|
|
|
activeKey: activeKey,
|
|
|
|
|
setActiveKey: setActiveKey,
|
|
|
|
|
selectKey: selectKey,
|
|
|
|
|
setSelectKey: setSelectKey
|
|
|
|
|
}, "".concat(key || index, "-").concat(i));
|
|
|
|
|
}))]
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
var commonStyle = {
|
|
|
|
|
backgroundColor: '#fff'
|
|
|
|
|
};
|
|
|
|
|
var Page = function Page(_ref2) {
|
|
|
|
|
var Page = function Page(_ref) {
|
|
|
|
|
var _globalSetting$settin2, _globalSetting$settin3, _user$userInfo, _user$userInfo2, _user$navigationInfo;
|
|
|
|
|
var dispatch = _ref2.dispatch,
|
|
|
|
|
globalSetting = _ref2.globalSetting,
|
|
|
|
|
user = _ref2.user;
|
|
|
|
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(false),
|
|
|
|
|
var dispatch = _ref.dispatch,
|
|
|
|
|
globalSetting = _ref.globalSetting,
|
|
|
|
|
user = _ref.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_4__.useState)([]),
|
|
|
|
|
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_4__.useMemo)(function () {
|
|
|
|
|
var _globalSetting$settin, _location$pathname;
|
|
|
|
|
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');
|
|
|
|
|
return !(data !== null && data !== void 0 && data.hidden) && !((0,_utils_authority__WEBPACK_IMPORTED_MODULE_8__/* .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);
|
|
|
|
|
@ -141,21 +76,26 @@ var Page = function Page(_ref2) {
|
|
|
|
|
} finally {
|
|
|
|
|
_iterator.f();
|
|
|
|
|
}
|
|
|
|
|
setActiveKey(['/' + ((_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[1])]);
|
|
|
|
|
if (location.pathname == '/shixuns/interface') {
|
|
|
|
|
setActiveKey(['/shixuns/interface']);
|
|
|
|
|
} else {
|
|
|
|
|
var _location$pathname;
|
|
|
|
|
setActiveKey(['/' + ((_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[1])]);
|
|
|
|
|
}
|
|
|
|
|
return list;
|
|
|
|
|
}, [globalSetting === null || globalSetting === void 0 || (_globalSetting$settin2 = globalSetting.setting) === null || _globalSetting$settin2 === void 0 ? void 0 : _globalSetting$settin2.navbar]);
|
|
|
|
|
var SearchInput = function SearchInput() {
|
|
|
|
|
function onGlobalSearch(value) {
|
|
|
|
|
umi__WEBPACK_IMPORTED_MODULE_5__.history.push('/search?value=' + value);
|
|
|
|
|
umi__WEBPACK_IMPORTED_MODULE_4__.history.push('/search?value=' + value);
|
|
|
|
|
}
|
|
|
|
|
if (openSearch) {
|
|
|
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("div", {
|
|
|
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
|
|
|
|
|
onBlur: function onBlur() {
|
|
|
|
|
setTimeout(function () {
|
|
|
|
|
setOpenSearch(false);
|
|
|
|
|
}, 300);
|
|
|
|
|
},
|
|
|
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z.Search, {
|
|
|
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(antd__WEBPACK_IMPORTED_MODULE_10__/* ["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,
|
|
|
|
|
@ -163,20 +103,16 @@ var Page = function Page(_ref2) {
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("span", {
|
|
|
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("span", {
|
|
|
|
|
className: "iconfont icon-sousuo font18 current",
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
// setOpenSearch(true)
|
|
|
|
|
umi__WEBPACK_IMPORTED_MODULE_5__.history.push('/search?value=');
|
|
|
|
|
umi__WEBPACK_IMPORTED_MODULE_4__.history.push('/search?value=');
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
(0,react__WEBPACK_IMPORTED_MODULE_4__.useEffect)(function () {
|
|
|
|
|
if (!(0,_utils_authority__WEBPACK_IMPORTED_MODULE_9__/* .isLogin */ .bg)()) {
|
|
|
|
|
umi__WEBPACK_IMPORTED_MODULE_5__.history.push("/");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
(0,react__WEBPACK_IMPORTED_MODULE_3__.useEffect)(function () {
|
|
|
|
|
dispatch({
|
|
|
|
|
type: "globalSetting/headerFooterToggle",
|
|
|
|
|
payload: false
|
|
|
|
|
@ -188,88 +124,80 @@ var Page = function Page(_ref2) {
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
}, []);
|
|
|
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {
|
|
|
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z, {
|
|
|
|
|
className: "text-14px-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), {}, {
|
|
|
|
|
minHeight: "100vh"
|
|
|
|
|
}),
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z.Header, {
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["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_11__.jsx)("img", {
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("img", {
|
|
|
|
|
title: globalSetting === null || globalSetting === void 0 || (_globalSetting$settin3 = globalSetting.setting) === null || _globalSetting$settin3 === void 0 ? void 0 : _globalSetting$settin3.name,
|
|
|
|
|
src: __webpack_require__(/*! @/assets/images/common/logo2.png */ 94239),
|
|
|
|
|
style: {
|
|
|
|
|
height: "54rem"
|
|
|
|
|
}
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("div", {
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
|
|
|
|
|
className: "ml-auto",
|
|
|
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(SearchInput, {})
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_components_Header_components_Join__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, {
|
|
|
|
|
icon: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("span", {
|
|
|
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(SearchInput, {})
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_components_Header_components_Join__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, {
|
|
|
|
|
icon: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.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_11__.jsx)(umi__WEBPACK_IMPORTED_MODULE_5__.Link, {
|
|
|
|
|
}), !!(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_9__.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_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z, {
|
|
|
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["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_11__.jsx)("span", {
|
|
|
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("span", {
|
|
|
|
|
className: "iconfont icon-xiaoxilingdang font18"
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.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_9__.jsx)(_components_Header_components_User__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, {
|
|
|
|
|
payload: (0,_components_Header__WEBPACK_IMPORTED_MODULE_7__/* .getCourseParam */ .g)()
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z, {
|
|
|
|
|
style: commonStyle,
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z.Sider, {
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z.Sider, {
|
|
|
|
|
className: "flex flex-col",
|
|
|
|
|
width: "212rem",
|
|
|
|
|
style: commonStyle,
|
|
|
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z, {
|
|
|
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {
|
|
|
|
|
className: "w-full",
|
|
|
|
|
mode: "inline",
|
|
|
|
|
defaultSelectedKeys: activeKey,
|
|
|
|
|
onSelect: function onSelect(_ref2) {
|
|
|
|
|
var key = _ref2.key;
|
|
|
|
|
if (key && key.includes("/")) {
|
|
|
|
|
umi__WEBPACK_IMPORTED_MODULE_4__.history.push(key);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
items: NavBarList === null || NavBarList === void 0 ? void 0 : NavBarList.map(function (item, index) {
|
|
|
|
|
var _item$subitem, _item$subitem2;
|
|
|
|
|
return {
|
|
|
|
|
key: (item === null || item === void 0 ? void 0 : item.link) || index,
|
|
|
|
|
label: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("span", {
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
if (item !== null && item !== void 0 && item.link) {
|
|
|
|
|
umi__WEBPACK_IMPORTED_MODULE_5__.history.push(item === null || item === void 0 ? void 0 : item.link);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
children: item === null || item === void 0 ? void 0 : item.name
|
|
|
|
|
}),
|
|
|
|
|
label: (item === null || item === void 0 ? void 0 : item.name) || "",
|
|
|
|
|
children: (item === null || item === void 0 || (_item$subitem = item.subitem) === null || _item$subitem === void 0 ? void 0 : _item$subitem.length) > 0 ? item === null || item === void 0 || (_item$subitem2 = item.subitem) === null || _item$subitem2 === void 0 ? void 0 : _item$subitem2.map(function (v, i) {
|
|
|
|
|
return {
|
|
|
|
|
key: (v === null || v === void 0 ? void 0 : v.link) || "".concat(index, "-").concat(i),
|
|
|
|
|
label: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("span", {
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
if (v !== null && v !== void 0 && v.link) {
|
|
|
|
|
umi__WEBPACK_IMPORTED_MODULE_5__.history.push(v === null || v === void 0 ? void 0 : v.link);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
children: v === null || v === void 0 ? void 0 : v.name
|
|
|
|
|
})
|
|
|
|
|
label: (v === null || v === void 0 ? void 0 : v.name) || ""
|
|
|
|
|
};
|
|
|
|
|
}) : null
|
|
|
|
|
};
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z.Content, {
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z.Content, {
|
|
|
|
|
style: {
|
|
|
|
|
backgroundColor: "#EEF5FE"
|
|
|
|
|
},
|
|
|
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(umi__WEBPACK_IMPORTED_MODULE_5__.Outlet, {})
|
|
|
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(umi__WEBPACK_IMPORTED_MODULE_4__.Outlet, {})
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = ((0,umi__WEBPACK_IMPORTED_MODULE_5__.connect)(function (_ref3) {
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = ((0,umi__WEBPACK_IMPORTED_MODULE_4__.connect)(function (_ref3) {
|
|
|
|
|
var globalSetting = _ref3.globalSetting,
|
|
|
|
|
user = _ref3.user;
|
|
|
|
|
return {
|