|
|
|
|
@ -1851,7 +1851,7 @@ var CourseListItems = function CourseListItems(_ref) {
|
|
|
|
|
};
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Home/Index/index.less?modules
|
|
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
|
/* harmony default export */ var Indexmodules = ({"flex_box_center":"flex_box_center___aFf5V","flex_space_between":"flex_space_between___lgjHK","flex_box_vertical_center":"flex_box_vertical_center___MWYpu","flex_box_center_end":"flex_box_center_end___fAgVO","flex_box_column":"flex_box_column___oLrCs","Onerow":"Onerow___DjxwV","MultiLine":"MultiLine___WgZFe","banner":"banner___zjrmW","LeftButton":"LeftButton___Dg0SE","RightButton":"RightButton___ruhiv","mainSiteBanner":"mainSiteBanner___zKH3a","subnavDetail":"subnavDetail___NWSKp","subnav":"subnav___TlZMN","nav":"nav___usdIP","link":"link___thKdp","course":"course___VqKLf","title":"title___UQUEK","more":"more___cd8yr","mainSite":"mainSite___L7hjf","mainSiteContent":"mainSiteContent___jh1Rf","auto":"auto___qF0mN","ContentWarp":"ContentWarp___scQcv","orientation":"orientation___KEYxX","lf":"lf___xIgy7","left":"left___C9bfs","btn":"btn___TiMo8","right":"right___nM0XG"});
|
|
|
|
|
/* harmony default export */ var Indexmodules = ({"flex_box_center":"flex_box_center___aFf5V","flex_space_between":"flex_space_between___lgjHK","flex_box_vertical_center":"flex_box_vertical_center___MWYpu","flex_box_center_end":"flex_box_center_end___fAgVO","flex_box_column":"flex_box_column___oLrCs","Onerow":"Onerow___DjxwV","MultiLine":"MultiLine___WgZFe","banner":"banner___zjrmW","LeftButton":"LeftButton___Dg0SE","RightButton":"RightButton___ruhiv","mainSiteBanner":"mainSiteBanner___zKH3a","subnavDetail":"subnavDetail___NWSKp","subnav":"subnav___TlZMN","nav":"nav___usdIP","link":"link___thKdp","course":"course___VqKLf","title":"title___UQUEK","more":"more___cd8yr","mainSite":"mainSite___L7hjf","mainSiteContent":"mainSiteContent___jh1Rf","auto":"auto___qF0mN","ContentWarp":"ContentWarp___scQcv","orientation":"orientation___KEYxX","lf":"lf___xIgy7","left":"left___C9bfs","btn":"btn___TiMo8","right":"right___nM0XG","bannerWrap":"bannerWrap___E3fZ7","carWrap":"carWrap___n8kWH","subnavSty":"subnavSty___xS1cI","navSty":"navSty___RXi0a","activeNav":"activeNav___o_4xW","subnavDetailSty":"subnavDetailSty___fEaT2","subnavDetailWrap":"subnavDetailWrap___AOFM4","nameSty":"nameSty____TmeW"});
|
|
|
|
|
// EXTERNAL MODULE: ./src/components/HomeModal/Advertisement.tsx + 1 modules
|
|
|
|
|
var Advertisement = __webpack_require__(85965);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/toConsumableArray.js
|
|
|
|
|
@ -4814,7 +4814,7 @@ function StudentshowModal_NewStudent(_ref) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var IndexPage = function IndexPage(_ref) {
|
|
|
|
|
var _globalSetting$settin8, _globalSetting$settin9, _user$userInfo;
|
|
|
|
|
var _globalSetting$settin13, _globalSetting$settin14, _user$userInfo;
|
|
|
|
|
var homePage = _ref.homePage,
|
|
|
|
|
globalSetting = _ref.globalSetting,
|
|
|
|
|
user = _ref.user,
|
|
|
|
|
@ -4926,10 +4926,14 @@ var IndexPage = function IndexPage(_ref) {
|
|
|
|
|
}));
|
|
|
|
|
return _getdata.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
var _useState7 = (0,_react_17_0_2_react.useState)(-1),
|
|
|
|
|
var _useState7 = (0,_react_17_0_2_react.useState)(0),
|
|
|
|
|
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
|
|
|
navIndex = _useState8[0],
|
|
|
|
|
setNavIndex = _useState8[1];
|
|
|
|
|
var _useState9 = (0,_react_17_0_2_react.useState)(0),
|
|
|
|
|
_useState10 = slicedToArray_default()(_useState9, 2),
|
|
|
|
|
activeNave = _useState10[0],
|
|
|
|
|
setActiveNave = _useState10[1];
|
|
|
|
|
var params = {
|
|
|
|
|
pagination: {
|
|
|
|
|
el: '.swiper-pagination',
|
|
|
|
|
@ -5054,6 +5058,103 @@ var IndexPage = function IndexPage(_ref) {
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
var renderBanner1 = function renderBanner1(isMainSite) {
|
|
|
|
|
var _globalSetting$settin8, _globalSetting$settin9, _globalSetting$settin10, _globalSetting$settin12, _subData$navIndex2, _homePage$images_url2;
|
|
|
|
|
var subData = !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin8 = globalSetting.setting) !== null && _globalSetting$settin8 !== void 0 && _globalSetting$settin8.main_site) || isMainSite ? homePage.homepage_disciplines : homePage.reps;
|
|
|
|
|
var subKey = !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin9 = globalSetting.setting) !== null && _globalSetting$settin9 !== void 0 && _globalSetting$settin9.main_site) || isMainSite ? 'sub_disciplines' : 'sub_repertoires';
|
|
|
|
|
var htmlTarget = !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin10 = globalSetting.setting) !== null && _globalSetting$settin10 !== void 0 && _globalSetting$settin10.main_site) || isMainSite ? 'paths' : 'shixuns';
|
|
|
|
|
var htmlTwoTarget = function htmlTwoTarget(v) {
|
|
|
|
|
var _globalSetting$settin11;
|
|
|
|
|
return !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin11 = globalSetting.setting) !== null && _globalSetting$settin11 !== void 0 && _globalSetting$settin11.main_site) || isMainSite ? "/paths?discipline_id=".concat(subData[navIndex].id, "&tag_tabs=").concat(navIndex + 1, "&sub_discipline_id=").concat(v.id, "&tag_level=2") : "/shixuns?current_id=".concat(subData[navIndex].id, "&tag_tabs=").concat(navIndex + 1, "&tag_id=").concat(v.id, "&tag_level=2");
|
|
|
|
|
};
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(_react_17_0_2_react.Fragment, {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Indexmodules.bannerWrap,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Indexmodules.subnavSty,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("ul", {
|
|
|
|
|
className: Indexmodules.navSty,
|
|
|
|
|
children: [subData && subData.map(function (v, k) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
|
|
|
|
|
onMouseOver: function onMouseOver() {
|
|
|
|
|
setNavIndex(k);
|
|
|
|
|
},
|
|
|
|
|
className: navIndex === k ? Indexmodules.activeNav : '',
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
|
|
|
|
|
to: "/".concat(htmlTarget, "?tag_tabs=").concat(k + 1, "¤t_id=").concat(v.id, "&tag_level=1"),
|
|
|
|
|
children: v.name
|
|
|
|
|
})
|
|
|
|
|
}, k);
|
|
|
|
|
}), (!(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin12 = globalSetting.setting) !== null && _globalSetting$settin12 !== void 0 && _globalSetting$settin12.main_site) || isMainSite) && /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
|
|
|
|
|
onMouseOver: function onMouseOver() {
|
|
|
|
|
return setNavIndex(-1);
|
|
|
|
|
},
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
|
|
|
|
|
to: "/paths",
|
|
|
|
|
target: "_blank",
|
|
|
|
|
children: "\u66F4\u591A"
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: Indexmodules.subnavDetailSty,
|
|
|
|
|
children: subData === null || subData === void 0 || (_subData$navIndex2 = subData[navIndex]) === null || _subData$navIndex2 === void 0 || (_subData$navIndex2 = _subData$navIndex2[subKey]) === null || _subData$navIndex2 === void 0 ? void 0 : _subData$navIndex2.map(function (v, k) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
|
|
|
|
|
to: htmlTwoTarget(v),
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Indexmodules.subnavDetailWrap,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: Indexmodules.nameSty,
|
|
|
|
|
children: v.name
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("ul", {
|
|
|
|
|
children: v.tags && v.tags.map(function (val, key) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
|
|
|
|
|
className: Indexmodules.link,
|
|
|
|
|
to: "/".concat(htmlTarget, "?current_id=").concat(subData[navIndex].id, "&tag_tabs=").concat(navIndex + 1, "&tag_id=").concat(val.id, "&tag_level=3"),
|
|
|
|
|
children: val.name
|
|
|
|
|
})
|
|
|
|
|
}, key);
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
}, k);
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Indexmodules.carWrap,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(LeftOutlined/* default */.Z, {
|
|
|
|
|
className: Indexmodules.LeftButton,
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
Carousels.current.prev();
|
|
|
|
|
}
|
|
|
|
|
}), homePage.images_url && /*#__PURE__*/(0,jsx_runtime.jsx)(carousel/* default */.Z, {
|
|
|
|
|
className: isMainSite ? Indexmodules.mainSite : '',
|
|
|
|
|
ref: Carousels,
|
|
|
|
|
autoplay: true,
|
|
|
|
|
pauseOnDotsHover: true,
|
|
|
|
|
children: (_homePage$images_url2 = homePage.images_url) === null || _homePage$images_url2 === void 0 ? void 0 : _homePage$images_url2.map(function (v, k) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
display: 'flex'
|
|
|
|
|
},
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
|
|
|
href: (v === null || v === void 0 ? void 0 : v.path) || '',
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
|
|
src: v.image_url
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}, k);
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(RightOutlined/* default */.Z, {
|
|
|
|
|
className: Indexmodules.RightButton,
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
Carousels.current.next();
|
|
|
|
|
}
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//渲染Banner
|
|
|
|
|
// const renderBanner = (isMainSite: boolean) => {
|
|
|
|
|
@ -5263,7 +5364,7 @@ var IndexPage = function IndexPage(_ref) {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//判断是否主站
|
|
|
|
|
var isMainSite = (globalSetting === null || globalSetting === void 0 || (_globalSetting$settin8 = globalSetting.setting) === null || _globalSetting$settin8 === void 0 ? void 0 : _globalSetting$settin8.main_site) && !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin9 = globalSetting.setting) !== null && _globalSetting$settin9 !== void 0 && _globalSetting$settin9.is_local);
|
|
|
|
|
var isMainSite = (globalSetting === null || globalSetting === void 0 || (_globalSetting$settin13 = globalSetting.setting) === null || _globalSetting$settin13 === void 0 ? void 0 : _globalSetting$settin13.main_site) && !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin14 = globalSetting.setting) !== null && _globalSetting$settin14 !== void 0 && _globalSetting$settin14.is_local);
|
|
|
|
|
if ((0,util/* checkIsClientExam */.Ll)()) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(ExamList["default"], {});
|
|
|
|
|
}
|
|
|
|
|
@ -5280,7 +5381,7 @@ var IndexPage = function IndexPage(_ref) {
|
|
|
|
|
}), parseInt(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", {
|
|
|
|
|
children: renderBanner(true)
|
|
|
|
|
children: renderBanner1(true)
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(components_MainSite, {})]
|
|
|
|
|
});
|
|
|
|
|
};
|