|
|
|
|
@ -7355,10 +7355,10 @@ var _react_17_0_2_react = __webpack_require__(59301);
|
|
|
|
|
var _umi_production_exports = __webpack_require__(75936);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/index.js + 19 modules
|
|
|
|
|
var es_form = __webpack_require__(78241);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
|
|
|
|
|
var message = __webpack_require__(8591);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
|
|
|
|
|
var modal = __webpack_require__(43418);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
|
|
|
|
|
var message = __webpack_require__(8591);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js + 6 modules
|
|
|
|
|
var breadcrumb = __webpack_require__(66104);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules
|
|
|
|
|
@ -17119,7 +17119,6 @@ var Edit_competitionsPage = function competitionsPage(_ref) {
|
|
|
|
|
} else if (competitions.actionTabs.key === '2') {
|
|
|
|
|
var _user$userInfo2;
|
|
|
|
|
if (Header.teacher_need_phone || Header.member_need_phone) {
|
|
|
|
|
message/* default */.ZP.success('报名成功获得10积分');
|
|
|
|
|
setshowphone(true);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
@ -17167,7 +17166,6 @@ var Edit_competitionsPage = function competitionsPage(_ref) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (Header.teacher_need_phone || Header.member_need_phone) {
|
|
|
|
|
message/* default */.ZP.success('报名成功获得10积分');
|
|
|
|
|
setshowphone(true);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
@ -17309,15 +17307,14 @@ var Edit_competitionsPage = function competitionsPage(_ref) {
|
|
|
|
|
return _context7.abrupt("return");
|
|
|
|
|
case 7:
|
|
|
|
|
if (!(Header.teacher_need_phone || Header.member_need_phone)) {
|
|
|
|
|
_context7.next = 11;
|
|
|
|
|
_context7.next = 10;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
message/* default */.ZP.success('报名成功获得10积分');
|
|
|
|
|
setshowphone(true);
|
|
|
|
|
return _context7.abrupt("return");
|
|
|
|
|
case 11:
|
|
|
|
|
case 10:
|
|
|
|
|
if (!(Header !== null && Header !== void 0 && Header.need_check_mail)) {
|
|
|
|
|
_context7.next = 14;
|
|
|
|
|
_context7.next = 13;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
modal/* default */.Z.confirm({
|
|
|
|
|
@ -17332,9 +17329,9 @@ var Edit_competitionsPage = function competitionsPage(_ref) {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
return _context7.abrupt("return");
|
|
|
|
|
case 14:
|
|
|
|
|
case 13:
|
|
|
|
|
if (!(Header !== null && Header !== void 0 && Header.is_authentication && !(user !== null && user !== void 0 && (_user$userInfo10 = user.userInfo) !== null && _user$userInfo10 !== void 0 && _user$userInfo10.authentication))) {
|
|
|
|
|
_context7.next = 17;
|
|
|
|
|
_context7.next = 16;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
dispatch({
|
|
|
|
|
@ -17344,22 +17341,22 @@ var Edit_competitionsPage = function competitionsPage(_ref) {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
return _context7.abrupt("return");
|
|
|
|
|
case 17:
|
|
|
|
|
case 16:
|
|
|
|
|
if (!isadd()) {
|
|
|
|
|
_context7.next = 20;
|
|
|
|
|
_context7.next = 19;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
setbuttonloading(false);
|
|
|
|
|
return _context7.abrupt("return");
|
|
|
|
|
case 20:
|
|
|
|
|
case 19:
|
|
|
|
|
if (!buttonloading) {
|
|
|
|
|
_context7.next = 22;
|
|
|
|
|
_context7.next = 21;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
return _context7.abrupt("return");
|
|
|
|
|
case 22:
|
|
|
|
|
case 21:
|
|
|
|
|
setbuttonloading(true);
|
|
|
|
|
_context7.next = 25;
|
|
|
|
|
_context7.next = 24;
|
|
|
|
|
return dispatch({
|
|
|
|
|
type: 'competitions/JoinTeam',
|
|
|
|
|
payload: {
|
|
|
|
|
@ -17367,7 +17364,7 @@ var Edit_competitionsPage = function competitionsPage(_ref) {
|
|
|
|
|
invite_code: searchParams.get('code')
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 25:
|
|
|
|
|
case 24:
|
|
|
|
|
data = _context7.sent;
|
|
|
|
|
setbuttonloading(false);
|
|
|
|
|
if (data && data.status === 0) {
|
|
|
|
|
@ -17379,7 +17376,7 @@ var Edit_competitionsPage = function competitionsPage(_ref) {
|
|
|
|
|
payload: {}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
case 28:
|
|
|
|
|
case 27:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context7.stop();
|
|
|
|
|
}
|
|
|
|
|
@ -17422,19 +17419,18 @@ var Edit_competitionsPage = function competitionsPage(_ref) {
|
|
|
|
|
return _context8.abrupt("return");
|
|
|
|
|
case 10:
|
|
|
|
|
if (!(Header !== null && Header !== void 0 && Header.personal || type === 1)) {
|
|
|
|
|
_context8.next = 34;
|
|
|
|
|
_context8.next = 33;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
if (!(Header.teacher_need_phone || Header.member_need_phone)) {
|
|
|
|
|
_context8.next = 15;
|
|
|
|
|
_context8.next = 14;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
message/* default */.ZP.success('报名成功获得10积分');
|
|
|
|
|
setshowphone(true);
|
|
|
|
|
return _context8.abrupt("return");
|
|
|
|
|
case 15:
|
|
|
|
|
case 14:
|
|
|
|
|
if (!(Header !== null && Header !== void 0 && Header.need_check_mail)) {
|
|
|
|
|
_context8.next = 18;
|
|
|
|
|
_context8.next = 17;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
modal/* default */.Z.confirm({
|
|
|
|
|
@ -17449,9 +17445,9 @@ var Edit_competitionsPage = function competitionsPage(_ref) {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
return _context8.abrupt("return");
|
|
|
|
|
case 18:
|
|
|
|
|
case 17:
|
|
|
|
|
if (!(Header !== null && Header !== void 0 && Header.is_authentication && !(user !== null && user !== void 0 && (_user$userInfo11 = user.userInfo) !== null && _user$userInfo11 !== void 0 && _user$userInfo11.authentication))) {
|
|
|
|
|
_context8.next = 21;
|
|
|
|
|
_context8.next = 20;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
dispatch({
|
|
|
|
|
@ -17461,22 +17457,22 @@ var Edit_competitionsPage = function competitionsPage(_ref) {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
return _context8.abrupt("return");
|
|
|
|
|
case 21:
|
|
|
|
|
case 20:
|
|
|
|
|
if (!isadd()) {
|
|
|
|
|
_context8.next = 24;
|
|
|
|
|
_context8.next = 23;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
setbuttonloading(false);
|
|
|
|
|
return _context8.abrupt("return");
|
|
|
|
|
case 24:
|
|
|
|
|
case 23:
|
|
|
|
|
if (!buttonloading) {
|
|
|
|
|
_context8.next = 26;
|
|
|
|
|
_context8.next = 25;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
return _context8.abrupt("return");
|
|
|
|
|
case 26:
|
|
|
|
|
case 25:
|
|
|
|
|
setbuttonloading(true);
|
|
|
|
|
_context8.next = 29;
|
|
|
|
|
_context8.next = 28;
|
|
|
|
|
return dispatch({
|
|
|
|
|
type: 'competitions/AddTeam',
|
|
|
|
|
payload: {
|
|
|
|
|
@ -17484,7 +17480,7 @@ var Edit_competitionsPage = function competitionsPage(_ref) {
|
|
|
|
|
name: user.userInfo.real_name + "的战队"
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 29:
|
|
|
|
|
case 28:
|
|
|
|
|
data = _context8.sent;
|
|
|
|
|
setbuttonloading(false);
|
|
|
|
|
if (data && data.status === 0) {
|
|
|
|
|
@ -17496,11 +17492,11 @@ var Edit_competitionsPage = function competitionsPage(_ref) {
|
|
|
|
|
payload: {}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
_context8.next = 35;
|
|
|
|
|
_context8.next = 34;
|
|
|
|
|
break;
|
|
|
|
|
case 34:
|
|
|
|
|
case 33:
|
|
|
|
|
setshowmodal(true);
|
|
|
|
|
case 35:
|
|
|
|
|
case 34:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context8.stop();
|
|
|
|
|
}
|
|
|
|
|
@ -18447,6 +18443,11 @@ function Addmodal(_ref) {
|
|
|
|
|
intervalId.current && clearInterval(intervalId.current);
|
|
|
|
|
};
|
|
|
|
|
}, []);
|
|
|
|
|
(0,react__WEBPACK_IMPORTED_MODULE_3__.useEffect)(function () {
|
|
|
|
|
if (isopen) {
|
|
|
|
|
antd__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .ZP.success('报名成功获得10积分');
|
|
|
|
|
}
|
|
|
|
|
}, [isopen]);
|
|
|
|
|
(0,_utils_hooks_useInterval__WEBPACK_IMPORTED_MODULE_5__/* .useInterval */ .Y)(function () {
|
|
|
|
|
if (!countdownFlag) {
|
|
|
|
|
return;
|