You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5386 lines
194 KiB
5386 lines
194 KiB
"use strict";
|
|
(self["webpackChunk"] = self["webpackChunk"] || []).push([[35901,41957],{
|
|
|
|
/***/ 60437:
|
|
/*!**********************************************!*\
|
|
!*** ./src/components/AsyncButton/index.tsx ***!
|
|
\**********************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ Z: function() { return /* binding */ AsyncButton; }
|
|
/* harmony export */ });
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js */ 82242);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js */ 7557);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js */ 41498);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js */ 79800);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectWithoutProperties.js */ 39647);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! antd */ 3113);
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ 59301);
|
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
|
|
|
|
|
|
|
|
|
|
|
|
var _excluded = ["children"];
|
|
|
|
|
|
|
|
var AsyncButton = function AsyncButton(_ref) {
|
|
var children = _ref.children,
|
|
props = _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_4___default()(_ref, _excluded);
|
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_5__.useState)(false),
|
|
_useState2 = _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState, 2),
|
|
btnLoading = _useState2[0],
|
|
setBtnLoading = _useState2[1];
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(antd__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .ZP, _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, props), {}, {
|
|
loading: btnLoading,
|
|
onClick: ( /*#__PURE__*/function () {
|
|
var _ref2 = _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee(e) {
|
|
return _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee$(_context) {
|
|
while (1) switch (_context.prev = _context.next) {
|
|
case 0:
|
|
_context.prev = 0;
|
|
setBtnLoading(true);
|
|
_context.next = 4;
|
|
return props.onClick(e);
|
|
case 4:
|
|
setBtnLoading(false);
|
|
_context.next = 11;
|
|
break;
|
|
case 7:
|
|
_context.prev = 7;
|
|
_context.t0 = _context["catch"](0);
|
|
console.error(_context.t0);
|
|
setBtnLoading(false);
|
|
case 11:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}, _callee, null, [[0, 7]]);
|
|
}));
|
|
return function (_x) {
|
|
return _ref2.apply(this, arguments);
|
|
};
|
|
}()),
|
|
children: children
|
|
}));
|
|
};
|
|
|
|
/***/ }),
|
|
|
|
/***/ 59210:
|
|
/*!******************************************************!*\
|
|
!*** ./src/components/AuthenticationModel/index.tsx ***!
|
|
\******************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectWithoutProperties.js */ 39647);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 59301);
|
|
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! umi */ 35699);
|
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd */ 43418);
|
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
|
|
|
|
var _excluded = ["shixunsDetail", "globalSetting", "loading", "dispatch"];
|
|
|
|
|
|
|
|
|
|
|
|
var AuthModal = function AuthModal(_ref) {
|
|
var shixunsDetail = _ref.shixunsDetail,
|
|
globalSetting = _ref.globalSetting,
|
|
loading = _ref.loading,
|
|
dispatch = _ref.dispatch,
|
|
props = _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_0___default()(_ref, _excluded);
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(antd__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, {
|
|
centered: true,
|
|
keyboard: false,
|
|
closable: false,
|
|
zIndex: 6666,
|
|
title: "\u63D0\u793A",
|
|
open: shixunsDetail.actionTabs.key === 'Banner-Auth',
|
|
okText: "\u786E\u5B9A",
|
|
cancelText: "\u53D6\u6D88",
|
|
onOk: function onOk() {
|
|
dispatch({
|
|
type: 'shixunsDetail/setActionTabs',
|
|
payload: {}
|
|
});
|
|
window.location.href = '/account/certification';
|
|
},
|
|
onCancel: function onCancel() {
|
|
dispatch({
|
|
type: 'shixunsDetail/setActionTabs',
|
|
payload: {}
|
|
});
|
|
},
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("p", {
|
|
className: "tc font16",
|
|
children: ["\u5F53\u524D\u7ADE\u8D5B\u9700\u8981\u5B9E\u540D\u8BA4\u8BC1\uFF0C\u8BF7\u5148\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1\u540E\u518D\u62A5\u540D\u53C2\u8D5B", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("br", {}), "\u8BF7\u95EE\u662F\u5426\u524D\u5F80\u8FDB\u884C\u8BA4\u8BC1\uFF1F"]
|
|
})
|
|
});
|
|
};
|
|
/* harmony default export */ __webpack_exports__.Z = ((0,umi__WEBPACK_IMPORTED_MODULE_2__.connect)(function (_ref2) {
|
|
var shixunsDetail = _ref2.shixunsDetail,
|
|
loading = _ref2.loading,
|
|
globalSetting = _ref2.globalSetting;
|
|
return {
|
|
shixunsDetail: shixunsDetail,
|
|
globalSetting: globalSetting,
|
|
loading: loading.models.index
|
|
};
|
|
})(AuthModal));
|
|
|
|
/***/ }),
|
|
|
|
/***/ 20145:
|
|
/*!*****************************************************************!*\
|
|
!*** ./src/pages/Competitions/Detail/AwardPdf.tsx + 12 modules ***!
|
|
\*****************************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
// EXPORTS
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
Z: function() { return /* binding */ AwardPdf; }
|
|
});
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectDestructuringEmpty.js
|
|
var objectDestructuringEmpty = __webpack_require__(70236);
|
|
var objectDestructuringEmpty_default = /*#__PURE__*/__webpack_require__.n(objectDestructuringEmpty);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
|
|
var slicedToArray = __webpack_require__(79800);
|
|
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
|
|
var _umi_production_exports = __webpack_require__(35699);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/radio/index.js + 5 modules
|
|
var es_radio = __webpack_require__(5112);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js
|
|
var regeneratorRuntime = __webpack_require__(7557);
|
|
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
|
|
var asyncToGenerator = __webpack_require__(41498);
|
|
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
|
// EXTERNAL MODULE: ./src/pages/Competitions/Detail/index.less?modules
|
|
var Detailmodules = __webpack_require__(81573);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules
|
|
var tooltip = __webpack_require__(6848);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/table/index.js + 85 modules
|
|
var table = __webpack_require__(61998);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/row/index.js
|
|
var row = __webpack_require__(95237);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/col/index.js
|
|
var col = __webpack_require__(43604);
|
|
// EXTERNAL MODULE: ./src/service/competitions.ts
|
|
var competitions = __webpack_require__(71171);
|
|
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
|
var env = __webpack_require__(97730);
|
|
// EXTERNAL MODULE: ./src/components/AsyncButton/index.tsx
|
|
var AsyncButton = __webpack_require__(60437);
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
|
var jsx_runtime = __webpack_require__(37712);
|
|
;// CONCATENATED MODULE: ./src/pages/Competitions/Detail/Downloadpdf.tsx
|
|
|
|
|
|
|
|
//下载页
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function downpdf(_ref) {
|
|
var _Prize$personal_certi, _Prize$personal_certi2, _Prize$team_certifica, _Prize$team_certifica2, _Prize$teams, _Prize$teams$4, _Prize$teams$5;
|
|
var Prize = _ref.Prize;
|
|
var params = (0,_umi_production_exports.useParams)();
|
|
var _useState = (0,_react_17_0_2_react.useState)([{
|
|
type: 1,
|
|
name: "团体奖证书"
|
|
}, {
|
|
type: 2,
|
|
name: "个人奖证书"
|
|
}, {
|
|
type: 3,
|
|
name: "优秀指导教师证书"
|
|
}]),
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
certData = _useState2[0],
|
|
setCertData = _useState2[1];
|
|
var handleClick = /*#__PURE__*/function () {
|
|
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(item) {
|
|
var res;
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
while (1) switch (_context.prev = _context.next) {
|
|
case 0:
|
|
_context.next = 2;
|
|
return (0,competitions/* getCertificateInfo */.Ju)({
|
|
type: item.type,
|
|
id: params.identifier
|
|
});
|
|
case 2:
|
|
res = _context.sent;
|
|
if ((res === null || res === void 0 ? void 0 : res.status) === 0) location.href = "/competitions/exports?id=".concat(params.identifier, "&type=").concat(item.type);
|
|
case 4:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}, _callee);
|
|
}));
|
|
return function handleClick(_x) {
|
|
return _ref2.apply(this, arguments);
|
|
};
|
|
}();
|
|
var columns = [{
|
|
title: "角色",
|
|
dataIndex: "role",
|
|
align: 'center',
|
|
width: 80,
|
|
render: function render(text) {
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
placement: "topLeft",
|
|
title: text,
|
|
children: text || "--"
|
|
});
|
|
}
|
|
}, {
|
|
title: "姓名",
|
|
dataIndex: "name",
|
|
width: 100,
|
|
render: function render(text) {
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
placement: "topLeft",
|
|
title: text,
|
|
children: text || "--"
|
|
});
|
|
}
|
|
}, {
|
|
title: "实名认证",
|
|
width: 100,
|
|
dataIndex: "real_name_auth",
|
|
render: function render(text) {
|
|
return text === "authed" ? '已认证' : text === "authing" ? '待审核' : '未认证';
|
|
}
|
|
}, {
|
|
title: "职业认证",
|
|
width: 100,
|
|
dataIndex: "professional_auth",
|
|
render: function render(text) {
|
|
return text === "authed" ? '已认证' : text === "authing" ? '待审核' : '未认证';
|
|
}
|
|
}, {
|
|
title: "手机号",
|
|
dataIndex: "phone_binded",
|
|
width: 100,
|
|
render: function render(text) {
|
|
return text ? '已绑定' : '未绑定';
|
|
}
|
|
}, {
|
|
title: "邮箱号",
|
|
dataIndex: "email_binded",
|
|
width: 100,
|
|
render: function render(text) {
|
|
return text ? '已绑定' : '未绑定';
|
|
}
|
|
}, {
|
|
title: "开户行及银行卡号信息(队长填写)",
|
|
dataIndex: "role",
|
|
align: 'center',
|
|
render: function render(text, _render) {
|
|
var _Prize$teams$, _Prize$teams$2, _Prize$teams$3;
|
|
return (_render === null || _render === void 0 ? void 0 : _render.role) === '队长' ? /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
style: {
|
|
width: '50%',
|
|
textAlign: 'center'
|
|
},
|
|
children: [(Prize === null || Prize === void 0 ? void 0 : Prize.teams) && (Prize === null || Prize === void 0 || (_Prize$teams$ = Prize.teams[0]) === null || _Prize$teams$ === void 0 || (_Prize$teams$ = _Prize$teams$.bank_account) === null || _Prize$teams$ === void 0 ? void 0 : _Prize$teams$.bank), (Prize === null || Prize === void 0 ? void 0 : Prize.teams) && (Prize === null || Prize === void 0 || (_Prize$teams$2 = Prize.teams[0]) === null || _Prize$teams$2 === void 0 || (_Prize$teams$2 = _Prize$teams$2.bank_account) === null || _Prize$teams$2 === void 0 ? void 0 : _Prize$teams$2.second_bank), (Prize === null || Prize === void 0 ? void 0 : Prize.teams) && (Prize === null || Prize === void 0 || (_Prize$teams$3 = Prize.teams[0]) === null || _Prize$teams$3 === void 0 || (_Prize$teams$3 = _Prize$teams$3.bank_account) === null || _Prize$teams$3 === void 0 ? void 0 : _Prize$teams$3.card_no)]
|
|
}) : "--";
|
|
}
|
|
}];
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
className: Detailmodules/* default */.Z.downloadpdf,
|
|
children: "\u6E29\u99A8\u63D0\u793A\uFF1A\u586B\u5199\u7684\u4E2A\u4EBA\u4FE1\u606F\u7ECF\u5BA1\u6279\u540E\uFF0C\u5C06\u63D0\u4F9B\u4E2A\u4EBA\u83B7\u5956\u8BC1\u4E66\u4E0B\u8F7D\uFF1B\u56E2\u961F\u961F\u5458\u4FE1\u606F\u5168\u90E8\u5BA1\u6279\u540E\uFF0C\u5C06\u63D0\u4F9B\u56E2\u961F\u83B7\u5956\u8BC1\u4E66\u4E0B\u8F7D\u3002"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
style: {
|
|
marginTop: '30px',
|
|
fontSize: '14px',
|
|
color: '#232B40',
|
|
fontWeight: "600"
|
|
},
|
|
children: "\u8BC1\u4E66\u60C5\u51B5"
|
|
}), (Prize === null || Prize === void 0 || (_Prize$personal_certi = Prize.personal_certifications) === null || _Prize$personal_certi === void 0 ? void 0 : _Prize$personal_certi.length) > 0 ? /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
children: "\u4E2A\u4EBA\u8BC1\u4E66\uFF1A"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: env/* default */.Z.IMG_SERVER + "/images/educoder/pdfs.png"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
style: {
|
|
marginLeft: '5px'
|
|
},
|
|
href: env/* default */.Z.API_SERVER + "".concat(Prize === null || Prize === void 0 || (_Prize$personal_certi2 = Prize.personal_certifications[0]) === null || _Prize$personal_certi2 === void 0 ? void 0 : _Prize$personal_certi2.url),
|
|
children: "\u7ACB\u5373\u4E0B\u8F7D"
|
|
})]
|
|
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
children: ["\u4E2A\u4EBA\u8BC1\u4E66\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
style: {
|
|
color: '#000'
|
|
},
|
|
children: "\u6682\u672A\u751F\u6210"
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "c-red",
|
|
style: {
|
|
marginLeft: '20px'
|
|
},
|
|
children: "\u539F\u56E0\uFF1A\u7EC4\u59D4\u4F1A\u672A\u5B8C\u6210\u8BC1\u4E66\u5BA1\u6279\uFF0C\u8BF7\u7A0D\u540E"
|
|
})]
|
|
}), (Prize === null || Prize === void 0 || (_Prize$team_certifica = Prize.team_certifications) === null || _Prize$team_certifica === void 0 ? void 0 : _Prize$team_certifica.length) > 0 ? /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
children: "\u56E2\u961F\u8BC1\u4E66\uFF1A"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: env/* default */.Z.IMG_SERVER + "/images/educoder/pdfs.png"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
style: {
|
|
marginLeft: '5px'
|
|
},
|
|
href: env/* default */.Z.API_SERVER + "".concat(Prize === null || Prize === void 0 || (_Prize$team_certifica2 = Prize.team_certifications[0]) === null || _Prize$team_certifica2 === void 0 ? void 0 : _Prize$team_certifica2.url),
|
|
children: "\u7ACB\u5373\u4E0B\u8F7D"
|
|
})]
|
|
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
children: ["\u56E2\u961F\u8BC1\u4E66\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
style: {
|
|
color: '#000'
|
|
},
|
|
children: "\u6682\u672A\u751F\u6210"
|
|
})]
|
|
})
|
|
}), (Prize === null || Prize === void 0 || (_Prize$teams = Prize.teams) === null || _Prize$teams === void 0 ? void 0 : _Prize$teams.length) > 0 && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
|
|
children: [(Prize === null || Prize === void 0 ? void 0 : Prize.teams) && (Prize === null || Prize === void 0 || (_Prize$teams$4 = Prize.teams[0]) === null || _Prize$teams$4 === void 0 ? void 0 : _Prize$teams$4.name), "\u6218\u961F\u4FE1\u606F\u586B\u62A5\u6982\u51B5"]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
|
|
columns: columns,
|
|
dataSource: Prize === null || Prize === void 0 || (_Prize$teams$5 = Prize.teams[0]) === null || _Prize$teams$5 === void 0 ? void 0 : _Prize$teams$5.team_members,
|
|
pagination: false
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
|
|
style: {
|
|
marginTop: "20px"
|
|
},
|
|
gutter: [20, 20],
|
|
children: certData.map(function (item, key) {
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(AsyncButton/* AsyncButton */.Z, {
|
|
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-xiazai5",
|
|
style: {
|
|
marginRight: "6px"
|
|
}
|
|
}),
|
|
className: Detailmodules/* default */.Z.pdfBut,
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
|
|
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
|
|
while (1) switch (_context2.prev = _context2.next) {
|
|
case 0:
|
|
_context2.next = 2;
|
|
return handleClick(item);
|
|
case 2:
|
|
return _context2.abrupt("return", _context2.sent);
|
|
case 3:
|
|
case "end":
|
|
return _context2.stop();
|
|
}
|
|
}, _callee2);
|
|
})),
|
|
children: item.name
|
|
})
|
|
}, key);
|
|
})
|
|
})]
|
|
});
|
|
}
|
|
/* harmony default export */ var Downloadpdf = (downpdf);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
|
|
var objectSpread2 = __webpack_require__(82242);
|
|
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectWithoutProperties.js
|
|
var objectWithoutProperties = __webpack_require__(39647);
|
|
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/upload/index.js + 24 modules
|
|
var upload = __webpack_require__(59028);
|
|
// 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/spin/index.js + 1 modules
|
|
var spin = __webpack_require__(71418);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules
|
|
var input = __webpack_require__(73782);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
|
|
var es_button = __webpack_require__(3113);
|
|
// EXTERNAL MODULE: ./src/utils/util.tsx
|
|
var util = __webpack_require__(23756);
|
|
// EXTERNAL MODULE: ./src/assets/images/account/auth.png
|
|
var auth = __webpack_require__(98814);
|
|
;// CONCATENATED MODULE: ./src/pages/Competitions/Detail/component/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var componentmodules = ({"modal":"modal___A9Ovz","colorBlue":"colorBlue___XSmR5","formWrap":"formWrap___wRvaA","flexRow":"flexRow___C40dc","flexColumn":"flexColumn___LkZfj","example":"example___bz7Hw","exampleImg":"exampleImg___gNkC_","colorOrange":"colorOrange___Ka6zf","uploader":"uploader___plQRr","uploadImg":"uploadImg___cjOpL","imageTip":"imageTip___p1_lZ","uploadTipIcon":"uploadTipIcon___SpsS2","uploadTip":"uploadTip___e9JlL","color05101a":"color05101a___CDEUv","viewLargerImg":"viewLargerImg___IclRX","footerWrap":"footerWrap___beWC6","note":"note___CXi9y","schoolHintWrap":"schoolHintWrap___Ma6ly","colorCDCDCD":"colorCDCDCD___D0UWo","color0152d9":"color0152d9___hF3Bb"});
|
|
;// CONCATENATED MODULE: ./src/pages/Competitions/Detail/component/RealNameAuthModal.tsx
|
|
|
|
|
|
|
|
|
|
|
|
var _excluded = ["user", "account", "globalSetting", "loading", "dispatch"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Dragger = upload/* default */.Z.Dragger;
|
|
var MAX_NAME_LENGTH = 10;
|
|
var RealNameAuthModal = function RealNameAuthModal(_ref) {
|
|
var user = _ref.user,
|
|
account = _ref.account,
|
|
globalSetting = _ref.globalSetting,
|
|
loading = _ref.loading,
|
|
dispatch = _ref.dispatch,
|
|
props = objectWithoutProperties_default()(_ref, _excluded);
|
|
var _Form$useForm = es_form/* default */.Z.useForm(),
|
|
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
|
|
form = _Form$useForm2[0];
|
|
var _useState = (0,_react_17_0_2_react.useState)({}),
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
formValue = _useState2[0],
|
|
setFormValue = _useState2[1];
|
|
var _useState3 = (0,_react_17_0_2_react.useState)(true),
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
showRealName = _useState4[0],
|
|
setShowRealName = _useState4[1];
|
|
var _useState5 = (0,_react_17_0_2_react.useState)(),
|
|
_useState6 = slicedToArray_default()(_useState5, 2),
|
|
realName = _useState6[0],
|
|
setRealName = _useState6[1];
|
|
var _useState7 = (0,_react_17_0_2_react.useState)(),
|
|
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
image = _useState8[0],
|
|
setImage = _useState8[1];
|
|
var _useState9 = (0,_react_17_0_2_react.useState)(),
|
|
_useState10 = slicedToArray_default()(_useState9, 2),
|
|
fileId = _useState10[0],
|
|
setFileId = _useState10[1];
|
|
var _useState11 = (0,_react_17_0_2_react.useState)(),
|
|
_useState12 = slicedToArray_default()(_useState11, 2),
|
|
isLoading = _useState12[0],
|
|
setIsLoading = _useState12[1];
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
if (!account.basicInfo) {
|
|
return;
|
|
}
|
|
var basicInfo = account.basicInfo;
|
|
var formData = {
|
|
name: basicInfo.show_realname ? basicInfo.name : (0,util/* getHiddenName */.YA)(basicInfo.name),
|
|
gender: basicInfo.gender
|
|
};
|
|
setRealName(basicInfo.name);
|
|
setShowRealName(basicInfo.show_realname);
|
|
form.setFieldsValue(formData);
|
|
setFormValue(formData);
|
|
}, [account.basicInfo]);
|
|
var handleUploadChange = function handleUploadChange(info) {
|
|
if (info.file.status === 'uploading') {
|
|
setIsLoading(true);
|
|
return;
|
|
}
|
|
if (info.file.status === 'done') {
|
|
var _info$file$response;
|
|
console.log(info.file, info.file.response);
|
|
setFileId((_info$file$response = info.file.response) === null || _info$file$response === void 0 ? void 0 : _info$file$response.id);
|
|
(0,util/* getBase64 */.y3)(info.file.originFileObj, function (base64Img) {
|
|
setImage(base64Img);
|
|
setIsLoading(false);
|
|
});
|
|
}
|
|
};
|
|
var handleValuesChange = function handleValuesChange(changedValues) {
|
|
setFormValue(objectSpread2_default()({}, form.getFieldsValue()));
|
|
if ('name' in changedValues) {
|
|
setRealName(changedValues.name);
|
|
}
|
|
};
|
|
var handleSetShowRealName = function handleSetShowRealName() {
|
|
var nextRealNameStatus = !showRealName;
|
|
setShowRealName(nextRealNameStatus);
|
|
var nextName = nextRealNameStatus ? realName : (0,util/* getHiddenName */.YA)(realName);
|
|
form.setFieldsValue({
|
|
name: nextName
|
|
});
|
|
};
|
|
var handleFinish = /*#__PURE__*/function () {
|
|
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(values) {
|
|
var _account$basicInfo, _user$userInfo;
|
|
var _ref3, name, gender, id_number, res, _user$userInfo2;
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
while (1) switch (_context.prev = _context.next) {
|
|
case 0:
|
|
_ref3 = values || {}, name = _ref3.name, gender = _ref3.gender, id_number = _ref3.idNumber;
|
|
if (image) {
|
|
_context.next = 4;
|
|
break;
|
|
}
|
|
message/* default */.ZP.info('请先上传照片!');
|
|
return _context.abrupt("return");
|
|
case 4:
|
|
_context.next = 6;
|
|
return dispatch({
|
|
type: 'account/applyRealNameAuth',
|
|
payload: {
|
|
id: ((_account$basicInfo = account.basicInfo) === null || _account$basicInfo === void 0 ? void 0 : _account$basicInfo.id) || ((_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.login),
|
|
name: name,
|
|
gender: gender,
|
|
id_number: id_number,
|
|
show_realname: showRealName,
|
|
attachment_ids: [fileId]
|
|
}
|
|
});
|
|
case 6:
|
|
res = _context.sent;
|
|
handleClose();
|
|
if (res) {
|
|
message/* default */.ZP.info("申请已提交,请等待审核!");
|
|
dispatch({
|
|
type: 'account/getBasicInfo',
|
|
payload: {
|
|
login: (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.login
|
|
}
|
|
});
|
|
}
|
|
case 9:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}, _callee);
|
|
}));
|
|
return function handleFinish(_x) {
|
|
return _ref2.apply(this, arguments);
|
|
};
|
|
}();
|
|
var handleClose = function handleClose() {
|
|
dispatch({
|
|
type: 'account/setActionTabs',
|
|
payload: {}
|
|
});
|
|
};
|
|
var uploadProps = {
|
|
data: {
|
|
type: "real_name"
|
|
},
|
|
multiple: true,
|
|
showUploadList: false,
|
|
action: "".concat(env/* default */.Z.API_SERVER, "/api/attachments.json"),
|
|
className: componentmodules.uploader,
|
|
onChange: handleUploadChange,
|
|
beforeUpload: function beforeUpload(file) {
|
|
var isJpgOrPng = file.type === 'image/jpeg' || file.type === 'image/png' || file.type === 'image/jpg' || file.type === 'image/bmp';
|
|
if (!isJpgOrPng) {
|
|
message/* default */.ZP.info('请上传正确文件格式');
|
|
}
|
|
return isJpgOrPng;
|
|
}
|
|
};
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
|
|
centered: true,
|
|
keyboard: false,
|
|
closable: false,
|
|
destroyOnClose: true,
|
|
open: account.actionTabs.key === 'Account-RealNameAuth',
|
|
title: "\u4FEE\u6539\u5B9E\u540D\u4FE1\u606F",
|
|
width: "600px",
|
|
footer: null,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
|
|
spinning: !!isLoading,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
|
|
className: componentmodules.formWrap,
|
|
form: form,
|
|
layout: "horizontal",
|
|
onValuesChange: handleValuesChange,
|
|
onFinish: handleFinish,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u59D3\u540D",
|
|
name: "name",
|
|
labelCol: {
|
|
span: 3
|
|
},
|
|
wrapperCol: {
|
|
span: 12
|
|
},
|
|
rules: [{
|
|
required: true,
|
|
message: "\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D\uFF0C\u6700\u5927\u9650\u5236".concat(MAX_NAME_LENGTH, "\u4E2A\u5B57\u7B26")
|
|
}, {
|
|
validator: util/* handleValidatorName */.HJ
|
|
}],
|
|
extra: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
children: showRealName ? '(显示:平台将显示您的真实姓名)' : '(隐藏:平台将显示你的昵称)'
|
|
}),
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
|
disabled: !showRealName,
|
|
placeholder: "\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D\uFF0C\u6700\u5927\u9650\u5236".concat(MAX_NAME_LENGTH, "\u4E2A\u5B57\u7B26"),
|
|
maxLength: MAX_NAME_LENGTH,
|
|
addonAfter: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont ".concat(showRealName ? 'icon-xianshi' : 'icon-yincang', " font18 ").concat(componentmodules.color0152d9),
|
|
onClick: handleSetShowRealName
|
|
})
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u6027\u522B\uFF1A",
|
|
name: "gender",
|
|
labelCol: {
|
|
span: 3
|
|
},
|
|
wrapperCol: {
|
|
span: 12
|
|
},
|
|
rules: [{
|
|
required: true,
|
|
message: '请选择性别'
|
|
}],
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_radio/* default.Group */.ZP.Group, {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
|
|
value: 0,
|
|
children: "\u7537"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
|
|
value: 1,
|
|
children: "\u5973"
|
|
})]
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u8BC1\u4EF6\u53F7\uFF1A",
|
|
labelCol: {
|
|
span: 3
|
|
},
|
|
name: "idNumber",
|
|
rules: [{
|
|
required: true,
|
|
message: '请输入证件号'
|
|
}],
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
|
placeholder: "\u8BF7\u8F93\u5165\u8BC1\u4EF6\u53F7"
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u8EAB\u4EFD\u8BC1\u4E0A\u4F20",
|
|
labelCol: {
|
|
span: 3
|
|
},
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: componentmodules.flexRow,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: "".concat(componentmodules.flexColumn, " ").concat(componentmodules.example),
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: componentmodules.exampleImg,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: auth
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
className: "tc",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: "\u793A\u4F8B\u56FE\u7247"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
className: "".concat(componentmodules.colorOrange, " font12"),
|
|
children: "\uFF08png/jpg/bmp\u683C\u5F0F\uFF0C\u4E0D\u8D85\u8FC72MB\uFF09"
|
|
})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: componentmodules.flexColumn,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Dragger, objectSpread2_default()(objectSpread2_default()({}, uploadProps), {}, {
|
|
accept: ".png,.jpg,.bmp,.jpeg",
|
|
children: image ? /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: image,
|
|
className: componentmodules.uploadImg
|
|
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: componentmodules.imageTip,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-cuban2shangchuanyunduan ".concat(componentmodules.uploadTipIcon)
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
className: componentmodules.uploadTip,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
className: componentmodules.color05101a,
|
|
children: "\u70B9\u51FB\u6216\u62D6\u62FD\u4E0A\u4F20\u56FE\u7247"
|
|
})
|
|
})]
|
|
})
|
|
})), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "tc",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
className: componentmodules.viewLargerImg,
|
|
children: "\u67E5\u770B\u5927\u56FE"
|
|
})
|
|
})]
|
|
})]
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: componentmodules.footerWrap,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z.Item, {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
className: "mr5",
|
|
size: 'middle',
|
|
onClick: handleClose,
|
|
children: "\u53D6\u6D88"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
size: 'middle',
|
|
type: "primary",
|
|
htmlType: "submit",
|
|
loading: loading['account/applyRealNameAuth'],
|
|
children: "\u4FDD\u5B58"
|
|
})]
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: componentmodules.note,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: "\u8BA4\u8BC1\u987B\u77E5\uFF1A"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: "1.\u4F60\u9700\u8981\u51C6\u5907\u6709\u6548\u7684\u8EAB\u4EFD\u8BC1\u6B63\u9762\uFF08\u4EBA\u50CF\u9762\uFF09\u7684\u8BC1\u4EF6\u7167\u7167\u7247\uFF0C\u8BF7\u786E\u4FDD\u8BC1\u4EF6\u7167\u7247\u6E05\u6670\u53EF\u89C1\uFF0C\u4E25\u7981PS\uFF1B"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: "2.\u6211\u4EEC\u5C06\u5728\u4F60\u63D0\u4EA4\u8BA4\u8BC1\u4FE1\u606F\u540E\u768424\u5C0F\u65F6\uFF08\u4E0D\u5305\u542B\u8282\u5047\u65E5\uFF09\u5185\u5B8C\u6210\u5BA1\u6838\uFF0C\u5BA1\u6838\u7ED3\u679C\u5C06\u4F1A\u4EE5\u7CFB\u7EDF\u6D88\u606F\u7684\u5F62\u5F0F\u53D1\u9001\u7ED9\u4F60\uFF1B"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: "3.\u5B9E\u540D\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u65E0\u6CD5\u5220\u9664\uFF0C\u8BF7\u8C28\u614E\u586B\u5199\uFF1B"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: "4.\u5B9E\u540D\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u7CFB\u7EDF\u5C06\u81EA\u52A8\u53D1\u653E500\u4E2A\u91D1\u5E01\u4F5C\u4E3A\u5956\u52B1\uFF1B"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: "5.\u6211\u4EEC\u4F1A\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u7684\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732\uFF1B"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: "6.\u5982\u5B58\u5728\u6076\u610F\u4E71\u586B\u5199\u59D3\u540D\uFF0C\u8BC1\u4EF6\u53F7\uFF0C\u53CA\u4E0A\u4F20\u4E0E\u5B9E\u540D\u8BA4\u8BC1\u8BC1\u4EF6\u65E0\u5173\u56FE\u7247\u8005\uFF0C\u4E00\u7ECF\u53D1\u73B0\u5C06\u51BB\u7ED3EduCoder\u8D26\u53F7\u3002"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: "7.\u63D0\u4EA4\u5B9E\u540D\u8BA4\u8BC1\u540E\u7CFB\u7EDF\u4F1A\u81EA\u52A8\u5C06\u72B6\u6001\u6539\u4E3A\u5DF2\u8BA4\u8BC1\uFF0C\u4F60\u5C06\u53EF\u4EE5\u4F53\u9A8C\u5E73\u53F0\u9700\u8981\u5B9E\u540D\u8BA4\u8BC1\u7684\u529F\u80FD\uFF1B\u5982\u679C\u5728\u8BA4\u8BC1\u540E\u7684\u4F7F\u7528\u8FC7\u7A0B\u4E2D\u672A\u901A\u8FC7\u5BA1\u6838\uFF0C\u4F60\u5C06\u4E0D\u80FD\u7EE7\u7EED\u4F53\u9A8C\u9700\u8981\u8BA4\u8BC1\u7684\u529F\u80FD\u3002"
|
|
})]
|
|
})]
|
|
})
|
|
})
|
|
});
|
|
};
|
|
/* harmony default export */ var component_RealNameAuthModal = ((0,_umi_production_exports.connect)(function (_ref4) {
|
|
var user = _ref4.user,
|
|
account = _ref4.account,
|
|
loading = _ref4.loading,
|
|
globalSetting = _ref4.globalSetting;
|
|
return {
|
|
user: user,
|
|
account: account,
|
|
globalSetting: globalSetting,
|
|
loading: loading.effects
|
|
};
|
|
})(RealNameAuthModal));
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/select/index.js
|
|
var es_select = __webpack_require__(57809);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/auto-complete/index.js
|
|
var auto_complete = __webpack_require__(88522);
|
|
// EXTERNAL MODULE: ./src/assets/images/account/job.png
|
|
var job = __webpack_require__(51941);
|
|
;// CONCATENATED MODULE: ./src/pages/Competitions/Detail/components/AppplyDepartmentModal/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var AppplyDepartmentModalmodules = ({"flexRow":"flexRow___LQKDI","flexColumn":"flexColumn___NLClE","formWrap":"formWrap___mGWio","example":"example___gPghw","footerWrap":"footerWrap___qcHQ4"});
|
|
;// CONCATENATED MODULE: ./src/pages/Competitions/Detail/components/AppplyDepartmentModal/index.tsx
|
|
|
|
|
|
|
|
|
|
var AppplyDepartmentModal_excluded = ["account", "globalSetting", "loading", "dispatch", "schoolName", "departmentName", "visible", "onClose", "onSuccess"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var TextArea = input/* default */.Z.TextArea;
|
|
var AppplyDepartmentModal = function AppplyDepartmentModal(_ref) {
|
|
var account = _ref.account,
|
|
globalSetting = _ref.globalSetting,
|
|
loading = _ref.loading,
|
|
dispatch = _ref.dispatch,
|
|
schoolName = _ref.schoolName,
|
|
departmentName = _ref.departmentName,
|
|
visible = _ref.visible,
|
|
_ref$onClose = _ref.onClose,
|
|
onClose = _ref$onClose === void 0 ? function () {} : _ref$onClose,
|
|
_ref$onSuccess = _ref.onSuccess,
|
|
onSuccess = _ref$onSuccess === void 0 ? function () {} : _ref$onSuccess,
|
|
props = objectWithoutProperties_default()(_ref, AppplyDepartmentModal_excluded);
|
|
var _Form$useForm = es_form/* default */.Z.useForm(),
|
|
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
|
|
form = _Form$useForm2[0];
|
|
var schoolId = (0,_react_17_0_2_react.useRef)();
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
schoolId.current = props.schoolId;
|
|
}, [props.schoolId]);
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
form.setFieldsValue({
|
|
department: departmentName
|
|
});
|
|
}, [departmentName]);
|
|
var handleFinish = /*#__PURE__*/function () {
|
|
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(values) {
|
|
var _ref3, department, remarks, res;
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
while (1) switch (_context.prev = _context.next) {
|
|
case 0:
|
|
_ref3 = values || {}, department = _ref3.department, remarks = _ref3.remarks;
|
|
_context.next = 3;
|
|
return dispatch({
|
|
type: 'account/appplyDepartment',
|
|
payload: {
|
|
school_id: schoolId.current,
|
|
name: department,
|
|
remarks: remarks
|
|
}
|
|
});
|
|
case 3:
|
|
res = _context.sent;
|
|
onClose();
|
|
if (res) {
|
|
message/* default */.ZP.success("新增院系/部门成功!");
|
|
onSuccess(department);
|
|
}
|
|
case 6:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}, _callee);
|
|
}));
|
|
return function handleFinish(_x) {
|
|
return _ref2.apply(this, arguments);
|
|
};
|
|
}();
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
|
|
centered: true,
|
|
keyboard: false,
|
|
closable: false,
|
|
destroyOnClose: true,
|
|
open: visible,
|
|
title: "\u7533\u8BF7\u6DFB\u52A0\u5B50\u5355\u4F4D\u540D\u79F0",
|
|
width: "600px",
|
|
footer: null,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
|
|
className: AppplyDepartmentModalmodules.formWrap,
|
|
form: form,
|
|
labelCol: {
|
|
span: 4
|
|
},
|
|
wrapperCol: {
|
|
span: 20
|
|
},
|
|
onFinish: handleFinish,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u5355\u4F4D\u540D\u79F0\uFF1A",
|
|
children: schoolName
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u90E8\u95E8\u540D\u79F0\uFF1A",
|
|
name: "department",
|
|
rules: [{
|
|
required: true,
|
|
message: '请输入部门或者学院名称'
|
|
}],
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
|
placeholder: "\u8BF7\u8F93\u5165\u90E8\u95E8\u6216\u8005\u5B66\u9662\u540D\u79F0"
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u8BF4\u660E\uFF1A",
|
|
name: "remarks",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(TextArea, {
|
|
placeholder: "\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: AppplyDepartmentModalmodules.footerWrap,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z.Item, {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
className: "mr5",
|
|
size: 'middle',
|
|
onClick: function onClick() {
|
|
onClose();
|
|
},
|
|
children: "\u53D6\u6D88"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
size: 'middle',
|
|
type: "primary",
|
|
htmlType: "submit",
|
|
loading: loading['account/appplyDepartment'],
|
|
children: "\u4FDD\u5B58"
|
|
})]
|
|
})
|
|
})]
|
|
})
|
|
});
|
|
};
|
|
/* harmony default export */ var components_AppplyDepartmentModal = ((0,_umi_production_exports.connect)(function (_ref4) {
|
|
var account = _ref4.account,
|
|
loading = _ref4.loading,
|
|
globalSetting = _ref4.globalSetting;
|
|
return {
|
|
account: account,
|
|
globalSetting: globalSetting,
|
|
loading: loading.effects
|
|
};
|
|
})(AppplyDepartmentModal));
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/cascader/index.js + 18 modules
|
|
var cascader = __webpack_require__(19842);
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/icons/CheckCircleFilled.js + 1 modules
|
|
var CheckCircleFilled = __webpack_require__(80559);
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/icons/CloseCircleFilled.js + 1 modules
|
|
var CloseCircleFilled = __webpack_require__(58670);
|
|
// EXTERNAL MODULE: ./src/utils/cityData.ts
|
|
var cityData = __webpack_require__(41957);
|
|
;// CONCATENATED MODULE: ./src/pages/Competitions/Detail/components/AppplySchoolModal/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var AppplySchoolModalmodules = ({"flexRow":"flexRow___jGYtM","flexColumn":"flexColumn___NPMB3","formWrap":"formWrap___vwH9N","example":"example____BmJC","footerWrap":"footerWrap___lp1L0"});
|
|
;// CONCATENATED MODULE: ./src/pages/Competitions/Detail/components/AppplySchoolModal/index.tsx
|
|
|
|
|
|
|
|
|
|
var AppplySchoolModal_excluded = ["account", "globalSetting", "loading", "dispatch", "schoolName", "visible", "onClose", "onSuccess"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var filter = function filter(inputValue, path) {
|
|
return path.some(function (option) {
|
|
return option.label.toLowerCase().indexOf(inputValue.toLowerCase()) > -1;
|
|
});
|
|
};
|
|
var AppplySchoolModal_TextArea = input/* default */.Z.TextArea;
|
|
var AppplySchoolModal = function AppplySchoolModal(_ref) {
|
|
var account = _ref.account,
|
|
globalSetting = _ref.globalSetting,
|
|
loading = _ref.loading,
|
|
dispatch = _ref.dispatch,
|
|
schoolName = _ref.schoolName,
|
|
visible = _ref.visible,
|
|
_ref$onClose = _ref.onClose,
|
|
onClose = _ref$onClose === void 0 ? function () {} : _ref$onClose,
|
|
_ref$onSuccess = _ref.onSuccess,
|
|
onSuccess = _ref$onSuccess === void 0 ? function () {} : _ref$onSuccess,
|
|
props = objectWithoutProperties_default()(_ref, AppplySchoolModal_excluded);
|
|
var _Form$useForm = es_form/* default */.Z.useForm(),
|
|
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
|
|
form = _Form$useForm2[0];
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
form.setFieldsValue({
|
|
name: schoolName
|
|
});
|
|
}, [schoolName]);
|
|
var handleFinish = /*#__PURE__*/function () {
|
|
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(values) {
|
|
var _ref3, name, _ref3$city, city, address, remarks, res;
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
while (1) switch (_context.prev = _context.next) {
|
|
case 0:
|
|
_ref3 = values || {}, name = _ref3.name, _ref3$city = _ref3.city, city = _ref3$city === void 0 ? [] : _ref3$city, address = _ref3.address, remarks = _ref3.remarks;
|
|
_context.next = 3;
|
|
return dispatch({
|
|
type: 'account/appplySchool',
|
|
payload: {
|
|
name: name,
|
|
province: city[0],
|
|
city: city[1],
|
|
address: address,
|
|
remarks: remarks
|
|
}
|
|
});
|
|
case 3:
|
|
res = _context.sent;
|
|
onClose();
|
|
if (res) {
|
|
message/* default */.ZP.success("新增学校/单位成功!");
|
|
onSuccess(name);
|
|
}
|
|
case 6:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}, _callee);
|
|
}));
|
|
return function handleFinish(_x) {
|
|
return _ref2.apply(this, arguments);
|
|
};
|
|
}();
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
|
|
centered: true,
|
|
keyboard: false,
|
|
closable: false,
|
|
destroyOnClose: true,
|
|
open: visible,
|
|
title: "\u7533\u8BF7\u6DFB\u52A0\u5355\u4F4D\u540D\u79F0",
|
|
width: "600px",
|
|
footer: null,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
|
|
className: AppplySchoolModalmodules.formWrap,
|
|
form: form,
|
|
labelCol: {
|
|
span: 4
|
|
},
|
|
wrapperCol: {
|
|
span: 20
|
|
},
|
|
onFinish: handleFinish,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u5355\u4F4D\u5168\u79F0\uFF1A",
|
|
name: "name",
|
|
rules: [{
|
|
required: true,
|
|
message: '请输入学校或工作单位'
|
|
}],
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
|
placeholder: "\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: "".concat(AppplySchoolModalmodules.flexRow, " ").concat(AppplySchoolModalmodules.example),
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: "\u793A\u4F8B\uFF1A"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: AppplySchoolModalmodules.flexColumn,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(CheckCircleFilled/* default */.Z, {
|
|
style: {
|
|
color: "rgb(82, 196, 26)"
|
|
}
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "font14 ml5",
|
|
children: "\u6B63\u786E\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u6784"
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(CloseCircleFilled/* default */.Z, {
|
|
style: {
|
|
color: "red"
|
|
}
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "font14 ml5",
|
|
children: "\u9519\u8BEF\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u67842019\u6625"
|
|
})]
|
|
})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u5730\u533A\uFF1A",
|
|
name: "city",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(cascader/* default */.Z, {
|
|
allowClear: true,
|
|
size: 'middle',
|
|
options: cityData/* CityData */.P,
|
|
placeholder: "\u8BF7\u9009\u62E9\u6240\u5728\u5730",
|
|
showSearch: {
|
|
matchInputWidth: true,
|
|
filter: filter
|
|
}
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u8BE6\u7EC6\u5730\u5740\uFF1A",
|
|
name: "address",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
|
placeholder: "\u8BF7\u586B\u5199\u5B8C\u6574\u7684\u5730\u5740\u4FE1\u606F"
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u8BF4\u660E\uFF1A",
|
|
name: "remarks",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(AppplySchoolModal_TextArea, {
|
|
placeholder: "\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: AppplySchoolModalmodules.footerWrap,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z.Item, {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
className: "mr5",
|
|
size: 'middle',
|
|
onClick: function onClick() {
|
|
onClose();
|
|
},
|
|
children: "\u53D6\u6D88"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
size: 'middle',
|
|
type: "primary",
|
|
htmlType: "submit",
|
|
loading: loading['account/appplySchool'],
|
|
children: "\u4FDD\u5B58"
|
|
})]
|
|
})
|
|
})]
|
|
})
|
|
});
|
|
};
|
|
/* harmony default export */ var components_AppplySchoolModal = ((0,_umi_production_exports.connect)(function (_ref4) {
|
|
var account = _ref4.account,
|
|
loading = _ref4.loading,
|
|
globalSetting = _ref4.globalSetting;
|
|
return {
|
|
account: account,
|
|
globalSetting: globalSetting,
|
|
loading: loading.effects
|
|
};
|
|
})(AppplySchoolModal));
|
|
;// CONCATENATED MODULE: ./src/pages/Competitions/Detail/component/ProfessionalAuthModal.tsx
|
|
|
|
|
|
|
|
|
|
|
|
var ProfessionalAuthModal_excluded = ["user", "account", "globalSetting", "loading", "dispatch", "Scoid"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Option = es_select["default"].Option;
|
|
var ProfessionalAuthModal_Dragger = upload/* default */.Z.Dragger;
|
|
var ProfessionalAuthModal = function ProfessionalAuthModal(_ref) {
|
|
var _globalSetting$settin, _schoolList$find3;
|
|
var user = _ref.user,
|
|
account = _ref.account,
|
|
globalSetting = _ref.globalSetting,
|
|
loading = _ref.loading,
|
|
dispatch = _ref.dispatch,
|
|
Scoid = _ref.Scoid,
|
|
props = objectWithoutProperties_default()(_ref, ProfessionalAuthModal_excluded);
|
|
var _Form$useForm = es_form/* default */.Z.useForm(),
|
|
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
|
|
form = _Form$useForm2[0];
|
|
var _useState = (0,_react_17_0_2_react.useState)({}),
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
formValue = _useState2[0],
|
|
setFormValue = _useState2[1];
|
|
var _useState3 = (0,_react_17_0_2_react.useState)([]),
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
schoolList = _useState4[0],
|
|
setSchoolList = _useState4[1];
|
|
var _useState5 = (0,_react_17_0_2_react.useState)([]),
|
|
_useState6 = slicedToArray_default()(_useState5, 2),
|
|
filterSchoolList = _useState6[0],
|
|
setFilterSchoolList = _useState6[1];
|
|
var _useState7 = (0,_react_17_0_2_react.useState)([]),
|
|
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
departmentList = _useState8[0],
|
|
setDepartmentList = _useState8[1];
|
|
var _useState9 = (0,_react_17_0_2_react.useState)([]),
|
|
_useState10 = slicedToArray_default()(_useState9, 2),
|
|
filterDepartmentList = _useState10[0],
|
|
setFilterDepartmentList = _useState10[1];
|
|
var _useState11 = (0,_react_17_0_2_react.useState)(),
|
|
_useState12 = slicedToArray_default()(_useState11, 2),
|
|
image = _useState12[0],
|
|
setImage = _useState12[1];
|
|
var _useState13 = (0,_react_17_0_2_react.useState)(),
|
|
_useState14 = slicedToArray_default()(_useState13, 2),
|
|
fileId = _useState14[0],
|
|
setFileId = _useState14[1];
|
|
var _useState15 = (0,_react_17_0_2_react.useState)(),
|
|
_useState16 = slicedToArray_default()(_useState15, 2),
|
|
isLoading = _useState16[0],
|
|
setIsLoading = _useState16[1];
|
|
var _useState17 = (0,_react_17_0_2_react.useState)(),
|
|
_useState18 = slicedToArray_default()(_useState17, 2),
|
|
visibleAppplySchool = _useState18[0],
|
|
setVisibleAppplySchool = _useState18[1];
|
|
var _useState19 = (0,_react_17_0_2_react.useState)(),
|
|
_useState20 = slicedToArray_default()(_useState19, 2),
|
|
visibleAppplyDepartment = _useState20[0],
|
|
setVisibleAppplyDepartment = _useState20[1];
|
|
;
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
getSchoolOption();
|
|
}, []);
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
|
var res;
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
while (1) switch (_context.prev = _context.next) {
|
|
case 0:
|
|
if (Scoid) {
|
|
_context.next = 2;
|
|
break;
|
|
}
|
|
return _context.abrupt("return");
|
|
case 2:
|
|
_context.next = 4;
|
|
return getDepartmentOption(Scoid);
|
|
case 4:
|
|
res = _context.sent;
|
|
setDepartmentList(res === null || res === void 0 ? void 0 : res.departments);
|
|
case 6:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}, _callee);
|
|
}))();
|
|
}, [Scoid]);
|
|
var getSchoolOption = /*#__PURE__*/function () {
|
|
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
|
|
var res;
|
|
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
|
|
while (1) switch (_context2.prev = _context2.next) {
|
|
case 0:
|
|
_context2.next = 2;
|
|
return dispatch({
|
|
type: 'account/getSchoolOption'
|
|
});
|
|
case 2:
|
|
res = _context2.sent;
|
|
setSchoolList(res === null || res === void 0 ? void 0 : res.schools);
|
|
case 4:
|
|
case "end":
|
|
return _context2.stop();
|
|
}
|
|
}, _callee2);
|
|
}));
|
|
return function getSchoolOption() {
|
|
return _ref3.apply(this, arguments);
|
|
};
|
|
}();
|
|
var getDepartmentOption = function getDepartmentOption(schoolId) {
|
|
return dispatch({
|
|
type: 'account/getDepartmentOption',
|
|
payload: {
|
|
id: schoolId
|
|
}
|
|
});
|
|
};
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
if (!account.basicInfo) {
|
|
return;
|
|
}
|
|
var basicInfo = account.basicInfo;
|
|
var formData = {
|
|
identity: basicInfo.identity,
|
|
school: basicInfo.school_name,
|
|
department: basicInfo.department_name,
|
|
studentNo: basicInfo.student_id,
|
|
jobTitle: basicInfo.identity == "teacher" ? basicInfo.technical_title : "教授",
|
|
manager: basicInfo.identity == "professional" ? basicInfo.technical_title : "企业管理者"
|
|
};
|
|
form.setFieldsValue(formData);
|
|
setFormValue(formData);
|
|
}, [account.basicInfo]);
|
|
var handleApplySchool = function handleApplySchool() {
|
|
setVisibleAppplySchool(true);
|
|
};
|
|
var handleApplyDepartment = function handleApplyDepartment() {
|
|
if (!schoolList.find(function (item) {
|
|
return item.name === formValue.school;
|
|
})) {
|
|
message/* default */.ZP.info('请先选择正确的单位或者学校!');
|
|
return;
|
|
}
|
|
setVisibleAppplyDepartment(true);
|
|
};
|
|
var handleValuesChange = function handleValuesChange(changedValues) {
|
|
setFormValue(objectSpread2_default()({}, form.getFieldsValue()));
|
|
if ('school' in changedValues) {
|
|
setFilterSchoolList(schoolList.filter(function (item) {
|
|
return item.name.includes(changedValues.school);
|
|
}));
|
|
var findSchoolId = (schoolList.find(function (item) {
|
|
return item.name === changedValues.school;
|
|
}) || {}).id;
|
|
if (findSchoolId) {
|
|
handleSetDepartment(changedValues.school);
|
|
} else {
|
|
form.setFieldsValue({
|
|
department: ''
|
|
});
|
|
setFormValue(objectSpread2_default()(objectSpread2_default()({}, formValue), {
|
|
school: changedValues.school,
|
|
department: ''
|
|
}));
|
|
}
|
|
}
|
|
};
|
|
var handleSetDepartment = /*#__PURE__*/function () {
|
|
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(school, departmentName) {
|
|
var _schoolList$find, _res$departments;
|
|
var findSchoolId, res, name;
|
|
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
|
|
while (1) switch (_context3.prev = _context3.next) {
|
|
case 0:
|
|
findSchoolId = (_schoolList$find = schoolList.find(function (item) {
|
|
return item.name === school;
|
|
})) === null || _schoolList$find === void 0 ? void 0 : _schoolList$find.id;
|
|
_context3.next = 3;
|
|
return getDepartmentOption(findSchoolId);
|
|
case 3:
|
|
_context3.t0 = _context3.sent;
|
|
if (_context3.t0) {
|
|
_context3.next = 6;
|
|
break;
|
|
}
|
|
_context3.t0 = {};
|
|
case 6:
|
|
res = _context3.t0;
|
|
setDepartmentList(res === null || res === void 0 ? void 0 : res.departments);
|
|
name = departmentName || (res === null || res === void 0 || (_res$departments = res.departments) === null || _res$departments === void 0 || (_res$departments = _res$departments[0]) === null || _res$departments === void 0 ? void 0 : _res$departments.name);
|
|
form.setFieldsValue({
|
|
department: name
|
|
});
|
|
setFormValue(objectSpread2_default()(objectSpread2_default()({}, formValue), {
|
|
school: school,
|
|
department: name
|
|
}));
|
|
case 11:
|
|
case "end":
|
|
return _context3.stop();
|
|
}
|
|
}, _callee3);
|
|
}));
|
|
return function handleSetDepartment(_x, _x2) {
|
|
return _ref4.apply(this, arguments);
|
|
};
|
|
}();
|
|
var handleSchoolSuccess = /*#__PURE__*/function () {
|
|
var _ref5 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4(schoolName) {
|
|
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
|
|
while (1) switch (_context4.prev = _context4.next) {
|
|
case 0:
|
|
_context4.next = 2;
|
|
return getSchoolOption();
|
|
case 2:
|
|
form.setFieldsValue({
|
|
school: schoolName,
|
|
department: ''
|
|
});
|
|
setFormValue(objectSpread2_default()(objectSpread2_default()({}, formValue), {
|
|
school: schoolName,
|
|
department: ''
|
|
}));
|
|
case 4:
|
|
case "end":
|
|
return _context4.stop();
|
|
}
|
|
}, _callee4);
|
|
}));
|
|
return function handleSchoolSuccess(_x3) {
|
|
return _ref5.apply(this, arguments);
|
|
};
|
|
}();
|
|
var handleUploadChange = function handleUploadChange(info) {
|
|
if (info.file.status === 'uploading') {
|
|
setIsLoading(true);
|
|
return;
|
|
}
|
|
if (info.file.status === 'done') {
|
|
var _info$file$response;
|
|
console.log(info.file, info.file.response);
|
|
setFileId((_info$file$response = info.file.response) === null || _info$file$response === void 0 ? void 0 : _info$file$response.id);
|
|
(0,util/* getBase64 */.y3)(info.file.originFileObj, function (base64Img) {
|
|
setImage(base64Img);
|
|
setIsLoading(false);
|
|
});
|
|
}
|
|
};
|
|
var handleFinish = /*#__PURE__*/function () {
|
|
var _ref6 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5(values) {
|
|
var _schoolList$find2, _departmentList$find, _account$basicInfo, _user$userInfo;
|
|
var _ref7, school, department, identity, studentNo, jobTitle, manager, school_id, department_id, extra, res, _user$userInfo2;
|
|
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
|
|
while (1) switch (_context5.prev = _context5.next) {
|
|
case 0:
|
|
_ref7 = values || {}, school = _ref7.school, department = _ref7.department, identity = _ref7.identity, studentNo = _ref7.studentNo, jobTitle = _ref7.jobTitle, manager = _ref7.manager;
|
|
if (image) {
|
|
_context5.next = 4;
|
|
break;
|
|
}
|
|
message/* default */.ZP.info('请先上传照片!');
|
|
return _context5.abrupt("return");
|
|
case 4:
|
|
school_id = (_schoolList$find2 = schoolList.find(function (item) {
|
|
return item.name === school;
|
|
})) === null || _schoolList$find2 === void 0 ? void 0 : _schoolList$find2.id;
|
|
department_id = (_departmentList$find = departmentList.find(function (item) {
|
|
return item.name === department;
|
|
})) === null || _departmentList$find === void 0 ? void 0 : _departmentList$find.id;
|
|
if (identity === 'student') {
|
|
extra = studentNo;
|
|
} else if (identity === 'teacher') {
|
|
extra = jobTitle;
|
|
} else {
|
|
extra = manager;
|
|
}
|
|
_context5.next = 9;
|
|
return dispatch({
|
|
type: 'account/applyProfessionalAuth',
|
|
payload: {
|
|
id: ((_account$basicInfo = account.basicInfo) === null || _account$basicInfo === void 0 ? void 0 : _account$basicInfo.id) || ((_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.login),
|
|
school_id: school_id,
|
|
department_id: department_id,
|
|
identity: identity,
|
|
extra: extra,
|
|
attachment_ids: [fileId]
|
|
}
|
|
});
|
|
case 9:
|
|
res = _context5.sent;
|
|
handleClose();
|
|
if (res) {
|
|
message/* default */.ZP.info("申请已提交,请等待审核!");
|
|
dispatch({
|
|
type: 'account/getBasicInfo',
|
|
payload: {
|
|
login: (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.login
|
|
}
|
|
});
|
|
}
|
|
case 12:
|
|
case "end":
|
|
return _context5.stop();
|
|
}
|
|
}, _callee5);
|
|
}));
|
|
return function handleFinish(_x4) {
|
|
return _ref6.apply(this, arguments);
|
|
};
|
|
}();
|
|
var handleClose = function handleClose() {
|
|
dispatch({
|
|
type: 'account/setActionTabs',
|
|
payload: {}
|
|
});
|
|
};
|
|
var uploadProps = {
|
|
data: {
|
|
type: "professional"
|
|
},
|
|
multiple: true,
|
|
showUploadList: false,
|
|
action: "".concat(env/* default */.Z.API_SERVER, "/api/attachments.json"),
|
|
className: componentmodules.uploader,
|
|
onChange: handleUploadChange,
|
|
beforeUpload: function beforeUpload(file) {
|
|
var isJpgOrPng = file.type === 'image/jpeg' || file.type === 'image/png' || file.type === 'image/jpg' || file.type === 'image/bmp';
|
|
if (!isJpgOrPng) {
|
|
message/* default */.ZP.info('请上传正确文件格式');
|
|
}
|
|
return isJpgOrPng;
|
|
}
|
|
};
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(modal/* default */.Z, {
|
|
centered: true,
|
|
keyboard: false,
|
|
closable: false,
|
|
destroyOnClose: true,
|
|
className: componentmodules.modal,
|
|
open: account.actionTabs.key === 'Account-ProfessionalAuth',
|
|
title: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
style: {
|
|
padding: "25px"
|
|
},
|
|
align: "middle",
|
|
justify: "space-between",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
children: "\u804C\u4E1A\u8BA4\u8BC1"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-guanbi11",
|
|
style: {
|
|
color: "#979797",
|
|
cursor: "pointer"
|
|
},
|
|
onClick: handleClose
|
|
})
|
|
})]
|
|
}),
|
|
width: "660px",
|
|
footer: null,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
|
|
spinning: !!isLoading,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
|
|
className: componentmodules.formWrap,
|
|
form: form,
|
|
colon: false,
|
|
onValuesChange: handleValuesChange,
|
|
onFinish: handleFinish,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
gutter: [10, 0],
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
flex: '300px',
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u804C\u4E1A",
|
|
name: "identity",
|
|
rules: [{
|
|
required: true,
|
|
message: '请先选择职业'
|
|
}],
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_select["default"], {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
|
|
value: "teacher",
|
|
children: "\u6559\u5E08"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
|
|
value: "student",
|
|
children: "\u5B66\u751F"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
|
|
value: "professional",
|
|
children: "\u4E13\u4E1A\u4EBA\u58EB"
|
|
})]
|
|
})
|
|
})
|
|
}), formValue.identity === 'student' && /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
flex: '200px',
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
initialValue: formValue.studentNo,
|
|
name: "studentNo",
|
|
rules: [{
|
|
required: true,
|
|
message: '请先输入学号'
|
|
}],
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
|
type: "text",
|
|
placeholder: "\u8BF7\u8F93\u5165\u5B66\u53F7"
|
|
})
|
|
})
|
|
}), formValue.identity === 'teacher' && /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
flex: '200px',
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
initialValue: formValue.jobTitle,
|
|
name: "jobTitle",
|
|
rules: [{
|
|
required: true,
|
|
message: '请先选择职称'
|
|
}],
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_select["default"], {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
|
|
value: "\u6559\u6388",
|
|
children: "\u6559\u6388"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
|
|
value: "\u526F\u6559\u6388",
|
|
children: "\u526F\u6559\u6388"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
|
|
value: "\u8BB2\u5E08",
|
|
children: "\u8BB2\u5E08"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
|
|
value: "\u52A9\u6559",
|
|
children: "\u52A9\u6559"
|
|
})]
|
|
})
|
|
})
|
|
}), formValue.identity === 'professional' && /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
flex: '200px',
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
initialValue: formValue.manager,
|
|
name: "manager",
|
|
rules: [{
|
|
required: true,
|
|
message: '请先选择职称'
|
|
}],
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_select["default"], {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
|
|
value: "\u4F01\u4E1A\u7BA1\u7406\u8005",
|
|
children: "\u4F01\u4E1A\u7BA1\u7406\u8005"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
|
|
value: "\u90E8\u95E8\u7BA1\u7406\u8005",
|
|
children: "\u90E8\u95E8\u7BA1\u7406\u8005"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
|
|
value: "\u9AD8\u7EA7\u5DE5\u7A0B\u5E08",
|
|
children: "\u9AD8\u7EA7\u5DE5\u7A0B\u5E08"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
|
|
value: "\u5DE5\u7A0B\u5E08",
|
|
children: "\u5DE5\u7A0B\u5E08"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
|
|
value: "\u52A9\u7406\u5DE5\u7A0B\u5E08",
|
|
children: "\u52A9\u7406\u5DE5\u7A0B\u5E08"
|
|
})]
|
|
})
|
|
})
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u5B66\u6821/\u5355\u4F4D",
|
|
name: "school",
|
|
extra: formValue.school && !(schoolList !== null && schoolList !== void 0 && schoolList.find(function (item) {
|
|
return item.name === formValue.school;
|
|
})) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: componentmodules.schoolHintWrap,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
className: componentmodules.colorCDCDCD,
|
|
children: ["\u672A\u627E\u5230\u5305\u542B\u201C", formValue.school, "\u201D\u7684\u9AD8\u6821\uFF0C"]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "".concat(componentmodules.color0152d9, " current"),
|
|
onClick: handleApplySchool,
|
|
children: "\u7533\u8BF7\u65B0\u589E"
|
|
})]
|
|
}),
|
|
rules: [{
|
|
required: true,
|
|
message: '请先选择学校/单位'
|
|
}],
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(auto_complete/* default */.Z, {
|
|
showSearch: true,
|
|
options: filterSchoolList === null || filterSchoolList === void 0 ? void 0 : filterSchoolList.map(function (item) {
|
|
return {
|
|
value: item.name
|
|
};
|
|
})
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u9662\u7CFB/\u90E8\u95E8",
|
|
name: "department",
|
|
extra: formValue.department && !(departmentList !== null && departmentList !== void 0 && departmentList.find(function (item) {
|
|
return item.name === formValue.department;
|
|
})) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: componentmodules.schoolHintWrap,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: componentmodules.colorCDCDCD,
|
|
children: formValue.department ? "\u672A\u627E\u5230\u5305\u542B\u201C".concat(formValue.department, "\u201D\u7684\u9AD8\u6821\uFF0C") : '未找到院系,'
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "".concat(componentmodules.color0152d9, " current"),
|
|
onClick: handleApplyDepartment,
|
|
children: "\u7533\u8BF7\u65B0\u589E"
|
|
})]
|
|
}),
|
|
rules: [{
|
|
required: true,
|
|
message: '请先选择院系/部门'
|
|
}],
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(auto_complete/* default */.Z, {
|
|
showSearch: true,
|
|
onChange: function onChange(value) {
|
|
return setFilterDepartmentList(departmentList.filter(function (item) {
|
|
return item.name.includes(value);
|
|
}));
|
|
},
|
|
options: filterDepartmentList === null || filterDepartmentList === void 0 ? void 0 : filterDepartmentList.map(function (item) {
|
|
return {
|
|
value: item.name
|
|
};
|
|
})
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
label: "\u804C\u4E1A\u8BC1\u4E0A\u4F20",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: componentmodules.flexRow,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: componentmodules.flexColumn,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ProfessionalAuthModal_Dragger, objectSpread2_default()(objectSpread2_default()({}, uploadProps), {}, {
|
|
accept: ".png,.jpg,.bmp,.jpeg",
|
|
children: image ? /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: image,
|
|
className: componentmodules.uploadImg
|
|
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: componentmodules.imageTip,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-cuban2shangchuanyunduan ".concat(componentmodules.uploadTipIcon)
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
className: componentmodules.uploadTip,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
className: componentmodules.color05101a,
|
|
children: "\u70B9\u51FB\u6216\u62D6\u62FD\u4E0A\u4F20\u56FE\u7247"
|
|
})
|
|
})]
|
|
})
|
|
})), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "tc",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
className: componentmodules.viewLargerImg,
|
|
children: "\u67E5\u770B\u5927\u56FE"
|
|
})
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: "".concat(componentmodules.flexColumn, " ").concat(componentmodules.example),
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: componentmodules.exampleImg,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: job
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
className: "tc",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: "\u793A\u4F8B\u56FE\u7247"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
className: "".concat(componentmodules.colorOrange, " font12"),
|
|
children: "\uFF08png/jpg/bmp\u683C\u5F0F\uFF0C\u4E0D\u8D85\u8FC72MB\uFF09"
|
|
})]
|
|
})]
|
|
})]
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: componentmodules.footerWrap,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z.Item, {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
className: "mr5",
|
|
size: 'middle',
|
|
onClick: handleClose,
|
|
children: "\u53D6\u6D88"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
size: 'middle',
|
|
type: "primary",
|
|
htmlType: "submit",
|
|
loading: loading['account/applyProfessionalAuth'],
|
|
children: "\u4FDD\u5B58"
|
|
})]
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: componentmodules.note,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: "\u8BA4\u8BC1\u987B\u77E5\uFF1A"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: "1.\u6839\u636E\u804C\u4E1A\u4E0A\u4F20\u76F8\u5E94\u7684\u8BC1\u4EF6\u7167\uFF1A\u6559\u5E08\uFF08\u6559\u5E08\u8BC1\uFF09\uFF0C\u4E13\u4E1A\u4EBA\u58EB\uFF08\u5458\u5DE5\u8BC1\uFF09\u3001\u5B66\u751F\uFF08\u5B66\u751F\u8BC1\uFF09\uFF0C\u8BF7\u786E\u4FDD\u8BC1\u4EF6\u7167\u5185\u5BB9\u5B8C\u6574\u5E76\u4E14\u6E05\u6670\u53EF\u89C1\uFF0C\u4E25\u7981PS\uFF1B"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: "2.\u6211\u4EEC\u5C06\u5728\u4F60\u63D0\u4EA4\u804C\u4E1A\u8BC1\u4FE1\u606F\u540E\u768424\u5C0F\u65F6\uFF08\u4E0D\u5305\u542B\u8282\u5047\u65E5\uFF09\u5185\u5B8C\u6210\u5BA1\u6838\uFF0C\u5BA1\u6838\u7ED3\u679C\u5C06\u4F1A\u4EE5\u7CFB\u7EDF\u6D88\u606F\u7684\u5F62\u5F0F\u53D1\u9001\u7ED9\u4F60\uFF1B"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: "3.\u804C\u4E1A\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u65E0\u6CD5\u5220\u9664\uFF0C\u8BF7\u8C28\u614E\u586B\u5199\uFF1B\u804C\u4E1A\u53D8\u66F4\u8BF7\u9009\u62E9\u91CD\u65B0\u8BA4\u8BC1\uFF1B"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: "4.\u804C\u4E1A\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u7CFB\u7EDF\u5C06\u81EA\u52A8\u53D1\u653E500\u4E2A\u91D1\u5E01\u4F5C\u4E3A\u5956\u52B1\uFF1B"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: "5.\u6211\u4EEC\u4F1A\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u7684\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732\uFF1B"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
|
|
children: ["6.\u5982\u5B58\u5728\u6076\u610F\u4E71\u586B\u5199\u59D3\u540D\uFF0C\u5B66\u53F7\uFF0C\u53CA\u4E0A\u4F20\u4E0E\u804C\u4E1A\u8BC1\u4EF6\u65E0\u5173\u56FE\u7247\u8005\uFF0C\u4E00\u7ECF\u53D1\u73B0\u5C06\u51BB\u7ED3", !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin = globalSetting.setting) !== null && _globalSetting$settin !== void 0 && _globalSetting$settin.is_local) && 'EduCoder', "\u8D26\u53F7\u3002"]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: "7.\u975E\u8001\u5E08\u8EAB\u4EFD\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1\u540E\u7CFB\u7EDF\u4F1A\u81EA\u52A8\u5C06\u72B6\u6001\u6539\u4E3A\u5DF2\u8BA4\u8BC1\uFF0C\u4F60\u5C06\u53EF\u4EE5\u4F53\u9A8C\u5E73\u53F0\u9700\u8981\u804C\u4E1A\u8BA4\u8BC1\u7684\u529F\u80FD\uFF1B\u5982\u679C\u5728\u8BA4\u8BC1\u540E\u7684\u4F7F\u7528\u8FC7\u7A0B\u4E2D\u672A\u901A\u8FC7\u5BA1\u6838\uFF0C\u4F60\u5C06\u4E0D\u80FD\u7EE7\u7EED\u4F53\u9A8C\u9700\u8981\u8BA4\u8BC1\u7684\u529F\u80FD\u3002"
|
|
})]
|
|
})]
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(components_AppplySchoolModal, {
|
|
visible: visibleAppplySchool,
|
|
onClose: function onClose() {
|
|
return setVisibleAppplySchool(false);
|
|
},
|
|
schoolName: formValue.school,
|
|
onSuccess: handleSchoolSuccess
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(components_AppplyDepartmentModal, {
|
|
visible: visibleAppplyDepartment,
|
|
onClose: function onClose() {
|
|
return setVisibleAppplyDepartment(false);
|
|
},
|
|
schoolId: (_schoolList$find3 = schoolList.find(function (item) {
|
|
return item.name === formValue.school;
|
|
})) === null || _schoolList$find3 === void 0 ? void 0 : _schoolList$find3.id,
|
|
schoolName: formValue.school,
|
|
departmentName: formValue.department,
|
|
onSuccess: function onSuccess(departmentName) {
|
|
return handleSetDepartment(formValue.school, departmentName);
|
|
}
|
|
})]
|
|
});
|
|
};
|
|
/* harmony default export */ var component_ProfessionalAuthModal = ((0,_umi_production_exports.connect)(function (_ref8) {
|
|
var user = _ref8.user,
|
|
account = _ref8.account,
|
|
loading = _ref8.loading,
|
|
globalSetting = _ref8.globalSetting;
|
|
return {
|
|
user: user,
|
|
account: account,
|
|
globalSetting: globalSetting,
|
|
loading: loading.effects
|
|
};
|
|
})(ProfessionalAuthModal));
|
|
// EXTERNAL MODULE: ./node_modules/_md5@2.3.0@md5/md5.js
|
|
var md5 = __webpack_require__(93735);
|
|
var md5_default = /*#__PURE__*/__webpack_require__.n(md5);
|
|
;// CONCATENATED MODULE: ./src/pages/Competitions/Detail/UpdataPhone.tsx
|
|
|
|
|
|
|
|
//修改手机号or邮箱地址
|
|
|
|
|
|
|
|
|
|
|
|
//type 3 手机 4邮箱
|
|
function UpdataPhone(_ref) {
|
|
var type = _ref.type,
|
|
dispatch = _ref.dispatch,
|
|
userid = _ref.userid,
|
|
isshow = _ref.isshow,
|
|
setPhoneshow = _ref.setPhoneshow,
|
|
setEmailshow = _ref.setEmailshow;
|
|
var opens = "79e33abd4b6588941ab7622aed1e67e8";
|
|
var _useState = (0,_react_17_0_2_react.useState)(''),
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
login = _useState2[0],
|
|
setLogin = _useState2[1];
|
|
var _useState3 = (0,_react_17_0_2_react.useState)('获取验证码'),
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
yzm = _useState4[0],
|
|
setYzm = _useState4[1];
|
|
var _useState5 = (0,_react_17_0_2_react.useState)(60),
|
|
_useState6 = slicedToArray_default()(_useState5, 2),
|
|
seconds = _useState6[0],
|
|
setseconds = _useState6[1];
|
|
var _useState7 = (0,_react_17_0_2_react.useState)(false),
|
|
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
secondsFlag = _useState8[0],
|
|
setsecondsFlag = _useState8[1];
|
|
var _useState9 = (0,_react_17_0_2_react.useState)(''),
|
|
_useState10 = slicedToArray_default()(_useState9, 2),
|
|
code = _useState10[0],
|
|
setCode = _useState10[1];
|
|
//获取验证码
|
|
function getversion() {
|
|
return _getversion.apply(this, arguments);
|
|
} // 获取验证码倒计时
|
|
function _getversion() {
|
|
_getversion = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
|
var data;
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
while (1) switch (_context.prev = _context.next) {
|
|
case 0:
|
|
if (login) {
|
|
_context.next = 3;
|
|
break;
|
|
}
|
|
if (type === 3) {
|
|
message/* default */.ZP.info('手机号不能为空');
|
|
} else {
|
|
message/* default */.ZP.info('邮箱地址不能为空');
|
|
}
|
|
return _context.abrupt("return");
|
|
case 3:
|
|
_context.next = 5;
|
|
return dispatch({
|
|
type: 'competitions/getVerification',
|
|
payload: {
|
|
type: type,
|
|
login: login,
|
|
smscode: md5_default()(opens + login)
|
|
//user_id:39416
|
|
}
|
|
});
|
|
case 5:
|
|
data = _context.sent;
|
|
if (data.status === 1) {
|
|
message/* default */.ZP.info('获取验证码成功');
|
|
remainTime();
|
|
setsecondsFlag(true);
|
|
}
|
|
case 7:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}, _callee);
|
|
}));
|
|
return _getversion.apply(this, arguments);
|
|
}
|
|
function remainTime() {
|
|
setseconds(60);
|
|
var aa = setInterval(function () {
|
|
--seconds;
|
|
if (seconds > -1) {
|
|
setseconds(seconds);
|
|
} else {
|
|
clearInterval(aa);
|
|
setsecondsFlag(false);
|
|
}
|
|
}, 1000);
|
|
}
|
|
//绑定手机号
|
|
function PhoneBind() {
|
|
return _PhoneBind.apply(this, arguments);
|
|
} //绑定邮箱
|
|
function _PhoneBind() {
|
|
_PhoneBind = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
|
|
var data;
|
|
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
|
|
while (1) switch (_context2.prev = _context2.next) {
|
|
case 0:
|
|
_context2.next = 2;
|
|
return dispatch({
|
|
type: 'competitions/PhoneBind',
|
|
payload: {
|
|
userid: userid,
|
|
code: code,
|
|
phone: login
|
|
}
|
|
});
|
|
case 2:
|
|
data = _context2.sent;
|
|
if (data.status === 0) {
|
|
message/* default */.ZP.info('绑定成功');
|
|
setPhoneshow("none");
|
|
}
|
|
case 4:
|
|
case "end":
|
|
return _context2.stop();
|
|
}
|
|
}, _callee2);
|
|
}));
|
|
return _PhoneBind.apply(this, arguments);
|
|
}
|
|
function EmailBind() {
|
|
return _EmailBind.apply(this, arguments);
|
|
}
|
|
function _EmailBind() {
|
|
_EmailBind = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
|
|
var data;
|
|
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
|
|
while (1) switch (_context3.prev = _context3.next) {
|
|
case 0:
|
|
_context3.next = 2;
|
|
return dispatch({
|
|
type: 'competitions/EmailBind',
|
|
payload: {
|
|
userid: userid,
|
|
code: code,
|
|
email: login
|
|
}
|
|
});
|
|
case 2:
|
|
data = _context3.sent;
|
|
if (data.status === 0) {
|
|
message/* default */.ZP.info('绑定成功');
|
|
setEmailshow('none');
|
|
}
|
|
case 4:
|
|
case "end":
|
|
return _context3.stop();
|
|
}
|
|
}, _callee3);
|
|
}));
|
|
return _EmailBind.apply(this, arguments);
|
|
}
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
style: {
|
|
display: isshow
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
|
value: login,
|
|
onChange: function onChange(e) {
|
|
return setLogin(e.target.value);
|
|
},
|
|
placeholder: type === 3 ? '请输入手机号' : '请输入邮箱地址',
|
|
style: {
|
|
width: '370px'
|
|
}
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
|
value: code,
|
|
onChange: function onChange(e) {
|
|
return setCode(e.target.value);
|
|
},
|
|
placeholder: type === 3 ? '请输入手机获取的验证码' : '请输入邮箱获取的验证码',
|
|
style: {
|
|
width: '250px'
|
|
}
|
|
})
|
|
}), " ", /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
disabled: secondsFlag,
|
|
onClick: function onClick() {
|
|
return getversion();
|
|
},
|
|
type: "primary",
|
|
style: {
|
|
marginLeft: '20px',
|
|
width: '100px'
|
|
},
|
|
children: secondsFlag ? "\u91CD\u65B0\u53D1\u9001".concat(seconds, "s") : yzm
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
|
|
style: {
|
|
marginTop: '30px',
|
|
width: '370px',
|
|
textAlign: 'center'
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
type: "primary",
|
|
style: {
|
|
marginRight: '15px'
|
|
},
|
|
onClick: function onClick() {
|
|
if (!code) {
|
|
message/* default */.ZP.info('验证码不能为空');
|
|
return;
|
|
}
|
|
if (type === 3) {
|
|
PhoneBind();
|
|
} else {
|
|
EmailBind();
|
|
}
|
|
},
|
|
children: "\u786E\u8BA4"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
style: {
|
|
marginLeft: '20px'
|
|
},
|
|
onClick: function onClick() {
|
|
if (type === 3) {
|
|
setPhoneshow("none");
|
|
} else {
|
|
setEmailshow('none');
|
|
}
|
|
},
|
|
children: "\u53D6\u6D88"
|
|
})]
|
|
})]
|
|
});
|
|
}
|
|
/* harmony default export */ var Detail_UpdataPhone = (UpdataPhone);
|
|
;// CONCATENATED MODULE: ./src/pages/Competitions/Detail/Addleader.tsx
|
|
|
|
|
|
|
|
|
|
//填写银行卡号等信息
|
|
|
|
|
|
|
|
|
|
|
|
function Addleader(_ref) {
|
|
var dispatch = _ref.dispatch,
|
|
userid = _ref.userid;
|
|
var tailLayout = {
|
|
wrapperCol: {
|
|
offset: 3,
|
|
span: 21
|
|
}
|
|
};
|
|
var _Form$useForm = es_form/* default */.Z.useForm(),
|
|
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
|
|
form = _Form$useForm2[0];
|
|
var _useParams = (0,_umi_production_exports.useParams)(),
|
|
identifier = _useParams.identifier;
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
style: {
|
|
width: '500px'
|
|
},
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
|
|
form: form,
|
|
name: "basic",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, tailLayout), {}, {
|
|
label: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
style: {
|
|
width: "30px"
|
|
},
|
|
children: "\u5F00\u6237\u884C"
|
|
}),
|
|
name: "bank",
|
|
rules: [{
|
|
required: true,
|
|
message: '请输入开户行'
|
|
}],
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {})
|
|
})), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, tailLayout), {}, {
|
|
label: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
style: {
|
|
width: "30px"
|
|
},
|
|
children: "\u652F\u884C"
|
|
}),
|
|
name: "second_bank",
|
|
rules: [{
|
|
required: true,
|
|
message: '请输入支行'
|
|
}],
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {})
|
|
})), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, tailLayout), {}, {
|
|
label: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
style: {
|
|
width: "30px"
|
|
},
|
|
children: "\u8D26\u53F7"
|
|
}),
|
|
name: "card_no",
|
|
rules: [{
|
|
required: true,
|
|
message: '请输入账号'
|
|
}],
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {})
|
|
})), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
type: "primary",
|
|
htmlType: "submit",
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
|
|
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
|
|
while (1) switch (_context2.prev = _context2.next) {
|
|
case 0:
|
|
form.validateFields().then( /*#__PURE__*/function () {
|
|
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(vaule) {
|
|
var data;
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
while (1) switch (_context.prev = _context.next) {
|
|
case 0:
|
|
_context.next = 2;
|
|
return dispatch({
|
|
type: 'competitions/setleader',
|
|
payload: objectSpread2_default()({
|
|
identifier: identifier,
|
|
user_id: userid
|
|
}, vaule)
|
|
});
|
|
case 2:
|
|
data = _context.sent;
|
|
if (data.status === 0) {
|
|
message/* default */.ZP.info('提交成功');
|
|
}
|
|
case 4:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}, _callee);
|
|
}));
|
|
return function (_x) {
|
|
return _ref3.apply(this, arguments);
|
|
};
|
|
}());
|
|
case 1:
|
|
case "end":
|
|
return _context2.stop();
|
|
}
|
|
}, _callee2);
|
|
})),
|
|
children: "\u63D0\u4EA4"
|
|
})
|
|
})]
|
|
})
|
|
});
|
|
}
|
|
/* harmony default export */ var Detail_Addleader = (Addleader);
|
|
;// CONCATENATED MODULE: ./src/pages/Competitions/Detail/PerfectuserInfon.tsx
|
|
|
|
|
|
|
|
//完善个人信息
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var identityMap = {
|
|
"teacher": "教师",
|
|
"student": "学生",
|
|
"professional": "专业人士"
|
|
};
|
|
function PerfectUser(_ref) {
|
|
var _Prize$teams$, _Prize$teams$2, _Prize$teams$3, _Prize$teams$4;
|
|
var Prize = _ref.Prize,
|
|
Accounts = _ref.Accounts,
|
|
dispatch = _ref.dispatch,
|
|
userid = _ref.userid;
|
|
var _useState = (0,_react_17_0_2_react.useState)('none'),
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
phoneshow = _useState2[0],
|
|
setPhoneshow = _useState2[1];
|
|
var _useState3 = (0,_react_17_0_2_react.useState)('none'),
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
emailshow = _useState4[0],
|
|
setEmailshow = _useState4[1];
|
|
function update(_x) {
|
|
return _update.apply(this, arguments);
|
|
}
|
|
function _update() {
|
|
_update = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(type) {
|
|
var data;
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
while (1) switch (_context.prev = _context.next) {
|
|
case 0:
|
|
if (!(type === "1")) {
|
|
_context.next = 6;
|
|
break;
|
|
}
|
|
_context.next = 3;
|
|
return dispatch({
|
|
type: 'competitions/Authentication'
|
|
});
|
|
case 3:
|
|
data = _context.sent;
|
|
_context.next = 9;
|
|
break;
|
|
case 6:
|
|
_context.next = 8;
|
|
return dispatch({
|
|
type: 'competitions/Professional'
|
|
});
|
|
case 8:
|
|
data = _context.sent;
|
|
case 9:
|
|
if (data.status === 0) {
|
|
message/* default */.ZP.info('撤销成功');
|
|
}
|
|
case 10:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}, _callee);
|
|
}));
|
|
return _update.apply(this, arguments);
|
|
}
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
align: "middle",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "c-red",
|
|
children: "*"
|
|
}), "\u5B9E\u540D\u4FE1\u606F"]
|
|
}), (Accounts === null || Accounts === void 0 ? void 0 : Accounts.authentication) === "uncertified" && /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
flex: 1,
|
|
className: "ml20",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
align: "middle",
|
|
justify: "space-between",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
style: {
|
|
marginLeft: '20px'
|
|
},
|
|
children: "\u901A\u8FC7\u5B9E\u540D\u8BA4\u8BC1\u540E\u624D\u80FD\u83B7\u5F97\u8BC1\u4E66"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
className: Detailmodules/* default */.Z.PerfectBut,
|
|
onClick: function onClick() {
|
|
dispatch({
|
|
type: 'account/setActionTabs',
|
|
payload: {
|
|
key: 'Account-RealNameAuth'
|
|
}
|
|
});
|
|
},
|
|
children: "\u7ACB\u5373\u8BA4\u8BC1"
|
|
})]
|
|
})
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Detailmodules/* default */.Z.PerfectCent,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
className: Detailmodules/* default */.Z.PerfectCentName,
|
|
children: "\u59D3\u540D"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
className: "ml20",
|
|
children: [Accounts === null || Accounts === void 0 ? void 0 : Accounts.name, (Accounts === null || Accounts === void 0 ? void 0 : Accounts.authentication) === "uncertified" ? null : (Accounts === null || Accounts === void 0 ? void 0 : Accounts.authentication) === "applying" ? /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
children: "\u5F85\u5BA1\u6838"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
type: "primary",
|
|
onClick: function onClick() {
|
|
return update("1");
|
|
},
|
|
ghost: true,
|
|
style: {
|
|
marginLeft: '20px'
|
|
},
|
|
children: "\u64A4\u9500\u8BA4\u8BC1"
|
|
})]
|
|
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
style: {
|
|
color: '#6ec76e'
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-wancheng font-14"
|
|
}), " \u5DF2\u8BA4\u8BC1"]
|
|
})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
className: "mt20",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
className: Detailmodules/* default */.Z.PerfectCentName,
|
|
children: "\u6027\u522B"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
className: "ml20",
|
|
children: (Accounts === null || Accounts === void 0 ? void 0 : Accounts.gender) === 0 ? '男' : '女'
|
|
})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
align: "middle",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "c-red",
|
|
children: "*"
|
|
}), "\u804C\u4E1A\u4FE1\u606F"]
|
|
}), (Accounts === null || Accounts === void 0 ? void 0 : Accounts.authentication) === "uncertified" && /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
flex: 1,
|
|
className: "ml20",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
align: "middle",
|
|
justify: "space-between",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
style: {
|
|
marginLeft: '20px'
|
|
},
|
|
children: "\u901A\u8FC7\u5B9E\u540D\u8BA4\u8BC1\u540E\u624D\u80FD\u83B7\u5F97\u8BC1\u4E66"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
className: Detailmodules/* default */.Z.PerfectBut,
|
|
onClick: function onClick() {
|
|
dispatch({
|
|
type: 'account/setActionTabs',
|
|
payload: {
|
|
key: 'Account-ProfessionalAuth'
|
|
}
|
|
});
|
|
},
|
|
children: "\u7ACB\u5373\u8BA4\u8BC1"
|
|
})]
|
|
})
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Detailmodules/* default */.Z.PerfectCent,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
className: Detailmodules/* default */.Z.PerfectCentName,
|
|
children: "\u804C\u4E1A"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
className: "ml20",
|
|
children: [Accounts && Accounts.identity && identityMap[Accounts.identity], (Accounts === null || Accounts === void 0 ? void 0 : Accounts.authentication) === "uncertified" ? null : (Accounts === null || Accounts === void 0 ? void 0 : Accounts.authentication) === "applying" ? /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
children: "\u5F85\u5BA1\u6838"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
type: "primary",
|
|
onClick: function onClick() {
|
|
return update("2");
|
|
},
|
|
ghost: true,
|
|
style: {
|
|
marginLeft: '20px'
|
|
},
|
|
children: "\u64A4\u9500\u8BA4\u8BC1"
|
|
})]
|
|
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
style: {
|
|
color: '#6ec76e'
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-wancheng font-14"
|
|
}), " \u5DF2\u8BA4\u8BC1", /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
type: "primary",
|
|
onClick: function onClick() {
|
|
dispatch({
|
|
type: 'account/setActionTabs',
|
|
payload: {
|
|
key: 'Account-ProfessionalAuth'
|
|
}
|
|
});
|
|
},
|
|
ghost: true,
|
|
style: {
|
|
marginLeft: '20px'
|
|
},
|
|
children: "\u91CD\u65B0\u8BA4\u8BC1"
|
|
})]
|
|
})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
className: "mt20",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
className: Detailmodules/* default */.Z.PerfectCentName,
|
|
children: "\u5B66\u53F7"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
className: "ml20",
|
|
children: (Accounts === null || Accounts === void 0 ? void 0 : Accounts.student_id) || '--'
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
className: "mt20",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
className: Detailmodules/* default */.Z.PerfectCentName,
|
|
children: "\u5B66\u6821"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
className: "ml20",
|
|
children: (Accounts === null || Accounts === void 0 ? void 0 : Accounts.school_name) || '--'
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
className: "mt20",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
className: Detailmodules/* default */.Z.PerfectCentName,
|
|
children: "\u9662\u7CFB"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
className: "ml20",
|
|
children: (Accounts === null || Accounts === void 0 ? void 0 : Accounts.department_name) || '--'
|
|
})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "c-red",
|
|
children: "*"
|
|
}), "\u8054\u7CFB\u65B9\u5F0F"]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Detailmodules/* default */.Z.PerfectCent,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
className: Detailmodules/* default */.Z.PerfectCentName,
|
|
children: "\u624B\u673A\u53F7"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
className: "ml20",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
style: {
|
|
width: '150px'
|
|
},
|
|
children: (Accounts === null || Accounts === void 0 ? void 0 : Accounts.phone) || '--'
|
|
}), phoneshow === 'none' && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
type: "link",
|
|
className: "ml20",
|
|
style: {
|
|
color: '#165DFF'
|
|
},
|
|
onClick: function onClick() {
|
|
setPhoneshow('block');
|
|
},
|
|
children: "\u66F4\u6362"
|
|
})]
|
|
})
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: "mt10",
|
|
style: {
|
|
marginLeft: "74px"
|
|
},
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Detail_UpdataPhone, {
|
|
type: 3,
|
|
dispatch: dispatch,
|
|
userid: Accounts === null || Accounts === void 0 ? void 0 : Accounts.id,
|
|
isshow: phoneshow,
|
|
setPhoneshow: setPhoneshow,
|
|
setEmailshow: setEmailshow
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
className: "mt20",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
className: Detailmodules/* default */.Z.PerfectCentName,
|
|
children: "Email"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
className: "ml20",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
style: {
|
|
width: '150px'
|
|
},
|
|
children: (Accounts === null || Accounts === void 0 ? void 0 : Accounts.mail) || '--'
|
|
}), emailshow === 'none' && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
type: "link",
|
|
className: "ml20",
|
|
style: {
|
|
color: '#165DFF'
|
|
},
|
|
onClick: function onClick() {
|
|
setEmailshow('block');
|
|
},
|
|
children: "\u66F4\u6362"
|
|
})]
|
|
})
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: "mt10",
|
|
style: {
|
|
marginLeft: "74px"
|
|
},
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Detail_UpdataPhone, {
|
|
type: 4,
|
|
dispatch: dispatch,
|
|
userid: Accounts === null || Accounts === void 0 ? void 0 : Accounts.id,
|
|
isshow: emailshow,
|
|
setEmailshow: setEmailshow,
|
|
setPhoneshow: setPhoneshow
|
|
})
|
|
})]
|
|
}), Prize !== null && Prize !== void 0 && Prize.leader && Prize !== null && Prize !== void 0 && Prize.teams && Prize !== null && Prize !== void 0 && (_Prize$teams$ = Prize.teams[0]) !== null && _Prize$teams$ !== void 0 && (_Prize$teams$ = _Prize$teams$.bank_account) !== null && _Prize$teams$ !== void 0 && _Prize$teams$.bank ? /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
align: "middle",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
children: "\u7B7E/\u9886/\u5F00\u6237\u884C\u53CA\u94F6\u884C\u5361\u53F7"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
className: "ml20",
|
|
style: {
|
|
fontSize: '12px'
|
|
},
|
|
children: "\u4E3A\u4FDD\u969C\u5956\u91D1\u7684\u53CA\u65F6\u53D1\u653E\uFF0C\u8BF7\u961F\u957F\u5982\u5B9E\u586B\u5199\u4F60\u540D\u4E0B\u7684\u94F6\u884C\u5361\u4FE1\u606F"
|
|
})]
|
|
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
align: "middle",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
children: "\u7B7E/\u9886/\u5F00\u6237\u884C\u53CA\u94F6\u884C\u5361\u53F7"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
className: "ml20",
|
|
style: {
|
|
fontSize: '12px'
|
|
},
|
|
children: "\u4E3A\u4FDD\u969C\u5956\u91D1\u7684\u53CA\u65F6\u53D1\u653E\uFF0C\u8BF7\u961F\u957F\u5982\u5B9E\u586B\u5199\u4F60\u540D\u4E0B\u7684\u94F6\u884C\u5361\u4FE1\u606F"
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Detail_Addleader, {
|
|
dispatch: dispatch,
|
|
userid: userid
|
|
})]
|
|
}), (Prize === null || Prize === void 0 ? void 0 : Prize.leader) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Detailmodules/* default */.Z.PerfectCent,
|
|
style: {
|
|
border: 0
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
className: Detailmodules/* default */.Z.PerfectCentName,
|
|
children: "\u5F00\u6237\u884C"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
className: "ml20",
|
|
children: (Prize === null || Prize === void 0 ? void 0 : Prize.teams) && (Prize === null || Prize === void 0 || (_Prize$teams$2 = Prize.teams[0]) === null || _Prize$teams$2 === void 0 || (_Prize$teams$2 = _Prize$teams$2.bank_account) === null || _Prize$teams$2 === void 0 ? void 0 : _Prize$teams$2.bank) || '--'
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
className: "mt20",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
className: Detailmodules/* default */.Z.PerfectCentName,
|
|
children: "\u652F\u884C"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
className: "ml20",
|
|
children: (Prize === null || Prize === void 0 ? void 0 : Prize.teams) && (Prize === null || Prize === void 0 || (_Prize$teams$3 = Prize.teams[0]) === null || _Prize$teams$3 === void 0 || (_Prize$teams$3 = _Prize$teams$3.bank_account) === null || _Prize$teams$3 === void 0 ? void 0 : _Prize$teams$3.second_bank) || '--'
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
className: "mt20",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
className: Detailmodules/* default */.Z.PerfectCentName,
|
|
children: "\u8D26\u53F7"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
className: "ml20",
|
|
children: (Prize === null || Prize === void 0 ? void 0 : Prize.teams) && (Prize === null || Prize === void 0 || (_Prize$teams$4 = Prize.teams[0]) === null || _Prize$teams$4 === void 0 || (_Prize$teams$4 = _Prize$teams$4.bank_account) === null || _Prize$teams$4 === void 0 ? void 0 : _Prize$teams$4.card_no) || '--'
|
|
})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(component_ProfessionalAuthModal, {
|
|
Scoid: Accounts === null || Accounts === void 0 ? void 0 : Accounts.school_id
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(component_RealNameAuthModal, {})]
|
|
});
|
|
}
|
|
/* harmony default export */ var PerfectuserInfon = (PerfectUser);
|
|
;// CONCATENATED MODULE: ./src/pages/Competitions/Detail/AwardPdf.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var AwardPdfmodules = ({"scoreByBlankRadio":"scoreByBlankRadio____FOPE"});
|
|
;// CONCATENATED MODULE: ./src/pages/Competitions/Detail/AwardPdf.tsx
|
|
|
|
|
|
//获奖证书
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Awardpdf = function Awardpdf(_ref) {
|
|
var Prize = _ref.Prize,
|
|
Accounts = _ref.Accounts,
|
|
getAccounts = _ref.getAccounts,
|
|
dispatch = _ref.dispatch,
|
|
userid = _ref.userid;
|
|
var _useState = (0,_react_17_0_2_react.useState)("DownPdf"),
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
meuType = _useState2[0],
|
|
setMeutype = _useState2[1];
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
style: {
|
|
margin: "15px 0"
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default.Group */.ZP.Group, {
|
|
optionType: "button",
|
|
className: AwardPdfmodules.scoreByBlankRadio,
|
|
options: [{
|
|
label: '获奖证书下载',
|
|
value: 'DownPdf'
|
|
}, {
|
|
label: '完善个人信息',
|
|
value: 'Perfect'
|
|
}],
|
|
value: meuType,
|
|
onChange: function onChange(e) {
|
|
setMeutype(e.target.value);
|
|
}
|
|
}), meuType == "DownPdf" && /*#__PURE__*/(0,jsx_runtime.jsx)(Downloadpdf, {
|
|
Prize: Prize
|
|
}), meuType == "Perfect" && /*#__PURE__*/(0,jsx_runtime.jsx)(PerfectuserInfon, {
|
|
userid: userid,
|
|
dispatch: dispatch,
|
|
Prize: Prize,
|
|
Accounts: Accounts
|
|
})]
|
|
});
|
|
};
|
|
/* harmony default export */ var AwardPdf = ((0,_umi_production_exports.connect)(function (_ref2) {
|
|
objectDestructuringEmpty_default()(_ref2);
|
|
return {};
|
|
})(Awardpdf));
|
|
|
|
/***/ }),
|
|
|
|
/***/ 77676:
|
|
/*!******************************************************************!*\
|
|
!*** ./src/pages/Competitions/Detail/Challitems.tsx + 1 modules ***!
|
|
\******************************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
// EXPORTS
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
Z: function() { return /* binding */ Challitems; }
|
|
});
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js
|
|
var regeneratorRuntime = __webpack_require__(7557);
|
|
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
|
|
var asyncToGenerator = __webpack_require__(41498);
|
|
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
|
|
var slicedToArray = __webpack_require__(79800);
|
|
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
// 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/tooltip/index.js + 3 modules
|
|
var tooltip = __webpack_require__(6848);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
|
|
var es_button = __webpack_require__(3113);
|
|
// EXTERNAL MODULE: ./src/pages/Competitions/Detail/index.less?modules
|
|
var Detailmodules = __webpack_require__(81573);
|
|
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
|
|
var _umi_production_exports = __webpack_require__(35699);
|
|
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
|
var env = __webpack_require__(97730);
|
|
// EXTERNAL MODULE: ./src/components/RenderHtml/index.tsx
|
|
var RenderHtml = __webpack_require__(96030);
|
|
// EXTERNAL MODULE: ./src/utils/verifyLogin.tsx + 2 modules
|
|
var verifyLogin = __webpack_require__(10743);
|
|
// EXTERNAL MODULE: ./src/service/shixuns.ts
|
|
var shixuns = __webpack_require__(44081);
|
|
// EXTERNAL MODULE: ./src/utils/fetch.ts
|
|
var fetch = __webpack_require__(23634);
|
|
;// CONCATENATED MODULE: ./src/assets/images/jieduanguanka.svg
|
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
var __defProp = Object.defineProperty;
|
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
var __defNormalProp = function __defNormalProp(obj, key, value) {
|
|
return key in obj ? __defProp(obj, key, {
|
|
enumerable: true,
|
|
configurable: true,
|
|
writable: true,
|
|
value: value
|
|
}) : obj[key] = value;
|
|
};
|
|
var __spreadValues = function __spreadValues(a, b) {
|
|
for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
|
if (__getOwnPropSymbols) {
|
|
var _iterator = _createForOfIteratorHelper(__getOwnPropSymbols(b)),
|
|
_step;
|
|
try {
|
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
var prop = _step.value;
|
|
if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
|
}
|
|
} catch (err) {
|
|
_iterator.e(err);
|
|
} finally {
|
|
_iterator.f();
|
|
}
|
|
}
|
|
return a;
|
|
};
|
|
|
|
var SvgJieduanguanka = function SvgJieduanguanka(props) {
|
|
return /* @__PURE__ */React.createElement("svg", __spreadValues({
|
|
className: "jieduanguanka_svg__icon",
|
|
viewBox: "0 0 1024 1024",
|
|
xmlns: "http://www.w3.org/2000/svg",
|
|
width: 20,
|
|
height: 20
|
|
}, props), /* @__PURE__ */React.createElement("path", {
|
|
d: "M128 0h768c70.4 0 128 57.6 128 128v768c0 70.4-57.6 128-128 128H128A128.358 128.358 0 0 1 0 896V128C0 57.6 57.6 0 128 0z",
|
|
fill: "#165DFF",
|
|
fillOpacity: 0.14
|
|
}), /* @__PURE__ */React.createElement("path", {
|
|
d: "M294.4 377.6 160 480c-6.4 6.4-12.8 12.8-12.8 25.6v57.6c0 12.8 6.4 19.2 19.2 32l134.4 96c12.8 12.8 38.4 12.8 51.2 0l6.4-6.4c6.4-6.4 12.8-19.2 6.4-32s-6.4-25.6-19.2-32l-115.2-83.2 121.6-96c6.4-6.4 12.8-19.2 12.8-25.6 0-12.8 0-19.2-6.4-32-19.2-19.2-44.8-25.6-64-6.4zm275.2-12.8c-12.8 6.4-19.2 12.8-25.6 19.2L409.6 633.6a40.806 40.806 0 0 0 0 38.4c6.4 12.8 19.2 19.2 38.4 19.2 12.8 0 25.6-6.4 32-19.2l134.4-249.6c6.4-6.4 6.4-19.2 6.4-32s-12.8-19.2-19.2-25.6h-32zm128 0c-12.8 0-19.2 6.4-25.6 12.8-12.8 19.2-12.8 44.8 6.4 57.6l121.6 96-121.6 89.6c-19.2 12.8-19.2 38.4-12.8 51.2l6.4 6.4c12.8 19.2 38.4 19.2 57.6 6.4l134.4-96c6.4-6.4 12.8-19.2 19.2-25.6v-57.6c0-12.8-6.4-19.2-12.8-25.6L736 377.6c-19.2-12.8-32-12.8-38.4-12.8z",
|
|
fill: "#165DFF"
|
|
}));
|
|
};
|
|
|
|
/* harmony default export */ var jieduanguanka = ("data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiPjxwYXRoIGQ9Ik0xMjggMGg3NjhjNzAuNCAwIDEyOCA1Ny42IDEyOCAxMjh2NzY4YzAgNzAuNC01Ny42IDEyOC0xMjggMTI4SDEyOEExMjguMzU4IDEyOC4zNTggMCAwIDEgMCA4OTZWMTI4QzAgNTcuNiA1Ny42IDAgMTI4IDB6IiBmaWxsPSIjMTY1REZGIiBmaWxsLW9wYWNpdHk9Ii4xNCIvPjxwYXRoIGQ9Ik0yOTQuNCAzNzcuNiAxNjAgNDgwYy02LjQgNi40LTEyLjggMTIuOC0xMi44IDI1LjZ2NTcuNmMwIDEyLjggNi40IDE5LjIgMTkuMiAzMmwxMzQuNCA5NmMxMi44IDEyLjggMzguNCAxMi44IDUxLjIgMGw2LjQtNi40YzYuNC02LjQgMTIuOC0xOS4yIDYuNC0zMnMtNi40LTI1LjYtMTkuMi0zMmwtMTE1LjItODMuMiAxMjEuNi05NmM2LjQtNi40IDEyLjgtMTkuMiAxMi44LTI1LjYgMC0xMi44IDAtMTkuMi02LjQtMzItMTkuMi0xOS4yLTQ0LjgtMjUuNi02NC02LjR6bTI3NS4yLTEyLjhjLTEyLjggNi40LTE5LjIgMTIuOC0yNS42IDE5LjJMNDA5LjYgNjMzLjZhNDAuODA2IDQwLjgwNiAwIDAgMCAwIDM4LjRjNi40IDEyLjggMTkuMiAxOS4yIDM4LjQgMTkuMiAxMi44IDAgMjUuNi02LjQgMzItMTkuMmwxMzQuNC0yNDkuNmM2LjQtNi40IDYuNC0xOS4yIDYuNC0zMnMtMTIuOC0xOS4yLTE5LjItMjUuNmgtMzJ6bTEyOCAwYy0xMi44IDAtMTkuMiA2LjQtMjUuNiAxMi44LTEyLjggMTkuMi0xMi44IDQ0LjggNi40IDU3LjZsMTIxLjYgOTYtMTIxLjYgODkuNmMtMTkuMiAxMi44LTE5LjIgMzguNC0xMi44IDUxLjJsNi40IDYuNGMxMi44IDE5LjIgMzguNCAxOS4yIDU3LjYgNi40bDEzNC40LTk2YzYuNC02LjQgMTIuOC0xOS4yIDE5LjItMjUuNnYtNTcuNmMwLTEyLjgtNi40LTE5LjItMTIuOC0yNS42TDczNiAzNzcuNmMtMTkuMi0xMi44LTMyLTEyLjgtMzguNC0xMi44eiIgZmlsbD0iIzE2NURGRiIvPjwvc3ZnPg==");
|
|
// EXTERNAL MODULE: ./src/utils/authority.ts
|
|
var authority = __webpack_require__(74505);
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
|
var jsx_runtime = __webpack_require__(37712);
|
|
;// CONCATENATED MODULE: ./src/pages/Competitions/Detail/Challitems.tsx
|
|
|
|
|
|
|
|
//1 2 3 排名数据样式
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var toChinesNum = function toChinesNum(num) {
|
|
var changeNum = ['零', '一', '二', '三', '四', '五', '六', '七', '八', '九']; //changeNum[0] = "零"
|
|
var unit = ["", "十", "百", "千", "万"];
|
|
num = parseInt(num);
|
|
var getWan = function getWan(temp) {
|
|
var strArr = temp.toString().split("").reverse();
|
|
var newNum = "";
|
|
for (var i = 0; i < strArr.length; i++) {
|
|
newNum = (i == 0 && strArr[i] == 0 ? "" : i > 0 && strArr[i] == 0 && strArr[i - 1] == 0 ? "" : changeNum[strArr[i]] + (strArr[i] == 0 ? unit[0] : unit[i])) + newNum;
|
|
}
|
|
return newNum;
|
|
};
|
|
var overWan = Math.floor(num / 10000);
|
|
var noWan = num % 10000;
|
|
if (noWan.toString().length < 4) noWan = "0" + noWan;
|
|
return overWan ? getWan(overWan) + "万" + getWan(noWan) : getWan(num);
|
|
};
|
|
function RankingItem(_ref) {
|
|
var _item$shixun3, _item$shixun4, _item$shixun5, _Header$permission, _item$challenges, _item$challenge_setti, _item$shixun8;
|
|
var item = _ref.item,
|
|
Header = _ref.Header,
|
|
index = _ref.index,
|
|
StaffDetail = _ref.StaffDetail,
|
|
dispatch = _ref.dispatch;
|
|
var _useState = (0,_react_17_0_2_react.useState)(true),
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
content = _useState2[0],
|
|
setcontent = _useState2[1];
|
|
var _useState3 = (0,_react_17_0_2_react.useState)(true),
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
isopen = _useState4[0],
|
|
setisonen = _useState4[1];
|
|
var _useState5 = (0,_react_17_0_2_react.useState)(false),
|
|
_useState6 = slicedToArray_default()(_useState5, 2),
|
|
showMore = _useState6[0],
|
|
setShowMore = _useState6[1];
|
|
var divcontent = (0,_react_17_0_2_react.useRef)();
|
|
var _useState7 = (0,_react_17_0_2_react.useState)(false),
|
|
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
showStatrButton = _useState8[0],
|
|
setShowStatrButton = _useState8[1];
|
|
var _useParams = (0,_umi_production_exports.useParams)(),
|
|
identifier = _useParams.identifier;
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
setTimeout(function () {
|
|
if (divcontent.current.children[0].clientHeight > 88) setShowMore(true);
|
|
}, 10);
|
|
}, []);
|
|
var handleStartGame = function handleStartGame(item) {
|
|
var _item$shixun2;
|
|
if (!(0,verifyLogin/* handleVerify */.tJ)(dispatch, true)) {
|
|
return;
|
|
}
|
|
if ((item === null || item === void 0 ? void 0 : item.shixun_status) > 1) {
|
|
setShowStatrButton(true);
|
|
}
|
|
if (item !== null && item !== void 0 && item.is_jupyter || item !== null && item !== void 0 && item.is_jupyter_lab) {
|
|
var _item$shixun;
|
|
dispatch({
|
|
type: 'shixunsDetail/execJupyter',
|
|
payload: {
|
|
id: item === null || item === void 0 || (_item$shixun = item.shixun) === null || _item$shixun === void 0 ? void 0 : _item$shixun.identifier
|
|
}
|
|
}).then(function (response) {
|
|
setShowStatrButton(false);
|
|
if (response !== null && response !== void 0 && response.identifier) {
|
|
window.open("/tasks/".concat(response.identifier, "/jupyter?competition_entry_id=").concat(item === null || item === void 0 ? void 0 : item.id, "&type=competitions"));
|
|
// window.location.href = `/tasks/${response.identifier}/jupyter?competition_entry_id=${item?.id}&type=competitions`;
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
dispatch({
|
|
type: 'shixunsDetail/execShixun',
|
|
payload: {
|
|
id: item === null || item === void 0 || (_item$shixun2 = item.shixun) === null || _item$shixun2 === void 0 ? void 0 : _item$shixun2.identifier
|
|
}
|
|
}).then(function (execRes) {
|
|
setShowStatrButton(false);
|
|
if (execRes !== null && execRes !== void 0 && execRes.game_identifier) {
|
|
window.open("/tasks/".concat(execRes.game_identifier, "?competition_entry_id=").concat(item === null || item === void 0 ? void 0 : item.id, "&type=competitions"));
|
|
return;
|
|
}
|
|
if ((execRes === null || execRes === void 0 ? void 0 : execRes.status) === 2) {
|
|
handleResetGame(execRes === null || execRes === void 0 ? void 0 : execRes.message);
|
|
} else if ((execRes === null || execRes === void 0 ? void 0 : execRes.status) === 3) {
|
|
handleInBeta(execRes === null || execRes === void 0 ? void 0 : execRes.message);
|
|
}
|
|
});
|
|
};
|
|
var handleResetGame = function handleResetGame(url) {
|
|
var _url;
|
|
url = (_url = url) !== null && _url !== void 0 && _url.includes('.json') ? url : "".concat(url, ".json");
|
|
modal/* default */.Z.confirm({
|
|
centered: true,
|
|
title: '提示',
|
|
okText: '确定',
|
|
cancelText: '取消',
|
|
content: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: "tc font16",
|
|
children: "\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"
|
|
}),
|
|
onOk: function () {
|
|
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
|
var res, execRes;
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
while (1) switch (_context.prev = _context.next) {
|
|
case 0:
|
|
_context.next = 2;
|
|
return (0,shixuns/* resetMyGame */.$Q)({
|
|
url: url
|
|
});
|
|
case 2:
|
|
res = _context.sent;
|
|
if (res) {
|
|
_context.next = 5;
|
|
break;
|
|
}
|
|
return _context.abrupt("return");
|
|
case 5:
|
|
message/* default */.ZP.success('重置成功,正在进入实践项目!');
|
|
_context.next = 8;
|
|
return (0,shixuns/* execShixun */.Ir)({
|
|
id: res.shixun_identifier
|
|
});
|
|
case 8:
|
|
execRes = _context.sent;
|
|
if (!(execRes !== null && execRes !== void 0 && execRes.game_identifier)) {
|
|
_context.next = 12;
|
|
break;
|
|
}
|
|
window.open("/tasks/".concat(execRes.game_identifier));
|
|
// history?.push(`/tasks/${execRes.game_identifier}`);
|
|
return _context.abrupt("return");
|
|
case 12:
|
|
if ((execRes === null || execRes === void 0 ? void 0 : execRes.status) === 2) {
|
|
handleResetGame(execRes === null || execRes === void 0 ? void 0 : execRes.message);
|
|
} else if ((execRes === null || execRes === void 0 ? void 0 : execRes.status) === 3) {
|
|
handleInBeta(execRes === null || execRes === void 0 ? void 0 : execRes.message);
|
|
}
|
|
case 13:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}, _callee);
|
|
}));
|
|
function onOk() {
|
|
return _onOk.apply(this, arguments);
|
|
}
|
|
return onOk;
|
|
}()
|
|
});
|
|
};
|
|
var handleInBeta = function handleInBeta(message) {
|
|
modal/* default */.Z.confirm({
|
|
centered: true,
|
|
title: '提示',
|
|
okText: '确定',
|
|
cancelText: '取消',
|
|
content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: "tc font16",
|
|
children: ["\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E", message, "\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01"]
|
|
})
|
|
});
|
|
};
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Detailmodules/* default */.Z.box,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
style: {
|
|
justifyContent: 'space-between',
|
|
display: 'flex',
|
|
padding: '0 10px'
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
className: Detailmodules/* default */.Z.title_style,
|
|
style: {
|
|
color: '#333333',
|
|
fontWeight: 500,
|
|
fontSize: '14px'
|
|
},
|
|
children: [Header !== null && Header !== void 0 && Header.is_new ? '赛题' : '任务', index + 1]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
style: {
|
|
color: '#9096A3',
|
|
marginLeft: 'auto',
|
|
fontSize: '12px'
|
|
},
|
|
children: ["\u4F5C\u54C1\u63D0\u4EA4\u65F6\u95F4", /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
style: {
|
|
color: '#232B40',
|
|
marginLeft: 5
|
|
},
|
|
children: [Header === null || Header === void 0 ? void 0 : Header.start_time, "~", Header === null || Header === void 0 ? void 0 : Header.end_time]
|
|
})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
style: {
|
|
padding: 10,
|
|
display: 'flex',
|
|
position: 'relative'
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: env/* default */.Z.IMG_SERVER + '/' + (item === null || item === void 0 ? void 0 : item.pic),
|
|
style: {
|
|
width: 220,
|
|
height: 130,
|
|
borderRadius: '4px'
|
|
}
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
style: {
|
|
marginLeft: 20,
|
|
width: '75%'
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
style: {
|
|
justifyContent: 'space-between',
|
|
display: 'flex'
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
title: (item === null || item === void 0 ? void 0 : item.name) || (item === null || item === void 0 || (_item$shixun3 = item.shixun) === null || _item$shixun3 === void 0 ? void 0 : _item$shixun3.name),
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
style: {
|
|
color: '#333333',
|
|
fontWeight: '500',
|
|
fontSize: '14px'
|
|
},
|
|
children: (item === null || item === void 0 ? void 0 : item.name) || (item === null || item === void 0 || (_item$shixun4 = item.shixun) === null || _item$shixun4 === void 0 ? void 0 : _item$shixun4.name)
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
style: {
|
|
color: '#9096A3',
|
|
marginLeft: 40
|
|
},
|
|
children: ["\u5173\u5361", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
style: {
|
|
color: '#333333',
|
|
marginLeft: 5
|
|
},
|
|
children: (item === null || item === void 0 ? void 0 : item.challenges_count) || (item === null || item === void 0 || (_item$shixun5 = item.shixun) === null || _item$shixun5 === void 0 ? void 0 : _item$shixun5.challenges_count)
|
|
})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
style: {
|
|
marginLeft: 'auto'
|
|
},
|
|
children: ((StaffDetail === null || StaffDetail === void 0 ? void 0 : StaffDetail.enrolled) && (Header === null || Header === void 0 ? void 0 : Header.competition_status) !== 'ended' || (0,authority/* isAdmins */.eB)() || ((_Header$permission = Header.permission) === null || _Header$permission === void 0 ? void 0 : _Header$permission.editable)) && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
loading: showStatrButton,
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
|
|
var res1, _item$shixun6, res, _item$shixun7;
|
|
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
|
|
while (1) switch (_context2.prev = _context2.next) {
|
|
case 0:
|
|
if (!(Header !== null && Header !== void 0 && Header.is_new)) {
|
|
_context2.next = 11;
|
|
break;
|
|
}
|
|
_context2.next = 3;
|
|
return (0,fetch/* default */.ZP)("/api/competitions/".concat(identifier, "/check_team_member.json"), {
|
|
method: 'post'
|
|
});
|
|
case 3:
|
|
res1 = _context2.sent;
|
|
if (!((res1 === null || res1 === void 0 ? void 0 : res1.status) === 0)) {
|
|
_context2.next = 9;
|
|
break;
|
|
}
|
|
handleStartGame(item);
|
|
_context2.next = 8;
|
|
return (0,fetch/* default */.ZP)("/api/competitions/".concat(identifier, "/enter_competition_question.json"), {
|
|
method: 'post',
|
|
body: {
|
|
competition_stage_id: item === null || item === void 0 ? void 0 : item.competition_stage_id,
|
|
competition_stage_section_id: item === null || item === void 0 ? void 0 : item.competition_stage_section_id,
|
|
competition_entry_id: item === null || item === void 0 ? void 0 : item.id,
|
|
shixun_id: item === null || item === void 0 || (_item$shixun6 = item.shixun) === null || _item$shixun6 === void 0 ? void 0 : _item$shixun6.id
|
|
}
|
|
});
|
|
case 8:
|
|
res = _context2.sent;
|
|
case 9:
|
|
_context2.next = 12;
|
|
break;
|
|
case 11:
|
|
window.open("/shixuns/".concat((item === null || item === void 0 ? void 0 : item.identifier) || (item === null || item === void 0 || (_item$shixun7 = item.shixun) === null || _item$shixun7 === void 0 ? void 0 : _item$shixun7.identifier), "/challenges"));
|
|
case 12:
|
|
case "end":
|
|
return _context2.stop();
|
|
}
|
|
}, _callee2);
|
|
})),
|
|
style: {
|
|
marginLeft: 30,
|
|
borderRadius: 14,
|
|
fontSize: 12,
|
|
width: 88
|
|
},
|
|
type: "primary",
|
|
children: "\u5F00\u542F\u6311\u6218"
|
|
})
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
ref: divcontent,
|
|
style: {
|
|
maxHeight: content && 100,
|
|
position: "relative",
|
|
overflow: "hidden"
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
|
|
style: {
|
|
fontSize: '14px',
|
|
color: '#9096A3',
|
|
marginTop: 20,
|
|
position: "relative"
|
|
},
|
|
value: (item === null || item === void 0 ? void 0 : item.description) || ''
|
|
}), showMore && content && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Detailmodules/* default */.Z.maskText
|
|
})]
|
|
}), showMore && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Detailmodules/* default */.Z.colorhove,
|
|
style: {
|
|
textAlign: 'end',
|
|
cursor: 'pointer'
|
|
},
|
|
onClick: function onClick() {
|
|
setcontent(!content);
|
|
},
|
|
children: [content ? '阅读全文 ' : '收起全文 ', /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont font14 ".concat(content ? 'icon-jiantou9' : 'icon-changyongtubiao-xianxingdaochu-zhuanqu-')
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
style: {
|
|
marginTop: 14,
|
|
maxHeight: isopen && 58,
|
|
overflow: 'hidden'
|
|
},
|
|
children: [item === null || item === void 0 || (_item$challenges = item.challenges) === null || _item$challenges === void 0 ? void 0 : _item$challenges.map(function (items, j) {
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
style: {
|
|
marginTop: j === 0 ? 0 : 12
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: jieduanguanka,
|
|
style: {
|
|
width: 20,
|
|
height: 20
|
|
}
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
style: {
|
|
marginLeft: 10
|
|
},
|
|
children: ["\u7B2C", j + 1, "\u5173", items === null || items === void 0 ? void 0 : items.challenge_name]
|
|
})]
|
|
});
|
|
}), item === null || item === void 0 || (_item$challenge_setti = item.challenge_settings) === null || _item$challenge_setti === void 0 ? void 0 : _item$challenge_setti.map(function (items, j) {
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
style: {
|
|
marginTop: j === 0 ? 0 : 12
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: jieduanguanka,
|
|
style: {
|
|
width: 20,
|
|
height: 20
|
|
}
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
style: {
|
|
marginLeft: 10
|
|
},
|
|
children: ["\u7B2C", j + 1, "\u5173", items === null || items === void 0 ? void 0 : items.challenge_name]
|
|
})]
|
|
});
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Detailmodules/* default */.Z.colorhove,
|
|
style: {
|
|
position: 'absolute',
|
|
bottom: 14,
|
|
right: 10,
|
|
cursor: 'pointer'
|
|
},
|
|
children: ((item === null || item === void 0 ? void 0 : item.challenges_count) || (item === null || item === void 0 || (_item$shixun8 = item.shixun) === null || _item$shixun8 === void 0 ? void 0 : _item$shixun8.challenges_count)) > 2 && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
onClick: function onClick() {
|
|
setisonen(!isopen);
|
|
},
|
|
children: [isopen ? '展开' : '收起', " ", /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont font14 ".concat(isopen ? 'icon-jiantou9' : 'icon-changyongtubiao-xianxingdaochu-zhuanqu-')
|
|
})]
|
|
})
|
|
})]
|
|
})]
|
|
})]
|
|
});
|
|
}
|
|
/* harmony default export */ var Challitems = (RankingItem);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 49767:
|
|
/*!**********************************************************!*\
|
|
!*** ./src/pages/Competitions/components/PhoneModal.tsx ***!
|
|
\**********************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js */ 7557);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js */ 41498);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js */ 79800);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ 59301);
|
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! antd */ 8591);
|
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! antd */ 43418);
|
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! antd */ 73782);
|
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! antd */ 3113);
|
|
/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/utils/fetch */ 23634);
|
|
/* harmony import */ var _utils_hooks_useInterval__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/utils/hooks/useInterval */ 47770);
|
|
/* harmony import */ var _utils_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/utils/util */ 23756);
|
|
/* harmony import */ var _utils_env__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/utils/env */ 97730);
|
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var phoneReg = /^1\d{10}$/;
|
|
function Addmodal(_ref) {
|
|
var isShowPhone = _ref.isShowPhone,
|
|
setIsShowPhone = _ref.setIsShowPhone,
|
|
user = _ref.user,
|
|
dispatch = _ref.dispatch,
|
|
onOK = _ref.onOK,
|
|
isopen = _ref.isopen,
|
|
setisopen = _ref.setisopen,
|
|
datas = _ref.datas;
|
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(''),
|
|
_useState2 = _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default()(_useState, 2),
|
|
phone = _useState2[0],
|
|
setphone = _useState2[1];
|
|
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(''),
|
|
_useState4 = _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default()(_useState3, 2),
|
|
PhoneValue = _useState4[0],
|
|
setPhoneValue = _useState4[1];
|
|
var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(60),
|
|
_useState6 = _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default()(_useState5, 2),
|
|
countdown = _useState6[0],
|
|
setCountdown = _useState6[1];
|
|
var _useState7 = (0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(),
|
|
_useState8 = _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default()(_useState7, 2),
|
|
countdownFlag = _useState8[0],
|
|
setCountdownFlag = _useState8[1];
|
|
var _useState9 = (0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(false),
|
|
_useState10 = _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default()(_useState9, 2),
|
|
isShowPoint = _useState10[0],
|
|
setIsShowPoint = _useState10[1];
|
|
var _useState11 = (0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(false),
|
|
_useState12 = _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default()(_useState11, 2),
|
|
isShowUntie = _useState12[0],
|
|
setIsShowUntie = _useState12[1];
|
|
var _useState13 = (0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(''),
|
|
_useState14 = _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default()(_useState13, 2),
|
|
UntieValue = _useState14[0],
|
|
setUntieValue = _useState14[1];
|
|
var intervalId = (0,react__WEBPACK_IMPORTED_MODULE_3__.useRef)();
|
|
(0,react__WEBPACK_IMPORTED_MODULE_3__.useEffect)(function () {
|
|
return function () {
|
|
intervalId.current && clearInterval(intervalId.current);
|
|
};
|
|
}, []);
|
|
(0,_utils_hooks_useInterval__WEBPACK_IMPORTED_MODULE_5__/* .useInterval */ .Y)(function () {
|
|
if (!countdownFlag) {
|
|
return;
|
|
} else {
|
|
setCountdown(60);
|
|
}
|
|
if (countdown > 0) {
|
|
setCountdown(countdown - 1);
|
|
} else {
|
|
setCountdown(60);
|
|
setCountdownFlag(false);
|
|
intervalId.current && clearInterval(intervalId.current);
|
|
}
|
|
}, 1000);
|
|
var handleGetCode = /*#__PURE__*/function () {
|
|
var _ref2 = _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee() {
|
|
var _user$userInfo;
|
|
var data, smscode, res;
|
|
return _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee$(_context) {
|
|
while (1) switch (_context.prev = _context.next) {
|
|
case 0:
|
|
_context.next = 2;
|
|
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP)("/api/users/accounts/".concat((_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.login, "/valid_phone.json"), {
|
|
method: 'get',
|
|
params: {
|
|
phone: phone
|
|
}
|
|
});
|
|
case 2:
|
|
data = _context.sent;
|
|
if (!((data === null || data === void 0 ? void 0 : data.status) === -1)) {
|
|
_context.next = 5;
|
|
break;
|
|
}
|
|
return _context.abrupt("return");
|
|
case 5:
|
|
if (!(data !== null && data !== void 0 && data.is_exists)) {
|
|
_context.next = 8;
|
|
break;
|
|
}
|
|
setIsShowPoint(true);
|
|
return _context.abrupt("return");
|
|
case 8:
|
|
smscode = (0,_utils_util__WEBPACK_IMPORTED_MODULE_6__/* .setmiyah */ .M)(phone);
|
|
_context.next = 11;
|
|
return dispatch({
|
|
type: 'account/getCode',
|
|
payload: {
|
|
login: phone,
|
|
type: 3,
|
|
smscode: smscode
|
|
}
|
|
});
|
|
case 11:
|
|
res = _context.sent;
|
|
if (res.status === 1) {
|
|
antd__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .ZP.info('验证码已发送,请注意查收');
|
|
setCountdownFlag(true);
|
|
}
|
|
case 13:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}, _callee);
|
|
}));
|
|
return function handleGetCode() {
|
|
return _ref2.apply(this, arguments);
|
|
};
|
|
}();
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)("div", {
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z, {
|
|
title: "\u5F3A\u5236\u89E3\u7ED1",
|
|
open: isShowUntie,
|
|
onCancel: function onCancel() {
|
|
return setIsShowUntie(false);
|
|
},
|
|
onOk: /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee2() {
|
|
var _user$userInfo2;
|
|
var data;
|
|
return _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee2$(_context2) {
|
|
while (1) switch (_context2.prev = _context2.next) {
|
|
case 0:
|
|
if (UntieValue) {
|
|
_context2.next = 3;
|
|
break;
|
|
}
|
|
antd__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .ZP.info('验证码不能为空');
|
|
return _context2.abrupt("return");
|
|
case 3:
|
|
_context2.next = 5;
|
|
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP)("/api/users/accounts/".concat(user === null || user === void 0 || (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.login, "/phone_force_unbind.json"), {
|
|
method: 'POST',
|
|
body: {
|
|
code: UntieValue,
|
|
phone: phone
|
|
}
|
|
});
|
|
case 5:
|
|
data = _context2.sent;
|
|
if ((data === null || data === void 0 ? void 0 : data.status) === 0) {
|
|
antd__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .ZP.info('解绑成功');
|
|
setCountdownFlag(false);
|
|
setIsShowUntie(false);
|
|
onOK();
|
|
setIsShowPhone(false);
|
|
setUntieValue('');
|
|
}
|
|
case 7:
|
|
case "end":
|
|
return _context2.stop();
|
|
}
|
|
}, _callee2);
|
|
})),
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)("div", {
|
|
style: {
|
|
padding: '8px 24px'
|
|
},
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("p", {
|
|
children: "\u82E5\u539F\u8D26\u53F7\u53EA\u6709\u7ED1\u5B9A\u4E86\u624B\u673A\u53F7\u4E00\u79CD\u767B\u5F55\u65B9\u5F0F\uFF0C\u5F3A\u5236\u89E3\u7ED1\u540E\u4F1A\u5BFC\u81F4\u539F\u8D26\u53F7\u65E0\u6CD5\u767B\u5F55\uFF0C\u8BF7\u786E\u5B9A\u662F\u5426\u5F3A\u5236\u89E3\u7ED1"
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)("p", {
|
|
children: ["\u4F60\u7684\u624B\u673A\u53F7\uFF1A", phone]
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)("p", {
|
|
children: ["\u624B\u673A\u9A8C\u8BC1\u7801\uFF1A", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z, {
|
|
value: UntieValue,
|
|
size: 'middle',
|
|
onChange: function onChange(e) {
|
|
return setUntieValue(e.target.value);
|
|
},
|
|
style: {
|
|
width: '240px'
|
|
}
|
|
}), " ", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .ZP, {
|
|
disabled: countdownFlag,
|
|
type: "primary",
|
|
size: 'middle',
|
|
onClick: /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee3() {
|
|
var smscode, res;
|
|
return _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee3$(_context3) {
|
|
while (1) switch (_context3.prev = _context3.next) {
|
|
case 0:
|
|
smscode = (0,_utils_util__WEBPACK_IMPORTED_MODULE_6__/* .setmiyah */ .M)(phone);
|
|
_context3.next = 3;
|
|
return dispatch({
|
|
type: 'account/getCode',
|
|
payload: {
|
|
login: phone,
|
|
type: 10,
|
|
smscode: smscode
|
|
}
|
|
});
|
|
case 3:
|
|
res = _context3.sent;
|
|
if (res.status === 1) {
|
|
antd__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .ZP.info('验证码已发送,请注意查收');
|
|
setCountdownFlag(true);
|
|
}
|
|
case 5:
|
|
case "end":
|
|
return _context3.stop();
|
|
}
|
|
}, _callee3);
|
|
})),
|
|
children: countdownFlag ? "\u91CD\u65B0\u53D1\u9001".concat(countdown, "s") : '获取验证码'
|
|
})]
|
|
})]
|
|
})
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z, {
|
|
title: "\u63D0\u793A",
|
|
open: isShowPoint,
|
|
onCancel: function onCancel() {
|
|
setIsShowPoint(false);
|
|
},
|
|
okText: "\u8FDB\u884C\u5F3A\u5236\u89E3\u7ED1",
|
|
okButtonProps: {
|
|
type: "primary",
|
|
ghost: true,
|
|
style: {
|
|
width: "124px"
|
|
}
|
|
},
|
|
onOk: function onOk() {
|
|
setIsShowUntie(true);
|
|
setIsShowPoint(false);
|
|
}
|
|
// footer={<div>
|
|
// <Button style={{textAlign:'end'}} type="primary" onClick={()=>setIsShowModal(false)}>确 定</Button>
|
|
// </div>}
|
|
,
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)("div", {
|
|
style: {
|
|
padding: '7px 24px'
|
|
},
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("span", {
|
|
children: "\u8BE5\u624B\u673A\u53F7\u5DF2\u7ECF\u88AB\u7ED1\u5B9A\u8D26\u53F7\uFF0C\u5982\u679C\u9700\u8981\u5C06\u8BE5\u624B\u673A\u53F7\u7ED1\u5B9A\u5728\u5F53\u524D\u8D26\u53F7\u4E0A\uFF0C\u4F60\u53EF\u4EE5\u8FDB\u884C\u4E0B\u65B9\u4EFB\u610F\u4E00\u79CD\u89E3\u7ED1\u64CD\u4F5C\uFF1A"
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("br", {}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("p", {
|
|
style: {
|
|
marginTop: '1em',
|
|
display: 'flex'
|
|
},
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("span", {
|
|
style: {
|
|
flex: '1'
|
|
},
|
|
children: "1\u3001\u4F7F\u7528\u8BE5\u624B\u673A\u53F7\u767B\u5F55\u5E73\u53F0\u8FDB\u884C\u89E3\u7ED1\uFF0C\u518D\u5C06\u624B\u673A\u53F7\u7ED1\u5B9A\u5F53\u524D\u8D26\u53F7\u4E0A\u3002"
|
|
})
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("p", {
|
|
style: {
|
|
marginTop: '1em',
|
|
display: 'flex'
|
|
},
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("span", {
|
|
style: {
|
|
flex: '1'
|
|
},
|
|
children: "2\u3001\u5F3A\u5236\u89E3\u7ED1\uFF08\u5F3A\u5236\u89E3\u7ED1\u53EF\u80FD\u4F1A\u5BFC\u81F4\u89E3\u7ED1\u8D26\u53F7\u65E0\u6CD5\u767B\u5F55\uFF09"
|
|
})
|
|
})]
|
|
})
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z, {
|
|
title: "\u7ED1\u5B9A\u624B\u673A\u53F7",
|
|
open: isShowPhone,
|
|
onCancel: function onCancel() {
|
|
return setIsShowPhone(false);
|
|
},
|
|
onOk: /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee4() {
|
|
var _ref6, login, res;
|
|
return _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee4$(_context4) {
|
|
while (1) switch (_context4.prev = _context4.next) {
|
|
case 0:
|
|
if (phoneReg.test(phone)) {
|
|
_context4.next = 3;
|
|
break;
|
|
}
|
|
antd__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .ZP.info("请输入有效的11位手机号码");
|
|
return _context4.abrupt("return");
|
|
case 3:
|
|
if (PhoneValue) {
|
|
_context4.next = 6;
|
|
break;
|
|
}
|
|
antd__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .ZP.info("请输入验证码");
|
|
return _context4.abrupt("return");
|
|
case 6:
|
|
_ref6 = user.userInfo || {}, login = _ref6.login;
|
|
_context4.next = 9;
|
|
return dispatch({
|
|
type: 'account/bindPhone',
|
|
payload: {
|
|
login: login,
|
|
phone: phone,
|
|
code: PhoneValue
|
|
}
|
|
});
|
|
case 9:
|
|
res = _context4.sent;
|
|
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
|
|
setIsShowPhone(false);
|
|
onOK();
|
|
}
|
|
case 11:
|
|
case "end":
|
|
return _context4.stop();
|
|
}
|
|
}, _callee4);
|
|
})),
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)("div", {
|
|
style: {
|
|
padding: '8px 24px'
|
|
},
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("p", {
|
|
children: "\u5E73\u53F0\u5DF2\u68C0\u6D4B\u5230\u60A8\u672A\u7ED1\u5B9A\u624B\u673A\u53F7\uFF0C\u4E3A\u4E86\u4E0D\u5F71\u54CD\u4F7F\u7528\u62A5\u540D\u529F\u80FD\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801"
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)("p", {
|
|
children: ["\u4F60\u7684\u624B\u673A\u53F7\uFF1A", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z, {
|
|
size: 'middle',
|
|
value: phone,
|
|
onChange: function onChange(e) {
|
|
return setphone(e.target.value);
|
|
},
|
|
style: {
|
|
width: '240px'
|
|
}
|
|
})]
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)("p", {
|
|
children: ["\u624B\u673A\u9A8C\u8BC1\u7801\uFF1A", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z, {
|
|
size: 'middle',
|
|
value: PhoneValue,
|
|
onChange: function onChange(e) {
|
|
return setPhoneValue(e.target.value);
|
|
},
|
|
style: {
|
|
width: '240px'
|
|
}
|
|
}), " ", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .ZP, {
|
|
disabled: countdownFlag,
|
|
type: "primary",
|
|
size: 'middle',
|
|
onClick: /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee5() {
|
|
return _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee5$(_context5) {
|
|
while (1) switch (_context5.prev = _context5.next) {
|
|
case 0:
|
|
if (phoneReg.test(phone)) {
|
|
_context5.next = 3;
|
|
break;
|
|
}
|
|
antd__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .ZP.info("请输入有效的11位手机号码");
|
|
return _context5.abrupt("return");
|
|
case 3:
|
|
handleGetCode();
|
|
case 4:
|
|
case "end":
|
|
return _context5.stop();
|
|
}
|
|
}, _callee5);
|
|
})),
|
|
children: countdownFlag ? "\u91CD\u65B0\u53D1\u9001".concat(countdown, "s") : '获取验证码'
|
|
})]
|
|
})]
|
|
})
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z, {
|
|
open: isopen,
|
|
footer: false,
|
|
onCancel: function onCancel() {
|
|
return setisopen(false);
|
|
},
|
|
centered: true,
|
|
width: 460,
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)("div", {
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)("div", {
|
|
style: {
|
|
marginTop: 50,
|
|
fontSize: 26,
|
|
color: '#3d3d3d',
|
|
textAlign: 'center',
|
|
marginBottom: 20
|
|
},
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("i", {
|
|
style: {
|
|
fontSize: 26,
|
|
color: '#52C41A'
|
|
},
|
|
className: "iconfont icon-tongguo"
|
|
}), " \u62A5\u540D\u6210\u529F"]
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)("div", {
|
|
style: {
|
|
alignItems: 'center',
|
|
textAlign: 'center'
|
|
},
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("img", {
|
|
style: {
|
|
width: 180,
|
|
border: '1px solid #eeeeef',
|
|
padding: 10,
|
|
marginBottom: 20
|
|
},
|
|
src: _utils_env__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z.IMG_SERVER + (datas === null || datas === void 0 ? void 0 : datas.QR_code)
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("p", {
|
|
style: {
|
|
color: '#AAAAAA'
|
|
},
|
|
children: "\u53C2\u8D5B\u8005\u53EF\u626B\u7801\u52A0\u5165\u5927\u8D5B\u5B98\u65B9\u4EA4\u6D41\u7FA4\uFF0C\u83B7\u53D6\u6700\u65B0\u7ADE\u8D5B\u901A\u77E5"
|
|
})]
|
|
})]
|
|
})
|
|
})]
|
|
});
|
|
}
|
|
/* harmony default export */ __webpack_exports__.Z = (Addmodal);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 41957:
|
|
/*!*******************************!*\
|
|
!*** ./src/utils/cityData.ts ***!
|
|
\*******************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ P: function() { return /* binding */ CityData; }
|
|
/* harmony export */ });
|
|
var CityData = [{
|
|
value: '北京',
|
|
label: '北京',
|
|
children: [{
|
|
value: "东城",
|
|
label: '东城'
|
|
}, {
|
|
value: "西城",
|
|
label: "西城"
|
|
}, {
|
|
value: "朝阳",
|
|
label: "朝阳"
|
|
}, {
|
|
value: "丰台",
|
|
label: "丰台"
|
|
}, {
|
|
value: "石景山",
|
|
label: "石景山"
|
|
}, {
|
|
value: "海淀",
|
|
label: "海淀"
|
|
}, {
|
|
value: "门头沟",
|
|
label: "门头沟"
|
|
}, {
|
|
value: "房山",
|
|
label: "房山"
|
|
}, {
|
|
value: "通州",
|
|
label: "通州"
|
|
}, {
|
|
value: "顺义",
|
|
label: "顺义"
|
|
}, {
|
|
value: "昌平",
|
|
label: "昌平"
|
|
}, {
|
|
value: "大兴",
|
|
label: "大兴"
|
|
}, {
|
|
value: "平谷",
|
|
label: "平谷"
|
|
}, {
|
|
value: "怀柔",
|
|
label: "怀柔"
|
|
}, {
|
|
value: "密云",
|
|
label: "密云"
|
|
}, {
|
|
value: "延庆",
|
|
label: "延庆"
|
|
}]
|
|
}, {
|
|
value: '上海',
|
|
label: '上海',
|
|
children: [{
|
|
value: "崇明",
|
|
label: '崇明'
|
|
}, {
|
|
value: '黄浦',
|
|
label: '黄浦'
|
|
}, {
|
|
value: '卢湾',
|
|
label: '卢湾'
|
|
}, {
|
|
value: '徐汇',
|
|
label: '徐汇'
|
|
}, {
|
|
value: '长宁',
|
|
label: '长宁'
|
|
}, {
|
|
value: '静安',
|
|
label: '静安'
|
|
}, {
|
|
value: '普陀',
|
|
label: '普陀'
|
|
}, {
|
|
value: '闸北',
|
|
label: '闸北'
|
|
}, {
|
|
value: '虹口',
|
|
label: '虹口'
|
|
}, {
|
|
value: '杨浦',
|
|
label: '杨浦'
|
|
}, {
|
|
value: '闵行',
|
|
label: '闵行'
|
|
}, {
|
|
value: '宝山',
|
|
label: '宝山'
|
|
}, {
|
|
value: '嘉定',
|
|
label: '嘉定'
|
|
}, {
|
|
value: '浦东',
|
|
label: '浦东'
|
|
}, {
|
|
value: '金山',
|
|
label: '金山'
|
|
}, {
|
|
value: '松江',
|
|
label: '松江'
|
|
}, {
|
|
value: '青浦',
|
|
label: '青浦'
|
|
}, {
|
|
value: '南汇',
|
|
label: '南汇'
|
|
}, {
|
|
value: '奉贤',
|
|
label: '奉贤'
|
|
}]
|
|
}, {
|
|
value: '广东',
|
|
label: '广东',
|
|
children: [{
|
|
value: "广州",
|
|
label: '广州'
|
|
}, {
|
|
value: '深圳',
|
|
label: '深圳'
|
|
}, {
|
|
value: '珠海',
|
|
label: '珠海'
|
|
}, {
|
|
value: '东莞',
|
|
label: '东莞'
|
|
}, {
|
|
value: '中山',
|
|
label: '中山'
|
|
}, {
|
|
value: '佛山',
|
|
label: '佛山'
|
|
}, {
|
|
value: '惠州',
|
|
label: '惠州'
|
|
}, {
|
|
value: '河源',
|
|
label: '河源'
|
|
}, {
|
|
value: '潮州',
|
|
label: '潮州'
|
|
}, {
|
|
value: '江门',
|
|
label: '江门'
|
|
}, {
|
|
value: '揭阳',
|
|
label: '揭阳'
|
|
}, {
|
|
value: '茂名',
|
|
label: '茂名'
|
|
}, {
|
|
value: '梅州',
|
|
label: '梅州'
|
|
}, {
|
|
value: '清远',
|
|
label: '清远'
|
|
}, {
|
|
value: '汕头',
|
|
label: '汕头'
|
|
}, {
|
|
value: '汕尾',
|
|
label: '汕尾'
|
|
}, {
|
|
value: '韶关',
|
|
label: '韶关'
|
|
}, {
|
|
value: '顺德',
|
|
label: '顺德'
|
|
}, {
|
|
value: '阳江',
|
|
label: '阳江'
|
|
}, {
|
|
value: '云浮',
|
|
label: '云浮'
|
|
}, {
|
|
value: '湛江',
|
|
label: '湛江'
|
|
}, {
|
|
value: '肇庆',
|
|
label: '肇庆'
|
|
}]
|
|
}, {
|
|
value: '江苏',
|
|
label: '江苏',
|
|
children: [{
|
|
value: "南京",
|
|
label: '南京'
|
|
}, {
|
|
value: '常熟',
|
|
label: '常熟'
|
|
}, {
|
|
value: '常州',
|
|
label: '常州'
|
|
}, {
|
|
value: '海门',
|
|
label: '海门'
|
|
}, {
|
|
value: '淮安',
|
|
label: '淮安'
|
|
}, {
|
|
value: '江都',
|
|
label: '江都'
|
|
}, {
|
|
value: '江阴',
|
|
label: '江阴'
|
|
}, {
|
|
value: '昆山',
|
|
label: '昆山'
|
|
}, {
|
|
value: '连云港',
|
|
label: '连云港'
|
|
}, {
|
|
value: '南通',
|
|
label: '南通'
|
|
}, {
|
|
value: '启东',
|
|
label: '启东'
|
|
}, {
|
|
value: '沭阳',
|
|
label: '沭阳'
|
|
}, {
|
|
value: '宿迁',
|
|
label: '宿迁'
|
|
}, {
|
|
value: '苏州',
|
|
label: '苏州'
|
|
}, {
|
|
value: '太仓',
|
|
label: '太仓'
|
|
}, {
|
|
value: '泰州',
|
|
label: '泰州'
|
|
}, {
|
|
value: '同里',
|
|
label: '同里'
|
|
}, {
|
|
value: '无锡',
|
|
label: '无锡'
|
|
}, {
|
|
value: '徐州',
|
|
label: '徐州'
|
|
}, {
|
|
value: '盐城',
|
|
label: '盐城'
|
|
}, {
|
|
value: '扬州',
|
|
label: '扬州'
|
|
}, {
|
|
value: '宜兴',
|
|
label: '宜兴'
|
|
}, {
|
|
value: '仪征',
|
|
label: '仪征'
|
|
}, {
|
|
value: '张家港',
|
|
label: '张家港'
|
|
}, {
|
|
value: '镇江',
|
|
label: '镇江'
|
|
}]
|
|
}, {
|
|
value: '重庆',
|
|
label: '重庆',
|
|
children: [{
|
|
value: "万州",
|
|
label: '万州'
|
|
}, {
|
|
value: '涪陵',
|
|
label: '涪陵'
|
|
}, {
|
|
value: '渝中',
|
|
label: '渝中'
|
|
}, {
|
|
value: '大渡口',
|
|
label: '大渡口'
|
|
}, {
|
|
value: '江北',
|
|
label: '江北'
|
|
}, {
|
|
value: '沙坪坝',
|
|
label: '沙坪坝'
|
|
}, {
|
|
value: '九龙坡',
|
|
label: '九龙坡'
|
|
}, {
|
|
value: '南岸',
|
|
label: '南岸'
|
|
}, {
|
|
value: '北碚',
|
|
label: '北碚'
|
|
}, {
|
|
value: '万盛',
|
|
label: '万盛'
|
|
}, {
|
|
value: '双挢',
|
|
label: '双挢'
|
|
}, {
|
|
value: '渝北',
|
|
label: '渝北'
|
|
}, {
|
|
value: '巴南',
|
|
label: '巴南'
|
|
}, {
|
|
value: '黔江',
|
|
label: '黔江'
|
|
}, {
|
|
value: '长寿',
|
|
label: '长寿'
|
|
}, {
|
|
value: '綦江',
|
|
label: '綦江'
|
|
}, {
|
|
value: '潼南',
|
|
label: '潼南'
|
|
}, {
|
|
value: '铜梁',
|
|
label: '铜梁'
|
|
}, {
|
|
value: '大足',
|
|
label: '大足'
|
|
}, {
|
|
value: '荣昌',
|
|
label: '荣昌'
|
|
}, {
|
|
value: '壁山',
|
|
label: '壁山'
|
|
}, {
|
|
value: '梁平',
|
|
label: '梁平'
|
|
}, {
|
|
value: '城口',
|
|
label: '城口'
|
|
}, {
|
|
value: '丰都',
|
|
label: '丰都'
|
|
}, {
|
|
value: '垫江',
|
|
label: '垫江'
|
|
}, {
|
|
value: '武隆',
|
|
label: '武隆'
|
|
}, {
|
|
value: '忠县',
|
|
label: '忠县'
|
|
}, {
|
|
value: '开县',
|
|
label: '开县'
|
|
}, {
|
|
value: '云阳',
|
|
label: '云阳'
|
|
}, {
|
|
value: '奉节',
|
|
label: '奉节'
|
|
}, {
|
|
value: '巫山',
|
|
label: '巫山'
|
|
}, {
|
|
value: '巫溪',
|
|
label: '巫溪'
|
|
}, {
|
|
value: '石柱',
|
|
label: '石柱'
|
|
}, {
|
|
value: '秀山',
|
|
label: '秀山'
|
|
}, {
|
|
value: '酉阳',
|
|
label: '酉阳'
|
|
}, {
|
|
value: '彭水',
|
|
label: '彭水'
|
|
}, {
|
|
value: '江津',
|
|
label: '江津'
|
|
}, {
|
|
value: '合川',
|
|
label: '合川'
|
|
}, {
|
|
value: '永川',
|
|
label: '永川'
|
|
}, {
|
|
value: '南川',
|
|
label: '南川'
|
|
}]
|
|
}, {
|
|
value: '安徽',
|
|
label: '安徽',
|
|
children: [{
|
|
value: "合肥",
|
|
label: '合肥'
|
|
}, {
|
|
value: '安庆',
|
|
label: '安庆'
|
|
}, {
|
|
value: '蚌埠',
|
|
label: '蚌埠'
|
|
}, {
|
|
value: '亳州',
|
|
label: '亳州'
|
|
}, {
|
|
value: '巢湖',
|
|
label: '巢湖'
|
|
}, {
|
|
value: '滁州',
|
|
label: '滁州'
|
|
}, {
|
|
value: '阜阳',
|
|
label: '阜阳'
|
|
}, {
|
|
value: '贵池',
|
|
label: '贵池'
|
|
}, {
|
|
value: '淮北',
|
|
label: '淮北'
|
|
}, {
|
|
value: '淮化',
|
|
label: '淮化'
|
|
}, {
|
|
value: '淮南',
|
|
label: '淮南'
|
|
}, {
|
|
value: '黄山',
|
|
label: '黄山'
|
|
}, {
|
|
value: '九华山',
|
|
label: '九华山'
|
|
}, {
|
|
value: '六安',
|
|
label: '六安'
|
|
}, {
|
|
value: '马鞍山',
|
|
label: '马鞍山'
|
|
}, {
|
|
value: '宿州',
|
|
label: '宿州'
|
|
}, {
|
|
value: '铜陵',
|
|
label: '铜陵'
|
|
}, {
|
|
value: '屯溪',
|
|
label: '屯溪'
|
|
}, {
|
|
value: '芜湖',
|
|
label: '芜湖'
|
|
}, {
|
|
value: '宣城',
|
|
label: '宣城'
|
|
}]
|
|
}, {
|
|
value: '福建',
|
|
label: '福建',
|
|
children: [{
|
|
value: "福州",
|
|
label: '福州'
|
|
}, {
|
|
value: '厦门',
|
|
label: '厦门'
|
|
}, {
|
|
value: '泉州',
|
|
label: '泉州'
|
|
}, {
|
|
value: '漳州',
|
|
label: '漳州'
|
|
}, {
|
|
value: '龙岩',
|
|
label: '龙岩'
|
|
}, {
|
|
value: '南平',
|
|
label: '南平'
|
|
}, {
|
|
value: '宁德',
|
|
label: '宁德'
|
|
}, {
|
|
value: '莆田',
|
|
label: '莆田'
|
|
}, {
|
|
value: '三明',
|
|
label: '三明'
|
|
}]
|
|
}, {
|
|
value: '甘肃',
|
|
label: '甘肃',
|
|
children: [{
|
|
value: "兰州",
|
|
label: '兰州'
|
|
}, {
|
|
value: "嘉峪关",
|
|
label: '嘉峪关'
|
|
}, {
|
|
value: '白银',
|
|
label: '白银'
|
|
}, {
|
|
value: '定西',
|
|
label: '定西'
|
|
}, {
|
|
value: '敦煌',
|
|
label: '敦煌'
|
|
}, {
|
|
value: '甘南',
|
|
label: '甘南'
|
|
}, {
|
|
value: '金昌',
|
|
label: '金昌'
|
|
}, {
|
|
value: '酒泉',
|
|
label: '酒泉'
|
|
}, {
|
|
value: '临夏',
|
|
label: '临夏'
|
|
}, {
|
|
value: '平凉',
|
|
label: '平凉'
|
|
}, {
|
|
value: '天水',
|
|
label: '天水'
|
|
}, {
|
|
value: '陇南',
|
|
label: '陇南'
|
|
}, {
|
|
value: '武威',
|
|
label: '武威'
|
|
}, {
|
|
value: '西峰',
|
|
label: '西峰'
|
|
}, {
|
|
value: '张掖',
|
|
label: '张掖'
|
|
}]
|
|
}, {
|
|
value: '广西',
|
|
label: '广西',
|
|
children: [{
|
|
value: "南宁",
|
|
label: '南宁'
|
|
}, {
|
|
value: "来宾",
|
|
label: '来宾'
|
|
}, {
|
|
value: '百色',
|
|
label: '百色'
|
|
}, {
|
|
value: '北海',
|
|
label: '北海'
|
|
}, {
|
|
value: '桂林',
|
|
label: '桂林'
|
|
}, {
|
|
value: '防城港',
|
|
label: '防城港'
|
|
}, {
|
|
value: '贵港',
|
|
label: '贵港'
|
|
}, {
|
|
value: '河池',
|
|
label: '河池'
|
|
}, {
|
|
value: '贺州',
|
|
label: '贺州'
|
|
}, {
|
|
value: '柳州',
|
|
label: '柳州'
|
|
}, {
|
|
value: '钦州',
|
|
label: '钦州'
|
|
}, {
|
|
value: '梧州',
|
|
label: '梧州'
|
|
}, {
|
|
value: '玉林',
|
|
label: '玉林'
|
|
}]
|
|
}, {
|
|
value: '贵州',
|
|
label: '贵州',
|
|
children: [{
|
|
value: "贵阳",
|
|
label: '贵阳'
|
|
}, {
|
|
value: '安顺',
|
|
label: '安顺'
|
|
}, {
|
|
value: '毕节',
|
|
label: '毕节'
|
|
}, {
|
|
value: '都匀',
|
|
label: '都匀'
|
|
}, {
|
|
value: '凯里',
|
|
label: '凯里'
|
|
}, {
|
|
value: '六盘水',
|
|
label: '六盘水'
|
|
}, {
|
|
value: '铜仁',
|
|
label: '铜仁'
|
|
}, {
|
|
value: '兴义',
|
|
label: '兴义'
|
|
}, {
|
|
value: '玉屏',
|
|
label: '玉屏'
|
|
}, {
|
|
value: '遵义',
|
|
label: '遵义'
|
|
}]
|
|
}, {
|
|
value: '海南',
|
|
label: '海南',
|
|
children: [{
|
|
value: "海口",
|
|
label: '海口'
|
|
}, {
|
|
value: '儋县',
|
|
label: '儋县'
|
|
}, {
|
|
value: '陵水',
|
|
label: '陵水'
|
|
}, {
|
|
value: '琼海',
|
|
label: '琼海'
|
|
}, {
|
|
value: '三亚',
|
|
label: '三亚'
|
|
}, {
|
|
value: '通什',
|
|
label: '通什'
|
|
}, {
|
|
value: '万宁',
|
|
label: '万宁'
|
|
}]
|
|
}, {
|
|
value: '河北',
|
|
label: '河北',
|
|
children: [{
|
|
value: "石家庄",
|
|
label: '石家庄'
|
|
}, {
|
|
value: '保定',
|
|
label: '保定'
|
|
}, {
|
|
value: '北戴河',
|
|
label: '北戴河'
|
|
}, {
|
|
value: '沧州',
|
|
label: '沧州'
|
|
}, {
|
|
value: '承德',
|
|
label: '承德'
|
|
}, {
|
|
value: '丰润',
|
|
label: '丰润'
|
|
}, {
|
|
value: '邯郸',
|
|
label: '邯郸'
|
|
}, {
|
|
value: '衡水',
|
|
label: '衡水'
|
|
}, {
|
|
value: '廊坊',
|
|
label: '廊坊'
|
|
}, {
|
|
value: '南戴河',
|
|
label: '南戴河'
|
|
}, {
|
|
value: '秦皇岛',
|
|
label: '秦皇岛'
|
|
}, {
|
|
value: '唐山',
|
|
label: '唐山'
|
|
}, {
|
|
value: '新城',
|
|
label: '新城'
|
|
}, {
|
|
value: '邢台',
|
|
label: '邢台'
|
|
}, {
|
|
value: '张家口',
|
|
label: '张家口'
|
|
}]
|
|
}, {
|
|
value: '黑龙江',
|
|
label: '黑龙江',
|
|
children: [{
|
|
value: "哈尔滨",
|
|
label: '哈尔滨'
|
|
}, {
|
|
value: '北安',
|
|
label: '北安'
|
|
}, {
|
|
value: '大庆',
|
|
label: '大庆'
|
|
}, {
|
|
value: '大兴安岭',
|
|
label: '大兴安岭'
|
|
}, {
|
|
value: '鹤岗',
|
|
label: '鹤岗'
|
|
}, {
|
|
value: '黑河',
|
|
label: '黑河'
|
|
}, {
|
|
value: '佳木斯',
|
|
label: '佳木斯'
|
|
}, {
|
|
value: '鸡西',
|
|
label: '鸡西'
|
|
}, {
|
|
value: '牡丹江',
|
|
label: '牡丹江'
|
|
}, {
|
|
value: '齐齐哈尔',
|
|
label: '齐齐哈尔'
|
|
}, {
|
|
value: '七台河',
|
|
label: '七台河'
|
|
}, {
|
|
value: '双鸭山',
|
|
label: '双鸭山'
|
|
}, {
|
|
value: '绥化',
|
|
label: '绥化'
|
|
}, {
|
|
value: '伊春',
|
|
label: '伊春'
|
|
}]
|
|
}, {
|
|
value: '河南',
|
|
label: '河南',
|
|
children: [{
|
|
value: "郑州",
|
|
label: '郑州'
|
|
}, {
|
|
value: '安阳',
|
|
label: '安阳'
|
|
}, {
|
|
value: '鹤壁',
|
|
label: '鹤壁'
|
|
}, {
|
|
value: '潢川',
|
|
label: '潢川'
|
|
}, {
|
|
value: '焦作',
|
|
label: '焦作'
|
|
}, {
|
|
value: '济源',
|
|
label: '济源'
|
|
}, {
|
|
value: '开封',
|
|
label: '开封'
|
|
}, {
|
|
value: '漯河',
|
|
label: '漯河'
|
|
}, {
|
|
value: '洛阳',
|
|
label: '洛阳'
|
|
}, {
|
|
value: '南阳',
|
|
label: '南阳'
|
|
}, {
|
|
value: '平顶山',
|
|
label: '平顶山'
|
|
}, {
|
|
value: '濮阳',
|
|
label: '濮阳'
|
|
}, {
|
|
value: '三门峡',
|
|
label: '三门峡'
|
|
}, {
|
|
value: '商丘',
|
|
label: '商丘'
|
|
}, {
|
|
value: '新乡',
|
|
label: '新乡'
|
|
}, {
|
|
value: '信阳',
|
|
label: '信阳'
|
|
}, {
|
|
value: '许昌',
|
|
label: '许昌'
|
|
}, {
|
|
value: '周口',
|
|
label: '周口'
|
|
}, {
|
|
value: '驻马店',
|
|
label: '驻马店'
|
|
}]
|
|
}, {
|
|
value: '香港',
|
|
label: '香港',
|
|
children: [{
|
|
value: "香港",
|
|
label: '香港'
|
|
}, {
|
|
value: '九龙',
|
|
label: '九龙'
|
|
}, {
|
|
value: '新界',
|
|
label: '新界'
|
|
}]
|
|
}, {
|
|
value: '湖北',
|
|
label: '湖北',
|
|
children: [{
|
|
value: "武汉",
|
|
label: '武汉'
|
|
}, {
|
|
value: "天门",
|
|
label: '天门'
|
|
}, {
|
|
value: '恩施',
|
|
label: '恩施'
|
|
}, {
|
|
value: '鄂州',
|
|
label: '鄂州'
|
|
}, {
|
|
value: '黄冈',
|
|
label: '黄冈'
|
|
}, {
|
|
value: '黄石',
|
|
label: '黄石'
|
|
}, {
|
|
value: '荆门',
|
|
label: '荆门'
|
|
}, {
|
|
value: '荆州',
|
|
label: '荆州'
|
|
}, {
|
|
value: '潜江',
|
|
label: '潜江'
|
|
}, {
|
|
value: '十堰',
|
|
label: '十堰'
|
|
}, {
|
|
value: '随州',
|
|
label: '随州'
|
|
}, {
|
|
value: '武穴',
|
|
label: '武穴'
|
|
}, {
|
|
value: '仙桃',
|
|
label: '仙桃'
|
|
}, {
|
|
value: '咸宁',
|
|
label: '咸宁'
|
|
}, {
|
|
value: '襄阳',
|
|
label: '襄阳'
|
|
}, {
|
|
value: '襄樊',
|
|
label: '襄樊'
|
|
}, {
|
|
value: '孝感',
|
|
label: '孝感'
|
|
}, {
|
|
value: '宜昌',
|
|
label: '宜昌'
|
|
}]
|
|
}, {
|
|
value: '湖南',
|
|
label: '湖南',
|
|
children: [{
|
|
value: "长沙",
|
|
label: '长沙'
|
|
}, {
|
|
value: '常德',
|
|
label: '常德'
|
|
}, {
|
|
value: '郴州',
|
|
label: '郴州'
|
|
}, {
|
|
value: '衡阳',
|
|
label: '衡阳'
|
|
}, {
|
|
value: '怀化',
|
|
label: '怀化'
|
|
}, {
|
|
value: '吉首',
|
|
label: '吉首'
|
|
}, {
|
|
value: '娄底',
|
|
label: '娄底'
|
|
}, {
|
|
value: '邵阳',
|
|
label: '邵阳'
|
|
}, {
|
|
value: '湘潭',
|
|
label: '湘潭'
|
|
}, {
|
|
value: '益阳',
|
|
label: '益阳'
|
|
}, {
|
|
value: '岳阳',
|
|
label: '岳阳'
|
|
}, {
|
|
value: '永州',
|
|
label: '永州'
|
|
}, {
|
|
value: '张家界',
|
|
label: '张家界'
|
|
}, {
|
|
value: '株洲',
|
|
label: '株洲'
|
|
}]
|
|
}, {
|
|
value: '江西',
|
|
label: '江西',
|
|
children: [{
|
|
value: "南昌",
|
|
label: '南昌'
|
|
}, {
|
|
value: '抚州',
|
|
label: '抚州'
|
|
}, {
|
|
value: '赣州',
|
|
label: '赣州'
|
|
}, {
|
|
value: '吉安',
|
|
label: '吉安'
|
|
}, {
|
|
value: '景德镇',
|
|
label: '景德镇'
|
|
}, {
|
|
value: '井冈山',
|
|
label: '井冈山'
|
|
}, {
|
|
value: '九江',
|
|
label: '九江'
|
|
}, {
|
|
value: '庐山',
|
|
label: '庐山'
|
|
}, {
|
|
value: '萍乡',
|
|
label: '萍乡'
|
|
}, {
|
|
value: '上饶',
|
|
label: '上饶'
|
|
}, {
|
|
value: '新余',
|
|
label: '新余'
|
|
}, {
|
|
value: '宜春',
|
|
label: '宜春'
|
|
}, {
|
|
value: '鹰潭',
|
|
label: '鹰潭'
|
|
}]
|
|
}, {
|
|
value: '吉林',
|
|
label: '吉林',
|
|
children: [{
|
|
value: "长春",
|
|
label: '长春'
|
|
}, {
|
|
value: '吉林',
|
|
label: '吉林'
|
|
}, {
|
|
value: '白城',
|
|
label: '白城'
|
|
}, {
|
|
value: '白山',
|
|
label: '白山'
|
|
}, {
|
|
value: '珲春',
|
|
label: '珲春'
|
|
}, {
|
|
value: '辽源',
|
|
label: '辽源'
|
|
}, {
|
|
value: '梅河',
|
|
label: '梅河'
|
|
}, {
|
|
value: '四平',
|
|
label: '四平'
|
|
}, {
|
|
value: '松原',
|
|
label: '松原'
|
|
}, {
|
|
value: '通化',
|
|
label: '通化'
|
|
}, {
|
|
value: '延吉',
|
|
label: '延吉'
|
|
}]
|
|
}, {
|
|
value: '辽宁',
|
|
label: '辽宁',
|
|
children: [{
|
|
value: "沈阳",
|
|
label: '沈阳'
|
|
}, {
|
|
value: '鞍山',
|
|
label: '鞍山'
|
|
}, {
|
|
value: '本溪',
|
|
label: '本溪'
|
|
}, {
|
|
value: '朝阳',
|
|
label: '朝阳'
|
|
}, {
|
|
value: '大连',
|
|
label: '大连'
|
|
}, {
|
|
value: '丹东',
|
|
label: '丹东'
|
|
}, {
|
|
value: '抚顺',
|
|
label: '抚顺'
|
|
}, {
|
|
value: '阜新',
|
|
label: '阜新'
|
|
}, {
|
|
value: '葫芦岛',
|
|
label: '葫芦岛'
|
|
}, {
|
|
value: '锦州',
|
|
label: '锦州'
|
|
}, {
|
|
value: '辽阳',
|
|
label: '辽阳'
|
|
}, {
|
|
value: '盘锦',
|
|
label: '盘锦'
|
|
}, {
|
|
value: '铁岭',
|
|
label: '铁岭'
|
|
}, {
|
|
value: '营口',
|
|
label: '营口'
|
|
}]
|
|
}, {
|
|
value: '澳门',
|
|
label: '澳门',
|
|
children: [{
|
|
value: '澳门',
|
|
label: '澳门'
|
|
}]
|
|
}, {
|
|
value: '内蒙古',
|
|
label: '内蒙古',
|
|
children: [{
|
|
value: "呼和浩特",
|
|
label: '呼和浩特'
|
|
}, {
|
|
value: '阿拉善盟',
|
|
label: '阿拉善盟'
|
|
}, {
|
|
value: '包头',
|
|
label: '包头'
|
|
}, {
|
|
value: '赤峰',
|
|
label: '赤峰'
|
|
}, {
|
|
value: '东胜',
|
|
label: '东胜'
|
|
}, {
|
|
value: '海拉尔',
|
|
label: '海拉尔'
|
|
}, {
|
|
value: '集宁',
|
|
label: '集宁'
|
|
}, {
|
|
value: '临河',
|
|
label: '临河'
|
|
}, {
|
|
value: '通辽',
|
|
label: '通辽'
|
|
}, {
|
|
value: '乌海',
|
|
label: '乌海'
|
|
}, {
|
|
value: '乌兰浩特',
|
|
label: '乌兰浩特'
|
|
}, {
|
|
value: '锡林浩特',
|
|
label: '锡林浩特'
|
|
}]
|
|
}, {
|
|
value: '宁夏',
|
|
label: '宁夏',
|
|
children: [{
|
|
value: "银川",
|
|
label: '银川'
|
|
}, {
|
|
value: '固源',
|
|
label: '固源'
|
|
}, {
|
|
value: '石嘴山',
|
|
label: '石嘴山'
|
|
}, {
|
|
value: '吴忠',
|
|
label: '吴忠'
|
|
}]
|
|
}, {
|
|
value: '青海',
|
|
label: '青海',
|
|
children: [{
|
|
value: "西宁",
|
|
label: '西宁'
|
|
}, {
|
|
value: '德令哈',
|
|
label: '德令哈'
|
|
}, {
|
|
value: '格尔木',
|
|
label: '格尔木'
|
|
}, {
|
|
value: '共和',
|
|
label: '共和'
|
|
}, {
|
|
value: '海东',
|
|
label: '海东'
|
|
}, {
|
|
value: '海晏',
|
|
label: '海晏'
|
|
}, {
|
|
value: '玛沁',
|
|
label: '玛沁'
|
|
}, {
|
|
value: '同仁',
|
|
label: '同仁'
|
|
}, {
|
|
value: '玉树',
|
|
label: '玉树'
|
|
}]
|
|
}, {
|
|
value: '山东',
|
|
label: '山东',
|
|
children: [{
|
|
value: "济南",
|
|
label: '济南'
|
|
}, {
|
|
value: '滨州',
|
|
label: '滨州'
|
|
}, {
|
|
value: '兖州',
|
|
label: '兖州'
|
|
}, {
|
|
value: '德州',
|
|
label: '德州'
|
|
}, {
|
|
value: '东营',
|
|
label: '东营'
|
|
}, {
|
|
value: '菏泽',
|
|
label: '菏泽'
|
|
}, {
|
|
value: '济宁',
|
|
label: '济宁'
|
|
}, {
|
|
value: '莱芜',
|
|
label: '莱芜'
|
|
}, {
|
|
value: '聊城',
|
|
label: '聊城'
|
|
}, {
|
|
value: '临沂',
|
|
label: '临沂'
|
|
}, {
|
|
value: '蓬莱',
|
|
label: '蓬莱'
|
|
}, {
|
|
value: '青岛',
|
|
label: '青岛'
|
|
}, {
|
|
value: '曲阜',
|
|
label: '曲阜'
|
|
}, {
|
|
value: '日照',
|
|
label: '日照'
|
|
}, {
|
|
value: '泰安',
|
|
label: '泰安'
|
|
}, {
|
|
value: '潍坊',
|
|
label: '潍坊'
|
|
}, {
|
|
value: '威海',
|
|
label: '威海'
|
|
}, {
|
|
value: '烟台',
|
|
label: '烟台'
|
|
}, {
|
|
value: '枣庄',
|
|
label: '枣庄'
|
|
}, {
|
|
value: '淄博',
|
|
label: '淄博'
|
|
}]
|
|
}, {
|
|
value: '山西',
|
|
label: '山西',
|
|
children: [{
|
|
value: "太原",
|
|
label: '太原'
|
|
}, {
|
|
value: "吕梁",
|
|
label: '吕梁'
|
|
}, {
|
|
value: '长治',
|
|
label: '长治'
|
|
}, {
|
|
value: '大同',
|
|
label: '大同'
|
|
}, {
|
|
value: '候马',
|
|
label: '候马'
|
|
}, {
|
|
value: '晋城',
|
|
label: '晋城'
|
|
}, {
|
|
value: '离石',
|
|
label: '离石'
|
|
}, {
|
|
value: '临汾',
|
|
label: '临汾'
|
|
}, {
|
|
value: '宁武',
|
|
label: '宁武'
|
|
}, {
|
|
value: '朔州',
|
|
label: '朔州'
|
|
}, {
|
|
value: '忻州',
|
|
label: '忻州'
|
|
}, {
|
|
value: '阳泉',
|
|
label: '阳泉'
|
|
}, {
|
|
value: '榆次',
|
|
label: '榆次'
|
|
}, {
|
|
value: '晋中',
|
|
label: '晋中'
|
|
}, {
|
|
value: '运城',
|
|
label: '运城'
|
|
}]
|
|
}, {
|
|
value: '陕西',
|
|
label: '陕西',
|
|
children: [{
|
|
value: "西安",
|
|
label: '西安'
|
|
}, {
|
|
value: '安康',
|
|
label: '安康'
|
|
}, {
|
|
value: '宝鸡',
|
|
label: '宝鸡'
|
|
}, {
|
|
value: '汉中',
|
|
label: '汉中'
|
|
}, {
|
|
value: '渭南',
|
|
label: '渭南'
|
|
}, {
|
|
value: '商州',
|
|
label: '商州'
|
|
}, {
|
|
value: '绥德',
|
|
label: '绥德'
|
|
}, {
|
|
value: '铜川',
|
|
label: '铜川'
|
|
}, {
|
|
value: '咸阳',
|
|
label: '咸阳'
|
|
}, {
|
|
value: '延安',
|
|
label: '延安'
|
|
}, {
|
|
value: '榆林',
|
|
label: '榆林'
|
|
}]
|
|
}, {
|
|
value: '四川',
|
|
label: '四川',
|
|
children: [{
|
|
value: "成都",
|
|
label: '成都'
|
|
}, {
|
|
value: '巴中',
|
|
label: '巴中'
|
|
}, {
|
|
value: '达川',
|
|
label: '达川'
|
|
}, {
|
|
value: '德阳',
|
|
label: '德阳'
|
|
}, {
|
|
value: '都江堰',
|
|
label: '都江堰'
|
|
}, {
|
|
value: '峨眉山',
|
|
label: '峨眉山'
|
|
}, {
|
|
value: '涪陵',
|
|
label: '涪陵'
|
|
}, {
|
|
value: '广安',
|
|
label: '广安'
|
|
}, {
|
|
value: '广元',
|
|
label: '广元'
|
|
}, {
|
|
value: '九寨沟',
|
|
label: '九寨沟'
|
|
}, {
|
|
value: '康定',
|
|
label: '康定'
|
|
}, {
|
|
value: '乐山',
|
|
label: '乐山'
|
|
}, {
|
|
value: '泸州',
|
|
label: '泸州'
|
|
}, {
|
|
value: '马尔康',
|
|
label: '马尔康'
|
|
}, {
|
|
value: '绵阳',
|
|
label: '绵阳'
|
|
}, {
|
|
value: '眉山',
|
|
label: '眉山'
|
|
}, {
|
|
value: '南充',
|
|
label: '南充'
|
|
}, {
|
|
value: '内江',
|
|
label: '内江'
|
|
}, {
|
|
value: '攀枝花',
|
|
label: '攀枝花'
|
|
}, {
|
|
value: '遂宁',
|
|
label: '遂宁'
|
|
}, {
|
|
value: '汶川',
|
|
label: '汶川'
|
|
}, {
|
|
value: '西昌',
|
|
label: '西昌'
|
|
}, {
|
|
value: '雅安',
|
|
label: '雅安'
|
|
}, {
|
|
value: '宜宾',
|
|
label: '宜宾'
|
|
}, {
|
|
value: '自贡',
|
|
label: '自贡'
|
|
}, {
|
|
value: '资阳',
|
|
label: '资阳'
|
|
}]
|
|
}, {
|
|
value: '台湾',
|
|
label: '台湾',
|
|
children: [{
|
|
value: "台北",
|
|
label: '台北'
|
|
}, {
|
|
value: '基隆',
|
|
label: '基隆'
|
|
}, {
|
|
value: '台南',
|
|
label: '台南'
|
|
}, {
|
|
value: '台中',
|
|
label: '台中'
|
|
}, {
|
|
value: '高雄',
|
|
label: '高雄'
|
|
}, {
|
|
value: '屏东',
|
|
label: '屏东'
|
|
}, {
|
|
value: '南投',
|
|
label: '南投'
|
|
}, {
|
|
value: '云林',
|
|
label: '云林'
|
|
}, {
|
|
value: '新竹',
|
|
label: '新竹'
|
|
}, {
|
|
value: '彰化',
|
|
label: '彰化'
|
|
}, {
|
|
value: '苗栗',
|
|
label: '苗栗'
|
|
}, {
|
|
value: '嘉义',
|
|
label: '嘉义'
|
|
}, {
|
|
value: '桃园',
|
|
label: '桃园'
|
|
}, {
|
|
value: '宜兰',
|
|
label: '宜兰'
|
|
}, {
|
|
value: '台东',
|
|
label: '台东'
|
|
}, {
|
|
value: '金门',
|
|
label: '金门'
|
|
}, {
|
|
value: '马祖',
|
|
label: '马祖'
|
|
}, {
|
|
value: '澎湖',
|
|
label: '澎湖'
|
|
}]
|
|
}, {
|
|
value: '天津',
|
|
label: '天津',
|
|
children: [{
|
|
value: "天津",
|
|
label: '天津'
|
|
}, {
|
|
value: '和平',
|
|
label: '和平'
|
|
}, {
|
|
value: '东丽',
|
|
label: '东丽'
|
|
}, {
|
|
value: '河东',
|
|
label: '河东'
|
|
}, {
|
|
value: '西青',
|
|
label: '西青'
|
|
}, {
|
|
value: '河西',
|
|
label: '河西'
|
|
}, {
|
|
value: '津南',
|
|
label: '津南'
|
|
}, {
|
|
value: '南开',
|
|
label: '南开'
|
|
}, {
|
|
value: '北辰',
|
|
label: '北辰'
|
|
}, {
|
|
value: '河北',
|
|
label: '河北'
|
|
}, {
|
|
value: '武清',
|
|
label: '武清'
|
|
}, {
|
|
value: '红挢',
|
|
label: '红挢'
|
|
}, {
|
|
value: '塘沽',
|
|
label: '塘沽'
|
|
}, {
|
|
value: '汉沽',
|
|
label: '汉沽'
|
|
}, {
|
|
value: '大港',
|
|
label: '大港'
|
|
}, {
|
|
value: '宁河',
|
|
label: '宁河'
|
|
}, {
|
|
value: '静海',
|
|
label: '静海'
|
|
}, {
|
|
value: '宝坻',
|
|
label: '宝坻'
|
|
}, {
|
|
value: '蓟县',
|
|
label: '蓟县'
|
|
}]
|
|
}, {
|
|
value: '新疆',
|
|
label: '新疆',
|
|
children: [{
|
|
value: "乌鲁木齐",
|
|
label: '乌鲁木齐'
|
|
}, {
|
|
value: '阿克苏',
|
|
label: '阿克苏'
|
|
}, {
|
|
value: '阿勒泰',
|
|
label: '阿勒泰'
|
|
}, {
|
|
value: '阿图什',
|
|
label: '阿图什'
|
|
}, {
|
|
value: '博乐',
|
|
label: '博乐'
|
|
}, {
|
|
value: '昌吉',
|
|
label: '昌吉'
|
|
}, {
|
|
value: '东山',
|
|
label: '东山'
|
|
}, {
|
|
value: '哈密',
|
|
label: '哈密'
|
|
}, {
|
|
value: '和田',
|
|
label: '和田'
|
|
}, {
|
|
value: '喀什',
|
|
label: '喀什'
|
|
}, {
|
|
value: '克拉玛依',
|
|
label: '克拉玛依'
|
|
}, {
|
|
value: '库车',
|
|
label: '库车'
|
|
}, {
|
|
value: '库尔勒',
|
|
label: '库尔勒'
|
|
}, {
|
|
value: '奎屯',
|
|
label: '奎屯'
|
|
}, {
|
|
value: '石河子',
|
|
label: '石河子'
|
|
}, {
|
|
value: '塔城',
|
|
label: '塔城'
|
|
}, {
|
|
value: '吐鲁番',
|
|
label: '吐鲁番'
|
|
}, {
|
|
value: '伊宁',
|
|
label: '伊宁'
|
|
}]
|
|
}, {
|
|
value: '西藏',
|
|
label: '西藏',
|
|
children: [{
|
|
value: "拉萨",
|
|
label: '拉萨'
|
|
}, {
|
|
value: '阿里',
|
|
label: '阿里'
|
|
}, {
|
|
value: '昌都',
|
|
label: '昌都'
|
|
}, {
|
|
value: '林芝',
|
|
label: '林芝'
|
|
}, {
|
|
value: '那曲',
|
|
label: '那曲'
|
|
}, {
|
|
value: '日喀则',
|
|
label: '日喀则'
|
|
}, {
|
|
value: '山南',
|
|
label: '山南'
|
|
}]
|
|
}, {
|
|
value: '云南',
|
|
label: '云南',
|
|
children: [{
|
|
value: "昆明",
|
|
label: '昆明'
|
|
}, {
|
|
value: '大理',
|
|
label: '大理'
|
|
}, {
|
|
value: '保山',
|
|
label: '保山'
|
|
}, {
|
|
value: '楚雄',
|
|
label: '楚雄'
|
|
}, {
|
|
value: '大理',
|
|
label: '大理'
|
|
}, {
|
|
value: '东川',
|
|
label: '东川'
|
|
}, {
|
|
value: '个旧',
|
|
label: '个旧'
|
|
}, {
|
|
value: '景洪',
|
|
label: '景洪'
|
|
}, {
|
|
value: '开远',
|
|
label: '开远'
|
|
}, {
|
|
value: '临沧',
|
|
label: '临沧'
|
|
}, {
|
|
value: '丽江',
|
|
label: '丽江'
|
|
}, {
|
|
value: '六库',
|
|
label: '六库'
|
|
}, {
|
|
value: '潞西',
|
|
label: '潞西'
|
|
}, {
|
|
value: '曲靖',
|
|
label: '曲靖'
|
|
}, {
|
|
value: '思茅',
|
|
label: '思茅'
|
|
}, {
|
|
value: '文山',
|
|
label: '文山'
|
|
}, {
|
|
value: '西双版纳',
|
|
label: '西双版纳'
|
|
}, {
|
|
value: '玉溪',
|
|
label: '玉溪'
|
|
}, {
|
|
value: '中甸',
|
|
label: '中甸'
|
|
}, {
|
|
value: '昭通',
|
|
label: '昭通'
|
|
}]
|
|
}, {
|
|
value: '浙江',
|
|
label: '浙江',
|
|
children: [{
|
|
value: "杭州",
|
|
label: '杭州'
|
|
}, {
|
|
value: "温州",
|
|
label: '温州'
|
|
}, {
|
|
value: '安吉',
|
|
label: '安吉'
|
|
}, {
|
|
value: '慈溪',
|
|
label: '慈溪'
|
|
}, {
|
|
value: '定海',
|
|
label: '定海'
|
|
}, {
|
|
value: '奉化',
|
|
label: '奉化'
|
|
}, {
|
|
value: '海盐',
|
|
label: '海盐'
|
|
}, {
|
|
value: '黄岩',
|
|
label: '黄岩'
|
|
}, {
|
|
value: '湖州',
|
|
label: '湖州'
|
|
}, {
|
|
value: '嘉兴',
|
|
label: '嘉兴'
|
|
}, {
|
|
value: '金华',
|
|
label: '金华'
|
|
}, {
|
|
value: '临安',
|
|
label: '临安'
|
|
}, {
|
|
value: '临海',
|
|
label: '临海'
|
|
}, {
|
|
value: '丽水',
|
|
label: '丽水'
|
|
}, {
|
|
value: '宁波',
|
|
label: '宁波'
|
|
}, {
|
|
value: '瓯海',
|
|
label: '瓯海'
|
|
}, {
|
|
value: '平湖',
|
|
label: '平湖'
|
|
}, {
|
|
value: '千岛湖',
|
|
label: '千岛湖'
|
|
}, {
|
|
value: '衢州',
|
|
label: '衢州'
|
|
}, {
|
|
value: '江山',
|
|
label: '江山'
|
|
}, {
|
|
value: '瑞安',
|
|
label: '瑞安'
|
|
}, {
|
|
value: '绍兴',
|
|
label: '绍兴'
|
|
}, {
|
|
value: '嵊州',
|
|
label: '嵊州'
|
|
}, {
|
|
value: '台州',
|
|
label: '台州'
|
|
}, {
|
|
value: '温岭',
|
|
label: '温岭'
|
|
}, {
|
|
value: '余姚',
|
|
label: '余姚'
|
|
}, {
|
|
value: '舟山',
|
|
label: '舟山'
|
|
}]
|
|
}, {
|
|
value: '海外',
|
|
label: '海外',
|
|
children: [{
|
|
value: "美国",
|
|
label: '美国'
|
|
}, {
|
|
value: '日本',
|
|
label: '日本'
|
|
}, {
|
|
value: '英国',
|
|
label: '英国'
|
|
}, {
|
|
value: '法国',
|
|
label: '法国'
|
|
}, {
|
|
value: '德国',
|
|
label: '德国'
|
|
}, {
|
|
value: '其他',
|
|
label: '其他'
|
|
}]
|
|
}];
|
|
|
|
/***/ }),
|
|
|
|
/***/ 47770:
|
|
/*!*****************************************!*\
|
|
!*** ./src/utils/hooks/useInterval.tsx ***!
|
|
\*****************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ Y: function() { return /* binding */ useInterval; }
|
|
/* harmony export */ });
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 59301);
|
|
|
|
function useInterval(callback, delay) {
|
|
var savedCallback = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
|
|
var savedId = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
|
|
|
|
// 保存新回调
|
|
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
|
savedCallback.current = callback;
|
|
});
|
|
|
|
// 建立 interval
|
|
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
|
function tick() {
|
|
savedCallback.current();
|
|
}
|
|
if (delay !== null) {
|
|
var id = setInterval(tick, delay);
|
|
savedId.current = id;
|
|
return function () {
|
|
return clearInterval(id);
|
|
};
|
|
}
|
|
}, [delay]);
|
|
}
|
|
|
|
/***/ }),
|
|
|
|
/***/ 81573:
|
|
/*!**********************************************************!*\
|
|
!*** ./src/pages/Competitions/Detail/index.less?modules ***!
|
|
\**********************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__) {
|
|
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ __webpack_exports__.Z = ({"flex_box_center":"flex_box_center___fo_3c","flex_space_between":"flex_space_between___G46CO","flex_box_vertical_center":"flex_box_vertical_center___br3Kr","flex_box_center_end":"flex_box_center_end___Xdo94","flex_box_column":"flex_box_column___Bcnmr","wrp":"wrp___TY7QJ","bg":"bg___xiaSy","commonimg":"commonimg___a4R0Q","titlesize":"titlesize___Wdd_a","timesize":"timesize___OkfYO","flex1":"flex1___N6paY","buttonsize":"buttonsize___syL9V","myteam":"myteam___RTWAt","bootmdetail":"bootmdetail___taUGk","menuItem":"menuItem___Kww4S","flex6":"flex6___RuzJ4","spanprev":"spanprev___Cssg_","spannext":"spannext___jVFGE","divwidth":"divwidth___r5hE3","receiveclick":"receiveclick___BauOs","receivealready":"receivealready___Z7Wo0","bkfff":"bkfff___lHrcJ","ant-input":"ant-input___m4bn_","onediv":"onediv___xzZRa","onetop":"onetop___M4GfM","towdiv":"towdiv___yj3ds","towtop":"towtop___veKa4","threediv":"threediv___Ztz0D","threetop":"threetop___zDXIg","imgradius":"imgradius___r4uGN","prize":"prize___YNRD4","spanrightradius":"spanrightradius___tC6T5","bottomItem":"bottomItem___CHcMJ","myTeam":"myTeam___fm7KX","downloadpdf":"downloadpdf___a2NuA","pdfBut":"pdfBut___Drr6h","PerfectBut":"PerfectBut___wEhjV","PerfectCent":"PerfectCent___HD3Id","PerfectCentName":"PerfectCentName___smdJX","teamItem":"teamItem___mx2f3","dash":"dash___l6QH1","modal":"modal___yXh2H","maskText":"maskText___Tdh6h","box":"box___K2uQ4","open_style":"open_style___gLTB9","title_style":"title_style___j6zvN","colorhove":"colorhove___FKtzO"});
|
|
|
|
/***/ })
|
|
|
|
}]); |