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

121 lines
4.9 KiB

"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[60547],{
/***/ 34240:
/*!*************************************************!*\
!*** ./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.2@@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(10574);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(39343);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectWithoutProperties.js
var objectWithoutProperties = __webpack_require__(27161);
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
var _umi_production_exports = __webpack_require__(22211);
;// 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"});
// 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", "dispatch"];
// import BeginnerBottom from '@/components/HomeModal/Beginnerbottom'
var AccountPage = function AccountPage(_ref) {
var _user$userInfo3;
var user = _ref.user,
account = _ref.account,
globalSetting = _ref.globalSetting,
loading = _ref.loading,
dispatch = _ref.dispatch,
props = objectWithoutProperties_default()(_ref, _excluded);
var location = (0,_umi_production_exports.useLocation)();
(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"
})
}
});
}
// 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]);
return /*#__PURE__*/(0,jsx_runtime.jsx)("section", {
className: Accountmodules.bg,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Accountmodules.wrap,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Outlet, {})
})
});
};
/* harmony default export */ var Account = ((0,_umi_production_exports.connect)(function (_ref3) {
var user = _ref3.user,
account = _ref3.account,
loading = _ref3.loading,
globalSetting = _ref3.globalSetting;
return {
user: user,
account: account,
globalSetting: globalSetting,
loading: loading.models.index
};
})(AccountPage));
/***/ })
}]);