|
|
|
|
@ -11972,7 +11972,7 @@ var Edit_excluded = ["mode"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var NewCompetitionsPage = function NewCompetitionsPage(_ref) {
|
|
|
|
|
var _competitions$competi6, _competitions$competi7, _competitions$competi8, _competitions$competi9, _competitions$competi10, _competitions$competi11, _competitions$competi12, _competitions$competi13, _competitions$competi14, _competitions$competi15, _competitions$competi16, _competitions$competi17, _competitions$competi18, _competitions$competi19, _competitions$competi20, _competitions$competi21, _competitions$competi22, _competitions$competi23, _competitions$competi24, _competitions$competi25, _competitions$competi26, _competitions$competi27, _competitions$competi29, _tabsData$find, _competitions$competi30, _competitions$competi31, _competitions$competi32, _competitions$competi33, _competitions$competi34, _competitions$competi35, _competitions$competi36, _competitions$competi37, _competitions$competi38, _competitions$competi39;
|
|
|
|
|
var _competitions$competi7, _competitions$competi8, _competitions$competi9, _competitions$competi10, _competitions$competi11, _competitions$competi12, _competitions$competi13, _competitions$competi14, _competitions$competi15, _competitions$competi16, _competitions$competi17, _competitions$competi18, _competitions$competi19, _competitions$competi20, _competitions$competi21, _competitions$competi22, _competitions$competi23, _competitions$competi24, _competitions$competi25, _competitions$competi26, _competitions$competi27, _competitions$competi28, _competitions$competi30, _tabsData$find, _competitions$competi31, _competitions$competi32, _competitions$competi33, _competitions$competi34, _competitions$competi35, _competitions$competi36, _competitions$competi37, _competitions$competi38, _competitions$competi39, _competitions$competi40;
|
|
|
|
|
var competitions = _ref.competitions,
|
|
|
|
|
globalSetting = _ref.globalSetting,
|
|
|
|
|
loading = _ref.loading,
|
|
|
|
|
@ -12136,6 +12136,7 @@ var NewCompetitionsPage = function NewCompetitionsPage(_ref) {
|
|
|
|
|
}();
|
|
|
|
|
var handleEnroll = /*#__PURE__*/function () {
|
|
|
|
|
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
|
|
|
|
|
var _competitions$competi3;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
|
|
|
|
|
while (1) switch (_context3.prev = _context3.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
@ -12145,8 +12146,15 @@ var NewCompetitionsPage = function NewCompetitionsPage(_ref) {
|
|
|
|
|
}
|
|
|
|
|
return _context3.abrupt("return");
|
|
|
|
|
case 2:
|
|
|
|
|
if (competitions !== null && competitions !== void 0 && (_competitions$competi3 = competitions.competition) !== null && _competitions$competi3 !== void 0 && _competitions$competi3.joined) {
|
|
|
|
|
_context3.next = 5;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
message/* default */.ZP.warning('本次专题赛每位参赛者限报一个赛道,您已报名成功,请勿重复报名。');
|
|
|
|
|
return _context3.abrupt("return");
|
|
|
|
|
case 5:
|
|
|
|
|
setWayModal(true);
|
|
|
|
|
case 3:
|
|
|
|
|
case 6:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context3.stop();
|
|
|
|
|
}
|
|
|
|
|
@ -12214,7 +12222,7 @@ var NewCompetitionsPage = function NewCompetitionsPage(_ref) {
|
|
|
|
|
var start_time = new Date(competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.start_time).getTime();
|
|
|
|
|
var nowTime = new Date().getTime();
|
|
|
|
|
if (is_member) {
|
|
|
|
|
var _competitions$competi3;
|
|
|
|
|
var _competitions$competi4;
|
|
|
|
|
if (start_time - nowTime <= 0 && end_time - nowTime > 0) {
|
|
|
|
|
setCompetitionBut({
|
|
|
|
|
status: 1,
|
|
|
|
|
@ -12233,7 +12241,7 @@ var NewCompetitionsPage = function NewCompetitionsPage(_ref) {
|
|
|
|
|
isShow: false
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
if ((competitions === null || competitions === void 0 || (_competitions$competi3 = competitions.competition) === null || _competitions$competi3 === void 0 ? void 0 : _competitions$competi3.competition_status) == types_competitions/* CompetitionStatus */.$f.ENDED) {
|
|
|
|
|
if ((competitions === null || competitions === void 0 || (_competitions$competi4 = competitions.competition) === null || _competitions$competi4 === void 0 ? void 0 : _competitions$competi4.competition_status) == types_competitions/* CompetitionStatus */.$f.ENDED) {
|
|
|
|
|
setCompetitionBut({
|
|
|
|
|
status: 3,
|
|
|
|
|
name: "已结束",
|
|
|
|
|
@ -12244,10 +12252,10 @@ var NewCompetitionsPage = function NewCompetitionsPage(_ref) {
|
|
|
|
|
}
|
|
|
|
|
if (end_time) {
|
|
|
|
|
setInt.current = setInterval(function () {
|
|
|
|
|
var _competitions$competi4, _competitions$competi5;
|
|
|
|
|
var CompetitionStartTime = new Date(competitions === null || competitions === void 0 || (_competitions$competi4 = competitions.competition) === null || _competitions$competi4 === void 0 ? void 0 : _competitions$competi4.start_time).getTime();
|
|
|
|
|
var _competitions$competi5, _competitions$competi6;
|
|
|
|
|
var CompetitionStartTime = new Date(competitions === null || competitions === void 0 || (_competitions$competi5 = competitions.competition) === null || _competitions$competi5 === void 0 ? void 0 : _competitions$competi5.start_time).getTime();
|
|
|
|
|
var distance = end_time - new Date().getTime();
|
|
|
|
|
if (!(competitions !== null && competitions !== void 0 && (_competitions$competi5 = competitions.competition) !== null && _competitions$competi5 !== void 0 && _competitions$competi5.published) || competitionBut.status == 3 || distance <= 0 || CompetitionStartTime - nowTime > 0) {
|
|
|
|
|
if (!(competitions !== null && competitions !== void 0 && (_competitions$competi6 = competitions.competition) !== null && _competitions$competi6 !== void 0 && _competitions$competi6.published) || competitionBut.status == 3 || distance <= 0 || CompetitionStartTime - nowTime > 0) {
|
|
|
|
|
setTimeDown({
|
|
|
|
|
day: 0,
|
|
|
|
|
hour: 0,
|
|
|
|
|
@ -12294,7 +12302,7 @@ var NewCompetitionsPage = function NewCompetitionsPage(_ref) {
|
|
|
|
|
href: "/competitions",
|
|
|
|
|
children: "\u5728\u7EBF\u7ADE\u8D5B"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
|
|
|
|
|
children: competitions === null || competitions === void 0 || (_competitions$competi6 = competitions.competition) === null || _competitions$competi6 === void 0 ? void 0 : _competitions$competi6.name
|
|
|
|
|
children: competitions === null || competitions === void 0 || (_competitions$competi7 = competitions.competition) === null || _competitions$competi7 === void 0 ? void 0 : _competitions$competi7.name
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
|
|
className: "mt20",
|
|
|
|
|
@ -12303,7 +12311,7 @@ var NewCompetitionsPage = function NewCompetitionsPage(_ref) {
|
|
|
|
|
width: 335
|
|
|
|
|
},
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
|
|
src: "".concat(env/* default */.Z.IMG_SERVER).concat(competitions === null || competitions === void 0 || (_competitions$competi7 = competitions.competition) === null || _competitions$competi7 === void 0 ? void 0 : _competitions$competi7.image),
|
|
|
|
|
src: "".concat(env/* default */.Z.IMG_SERVER).concat(competitions === null || competitions === void 0 || (_competitions$competi8 = competitions.competition) === null || _competitions$competi8 === void 0 ? void 0 : _competitions$competi8.image),
|
|
|
|
|
style: {
|
|
|
|
|
height: "100%",
|
|
|
|
|
width: "100%",
|
|
|
|
|
@ -12319,13 +12327,13 @@ var NewCompetitionsPage = function NewCompetitionsPage(_ref) {
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
|
|
placement: "topLeft",
|
|
|
|
|
title: competitions === null || competitions === void 0 || (_competitions$competi8 = competitions.competition) === null || _competitions$competi8 === void 0 ? void 0 : _competitions$competi8.name,
|
|
|
|
|
title: competitions === null || competitions === void 0 || (_competitions$competi9 = competitions.competition) === null || _competitions$competi9 === void 0 ? void 0 : _competitions$competi9.name,
|
|
|
|
|
overlayStyle: {
|
|
|
|
|
maxWidth: 495
|
|
|
|
|
},
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: Editmodules.IntoTitle,
|
|
|
|
|
children: competitions === null || competitions === void 0 || (_competitions$competi9 = competitions.competition) === null || _competitions$competi9 === void 0 ? void 0 : _competitions$competi9.name
|
|
|
|
|
children: competitions === null || competitions === void 0 || (_competitions$competi10 = competitions.competition) === null || _competitions$competi10 === void 0 ? void 0 : _competitions$competi10.name
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "mt10",
|
|
|
|
|
@ -12337,16 +12345,16 @@ var NewCompetitionsPage = function NewCompetitionsPage(_ref) {
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
|
|
placement: "topLeft",
|
|
|
|
|
title: competitions === null || competitions === void 0 || (_competitions$competi10 = competitions.competition) === null || _competitions$competi10 === void 0 ? void 0 : _competitions$competi10.description,
|
|
|
|
|
title: competitions === null || competitions === void 0 || (_competitions$competi11 = competitions.competition) === null || _competitions$competi11 === void 0 ? void 0 : _competitions$competi11.description,
|
|
|
|
|
overlayStyle: {
|
|
|
|
|
maxWidth: 495
|
|
|
|
|
},
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "font14 ".concat(Editmodules.MultiLine),
|
|
|
|
|
children: (competitions === null || competitions === void 0 || (_competitions$competi11 = competitions.competition) === null || _competitions$competi11 === void 0 ? void 0 : _competitions$competi11.description) || ''
|
|
|
|
|
children: (competitions === null || competitions === void 0 || (_competitions$competi12 = competitions.competition) === null || _competitions$competi12 === void 0 ? void 0 : _competitions$competi12.description) || ''
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [(competitions === null || competitions === void 0 || (_competitions$competi12 = competitions.competition) === null || _competitions$competi12 === void 0 ? void 0 : _competitions$competi12.sponsor) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [(competitions === null || competitions === void 0 || (_competitions$competi13 = competitions.competition) === null || _competitions$competi13 === void 0 ? void 0 : _competitions$competi13.sponsor) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "".concat(Editmodules.FlexNoWrap),
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
@ -12357,13 +12365,13 @@ var NewCompetitionsPage = function NewCompetitionsPage(_ref) {
|
|
|
|
|
children: "\u4E3B\u529E\u5355\u4F4D"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
|
|
placement: "topLeft",
|
|
|
|
|
title: competitions === null || competitions === void 0 || (_competitions$competi13 = competitions.competition) === null || _competitions$competi13 === void 0 ? void 0 : _competitions$competi13.sponsor,
|
|
|
|
|
title: competitions === null || competitions === void 0 || (_competitions$competi14 = competitions.competition) === null || _competitions$competi14 === void 0 ? void 0 : _competitions$competi14.sponsor,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "ml20 font12 ".concat(Editmodules.Onerow),
|
|
|
|
|
children: competitions === null || competitions === void 0 || (_competitions$competi14 = competitions.competition) === null || _competitions$competi14 === void 0 ? void 0 : _competitions$competi14.sponsor
|
|
|
|
|
children: competitions === null || competitions === void 0 || (_competitions$competi15 = competitions.competition) === null || _competitions$competi15 === void 0 ? void 0 : _competitions$competi15.sponsor
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
}), (competitions === null || competitions === void 0 || (_competitions$competi15 = competitions.competition) === null || _competitions$competi15 === void 0 ? void 0 : _competitions$competi15.organizer) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
}), (competitions === null || competitions === void 0 || (_competitions$competi16 = competitions.competition) === null || _competitions$competi16 === void 0 ? void 0 : _competitions$competi16.organizer) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "mt10 ".concat(Editmodules.FlexNoWrap),
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
@ -12374,13 +12382,13 @@ var NewCompetitionsPage = function NewCompetitionsPage(_ref) {
|
|
|
|
|
children: "\u627F\u529E\u5355\u4F4D"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
|
|
placement: "topLeft",
|
|
|
|
|
title: competitions === null || competitions === void 0 || (_competitions$competi16 = competitions.competition) === null || _competitions$competi16 === void 0 ? void 0 : _competitions$competi16.organizer,
|
|
|
|
|
title: competitions === null || competitions === void 0 || (_competitions$competi17 = competitions.competition) === null || _competitions$competi17 === void 0 ? void 0 : _competitions$competi17.organizer,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "ml20 font12 ".concat(Editmodules.Onerow),
|
|
|
|
|
children: competitions === null || competitions === void 0 || (_competitions$competi17 = competitions.competition) === null || _competitions$competi17 === void 0 ? void 0 : _competitions$competi17.organizer
|
|
|
|
|
children: competitions === null || competitions === void 0 || (_competitions$competi18 = competitions.competition) === null || _competitions$competi18 === void 0 ? void 0 : _competitions$competi18.organizer
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
}), (competitions === null || competitions === void 0 || (_competitions$competi18 = competitions.competition) === null || _competitions$competi18 === void 0 ? void 0 : _competitions$competi18.co_organizer) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
}), (competitions === null || competitions === void 0 || (_competitions$competi19 = competitions.competition) === null || _competitions$competi19 === void 0 ? void 0 : _competitions$competi19.co_organizer) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "mt10 ".concat(Editmodules.FlexNoWrap),
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
@ -12391,10 +12399,10 @@ var NewCompetitionsPage = function NewCompetitionsPage(_ref) {
|
|
|
|
|
children: "\u534F\u529E\u5355\u4F4D"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
|
|
placement: "topLeft",
|
|
|
|
|
title: competitions === null || competitions === void 0 || (_competitions$competi19 = competitions.competition) === null || _competitions$competi19 === void 0 ? void 0 : _competitions$competi19.co_organizer,
|
|
|
|
|
title: competitions === null || competitions === void 0 || (_competitions$competi20 = competitions.competition) === null || _competitions$competi20 === void 0 ? void 0 : _competitions$competi20.co_organizer,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "ml20 font12 ".concat(Editmodules.Onerow),
|
|
|
|
|
children: competitions === null || competitions === void 0 || (_competitions$competi20 = competitions.competition) === null || _competitions$competi20 === void 0 ? void 0 : _competitions$competi20.co_organizer
|
|
|
|
|
children: competitions === null || competitions === void 0 || (_competitions$competi21 = competitions.competition) === null || _competitions$competi21 === void 0 ? void 0 : _competitions$competi21.co_organizer
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
@ -12406,7 +12414,7 @@ var NewCompetitionsPage = function NewCompetitionsPage(_ref) {
|
|
|
|
|
borderLeft: "1px solid #F6F7F9",
|
|
|
|
|
paddingLeft: 20
|
|
|
|
|
},
|
|
|
|
|
children: [competitions !== null && competitions !== void 0 && (_competitions$competi21 = competitions.competition) !== null && _competitions$competi21 !== void 0 && _competitions$competi21.bonus ? /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
|
|
children: [competitions !== null && competitions !== void 0 && (_competitions$competi22 = competitions.competition) !== null && _competitions$competi22 !== void 0 && _competitions$competi22.bonus ? /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
|
|
className: "mt10",
|
|
|
|
|
align: "bottom",
|
|
|
|
|
justify: "center",
|
|
|
|
|
@ -12427,7 +12435,7 @@ var NewCompetitionsPage = function NewCompetitionsPage(_ref) {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: "font20",
|
|
|
|
|
children: "\xA5"
|
|
|
|
|
}), parseInt(competitions === null || competitions === void 0 || (_competitions$competi22 = competitions.competition) === null || _competitions$competi22 === void 0 ? void 0 : _competitions$competi22.bonus).toLocaleString()]
|
|
|
|
|
}), parseInt(competitions === null || competitions === void 0 || (_competitions$competi23 = competitions.competition) === null || _competitions$competi23 === void 0 ? void 0 : _competitions$competi23.bonus).toLocaleString()]
|
|
|
|
|
})]
|
|
|
|
|
}) : null, /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
|
|
style: {
|
|
|
|
|
@ -12438,21 +12446,21 @@ var NewCompetitionsPage = function NewCompetitionsPage(_ref) {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
|
|
|
className: Editmodules.PublicNum,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
children: (competitions === null || competitions === void 0 || (_competitions$competi23 = competitions.competition) === null || _competitions$competi23 === void 0 ? void 0 : _competitions$competi23.team_count) || 0
|
|
|
|
|
children: (competitions === null || competitions === void 0 || (_competitions$competi24 = competitions.competition) === null || _competitions$competi24 === void 0 ? void 0 : _competitions$competi24.team_count) || 0
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
children: "\u603B\u53C2\u8D5B\u961F\u4F0D"
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
|
|
|
className: Editmodules.PublicNum,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
children: (competitions === null || competitions === void 0 || (_competitions$competi24 = competitions.competition) === null || _competitions$competi24 === void 0 ? void 0 : _competitions$competi24.member_count) || 0
|
|
|
|
|
children: (competitions === null || competitions === void 0 || (_competitions$competi25 = competitions.competition) === null || _competitions$competi25 === void 0 ? void 0 : _competitions$competi25.member_count) || 0
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
children: "\u603B\u53C2\u8D5B\u4EBA\u5458"
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
|
|
|
className: Editmodules.PublicNum,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
children: (competitions === null || competitions === void 0 || (_competitions$competi25 = competitions.competition) === null || _competitions$competi25 === void 0 ? void 0 : _competitions$competi25.submit_count) || 0
|
|
|
|
|
children: (competitions === null || competitions === void 0 || (_competitions$competi26 = competitions.competition) === null || _competitions$competi26 === void 0 ? void 0 : _competitions$competi26.submit_count) || 0
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
children: "\u63D0\u4EA4\u6B21\u6570"
|
|
|
|
|
})]
|
|
|
|
|
@ -12510,11 +12518,11 @@ var NewCompetitionsPage = function NewCompetitionsPage(_ref) {
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
}), (competitions === null || competitions === void 0 || (_competitions$competi26 = competitions.competition) === null || _competitions$competi26 === void 0 || (_competitions$competi26 = _competitions$competi26.competition_stage_sections) === null || _competitions$competi26 === void 0 ? void 0 : _competitions$competi26.length) > 1 && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
}), (competitions === null || competitions === void 0 || (_competitions$competi27 = competitions.competition) === null || _competitions$competi27 === void 0 || (_competitions$competi27 = _competitions$competi27.competition_stage_sections) === null || _competitions$competi27 === void 0 ? void 0 : _competitions$competi27.length) > 1 && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "mt20 ".concat(Editmodules.StepsDiv),
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(steps/* default */.Z, {
|
|
|
|
|
children: competitions === null || competitions === void 0 || (_competitions$competi27 = competitions.competition) === null || _competitions$competi27 === void 0 || (_competitions$competi27 = _competitions$competi27.competition_stage_sections) === null || _competitions$competi27 === void 0 ? void 0 : _competitions$competi27.map(function (item, index) {
|
|
|
|
|
var _competitions$competi28;
|
|
|
|
|
children: competitions === null || competitions === void 0 || (_competitions$competi28 = competitions.competition) === null || _competitions$competi28 === void 0 || (_competitions$competi28 = _competitions$competi28.competition_stage_sections) === null || _competitions$competi28 === void 0 ? void 0 : _competitions$competi28.map(function (item, index) {
|
|
|
|
|
var _competitions$competi29;
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(steps/* default */.Z.Step, {
|
|
|
|
|
icon: getStatus(item) == "wait" ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
@ -12528,7 +12536,7 @@ var NewCompetitionsPage = function NewCompetitionsPage(_ref) {
|
|
|
|
|
className: "iconfont icon-danxuanxuanzhong1"
|
|
|
|
|
}),
|
|
|
|
|
description: /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
|
|
placement: (competitions === null || competitions === void 0 || (_competitions$competi28 = competitions.competition) === null || _competitions$competi28 === void 0 || (_competitions$competi28 = _competitions$competi28.competition_stage_sections) === null || _competitions$competi28 === void 0 ? void 0 : _competitions$competi28.length) - 1 == index ? "bottomRight" : 'bottomLeft',
|
|
|
|
|
placement: (competitions === null || competitions === void 0 || (_competitions$competi29 = competitions.competition) === null || _competitions$competi29 === void 0 || (_competitions$competi29 = _competitions$competi29.competition_stage_sections) === null || _competitions$competi29 === void 0 ? void 0 : _competitions$competi29.length) - 1 == index ? "bottomRight" : 'bottomLeft',
|
|
|
|
|
title: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
color: "#fff"
|
|
|
|
|
@ -12578,7 +12586,7 @@ var NewCompetitionsPage = function NewCompetitionsPage(_ref) {
|
|
|
|
|
tabId: tabId
|
|
|
|
|
}));
|
|
|
|
|
}
|
|
|
|
|
}), !(competitions !== null && competitions !== void 0 && (_competitions$competi29 = competitions.competition) !== null && _competitions$competi29 !== void 0 && _competitions$competi29.published) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
}), !(competitions !== null && competitions !== void 0 && (_competitions$competi30 = competitions.competition) !== null && _competitions$competi30 !== void 0 && _competitions$competi30.published) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Editmodules.tag,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ExclamationCircleOutlined/* default */.Z, {}), " \u63D0\u793A\uFF1A\u8BE5\u7ADE\u8D5B\u8FD8\u672A\u5BA1\u6838\uFF0C\u6682\u65F6\u53EA\u6709\u7BA1\u7406\u5458\u53EF\u89C1"]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
@ -12664,13 +12672,13 @@ var NewCompetitionsPage = function NewCompetitionsPage(_ref) {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
|
|
className: "iconfont icon-tishi2 mr10 font13"
|
|
|
|
|
}), "\u6CE8\u610F\uFF1A\u672C\u6B21\u4E13\u9898\u8D5B\u4EC5\u9650\u5355\u8D5B\u9053\u62A5\u540D\uFF0C\u6BCF\u4F4D\u53C2\u8D5B\u8005\u9650\u62A5\u4E00\u4E2A\u8D5B\u9053\u3002"]
|
|
|
|
|
}), ((competitions === null || competitions === void 0 || (_competitions$competi30 = competitions.competition) === null || _competitions$competi30 === void 0 ? void 0 : _competitions$competi30.required_name) || (competitions === null || competitions === void 0 || (_competitions$competi31 = competitions.competition) === null || _competitions$competi31 === void 0 ? void 0 : _competitions$competi31.required_id_card) || (competitions === null || competitions === void 0 || (_competitions$competi32 = competitions.competition) === null || _competitions$competi32 === void 0 ? void 0 : _competitions$competi32.required_school) || (competitions === null || competitions === void 0 || (_competitions$competi33 = competitions.competition) === null || _competitions$competi33 === void 0 ? void 0 : _competitions$competi33.required_phone) || (competitions === null || competitions === void 0 || (_competitions$competi34 = competitions.competition) === null || _competitions$competi34 === void 0 ? void 0 : _competitions$competi34.required_mail)) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
}), ((competitions === null || competitions === void 0 || (_competitions$competi31 = competitions.competition) === null || _competitions$competi31 === void 0 ? void 0 : _competitions$competi31.required_name) || (competitions === null || competitions === void 0 || (_competitions$competi32 = competitions.competition) === null || _competitions$competi32 === void 0 ? void 0 : _competitions$competi32.required_id_card) || (competitions === null || competitions === void 0 || (_competitions$competi33 = competitions.competition) === null || _competitions$competi33 === void 0 ? void 0 : _competitions$competi33.required_school) || (competitions === null || competitions === void 0 || (_competitions$competi34 = competitions.competition) === null || _competitions$competi34 === void 0 ? void 0 : _competitions$competi34.required_phone) || (competitions === null || competitions === void 0 || (_competitions$competi35 = competitions.competition) === null || _competitions$competi35 === void 0 ? void 0 : _competitions$competi35.required_mail)) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "mb10 font14",
|
|
|
|
|
style: {
|
|
|
|
|
fontWeight: 500
|
|
|
|
|
},
|
|
|
|
|
children: "\u5FC5\u586B\u4FE1\u606F"
|
|
|
|
|
}), (competitions === null || competitions === void 0 || (_competitions$competi35 = competitions.competition) === null || _competitions$competi35 === void 0 ? void 0 : _competitions$competi35.required_name) && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
}), (competitions === null || competitions === void 0 || (_competitions$competi36 = competitions.competition) === null || _competitions$competi36 === void 0 ? void 0 : _competitions$competi36.required_name) && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
label: "\u4E2A\u4EBA\u540D\u79F0",
|
|
|
|
|
name: "user_name",
|
|
|
|
|
rules: [{
|
|
|
|
|
@ -12690,7 +12698,7 @@ var NewCompetitionsPage = function NewCompetitionsPage(_ref) {
|
|
|
|
|
showCount: true,
|
|
|
|
|
placeholder: "\u8BF7\u8F93\u5165\u4E2A\u4EBA\u540D\u79F0"
|
|
|
|
|
})
|
|
|
|
|
}), (competitions === null || competitions === void 0 || (_competitions$competi36 = competitions.competition) === null || _competitions$competi36 === void 0 ? void 0 : _competitions$competi36.required_id_card) && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
}), (competitions === null || competitions === void 0 || (_competitions$competi37 = competitions.competition) === null || _competitions$competi37 === void 0 ? void 0 : _competitions$competi37.required_id_card) && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
label: "\u8EAB\u4EFD\u8BC1\u53F7",
|
|
|
|
|
name: "id_card",
|
|
|
|
|
rules: [{
|
|
|
|
|
@ -12710,7 +12718,7 @@ var NewCompetitionsPage = function NewCompetitionsPage(_ref) {
|
|
|
|
|
showCount: true,
|
|
|
|
|
placeholder: "\u8BF7\u8F93\u5165\u8EAB\u4EFD\u8BC1\u53F7"
|
|
|
|
|
})
|
|
|
|
|
}), (competitions === null || competitions === void 0 || (_competitions$competi37 = competitions.competition) === null || _competitions$competi37 === void 0 ? void 0 : _competitions$competi37.required_school) && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
}), (competitions === null || competitions === void 0 || (_competitions$competi38 = competitions.competition) === null || _competitions$competi38 === void 0 ? void 0 : _competitions$competi38.required_school) && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
label: "\u5B66\u6821\u540D\u79F0",
|
|
|
|
|
name: "school_name",
|
|
|
|
|
rules: [{
|
|
|
|
|
@ -12730,7 +12738,7 @@ var NewCompetitionsPage = function NewCompetitionsPage(_ref) {
|
|
|
|
|
showCount: true,
|
|
|
|
|
placeholder: "\u8BF7\u8F93\u5165\u5B66\u6821\u540D\u79F0"
|
|
|
|
|
})
|
|
|
|
|
}), (competitions === null || competitions === void 0 || (_competitions$competi38 = competitions.competition) === null || _competitions$competi38 === void 0 ? void 0 : _competitions$competi38.required_phone) && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
}), (competitions === null || competitions === void 0 || (_competitions$competi39 = competitions.competition) === null || _competitions$competi39 === void 0 ? void 0 : _competitions$competi39.required_phone) && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
label: "\u624B\u673A\u53F7\u7801",
|
|
|
|
|
name: "phone",
|
|
|
|
|
rules: [{
|
|
|
|
|
@ -12750,7 +12758,7 @@ var NewCompetitionsPage = function NewCompetitionsPage(_ref) {
|
|
|
|
|
showCount: true,
|
|
|
|
|
placeholder: "\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u7801"
|
|
|
|
|
})
|
|
|
|
|
}), (competitions === null || competitions === void 0 || (_competitions$competi39 = competitions.competition) === null || _competitions$competi39 === void 0 ? void 0 : _competitions$competi39.required_mail) && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
}), (competitions === null || competitions === void 0 || (_competitions$competi40 = competitions.competition) === null || _competitions$competi40 === void 0 ? void 0 : _competitions$competi40.required_mail) && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
label: "\u90AE\u7BB1\u8D26\u53F7",
|
|
|
|
|
name: "mail",
|
|
|
|
|
rules: [{
|