|
|
|
|
@ -501,6 +501,7 @@ var HeaderComponents = function HeaderComponents(_ref) {
|
|
|
|
|
var _user$userInfo, _user$userInfo2, _user$navigationInfo;
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: HeaderVermodules.wrap,
|
|
|
|
|
id: "edu-header",
|
|
|
|
|
style: {
|
|
|
|
|
backgroundColor: window.location.pathname.includes('/magazine') ? "#f5f5f5" : '#ffffff'
|
|
|
|
|
},
|
|
|
|
|
@ -1706,6 +1707,21 @@ var SimpleLayouts = function SimpleLayouts(_ref) {
|
|
|
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
|
|
|
isshow = _useState2[0],
|
|
|
|
|
setisshow = _useState2[1];
|
|
|
|
|
var matchPathDetail = (0,_umi_production_exports.useMatch)('/paths/:id/');
|
|
|
|
|
var matchPath = (0,_umi_production_exports.useMatch)('/paths');
|
|
|
|
|
var matchShixun = (0,_umi_production_exports.useMatch)('/shixuns');
|
|
|
|
|
var matchCompetitions = (0,_umi_production_exports.useMatch)('/competitions');
|
|
|
|
|
var blueBgRoute = ["/laboratory", "/equipment", "/materials", "/magazinever"];
|
|
|
|
|
var isHideHeader = false;
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
http://47.111.130.18:56789/laboratory/reservations
|
|
|
|
|
http://47.111.130.18:56789/equipment/information
|
|
|
|
|
http://47.111.130.18:56789/materials/itemAssets
|
|
|
|
|
http://47.111.130.18:56789/competitions
|
|
|
|
|
http://47.111.130.18:56789/shixuns
|
|
|
|
|
http://47.111.130.18:56789/magazinever/detail
|
|
|
|
|
*/
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
|
|
var time = dayjs_min_default()().add(0, 'days').unix();
|
|
|
|
|
var lasttime = localStorage.getItem('mainclose');
|
|
|
|
|
@ -1717,87 +1733,100 @@ var SimpleLayouts = function SimpleLayouts(_ref) {
|
|
|
|
|
setisshow(true);
|
|
|
|
|
}
|
|
|
|
|
}, []);
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(config_provider/* default */.ZP, {
|
|
|
|
|
locale: zh_CN/* default */.Z,
|
|
|
|
|
autoInsertSpaceInButton: false,
|
|
|
|
|
children: [
|
|
|
|
|
//
|
|
|
|
|
location.pathname === '/' && isshow && (globalSetting === null || globalSetting === void 0 || (_globalSetting$settin = globalSetting.setting) === null || _globalSetting$settin === void 0 || (_globalSetting$settin = _globalSetting$settin.adv_index) === null || _globalSetting$settin === void 0 ? void 0 : _globalSetting$settin.image_url) && (globalSetting === null || globalSetting === void 0 || (_globalSetting$settin2 = globalSetting.setting) === null || _globalSetting$settin2 === void 0 ? void 0 : _globalSetting$settin2.main_site) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
var _globalSetting$settin3;
|
|
|
|
|
return window.open(globalSetting === null || globalSetting === void 0 || (_globalSetting$settin3 = globalSetting.setting) === null || _globalSetting$settin3 === void 0 || (_globalSetting$settin3 = _globalSetting$settin3.adv_index) === null || _globalSetting$settin3 === void 0 ? void 0 : _globalSetting$settin3.jump_url);
|
|
|
|
|
},
|
|
|
|
|
style: {
|
|
|
|
|
background: "url(".concat(env/* default */.Z.IMG_SERVER + (globalSetting === null || globalSetting === void 0 || (_globalSetting$settin4 = globalSetting.setting) === null || _globalSetting$settin4 === void 0 || (_globalSetting$settin4 = _globalSetting$settin4.adv_index) === null || _globalSetting$settin4 === void 0 ? void 0 : _globalSetting$settin4.image_url), ") no-repeat center center"),
|
|
|
|
|
width: '100%',
|
|
|
|
|
height: 60,
|
|
|
|
|
margin: '0px auto',
|
|
|
|
|
display: 'flex',
|
|
|
|
|
cursor: 'pointer',
|
|
|
|
|
backgroundSize: 'cover'
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
|
|
|
|
|
// useEffect(() => {
|
|
|
|
|
|
|
|
|
|
if (blueBgRoute.some(function (item) {
|
|
|
|
|
return location.pathname.indexOf(item) > -1;
|
|
|
|
|
}) || matchPathDetail || matchPath || matchShixun || matchCompetitions) {
|
|
|
|
|
isHideHeader = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// },[])
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: isHideHeader ? "hideHeader2" : "",
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(config_provider/* default */.ZP, {
|
|
|
|
|
locale: zh_CN/* default */.Z,
|
|
|
|
|
autoInsertSpaceInButton: false,
|
|
|
|
|
children: [
|
|
|
|
|
//
|
|
|
|
|
location.pathname === '/' && isshow && (globalSetting === null || globalSetting === void 0 || (_globalSetting$settin = globalSetting.setting) === null || _globalSetting$settin === void 0 || (_globalSetting$settin = _globalSetting$settin.adv_index) === null || _globalSetting$settin === void 0 ? void 0 : _globalSetting$settin.image_url) && (globalSetting === null || globalSetting === void 0 || (_globalSetting$settin2 = globalSetting.setting) === null || _globalSetting$settin2 === void 0 ? void 0 : _globalSetting$settin2.main_site) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
var _globalSetting$settin3;
|
|
|
|
|
return window.open(globalSetting === null || globalSetting === void 0 || (_globalSetting$settin3 = globalSetting.setting) === null || _globalSetting$settin3 === void 0 || (_globalSetting$settin3 = _globalSetting$settin3.adv_index) === null || _globalSetting$settin3 === void 0 ? void 0 : _globalSetting$settin3.jump_url);
|
|
|
|
|
},
|
|
|
|
|
style: {
|
|
|
|
|
width: 1200,
|
|
|
|
|
margin: '0px auto',
|
|
|
|
|
background: "url(".concat(env/* default */.Z.IMG_SERVER + (globalSetting === null || globalSetting === void 0 || (_globalSetting$settin4 = globalSetting.setting) === null || _globalSetting$settin4 === void 0 || (_globalSetting$settin4 = _globalSetting$settin4.adv_index) === null || _globalSetting$settin4 === void 0 ? void 0 : _globalSetting$settin4.image_url), ") no-repeat center center"),
|
|
|
|
|
width: '100%',
|
|
|
|
|
height: 60,
|
|
|
|
|
margin: '0px auto',
|
|
|
|
|
display: 'flex',
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
justifyContent: 'space-between'
|
|
|
|
|
cursor: 'pointer',
|
|
|
|
|
backgroundSize: 'cover'
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
fontSize: 24,
|
|
|
|
|
fontWeight: 'bold',
|
|
|
|
|
color: '#fff',
|
|
|
|
|
visibility: 'hidden'
|
|
|
|
|
},
|
|
|
|
|
children: "\u3010\u8BA1\u7B97\u673A\u5B66\u4E60\u4EA4\u6D41\u7FA4\u3011\u9886\u53D6C\u8BED\u8A00/Java/Python/\u7A0B\u5E8F\u7ADE\u8D5B\u8D44\u6599\uFF0C\u70B9\u51FB\u52A0\u5165"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
// window.open(`/paths/a8fznwuh`)
|
|
|
|
|
window.open("https://mp.weixin.qq.com/s/31gNJVLlG1nTymoyL1uUJA");
|
|
|
|
|
// history.push(`/Activities`);
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
visibility: 'hidden',
|
|
|
|
|
width: '104px',
|
|
|
|
|
height: '30px',
|
|
|
|
|
borderRadius: 15,
|
|
|
|
|
width: 1200,
|
|
|
|
|
margin: '0px auto',
|
|
|
|
|
height: 60,
|
|
|
|
|
display: 'flex',
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
justifyContent: 'center',
|
|
|
|
|
color: '#FFFFFF',
|
|
|
|
|
cursor: 'pointer',
|
|
|
|
|
background: 'linear-gradient(270deg, #FF4C00 0%, #FF9C01 100%)'
|
|
|
|
|
justifyContent: 'space-between'
|
|
|
|
|
},
|
|
|
|
|
children: ["\u67E5\u770B\u8BE6\u60C5 ", /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
|
|
src: left_namespaceObject,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
marginLeft: 5
|
|
|
|
|
}
|
|
|
|
|
fontSize: 24,
|
|
|
|
|
fontWeight: 'bold',
|
|
|
|
|
color: '#fff',
|
|
|
|
|
visibility: 'hidden'
|
|
|
|
|
},
|
|
|
|
|
children: "\u3010\u8BA1\u7B97\u673A\u5B66\u4E60\u4EA4\u6D41\u7FA4\u3011\u9886\u53D6C\u8BED\u8A00/Java/Python/\u7A0B\u5E8F\u7ADE\u8D5B\u8D44\u6599\uFF0C\u70B9\u51FB\u52A0\u5165"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
// window.open(`/paths/a8fznwuh`)
|
|
|
|
|
window.open("https://mp.weixin.qq.com/s/31gNJVLlG1nTymoyL1uUJA");
|
|
|
|
|
// history.push(`/Activities`);
|
|
|
|
|
},
|
|
|
|
|
style: {
|
|
|
|
|
visibility: 'hidden',
|
|
|
|
|
width: '104px',
|
|
|
|
|
height: '30px',
|
|
|
|
|
borderRadius: 15,
|
|
|
|
|
display: 'flex',
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
justifyContent: 'center',
|
|
|
|
|
color: '#FFFFFF',
|
|
|
|
|
cursor: 'pointer',
|
|
|
|
|
background: 'linear-gradient(270deg, #FF4C00 0%, #FF9C01 100%)'
|
|
|
|
|
},
|
|
|
|
|
children: ["\u67E5\u770B\u8BE6\u60C5 ", /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
|
|
src: left_namespaceObject,
|
|
|
|
|
style: {
|
|
|
|
|
marginLeft: 5
|
|
|
|
|
}
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
|
|
src: images_delete,
|
|
|
|
|
onClick: function onClick(e) {
|
|
|
|
|
e.stopPropagation();
|
|
|
|
|
//获取当前时间存入本地 如果点击关机就24小时显示 如果没有就显示
|
|
|
|
|
localStorage.setItem('mainclose', dayjs_min_default()().add(1, 'days').unix() + '');
|
|
|
|
|
setisshow(false);
|
|
|
|
|
},
|
|
|
|
|
style: {
|
|
|
|
|
width: 16,
|
|
|
|
|
height: 16,
|
|
|
|
|
marginRight: 6,
|
|
|
|
|
marginTop: 6,
|
|
|
|
|
cursor: 'pointer'
|
|
|
|
|
}
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
|
|
src: images_delete,
|
|
|
|
|
onClick: function onClick(e) {
|
|
|
|
|
e.stopPropagation();
|
|
|
|
|
//获取当前时间存入本地 如果点击关机就24小时显示 如果没有就显示
|
|
|
|
|
localStorage.setItem('mainclose', dayjs_min_default()().add(1, 'days').unix() + '');
|
|
|
|
|
setisshow(false);
|
|
|
|
|
},
|
|
|
|
|
style: {
|
|
|
|
|
width: 16,
|
|
|
|
|
height: 16,
|
|
|
|
|
marginRight: 6,
|
|
|
|
|
marginTop: 6,
|
|
|
|
|
cursor: 'pointer'
|
|
|
|
|
}
|
|
|
|
|
})]
|
|
|
|
|
}), document.domain !== "kepukehuan.educoder.net" && /*#__PURE__*/(0,jsx_runtime.jsx)(HeaderVer, objectSpread2_default()({}, props)), /*#__PURE__*/(0,jsx_runtime.jsx)("section", {
|
|
|
|
|
className: layoutsmodules/* default */.Z.layoutMainClass,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Outlet, {})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(components_SideBar, {}), !(0,util/* checkIsClientExam */.Ll)() && document.domain !== "kepukehuan.educoder.net" && location.pathname !== '/' && /*#__PURE__*/(0,jsx_runtime.jsx)(Footer, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(ExportModel, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(components_LengthenModel, {}), !(0,util/* checkIsClientExam */.Ll)() && /*#__PURE__*/(0,jsx_runtime.jsx)(components_CustomOperateModel, {})]
|
|
|
|
|
}), document.domain !== "kepukehuan.educoder.net" && /*#__PURE__*/(0,jsx_runtime.jsx)(HeaderVer, objectSpread2_default()({}, props)), /*#__PURE__*/(0,jsx_runtime.jsx)("section", {
|
|
|
|
|
className: layoutsmodules/* default */.Z.layoutMainClass,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Outlet, {})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(components_SideBar, {}), !(0,util/* checkIsClientExam */.Ll)() && document.domain !== "kepukehuan.educoder.net" && location.pathname !== '/' && /*#__PURE__*/(0,jsx_runtime.jsx)(Footer, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(ExportModel, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(components_LengthenModel, {}), !(0,util/* checkIsClientExam */.Ll)() && /*#__PURE__*/(0,jsx_runtime.jsx)(components_CustomOperateModel, {})]
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
/* harmony default export */ var layouts_SimpleLayouts = ((0,_umi_production_exports.connect)(function (_ref2) {
|