|
|
|
|
@ -457,10 +457,12 @@ var LoginForm_inputStyle = {
|
|
|
|
|
borderRadius: 4
|
|
|
|
|
};
|
|
|
|
|
var LoginForm_LoginPopComponents = function LoginPopComponents(_ref) {
|
|
|
|
|
var _globalSetting$settin;
|
|
|
|
|
var dispatch = _ref.dispatch,
|
|
|
|
|
setType = _ref.setType,
|
|
|
|
|
user = _ref.user,
|
|
|
|
|
setusername = _ref.setusername;
|
|
|
|
|
setusername = _ref.setusername,
|
|
|
|
|
globalSetting = _ref.globalSetting;
|
|
|
|
|
var _Form$useForm = es_form/* default */.Z.useForm(),
|
|
|
|
|
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
|
|
|
|
|
form = _Form$useForm2[0];
|
|
|
|
|
@ -676,19 +678,27 @@ var LoginForm_LoginPopComponents = function LoginPopComponents(_ref) {
|
|
|
|
|
placeholder: "\u5BC6\u7801"
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "flex-container",
|
|
|
|
|
style: {
|
|
|
|
|
justifyContent: 'space-between'
|
|
|
|
|
},
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
name: "autologin",
|
|
|
|
|
noStyle: true,
|
|
|
|
|
valuePropName: "checked",
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
|
|
|
|
|
children: "\u4E0B\u6B21\u81EA\u52A8\u767B\u5F55"
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}), (globalSetting === null || globalSetting === void 0 || (_globalSetting$settin = globalSetting.setting) === null || _globalSetting$settin === void 0 ? void 0 : _globalSetting$settin.enable_forgot_password) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: "current font14 c-blue",
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
return setType(4);
|
|
|
|
|
},
|
|
|
|
|
children: "\u627E\u56DE\u5BC6\u7801"
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
|
|
|
@ -1122,12 +1132,13 @@ function ResetPassword_reducer(state, action) {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
var ResetPassword_RegisterComponent = function RegisterComponent(_ref) {
|
|
|
|
|
var _globalSetting$settin;
|
|
|
|
|
var validateName = _ref.validateName,
|
|
|
|
|
getCode = _ref.getCode,
|
|
|
|
|
register = _ref.register,
|
|
|
|
|
_ref$style = _ref.style,
|
|
|
|
|
style = _ref$style === void 0 ? {} : _ref$style,
|
|
|
|
|
style = _ref$style === void 0 ? {
|
|
|
|
|
paddingRight: 50
|
|
|
|
|
} : _ref$style,
|
|
|
|
|
_ref$buttonText = _ref.buttonText,
|
|
|
|
|
buttonText = _ref$buttonText === void 0 ? '注册' : _ref$buttonText,
|
|
|
|
|
globalSetting = _ref.globalSetting;
|
|
|
|
|
@ -1424,7 +1435,7 @@ var ResetPassword_RegisterComponent = function RegisterComponent(_ref) {
|
|
|
|
|
placeholder: "\u8F93\u51658\uFF5E16\u4F4D\u65B0\u5BC6\u7801\uFF0C\u533A\u5206\u5927\u5C0F\u5199"
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}), !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin = globalSetting.setting) !== null && _globalSetting$settin !== void 0 && _globalSetting$settin.is_local) && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
name: "code",
|
|
|
|
|
rules: [{
|
|
|
|
|
required: true,
|
|
|
|
|
@ -2286,9 +2297,10 @@ var PopLogin_LoginPopComponents = function LoginPopComponents(_ref) {
|
|
|
|
|
,
|
|
|
|
|
visible: user.showPopLogin,
|
|
|
|
|
footer: null,
|
|
|
|
|
width: !is_local ? 765 : 420,
|
|
|
|
|
width: !is_local ? 765 : 460,
|
|
|
|
|
keyboard: false,
|
|
|
|
|
maskClosable: false,
|
|
|
|
|
destroyOnClose: true,
|
|
|
|
|
wrapClassName: PopLoginmodules.popLogin,
|
|
|
|
|
closable: user.showClosable,
|
|
|
|
|
onCancel: onCancel,
|