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.
NewEduCoderBuild/p__Account__index.async.js

1651 lines
81 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[60547],{
/***/ 75769:
/*!*******************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/CheckOutlined.js + 1 modules ***!
\*******************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_CheckOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.8@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(38850);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.3.1@@ant-design/icons-svg/es/asn/CheckOutlined.js
// This icon file is generated automatically.
var CheckOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" } }] }, "name": "check", "theme": "outlined" };
/* harmony default export */ var asn_CheckOutlined = (CheckOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(91851);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/CheckOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var CheckOutlined_CheckOutlined = function CheckOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_CheckOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_CheckOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(CheckOutlined_CheckOutlined));
/***/ }),
/***/ 15997:
/*!*****************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules ***!
\*****************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_EyeOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.8@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(38850);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.3.1@@ant-design/icons-svg/es/asn/EyeOutlined.js
// This icon file is generated automatically.
var EyeOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" } }] }, "name": "eye", "theme": "outlined" };
/* harmony default export */ var asn_EyeOutlined = (EyeOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(91851);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/EyeOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var EyeOutlined_EyeOutlined = function EyeOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_EyeOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_EyeOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(EyeOutlined_EyeOutlined));
/***/ }),
/***/ 81942:
/*!*************************************************!*\
!*** ./src/pages/Account/index.tsx + 1 modules ***!
\*************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"default": function() { return /* binding */ Account; }
});
// 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/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/_@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/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 14 modules
var _umi_production_exports = __webpack_require__(78000);
// EXTERNAL MODULE: ./node_modules/_antd@5.12.8@antd/es/form/index.js + 19 modules
var es_form = __webpack_require__(1371);
// EXTERNAL MODULE: ./node_modules/_antd@5.12.8@antd/es/button/index.js + 8 modules
var es_button = __webpack_require__(11103);
// EXTERNAL MODULE: ./node_modules/_antd@5.12.8@antd/es/message/index.js + 4 modules
var message = __webpack_require__(47130);
// EXTERNAL MODULE: ./node_modules/_antd@5.12.8@antd/es/modal/index.js + 16 modules
var modal = __webpack_require__(21698);
// EXTERNAL MODULE: ./node_modules/_antd@5.12.8@antd/es/upload/index.js + 24 modules
var upload = __webpack_require__(53654);
// EXTERNAL MODULE: ./node_modules/_antd@5.12.8@antd/es/input/index.js + 5 modules
var input = __webpack_require__(81726);
;// CONCATENATED MODULE: ./src/pages/Account/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Accountmodules = ({"bg":"bg___lB_B_","wrap":"wrap___GGUEr","leftWarp":"leftWarp___GCVZI","avatar":"avatar___ctzrs","rightWarp":"rightWarp___zovZs","tabs":"tabs___Ge49K","item_tab":"item_tab___JFkIU","active_tab":"active_tab___KW3xo","active_line":"active_line___lygl9","headerTop":"headerTop___J1LUi","headerTL":"headerTL___xySvS","headerTR":"headerTR___Ar54m","conItemR":"conItemR___nTNVe","userInfo":"userInfo___mfp0w","conItem":"conItem___t3Hfs","conItemL":"conItemL___yHd6l","title":"title___QDKqP","user_modal":"user_modal___c_p91","users_style":"users_style___HBI1Z","sc_warp":"sc_warp___oVySG","wenan":"wenan___lnhsO","users_style2":"users_style2___UQ9jq","active_img":"active_img___h4bWp","input1":"input1___f48Ne","titleName":"titleName___cviSR","formWrap":"formWrap___NGilJ","modalCss":"modalCss___vLBTA","buttonWrap":"buttonWrap___oedl7","yzm":"yzm___XTVsP"});
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(80548);
// EXTERNAL MODULE: ./src/service/user.ts
var service_user = __webpack_require__(65893);
// EXTERNAL MODULE: ./src/service/account.ts
var service_account = __webpack_require__(89998);
// EXTERNAL MODULE: ./src/utils/hooks/useInterval.tsx
var useInterval = __webpack_require__(35811);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Account/index.tsx
var _excluded = ["user", "account", "globalSetting", "loading", "payload", "dispatch"];
var AccountPage = function AccountPage(_ref) {
var _user$userInfo3, _user$userInfo5, _user$userInfo6, _user$userInfo7, _user$userInfo8, _user$userInfo9, _user$userInfo10, _user$userInfo11, _user$userInfo12, _user$userInfo13, _user$userInfo14, _user$userInfo15, _user$userInfo16, _user$userInfo17, _user$userInfo18, _user$userInfo19, _user$userInfo20, _user$userInfo23, _userForm$imageUrl, _userForm$imageUrl2, _userForm$imageUrl3, _userForm$imageUrl4, _userForm$imageUrl5, _userForm$imageUrl6, _user$userInfo27, _user$userInfo28, _user$userInfo29;
var user = _ref.user,
account = _ref.account,
globalSetting = _ref.globalSetting,
loading = _ref.loading,
_ref$payload = _ref.payload,
payload = _ref$payload === void 0 ? {} : _ref$payload,
dispatch = _ref.dispatch,
props = objectWithoutProperties_default()(_ref, _excluded);
var _Form$useForm = es_form/* default */.Z.useForm(),
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
mimaForm = _Form$useForm2[0];
var _Form$useForm3 = es_form/* default */.Z.useForm(),
_Form$useForm4 = slicedToArray_default()(_Form$useForm3, 1),
phoneForm = _Form$useForm4[0];
var _Form$useForm5 = es_form/* default */.Z.useForm(),
_Form$useForm6 = slicedToArray_default()(_Form$useForm5, 1),
emailForm = _Form$useForm6[0];
var _useState = (0,_react_17_0_2_react.useState)([{
name: '账户信息',
type: 'info',
count: 0
}]),
_useState2 = slicedToArray_default()(_useState, 2),
tabs = _useState2[0],
setTabs = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)('info'),
_useState4 = slicedToArray_default()(_useState3, 2),
activeType = _useState4[0],
setActiveType = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)(false),
_useState6 = slicedToArray_default()(_useState5, 2),
openEditUserModal = _useState6[0],
setOpenEditUserModal = _useState6[1];
var _useState7 = (0,_react_17_0_2_react.useState)(false),
_useState8 = slicedToArray_default()(_useState7, 2),
openEditPassword = _useState8[0],
setOpenEditPassword = _useState8[1];
var _useState9 = (0,_react_17_0_2_react.useState)(false),
_useState10 = slicedToArray_default()(_useState9, 2),
openEditEmail = _useState10[0],
setOpenEditEmail = _useState10[1];
var _useState11 = (0,_react_17_0_2_react.useState)(false),
_useState12 = slicedToArray_default()(_useState11, 2),
openEditPhone = _useState12[0],
setOpenEditPhone = _useState12[1];
var _useState13 = (0,_react_17_0_2_react.useState)(60),
_useState14 = slicedToArray_default()(_useState13, 2),
countdown = _useState14[0],
setCountdown = _useState14[1];
var _useState15 = (0,_react_17_0_2_react.useState)(),
_useState16 = slicedToArray_default()(_useState15, 2),
countdownFlag = _useState16[0],
setCountdownFlag = _useState16[1];
var _useState17 = (0,_react_17_0_2_react.useState)(false),
_useState18 = slicedToArray_default()(_useState17, 2),
confirmLoading = _useState18[0],
setConfirmLoading = _useState18[1];
var typeStr = {
0: '待审核',
1: '审核通过',
2: '审核未通过'
};
var _useState19 = (0,_react_17_0_2_react.useState)(1),
_useState20 = slicedToArray_default()(_useState19, 2),
phoneType = _useState20[0],
setPhoneType = _useState20[1];
var _useState21 = (0,_react_17_0_2_react.useState)(1),
_useState22 = slicedToArray_default()(_useState21, 2),
emailType = _useState22[0],
setEmailType = _useState22[1];
var intervalId = (0,_react_17_0_2_react.useRef)();
// 用户信息表单
var _useState23 = (0,_react_17_0_2_react.useState)({
image: "",
imageUrl: {
show: false,
url: ''
},
lastname: "",
text_school_name: "",
student_id: ""
}),
_useState24 = slicedToArray_default()(_useState23, 2),
userForm = _useState24[0],
setUserForm = _useState24[1];
(0,_react_17_0_2_react.useEffect)(function () {
var _user$userInfo;
if (!((_user$userInfo = user.userInfo) !== null && _user$userInfo !== void 0 && _user$userInfo.login)) {
return;
}
asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var _user$userInfo2;
var res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return dispatch({
type: 'account/getBasicInfo',
payload: {
login: (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.login
}
});
case 2:
res = _context.sent;
if (!(res !== null && res !== void 0 && res.base_info_completed)) {
if (localStorage.getItem('Noviceguide') === '0') {} else {
dispatch({
type: 'shixunHomeworks/setActionTabs',
payload: {
key: '底部弹窗',
type: 3,
text: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u8BF7\u60A8\u5B8C\u5584\u4E00\u4E0B\u5E73\u53F0\u7684\u57FA\u672C\u4FE1\u606F\uFF0C\u5305\u62EC\uFF1A\u6635\u79F0\u3001\u804C\u4E1A\u3001\u5B66\u6821/\u5355\u4F4D\uFF0C \u70B9\u51FB\u4FDD\u5B58"
})
}
});
}
_umi_production_exports.history.push("/account/profile/edit");
}
case 4:
case "end":
return _context.stop();
}
}, _callee);
}))();
// console.log('--------编辑',loading['account/editAccount']);
}, [(_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.login]);
(0,_react_17_0_2_react.useEffect)(function () {
var _user$userInfo4;
phoneForm.setFieldsValue({
phone: phoneType == 1 ? (_user$userInfo4 = user.userInfo) === null || _user$userInfo4 === void 0 ? void 0 : _user$userInfo4.phone : "",
code: ""
});
}, [openEditPhone]);
(0,useInterval/* 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 delCookie = function delCookie(name) {
var exp = new Date();
exp.setTime(exp.getTime() - 1);
var cval = getCookie(name);
if (cval != null) {
document.cookie = name + '=' + cval + ';expires=' + exp.toGMTString();
}
};
var getCookie = function getCookie(key) {
var arr,
reg = RegExp('(^| )' + key + '=([^;]+)(;|$)');
if (arr = document.cookie.match(reg))
//["username=liuwei;", "", "liuwei", ";"]
return decodeURIComponent(arr[2]);else return null;
};
// 编辑字段改变事件
var strOnChange = function strOnChange(type, str, value) {
switch (type) {
case '1':
userForm["".concat(str)] = value;
setUserForm(objectSpread2_default()({}, userForm));
break;
}
};
var phoneReg = /^1\d{10}$/;
var emailReg = /^[a-zA-Z0-9]+([.\-_\\]*[a-zA-Z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/;
var password = /^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/;
var inputNewPassword = function inputNewPassword(rule, value, callback) {
if (!value) {
callback("请输入8-16位字符的新密码区分大小写");
} else if (value.indexOf(" ") > -1) {
callback('请输入8-16位密码区分大小写、不能使用空格');
} else if (value.length < 8 || value.length > 16) {
callback("请输入8-16位字符的新密码区分大小写");
} else if (!password.test(value)) {
callback("请输入8~16位字符字母、数字和特殊符号至少包含2种");
} else {
callback();
}
};
return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: Accountmodules.bg,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Accountmodules.wrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Accountmodules.leftWarp,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Accountmodules.avatar,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: "".concat(env/* default */.Z.IMG_SERVER, "/images/").concat((_user$userInfo5 = user.userInfo) === null || _user$userInfo5 === void 0 ? void 0 : _user$userInfo5.image_url),
width: 120,
height: 120,
onClick: function onClick() {
dispatch({
type: 'account/setActionTabs',
payload: {
key: 'Account-UpdateAvatar'
}
});
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
title: (_user$userInfo6 = user.userInfo) === null || _user$userInfo6 === void 0 ? void 0 : _user$userInfo6.username,
children: ((_user$userInfo7 = user.userInfo) === null || _user$userInfo7 === void 0 || (_user$userInfo7 = _user$userInfo7.username) === null || _user$userInfo7 === void 0 ? void 0 : _user$userInfo7.length) > 6 ? ((_user$userInfo8 = user.userInfo) === null || _user$userInfo8 === void 0 || (_user$userInfo8 = _user$userInfo8.username) === null || _user$userInfo8 === void 0 ? void 0 : _user$userInfo8.substr(0, 6)) + '...' : (_user$userInfo9 = user.userInfo) === null || _user$userInfo9 === void 0 ? void 0 : _user$userInfo9.username
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
size: 'middle',
type: "primary",
style: {
height: 40,
width: 178,
marginTop: 60
},
block: true,
onClick: /*#__PURE__*/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:
localStorage.setItem("loginOut", "true");
_context2.next = 3;
return (0,service_user/* LoginOut */.vR)({});
case 3:
res = _context2.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 1) {
dispatch({
type: 'user/getUserInfo',
payload: objectSpread2_default()({}, payload)
});
dispatch({
type: 'user/getNavigationInfo',
payload: objectSpread2_default()({}, payload)
});
localStorage.removeItem("loginOut");
delCookie('autologin_trustie');
delCookie('_educoder_session');
localStorage.removeItem('isfirst');
localStorage.removeItem('SystemUpdateadvtime');
localStorage.removeItem('item');
localStorage.removeItem('iscreate');
// localStorage.removeItem('CCshow')
message/* default */.ZP.success(res === null || res === void 0 ? void 0 : res.message);
_umi_production_exports.history.replace('/');
}
case 5:
case "end":
return _context2.stop();
}
}, _callee2);
})),
children: "\u9000\u51FA\u767B\u5F55"
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Accountmodules.rightWarp,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Accountmodules.tabs,
children: tabs.map(function (item, i) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "".concat(activeType == item.type ? Accountmodules.active_tab : Accountmodules.item_tab),
onClick: function onClick() {
setActiveType(item.type);
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
position: 'relative'
},
children: [item.name, /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "".concat(activeType == item.type ? Accountmodules.active_line : '')
})]
})
}, i);
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Accountmodules.userInfo,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Accountmodules.headerTop,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Accountmodules.headerTL,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: __webpack_require__(/*! @/assets/images/account/基本信息@2x.png */ 65780),
width: 14,
height: 16
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u57FA\u672C\u4FE1\u606F"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Accountmodules.headerTR,
onClick: function onClick() {
var info = user.userInfo;
setUserForm({
image: "",
imageUrl: {
show: true,
url: info === null || info === void 0 ? void 0 : info.image_url
},
lastname: info === null || info === void 0 ? void 0 : info.username,
text_school_name: info === null || info === void 0 ? void 0 : info.text_school_name,
student_id: info === null || info === void 0 ? void 0 : info.student_id
});
setOpenEditUserModal(true);
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: __webpack_require__(/*! @/assets/images/account/edit.png */ 10842),
width: 14,
height: 14
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u7F16\u8F91"
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Accountmodules.conItem,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Accountmodules.conItemL,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Accountmodules.title,
children: "\u59D3\u540D"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: (_user$userInfo10 = user.userInfo) === null || _user$userInfo10 === void 0 ? void 0 : _user$userInfo10.username
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Accountmodules.conItem,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Accountmodules.conItemL,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Accountmodules.title,
children: "\u8EAB\u4EFD"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [(_user$userInfo11 = user.userInfo) === null || _user$userInfo11 === void 0 ? void 0 : _user$userInfo11.user_identity, ((_user$userInfo12 = user.userInfo) === null || _user$userInfo12 === void 0 ? void 0 : _user$userInfo12.audit_status) != 1 && ((_user$userInfo13 = user.userInfo) === null || _user$userInfo13 === void 0 ? void 0 : _user$userInfo13.identity) != 'unselect' && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\uFF08", typeStr[(_user$userInfo14 = user.userInfo) === null || _user$userInfo14 === void 0 ? void 0 : _user$userInfo14.audit_status], "\uFF09"]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
color: '#FA6400',
marginLeft: 20
},
children: [((_user$userInfo15 = user.userInfo) === null || _user$userInfo15 === void 0 ? void 0 : _user$userInfo15.audit_status) == 0 && '身份审核中,审核通过前可以浏览平台中的内容', ((_user$userInfo16 = user.userInfo) === null || _user$userInfo16 === void 0 ? void 0 : _user$userInfo16.audit_status) == 2 && "".concat(typeStr[(_user$userInfo17 = user.userInfo) === null || _user$userInfo17 === void 0 ? void 0 : _user$userInfo17.audit_status], "\u8EAB\u4EFD\u672A\u901A\u8FC7\u5BA1\u6838")]
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Accountmodules.conItem,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Accountmodules.conItemL,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Accountmodules.title,
children: "\u5B66\u6821"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: (_user$userInfo18 = user.userInfo) === null || _user$userInfo18 === void 0 ? void 0 : _user$userInfo18.text_school_name
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Accountmodules.conItem,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Accountmodules.conItemL,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Accountmodules.title,
children: "\u5B66\u53F7/\u804C\u5DE5\u53F7"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: (_user$userInfo19 = user.userInfo) === null || _user$userInfo19 === void 0 ? void 0 : _user$userInfo19.student_id
})]
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Accountmodules.safeConfig,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Accountmodules.headerTL,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: __webpack_require__(/*! @/assets/images/account/安全设置@2x.png */ 54430),
width: 14,
height: 16
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u5B89\u5168\u8BBE\u7F6E"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Accountmodules.conItem,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Accountmodules.conItemL,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Accountmodules.title,
children: "\u624B\u673A\u53F7"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: (_user$userInfo20 = user.userInfo) === null || _user$userInfo20 === void 0 ? void 0 : _user$userInfo20.phone
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Accountmodules.conItemR,
onClick: function onClick() {
var _user$userInfo21, _user$userInfo22;
setOpenEditPhone(true);
var show = (_user$userInfo21 = user.userInfo) !== null && _user$userInfo21 !== void 0 && _user$userInfo21.phone ? 1 : 2;
setPhoneType(show);
phoneForm.setFieldsValue({
phone: phoneType == 1 ? (_user$userInfo22 = user.userInfo) === null || _user$userInfo22 === void 0 ? void 0 : _user$userInfo22.phone : "",
code: ""
});
setCountdownFlag(false);
},
children: "\u66F4\u6362"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Accountmodules.conItem,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Accountmodules.conItemL,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Accountmodules.title,
children: "\u7535\u5B50\u90AE\u7BB1"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: ((_user$userInfo23 = user.userInfo) === null || _user$userInfo23 === void 0 ? void 0 : _user$userInfo23.email) || '未绑定'
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Accountmodules.conItemR,
onClick: function onClick() {
var _user$userInfo24, _user$userInfo25;
setOpenEditEmail(true);
var show = (_user$userInfo24 = user.userInfo) !== null && _user$userInfo24 !== void 0 && _user$userInfo24.email ? 1 : 2;
setEmailType(show);
emailForm.setFieldsValue({
email: emailType == 1 ? (_user$userInfo25 = user.userInfo) === null || _user$userInfo25 === void 0 ? void 0 : _user$userInfo25.email : "",
code: ""
});
setCountdownFlag(false);
},
children: "\u66F4\u6362"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Accountmodules.conItem,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Accountmodules.conItemL,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Accountmodules.title,
children: "\u5BC6\u7801"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "*********"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Accountmodules.conItemR,
onClick: function onClick() {
setOpenEditPassword(true);
},
children: "\u4FEE\u6539\u5BC6\u7801"
})]
})]
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
centered: true,
maskClosable: false,
keyboard: false,
destroyOnClose: true,
open: openEditUserModal,
title: "\u7F16\u8F91\u57FA\u672C\u4FE1\u606F",
width: 610,
confirmLoading: confirmLoading,
onCancel: function onCancel() {
return setOpenEditUserModal(false);
},
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
var _user$userInfo26;
var params, res;
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
setConfirmLoading(true);
params = {
user_id: user === null || user === void 0 || (_user$userInfo26 = user.userInfo) === null || _user$userInfo26 === void 0 ? void 0 : _user$userInfo26.user_id,
image: userForm === null || userForm === void 0 ? void 0 : userForm.image,
user: {
lastname: userForm === null || userForm === void 0 ? void 0 : userForm.lastname,
user_extension_attributes: {
text_school_name: userForm === null || userForm === void 0 ? void 0 : userForm.text_school_name,
student_id: userForm === null || userForm === void 0 ? void 0 : userForm.student_id
}
}
};
_context3.next = 4;
return (0,service_user/* editUserInfo */.ic)(params);
case 4:
res = _context3.sent;
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
message/* default */.ZP.success("更新成功");
setOpenEditUserModal(false);
dispatch({
type: 'user/getUserInfo',
payload: objectSpread2_default()({}, payload)
});
}
setConfirmLoading(false);
case 7:
case "end":
return _context3.stop();
}
}, _callee3);
})),
okText: "\u4FDD\u5B58",
cancelText: "\u53D6\u6D88",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Accountmodules.user_modal,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Accountmodules.titleName,
children: ["\u5934\u50CF ", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#FA6400'
},
children: "\uFF08\u683C\u5F0F\u4E3Ajpg\u3001jpeg\u3001png\uFF0C\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7100KB\uFF09"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(upload/* default */.Z, {
action: "",
accept: ".png,.jpeg,.jpg",
withCredentials: true,
showUploadList: false,
customRequest: function customRequest(e) {
if (!(e !== null && e !== void 0 && e.file)) {
return;
}
var reader = new FileReader();
reader.readAsDataURL(e === null || e === void 0 ? void 0 : e.file);
reader.onload = function (val) {
var _val$target;
userForm.image = val === null || val === void 0 || (_val$target = val.target) === null || _val$target === void 0 ? void 0 : _val$target.result;
userForm.imageUrl = {
show: false,
url: URL.createObjectURL(e === null || e === void 0 ? void 0 : e.file)
};
setUserForm(objectSpread2_default()({}, userForm));
};
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "".concat(Accountmodules.users_style, " ").concat(userForm !== null && userForm !== void 0 && (_userForm$imageUrl = userForm.imageUrl) !== null && _userForm$imageUrl !== void 0 && _userForm$imageUrl.url ? Accountmodules.users_style2 : ''),
children: [(userForm === null || userForm === void 0 || (_userForm$imageUrl2 = userForm.imageUrl) === null || _userForm$imageUrl2 === void 0 ? void 0 : _userForm$imageUrl2.url) && /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
className: Accountmodules.active_img,
src: userForm !== null && userForm !== void 0 && (_userForm$imageUrl3 = userForm.imageUrl) !== null && _userForm$imageUrl3 !== void 0 && _userForm$imageUrl3.show ? "".concat(env/* default */.Z.IMG_SERVER, "/images/").concat(userForm === null || userForm === void 0 || (_userForm$imageUrl4 = userForm.imageUrl) === null || _userForm$imageUrl4 === void 0 ? void 0 : _userForm$imageUrl4.url) : userForm === null || userForm === void 0 || (_userForm$imageUrl5 = userForm.imageUrl) === null || _userForm$imageUrl5 === void 0 ? void 0 : _userForm$imageUrl5.url
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Accountmodules.sc_warp,
children: userForm !== null && userForm !== void 0 && (_userForm$imageUrl6 = userForm.imageUrl) !== null && _userForm$imageUrl6 !== void 0 && _userForm$imageUrl6.url ? /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: __webpack_require__(/*! @/assets/images/account/上传2.png */ 36655),
width: 46,
height: 30
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Accountmodules.wenan,
children: "\u91CD\u65B0\u4E0A\u4F20"
})]
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: __webpack_require__(/*! @/assets/images/account/上传1.png */ 25828),
width: 46,
height: 30
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Accountmodules.wenan,
children: "\u4E0A\u4F20\u5934\u50CF"
})]
})
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Accountmodules.titleName,
children: "\u59D3\u540D"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
disabled: ((_user$userInfo27 = user.userInfo) === null || _user$userInfo27 === void 0 ? void 0 : _user$userInfo27.audit_status) == 1 ? true : false,
className: Accountmodules.input1,
placeholder: "\u8BF7\u8F93\u5165\u59D3\u540D",
suffix: "",
value: userForm === null || userForm === void 0 ? void 0 : userForm.lastname,
onChange: function onChange(e) {
strOnChange('1', 'lastname', e.target.value);
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Accountmodules.titleName,
children: "\u5B66\u6821"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
disabled: ((_user$userInfo28 = user.userInfo) === null || _user$userInfo28 === void 0 ? void 0 : _user$userInfo28.audit_status) == 1 ? true : false,
className: Accountmodules.input1,
placeholder: "\u8BF7\u8F93\u5165\u5B66\u6821",
suffix: "",
value: userForm === null || userForm === void 0 ? void 0 : userForm.text_school_name,
onChange: function onChange(e) {
strOnChange('1', 'text_school_name', e.target.value);
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Accountmodules.titleName,
children: "\u5B66\u53F7/\u804C\u5DE5\u53F7"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
disabled: ((_user$userInfo29 = user.userInfo) === null || _user$userInfo29 === void 0 ? void 0 : _user$userInfo29.audit_status) == 1 ? true : false,
className: Accountmodules.input1,
placeholder: "\u8BF7\u8F93\u5165\u5B66\u53F7/\u804C\u5DE5\u53F7",
suffix: "",
value: userForm === null || userForm === void 0 ? void 0 : userForm.student_id,
onChange: function onChange(e) {
strOnChange('1', 'student_id', e.target.value);
}
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
centered: true,
maskClosable: false,
className: Accountmodules.modalCss,
keyboard: false,
destroyOnClose: true,
open: openEditPhone,
title: phoneType == 1 ? "更换绑定手机号" : "绑定手机号",
width: 610,
confirmLoading: confirmLoading,
onCancel: function onCancel() {
setOpenEditPhone(false);
},
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4() {
var _user$userInfo30;
var formValue, params, res, _res;
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
_context4.next = 2;
return phoneForm.validateFields();
case 2:
formValue = phoneForm.getFieldsValue();
params = objectSpread2_default()({
user_id: user === null || user === void 0 || (_user$userInfo30 = user.userInfo) === null || _user$userInfo30 === void 0 ? void 0 : _user$userInfo30.user_id
}, formValue);
if (!(phoneType == 1)) {
_context4.next = 11;
break;
}
_context4.next = 7;
return (0,service_account/* provingPhone */.zj)(params);
case 7:
res = _context4.sent;
if ((res === null || res === void 0 ? void 0 : res.status) == 1) {
setPhoneType(2);
phoneForm.setFieldsValue({
phone: "",
code: ""
});
setCountdownFlag(false);
} else {
message/* default */.ZP.error(res === null || res === void 0 ? void 0 : res.message);
}
_context4.next = 16;
break;
case 11:
if (!(phoneType == 2)) {
_context4.next = 16;
break;
}
_context4.next = 14;
return (0,service_account/* userPhoneBind */.iA)(params);
case 14:
_res = _context4.sent;
if ((_res === null || _res === void 0 ? void 0 : _res.status) == 0) {
message/* default */.ZP.success("更新成功");
setOpenEditPhone(false);
dispatch({
type: 'user/getUserInfo',
payload: objectSpread2_default()({}, payload)
});
}
case 16:
case "end":
return _context4.stop();
}
}, _callee4);
})),
okText: phoneType == 1 ? '下一步' : '确认更换',
cancelText: "\u53D6\u6D88",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
layout: "vertical",
form: phoneForm,
className: Accountmodules.formWrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: phoneType == 1 ? '手机号' : '新手机号',
name: "phone",
rules: [{
required: true,
message: "\u8BF7\u8F93\u5165\u8981".concat(phoneType == 1 ? '更换' : '绑定', "\u7684\u624B\u673A\u53F7\u7801")
}, {
validator: function validator(rule, value, callback) {
if (phoneReg.test(value)) {
callback();
}
callback('请输入有效的11位手机号码');
}
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
disabled: phoneType == 1 ? true : false,
placeholder: "\u8BF7\u8F93\u5165\u8981".concat(phoneType == 1 ? '更换' : '绑定', "\u7684\u624B\u673A\u53F7\u7801"),
className: Accountmodules.input1
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z.Item, {
label: "\u624B\u673A\u9A8C\u8BC1\u7801",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
noStyle: true,
name: "code",
rules: [{
required: true,
message: '请输入手机获取的验证码'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
placeholder: "\u8BF7\u8F93\u5165\u624B\u673A\u83B7\u53D6\u7684\u9A8C\u8BC1\u7801",
className: Accountmodules.input1,
style: {
width: 451
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Accountmodules.yzm,
style: {
cursor: countdownFlag ? 'not-allowed' : 'pointer'
},
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5() {
var _formValue$phone;
var formValue, params, res;
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
while (1) switch (_context5.prev = _context5.next) {
case 0:
if (!countdownFlag) {
_context5.next = 2;
break;
}
return _context5.abrupt("return");
case 2:
formValue = phoneForm.getFieldsValue();
if (!(((_formValue$phone = formValue.phone) === null || _formValue$phone === void 0 ? void 0 : _formValue$phone.length) == 0)) {
_context5.next = 6;
break;
}
message/* default */.ZP.error('请填写手机号获取验证码');
return _context5.abrupt("return");
case 6:
params = {
login: formValue.phone,
type: phoneType == 1 ? 10 : 3
};
_context5.next = 9;
return (0,service_user/* getValidateCode */.o1)(params);
case 9:
res = _context5.sent;
if ((res === null || res === void 0 ? void 0 : res.status) == 1) {
message/* default */.ZP.info('验证码已发送,请注意查收');
setCountdownFlag(true);
}
case 11:
case "end":
return _context5.stop();
}
}, _callee5);
})),
children: countdownFlag ? "\u91CD\u65B0\u53D1\u9001".concat(countdown, "s") : '获取验证码'
})]
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
centered: true,
maskClosable: false,
keyboard: false,
destroyOnClose: true,
open: openEditEmail,
title: emailType == 1 ? "更换绑定邮箱" : "绑定邮箱",
className: Accountmodules.modalCss,
width: 610,
confirmLoading: confirmLoading,
onCancel: function onCancel() {
return setOpenEditEmail(false);
},
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6() {
return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
while (1) switch (_context6.prev = _context6.next) {
case 0:
case "end":
return _context6.stop();
}
}, _callee6);
})),
okText: emailType == 1 ? '下一步' : '确认更换',
cancelText: "\u53D6\u6D88",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
layout: "vertical",
form: emailForm,
className: Accountmodules.formWrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: emailType == 1 ? '邮箱' : '新邮箱',
name: "email",
rules: [{
required: true,
message: "\u8BF7\u8F93\u5165\u8981".concat(emailType == 1 ? '更换' : '绑定', "\u7684\u90AE\u7BB1")
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
disabled: emailType == 1 ? true : false,
placeholder: "\u8BF7\u8F93\u5165\u8981".concat(emailType == 1 ? '更换' : '绑定', "\u7684\u90AE\u7BB1"),
className: Accountmodules.input1
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z.Item, {
label: "\u9A8C\u8BC1\u7801",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
noStyle: true,
name: "code",
rules: [{
required: true,
message: '请输入邮箱收到的验证码'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
placeholder: "\u8BF7\u8F93\u5165\u90AE\u7BB1\u6536\u5230\u7684\u9A8C\u8BC1\u7801",
className: Accountmodules.input1,
style: {
width: 451
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Accountmodules.yzm,
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee7() {
return regeneratorRuntime_default()().wrap(function _callee7$(_context7) {
while (1) switch (_context7.prev = _context7.next) {
case 0:
case "end":
return _context7.stop();
}
}, _callee7);
})),
children: countdownFlag ? "\u91CD\u65B0\u53D1\u9001".concat(countdown, "s") : '获取验证码'
})]
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
centered: true,
maskClosable: false,
keyboard: false,
destroyOnClose: true,
open: openEditPassword,
className: Accountmodules.modalCss,
title: "\u4FEE\u6539\u5BC6\u7801",
width: 610,
confirmLoading: confirmLoading,
onCancel: function onCancel() {
return setOpenEditPassword(false);
},
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee8() {
var _user$userInfo31;
var formValue, old_password, password, password2, params, res;
return regeneratorRuntime_default()().wrap(function _callee8$(_context8) {
while (1) switch (_context8.prev = _context8.next) {
case 0:
_context8.next = 2;
return mimaForm.validateFields();
case 2:
formValue = mimaForm.getFieldsValue();
old_password = formValue.old_password, password = formValue.password, password2 = formValue.password2;
if (!(old_password === password)) {
_context8.next = 7;
break;
}
message/* default */.ZP.info("新密码不能与旧密码相同!");
return _context8.abrupt("return");
case 7:
if (!(password !== password2)) {
_context8.next = 10;
break;
}
message/* default */.ZP.info("两次输入的新密码必须一致!");
return _context8.abrupt("return");
case 10:
setConfirmLoading(true);
params = {
user_id: user === null || user === void 0 || (_user$userInfo31 = user.userInfo) === null || _user$userInfo31 === void 0 ? void 0 : _user$userInfo31.user_id,
old_password: old_password,
password: password
};
_context8.next = 14;
return (0,service_account/* updatePasswordNew */.Gm)(params);
case 14:
res = _context8.sent;
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
message/* default */.ZP.info('密码更新成功!');
setOpenEditPassword(false);
}
setConfirmLoading(false);
case 17:
case "end":
return _context8.stop();
}
}, _callee8);
})),
okText: "\u786E\u8BA4\u4FEE\u6539",
cancelText: "\u53D6\u6D88",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
layout: "vertical",
form: mimaForm,
className: Accountmodules.formWrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u65E7\u5BC6\u7801",
name: "old_password",
rules: [{
required: true,
message: '请设置816位密码区分大小写'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
type: "password",
placeholder: "\u8BF7\u8BBE\u7F6E8\uFF5E16\u4F4D\u5BC6\u7801\uFF0C\u533A\u5206\u5927\u5C0F\u5199",
className: Accountmodules.input1
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u65B0\u5BC6\u7801",
name: "password",
rules: [{}, {
validator: inputNewPassword
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
type: "password",
placeholder: "\u8BF7\u8F93\u51658\uFF5E16\u4F4D\u7684\u65B0\u5BC6\u7801\uFF0C\u533A\u5206\u5927\u5C0F\u5199",
className: Accountmodules.input1
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u786E\u8BA4\u65B0\u5BC6\u7801",
name: "password2",
rules: [{
required: true,
message: '请再次输入新密码'
}, {
validator: function validator(rule, value, callback) {
if (value != mimaForm.getFieldsValue().password) {
callback("两次输入的新密码必须一致!");
} else {
callback();
}
}
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
type: "password",
placeholder: "\u8BF7\u518D\u6B21\u8F93\u5165\u65B0\u5BC6\u7801",
className: Accountmodules.input1
})
})]
})
})]
});
};
/* harmony default export */ var Account = ((0,_umi_production_exports.connect)(function (_ref10) {
var user = _ref10.user,
account = _ref10.account,
loading = _ref10.loading,
globalSetting = _ref10.globalSetting;
return {
user: user,
account: account,
globalSetting: globalSetting,
loading: loading.models.index
};
})(AccountPage));
/***/ }),
/***/ 35811:
/*!*****************************************!*\
!*** ./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]);
}
/***/ }),
/***/ 444:
/*!*************************************************************************!*\
!*** ./node_modules/_antd@5.12.8@antd/es/_util/hooks/useForceUpdate.js ***!
\*************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ Z: function() { return /* binding */ useForceUpdate; }
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 59301);
function useForceUpdate() {
const [, forceUpdate] = react__WEBPACK_IMPORTED_MODULE_0__.useReducer(x => x + 1, 0);
return forceUpdate;
}
/***/ }),
/***/ 81726:
/*!**********************************************************************!*\
!*** ./node_modules/_antd@5.12.8@antd/es/input/index.js + 5 modules ***!
\**********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ input; }
});
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
var _classnames_2_5_1_classnames = __webpack_require__(92310);
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
// EXTERNAL MODULE: ./node_modules/_antd@5.12.8@antd/es/config-provider/context.js
var context = __webpack_require__(70330);
// EXTERNAL MODULE: ./node_modules/_antd@5.12.8@antd/es/form/context.js
var form_context = __webpack_require__(48045);
// EXTERNAL MODULE: ./node_modules/_antd@5.12.8@antd/es/input/style/index.js
var style = __webpack_require__(61450);
;// CONCATENATED MODULE: ./node_modules/_antd@5.12.8@antd/es/input/Group.js
"use client";
const Group = props => {
const {
getPrefixCls,
direction
} = (0,_react_17_0_2_react.useContext)(context/* ConfigContext */.E_);
const {
prefixCls: customizePrefixCls,
className
} = props;
const prefixCls = getPrefixCls('input-group', customizePrefixCls);
const inputPrefixCls = getPrefixCls('input');
const [wrapCSSVar, hashId] = (0,style/* default */.ZP)(inputPrefixCls);
const cls = _classnames_2_5_1_classnames_default()(prefixCls, {
[`${prefixCls}-lg`]: props.size === 'large',
[`${prefixCls}-sm`]: props.size === 'small',
[`${prefixCls}-compact`]: props.compact,
[`${prefixCls}-rtl`]: direction === 'rtl'
}, hashId, className);
const formItemContext = (0,_react_17_0_2_react.useContext)(form_context/* FormItemInputContext */.aM);
const groupFormItemContext = (0,_react_17_0_2_react.useMemo)(() => Object.assign(Object.assign({}, formItemContext), {
isFormItemInput: false
}), [formItemContext]);
if (false) {}
return wrapCSSVar( /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: cls,
style: props.style,
onMouseEnter: props.onMouseEnter,
onMouseLeave: props.onMouseLeave,
onFocus: props.onFocus,
onBlur: props.onBlur
}, /*#__PURE__*/_react_17_0_2_react.createElement(form_context/* FormItemInputContext */.aM.Provider, {
value: groupFormItemContext
}, props.children)));
};
/* harmony default export */ var input_Group = (Group);
// EXTERNAL MODULE: ./node_modules/_antd@5.12.8@antd/es/input/Input.js + 1 modules
var Input = __webpack_require__(77590);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.8@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(38850);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.3.1@@ant-design/icons-svg/es/asn/EyeInvisibleOutlined.js
// This icon file is generated automatically.
var EyeInvisibleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" } }, { "tag": "path", "attrs": { "d": "M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" } }] }, "name": "eye-invisible", "theme": "outlined" };
/* harmony default export */ var asn_EyeInvisibleOutlined = (EyeInvisibleOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(91851);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/EyeInvisibleOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var EyeInvisibleOutlined_EyeInvisibleOutlined = function EyeInvisibleOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_EyeInvisibleOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_EyeInvisibleOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined));
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules
var EyeOutlined = __webpack_require__(15997);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.1@rc-util/es/omit.js
var omit = __webpack_require__(99468);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.1@rc-util/es/ref.js
var es_ref = __webpack_require__(88831);
// EXTERNAL MODULE: ./node_modules/_antd@5.12.8@antd/es/input/hooks/useRemovePasswordTimeout.js
var useRemovePasswordTimeout = __webpack_require__(98393);
;// CONCATENATED MODULE: ./node_modules/_antd@5.12.8@antd/es/input/Password.js
"use client";
var __rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
const defaultIconRender = visible => visible ? /*#__PURE__*/_react_17_0_2_react.createElement(EyeOutlined/* default */.Z, null) : /*#__PURE__*/_react_17_0_2_react.createElement(icons_EyeInvisibleOutlined, null);
const ActionMap = {
click: 'onClick',
hover: 'onMouseOver'
};
const Password = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
const {
visibilityToggle = true
} = props;
const visibilityControlled = typeof visibilityToggle === 'object' && visibilityToggle.visible !== undefined;
const [visible, setVisible] = (0,_react_17_0_2_react.useState)(() => visibilityControlled ? visibilityToggle.visible : false);
const inputRef = (0,_react_17_0_2_react.useRef)(null);
_react_17_0_2_react.useEffect(() => {
if (visibilityControlled) {
setVisible(visibilityToggle.visible);
}
}, [visibilityControlled, visibilityToggle]);
// Remove Password value
const removePasswordTimeout = (0,useRemovePasswordTimeout/* default */.Z)(inputRef);
const onVisibleChange = () => {
const {
disabled
} = props;
if (disabled) {
return;
}
if (visible) {
removePasswordTimeout();
}
setVisible(prevState => {
var _a;
const newState = !prevState;
if (typeof visibilityToggle === 'object') {
(_a = visibilityToggle.onVisibleChange) === null || _a === void 0 ? void 0 : _a.call(visibilityToggle, newState);
}
return newState;
});
};
const getIcon = prefixCls => {
const {
action = 'click',
iconRender = defaultIconRender
} = props;
const iconTrigger = ActionMap[action] || '';
const icon = iconRender(visible);
const iconProps = {
[iconTrigger]: onVisibleChange,
className: `${prefixCls}-icon`,
key: 'passwordIcon',
onMouseDown: e => {
// Prevent focused state lost
// https://github.com/ant-design/ant-design/issues/15173
e.preventDefault();
},
onMouseUp: e => {
// Prevent caret position change
// https://github.com/ant-design/ant-design/issues/23524
e.preventDefault();
}
};
return /*#__PURE__*/_react_17_0_2_react.cloneElement( /*#__PURE__*/_react_17_0_2_react.isValidElement(icon) ? icon : /*#__PURE__*/_react_17_0_2_react.createElement("span", null, icon), iconProps);
};
const {
className,
prefixCls: customizePrefixCls,
inputPrefixCls: customizeInputPrefixCls,
size
} = props,
restProps = __rest(props, ["className", "prefixCls", "inputPrefixCls", "size"]);
const {
getPrefixCls
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
const prefixCls = getPrefixCls('input-password', customizePrefixCls);
const suffixIcon = visibilityToggle && getIcon(prefixCls);
const inputClassName = _classnames_2_5_1_classnames_default()(prefixCls, className, {
[`${prefixCls}-${size}`]: !!size
});
const omittedProps = Object.assign(Object.assign({}, (0,omit/* default */.Z)(restProps, ['suffix', 'iconRender', 'visibilityToggle'])), {
type: visible ? 'text' : 'password',
className: inputClassName,
prefixCls: inputPrefixCls,
suffix: suffixIcon
});
if (size) {
omittedProps.size = size;
}
return /*#__PURE__*/_react_17_0_2_react.createElement(Input/* default */.Z, Object.assign({
ref: (0,es_ref/* composeRef */.sQ)(ref, inputRef)
}, omittedProps));
});
if (false) {}
/* harmony default export */ var input_Password = (Password);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/SearchOutlined.js + 1 modules
var SearchOutlined = __webpack_require__(46820);
// EXTERNAL MODULE: ./node_modules/_antd@5.12.8@antd/es/_util/reactNode.js
var reactNode = __webpack_require__(17941);
// EXTERNAL MODULE: ./node_modules/_antd@5.12.8@antd/es/button/index.js + 8 modules
var es_button = __webpack_require__(11103);
// EXTERNAL MODULE: ./node_modules/_antd@5.12.8@antd/es/config-provider/hooks/useSize.js
var useSize = __webpack_require__(10261);
// EXTERNAL MODULE: ./node_modules/_antd@5.12.8@antd/es/space/Compact.js
var Compact = __webpack_require__(13821);
;// CONCATENATED MODULE: ./node_modules/_antd@5.12.8@antd/es/input/Search.js
"use client";
var Search_rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
const Search = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
const {
prefixCls: customizePrefixCls,
inputPrefixCls: customizeInputPrefixCls,
className,
size: customizeSize,
suffix,
enterButton = false,
addonAfter,
loading,
disabled,
onSearch: customOnSearch,
onChange: customOnChange,
onCompositionStart,
onCompositionEnd
} = props,
restProps = Search_rest(props, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd"]);
const {
getPrefixCls,
direction
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const composedRef = _react_17_0_2_react.useRef(false);
const prefixCls = getPrefixCls('input-search', customizePrefixCls);
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
const {
compactSize
} = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction);
const size = (0,useSize/* default */.Z)(ctx => {
var _a;
return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx;
});
const inputRef = _react_17_0_2_react.useRef(null);
const onChange = e => {
if (e && e.target && e.type === 'click' && customOnSearch) {
customOnSearch(e.target.value, e, {
source: 'clear'
});
}
if (customOnChange) {
customOnChange(e);
}
};
const onMouseDown = e => {
var _a;
if (document.activeElement === ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input)) {
e.preventDefault();
}
};
const onSearch = e => {
var _a, _b;
if (customOnSearch) {
customOnSearch((_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input) === null || _b === void 0 ? void 0 : _b.value, e, {
source: 'input'
});
}
};
const onPressEnter = e => {
if (composedRef.current || loading) {
return;
}
onSearch(e);
};
const searchIcon = typeof enterButton === 'boolean' ? /*#__PURE__*/_react_17_0_2_react.createElement(SearchOutlined/* default */.Z, null) : null;
const btnClassName = `${prefixCls}-button`;
let button;
const enterButtonAsElement = enterButton || {};
const isAntdButton = enterButtonAsElement.type && enterButtonAsElement.type.__ANT_BUTTON === true;
if (isAntdButton || enterButtonAsElement.type === 'button') {
button = (0,reactNode/* cloneElement */.Tm)(enterButtonAsElement, Object.assign({
onMouseDown,
onClick: e => {
var _a, _b;
(_b = (_a = enterButtonAsElement === null || enterButtonAsElement === void 0 ? void 0 : enterButtonAsElement.props) === null || _a === void 0 ? void 0 : _a.onClick) === null || _b === void 0 ? void 0 : _b.call(_a, e);
onSearch(e);
},
key: 'enterButton'
}, isAntdButton ? {
className: btnClassName,
size
} : {}));
} else {
button = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, {
className: btnClassName,
type: enterButton ? 'primary' : undefined,
size: size,
disabled: disabled,
key: "enterButton",
onMouseDown: onMouseDown,
onClick: onSearch,
loading: loading,
icon: searchIcon
}, enterButton);
}
if (addonAfter) {
button = [button, (0,reactNode/* cloneElement */.Tm)(addonAfter, {
key: 'addonAfter'
})];
}
const cls = _classnames_2_5_1_classnames_default()(prefixCls, {
[`${prefixCls}-rtl`]: direction === 'rtl',
[`${prefixCls}-${size}`]: !!size,
[`${prefixCls}-with-button`]: !!enterButton
}, className);
const handleOnCompositionStart = e => {
composedRef.current = true;
onCompositionStart === null || onCompositionStart === void 0 ? void 0 : onCompositionStart(e);
};
const handleOnCompositionEnd = e => {
composedRef.current = false;
onCompositionEnd === null || onCompositionEnd === void 0 ? void 0 : onCompositionEnd(e);
};
return /*#__PURE__*/_react_17_0_2_react.createElement(Input/* default */.Z, Object.assign({
ref: (0,es_ref/* composeRef */.sQ)(inputRef, ref),
onPressEnter: onPressEnter
}, restProps, {
size: size,
onCompositionStart: handleOnCompositionStart,
onCompositionEnd: handleOnCompositionEnd,
prefixCls: inputPrefixCls,
addonAfter: button,
suffix: suffix,
onChange: onChange,
className: cls,
disabled: disabled
}));
});
if (false) {}
/* harmony default export */ var input_Search = (Search);
// EXTERNAL MODULE: ./node_modules/_antd@5.12.8@antd/es/input/TextArea.js
var TextArea = __webpack_require__(43899);
;// CONCATENATED MODULE: ./node_modules/_antd@5.12.8@antd/es/input/index.js
"use client";
const input_Input = Input/* default */.Z;
if (false) {}
input_Input.Group = input_Group;
input_Input.Search = input_Search;
input_Input.TextArea = TextArea/* default */.Z;
input_Input.Password = input_Password;
/* harmony default export */ var input = (input_Input);
/***/ }),
/***/ 26327:
/*!********************************************************************!*\
!*** ./node_modules/_antd@5.12.8@antd/es/style/motion/collapse.js ***!
\********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__) {
const genCollapseMotion = token => ({
[token.componentCls]: {
// For common/openAnimation
[`${token.antCls}-motion-collapse-legacy`]: {
overflow: 'hidden',
'&-active': {
transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},
opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`
}
},
[`${token.antCls}-motion-collapse`]: {
overflow: 'hidden',
transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},
opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`
}
}
});
/* harmony default export */ __webpack_exports__.Z = (genCollapseMotion);
/***/ }),
/***/ 10842:
/*!********************************************!*\
!*** ./src/assets/images/account/edit.png ***!
\********************************************/
/***/ (function(module) {
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAA5JJREFUSEu91W1oW2UUB/D//7k37brq0AyLIhuCTEZvOh11cys6u6nYNrdiZUwnfhHfvuRmm2wf1GEtTkFROm+KMNRP4gu6gTM3ZWVuZUw7QitlaRJQ5tChFDYXFBe7trn3SKIp2ZyQ3AzPx/tyfhye55zDUGT4UVEe4TPk+mYnO7DxQvn3VZZzjwtEJdj8ZOXz8nsaljMvIrpPDwwEVmQGu04V/2+NHl5O7+K4AC0kUsJFvVn7gTOVuSvBEwRna4X1gDxxcrD3l/ZXJhbPnJ/+GoLVC9UAZ6nYl7bNsX9VqFNblor1/FwrWP7eiDifCOQxAn8qaj0e3D0iuBvkrCKfSdvhD4vfLlRYD9gajb8AD68DFFK2ZGK9+9fvGGv6vXD+AATdJYh8Y3Mw/GLdYMhywh7kSwgUFV/N2ObL5arb900EZtLThyG4l4CrFO+qC2yLjKx0OZ+EyBKQBzN2uI+klMG2qNPuihyHoAmK0axtxnyDd2wfvW6ukE8CchuADJZes66yDdq3H7ppplAYB+Rmku9lYuazvs+wv1/U/lwiISJdJHNKw5qpvebpcmWd/aOLzuXyx0RkLcjjTaEb7/v2uTvnfYOGFX9TBLtIFjRqXSm7+0jl7TYs52MR2Qryx0aotZOxnnO+28LYlnhcXO+jUoJ/zqUSC0WdlzxP9hC4oAKqY2owPGXsOBRsKHiaCrX8VtMZXnYJPsja5tOXYvE+z+OB4jMN6pGpoZ4vShPIcr6HyAqd3FATaFjOKRG5leSYBG/ZmB0IzS00vhW/HeA3ItKsFHenbfO18jtf4Gpr+IZZcc8Wk+iKbSnbTC8M7J0jLe7s3LgIlhP8NDNkbq2s3BdoRIY3CdwjxdG1eal57cAAvWLSbmu48Qy8oyLSQXBiSSC44cRgx0zdYCga3+Z52AswmR0y13X2j+q5XH59AfI8BA+DnA7osqY4yC+fx74qbI0678OTp0prBzgNcFNpwpSCF3WNnal3wskrDX9foGE5yVIjVwaZJsXRRfvsZKxn8r82Tc2giDAUTfwhgE5gFKTTEIAz+Xb4p2rWWc3gqp0jzTJXuJ8N+leptx7MV4PUfWlqRWoCDct5V4DGehAKpjND5u6qJo0RiecFWFwPCOK7bKx3ZVVgyErsAqWhHtAT/pqNhfdVBdYDVd2HpPaQpqQ0K692uK73uQDLLtkWVxu5Ur6/wYjzgxTX1/8RlC1/ATvVapljoGr/AAAAAElFTkSuQmCC";
/***/ }),
/***/ 25828:
/*!*******************************************!*\
!*** ./src/assets/images/account/上传1.png ***!
\*******************************************/
/***/ (function(module) {
module.exports = "data:image/png;base64,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";
/***/ }),
/***/ 36655:
/*!*******************************************!*\
!*** ./src/assets/images/account/上传2.png ***!
\*******************************************/
/***/ (function(module) {
module.exports = "data:image/png;base64,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";
/***/ }),
/***/ 65780:
/*!***********************************************!*\
!*** ./src/assets/images/account/基本信息@2x.png ***!
\***********************************************/
/***/ (function(module) {
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAgCAYAAAABtRhCAAAAAXNSR0IArs4c6QAAAfdJREFUSEvtl7FrFEEUxt8bZ7c4CAg2TmJha2eRysaA/4OioOXcwF3rWoVjkiYkxaFwx960Iqj/g4WNlY2N2ikY8SyUU6x2l3nhjlu5xMvN27DZymnnzfvN9zHfMIO9Xi8ej8c7RHQfANah3vENAJ4qpbattdm0Nbbb7T0ielQv53g3RDwYjUbJDKi1/noOyk7u/7tz7nIJpPNUV/ZWSl2w1vqpwv/AWhxHRA8A7xuztNx1FeChEOKh9/717LQhbgHAARFtVLGABUTEL61W63q/3/+52LzT6VwqiuJdBehHFlAIcTdN0+fLlGit7wHAs5BKpVRkrS1YQCmlGg6H42VNjTEb3vtDBpCfw1XAbre7nmXZ9LZaOSoFvyZL+QrrODRnyeHfWMRxjHme3ySifQC4ErJzcZ51aKo0DNU2DQzm8JMQYltK+QYR/+R5fouIrs1vmg9RFL0qimLNe38DAHaJ6OppCoM5RMTPUsrNwWDwI2TTdH5+67w9DRqMhRDiTpqmLzmwssYYc9t7/2LZmiAQAC46535VASZJsjaZTH6fFRg75/IqQCJCY0xGRPLkOk4OE6XU4/J5FwJrrSNENET0ZFVt07GYPRMbeUTNVQdzGHKSPR/MIbsTs5ATC2YrXtkisNmnfuOfmYXv2gMAUDyD2FX/fNeOAOPuKInHCjctAAAAAElFTkSuQmCC";
/***/ }),
/***/ 54430:
/*!***********************************************!*\
!*** ./src/assets/images/account/安全设置@2x.png ***!
\***********************************************/
/***/ (function(module) {
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAgCAYAAAABtRhCAAAAAXNSR0IArs4c6QAAArlJREFUSEvtl7trFFEUxs83M0TRRrHQWIg2pvCBJpXYaCFaCKlEiZ3FnWSzQUXUSlcSlBSiSMhM7haWEUIK/4H4QCxEkkhAxQcWPnARBAmY4K6zn9xlNs5u9nHFCBY7zQ7Mud/vnHPPPfcsxOJJp9ObC4VCF8lOAF0i0kkyEpEZALMAZkRkdmxs7FMzOVQbKKW2OI5TEidZEheRjc2EzHcAXwzYOEKy9Ku1fgeA5fVQSvWIyC4jbLwnuaGO+DcAcyTnROSNiNyydGLewE0mROSBAS6KyOolD4CfIvLaCJcBnufNBUHwoWyjlFojIt9tgFU2z5PA957ndbuu+3JkZORHI7EVAQJ4obXeYeN1C9ggS7/3sJXSZJpaRfN/Fo2IfBaRIZuDD9ONyZ02tnFT90k6IlLR2mzXG7uFbDa71naBUsq0yrYWsFHG/iqlOdsbPeGBNXBiYsKdmprKm6IB8Bi+798necC2AGI7a2B/f//2QqHwKl5321zASkT0vwIqpQZF5JLRdxznCDKZTFsul5v+k3Nleyz6+vo6oih6Fo8wD7XWB0tTm1LKDFBPSHqWkTZN6cDAwKp8Pm+2ax+ARdd1dwdB8HZpTFRKZUTkykoAzW0C4C7JQ3GnOae1vlF6TwJ8379J8owFtG6EqVRqUxRFkyT3x7DrWuvzS1Nhtbjv+8MkLzaB1gQqpY4BCMuzLYAK2LIIy5De3t6zxWJxOO5/tdgVwFQqtSeKoiGSR2Nj8zfgcjabvVa9eNmon4DuJXmHZEcN4kJ7e/v6XC53mOQpEelObM9H13V7wjB8VMvTusC4es3mXyWZSkYLoEhyXkTWJUQJYNzzvNOjo6Nf621JQ2Ai2q3FYnEQwMn4XqvQA3DPcZwLYRhONys4K2BZJJ1Ob8vn88cBnDCFAWDSdd3xIAieNgOVv/8CssqRWZtWqWEAAAAASUVORK5CYII=";
/***/ })
}]);