|
|
|
|
@ -5059,7 +5059,7 @@ 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 _globalSetting$settin8, _globalSetting$settin9, _globalSetting$settin10, _globalSetting$settin12, _subData$navIndex2, _homePage$images_url2, _homePage$images_url3, _homePage$images_url4;
|
|
|
|
|
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';
|
|
|
|
|
@ -5122,7 +5122,7 @@ var IndexPage = function IndexPage(_ref) {
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Indexmodules.carWrap,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(LeftOutlined/* default */.Z, {
|
|
|
|
|
children: [((_homePage$images_url2 = homePage.images_url) === null || _homePage$images_url2 === void 0 ? void 0 : _homePage$images_url2.length) > 1 && /*#__PURE__*/(0,jsx_runtime.jsx)(LeftOutlined/* default */.Z, {
|
|
|
|
|
className: Indexmodules.LeftButton,
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
Carousels.current.prev();
|
|
|
|
|
@ -5132,7 +5132,7 @@ var IndexPage = function IndexPage(_ref) {
|
|
|
|
|
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) {
|
|
|
|
|
children: (_homePage$images_url3 = homePage.images_url) === null || _homePage$images_url3 === void 0 ? void 0 : _homePage$images_url3.map(function (v, k) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
display: 'flex'
|
|
|
|
|
@ -5145,7 +5145,7 @@ var IndexPage = function IndexPage(_ref) {
|
|
|
|
|
})
|
|
|
|
|
}, k);
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(RightOutlined/* default */.Z, {
|
|
|
|
|
}), ((_homePage$images_url4 = homePage.images_url) === null || _homePage$images_url4 === void 0 ? void 0 : _homePage$images_url4.length) > 1 && /*#__PURE__*/(0,jsx_runtime.jsx)(RightOutlined/* default */.Z, {
|
|
|
|
|
className: Indexmodules.RightButton,
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
Carousels.current.next();
|