|
|
|
|
@ -5506,7 +5506,7 @@ var OffcialHome_VerifyType = /*#__PURE__*/function (VerifyType) {
|
|
|
|
|
return VerifyType;
|
|
|
|
|
}(OffcialHome_VerifyType || {});
|
|
|
|
|
var OffcialHome = function OffcialHome(_ref) {
|
|
|
|
|
var _user$userInfo2;
|
|
|
|
|
var _user$userInfo2, _localStorage;
|
|
|
|
|
var homePage = _ref.homePage,
|
|
|
|
|
globalSetting = _ref.globalSetting,
|
|
|
|
|
user = _ref.user,
|
|
|
|
|
@ -5602,7 +5602,7 @@ var OffcialHome = function OffcialHome(_ref) {
|
|
|
|
|
type: 'homePage/home',
|
|
|
|
|
payload: {}
|
|
|
|
|
});
|
|
|
|
|
}, [homePage.name]);
|
|
|
|
|
}, [homePage === null || homePage === void 0 ? void 0 : homePage.name]);
|
|
|
|
|
|
|
|
|
|
//出现页面右侧悬浮按钮
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
|
|
@ -5620,7 +5620,7 @@ var OffcialHome = function OffcialHome(_ref) {
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
|
|
// document.title = globalSetting?.setting?.name || '';
|
|
|
|
|
document.title = '信息工程大学';
|
|
|
|
|
}, [globalSetting.setting]);
|
|
|
|
|
}, [globalSetting === null || globalSetting === void 0 ? void 0 : globalSetting.setting]);
|
|
|
|
|
|
|
|
|
|
//热门课程和实训项目
|
|
|
|
|
var _useState7 = (0,_react_17_0_2_react.useState)(),
|
|
|
|
|
@ -5663,7 +5663,7 @@ var OffcialHome = function OffcialHome(_ref) {
|
|
|
|
|
if (!(0,verifyLogin/* handleVerify */.tJ)(dispatch)) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (type === OffcialHome_VerifyType.Projects && !((_user$userInfo = user.userInfo) !== null && _user$userInfo !== void 0 && _user$userInfo.email)) {
|
|
|
|
|
if (type === OffcialHome_VerifyType.Projects && !(user !== null && user !== void 0 && (_user$userInfo = user.userInfo) !== null && _user$userInfo !== void 0 && _user$userInfo.email)) {
|
|
|
|
|
message/* default */.ZP.info('请先绑定邮箱,谢谢');
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
@ -5683,7 +5683,7 @@ var OffcialHome = function OffcialHome(_ref) {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(StudentshowModal, {
|
|
|
|
|
modeldata: data,
|
|
|
|
|
userid: user === null || user === void 0 || (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.user_id
|
|
|
|
|
}), parseInt(localStorage.getItem('registeruser')) === 1 && /*#__PURE__*/(0,jsx_runtime.jsx)(Beginnerguide, {
|
|
|
|
|
}), parseInt((_localStorage = localStorage) === null || _localStorage === void 0 ? void 0 : _localStorage.getItem('registeruser')) === 1 && /*#__PURE__*/(0,jsx_runtime.jsx)(Beginnerguide, {
|
|
|
|
|
userInfo: user === null || user === void 0 ? void 0 : user.userInfo
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: OffcialHomemodules.banner,
|
|
|
|
|
@ -5852,7 +5852,8 @@ var OffcialHome = function OffcialHome(_ref) {
|
|
|
|
|
children: "\u63D0\u4F9B\u955C\u50CF\u7BA1\u7406\u3001\u8D44\u6E90\u5206\u914D\u3001\u8D44\u6E90\u76D1\u63A7\u3001\u5B9E\u65F6\u7EDF\u8BA1\u3001\u52A8\u6001\u6269\u5BB9\u3001\u5B9E\u9A8C\u673A\u73AF\u5883\u7BA1\u7406\u7B49\u529F\u80FD"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: OffcialHomemodules.experimentList,
|
|
|
|
|
children: pcManagementList.map(function (item, index) {
|
|
|
|
|
children: pcManagementList === null || pcManagementList === void 0 ? void 0 : pcManagementList.map(function (item, index) {
|
|
|
|
|
var _item$textConArr;
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: OffcialHomemodules.experimentListItem,
|
|
|
|
|
onMouseEnter: function onMouseEnter() {
|
|
|
|
|
@ -5864,11 +5865,11 @@ var OffcialHome = function OffcialHome(_ref) {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: OffcialHomemodules.experimentListItemCon,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
|
|
src: highLightIndex === index ? item.iconHover : item.icon
|
|
|
|
|
src: highLightIndex === index ? item === null || item === void 0 ? void 0 : item.iconHover : item === null || item === void 0 ? void 0 : item.icon
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("h1", {
|
|
|
|
|
children: item.name
|
|
|
|
|
children: item === null || item === void 0 ? void 0 : item.name
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("ul", {
|
|
|
|
|
children: item.textConArr.map(function (item2, index2) {
|
|
|
|
|
children: item === null || item === void 0 || (_item$textConArr = item.textConArr) === null || _item$textConArr === void 0 ? void 0 : _item$textConArr.map(function (item2, index2) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
|
|
|
|
|
children: item2
|
|
|
|
|
}, index2);
|
|
|
|
|
@ -5879,17 +5880,17 @@ var OffcialHome = function OffcialHome(_ref) {
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: OffcialHomemodules.cloudExperimentList,
|
|
|
|
|
children: cloudExperimentList.map(function (item, index) {
|
|
|
|
|
children: cloudExperimentList === null || cloudExperimentList === void 0 ? void 0 : cloudExperimentList.map(function (item, index) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("ul", {
|
|
|
|
|
children: item.map(function (item2, index2) {
|
|
|
|
|
children: item === null || item === void 0 ? void 0 : item.map(function (item2, index2) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
return (0,util/* openNewWindow */.xg)(item2.web);
|
|
|
|
|
return (0,util/* openNewWindow */.xg)(item2 === null || item2 === void 0 ? void 0 : item2.web);
|
|
|
|
|
},
|
|
|
|
|
style: {
|
|
|
|
|
cursor: 'pointer'
|
|
|
|
|
},
|
|
|
|
|
children: item2.name
|
|
|
|
|
children: item2 === null || item2 === void 0 ? void 0 : item2.name
|
|
|
|
|
}, index2);
|
|
|
|
|
})
|
|
|
|
|
}, index);
|
|
|
|
|
|