parent
b0e198b037
commit
bd686dbce1
@ -0,0 +1,381 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[73822],{
|
||||
|
||||
/***/ 14763:
|
||||
/*!*********************************************************!*\
|
||||
!*** ./src/components/XazyHeader/index.tsx + 1 modules ***!
|
||||
\*********************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ XazyHeader; }
|
||||
});
|
||||
|
||||
// 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__(88271);
|
||||
// EXTERNAL MODULE: ./src/components/Header/components/Join/index.tsx + 4 modules
|
||||
var Join = __webpack_require__(79687);
|
||||
// EXTERNAL MODULE: ./src/components/Header/components/User/index.tsx + 2 modules
|
||||
var User = __webpack_require__(15278);
|
||||
;// CONCATENATED MODULE: ./src/components/XazyHeader/index.less?modules
|
||||
// extracted by mini-css-extract-plugin
|
||||
/* harmony default export */ var XazyHeadermodules = ({"flex_box_center":"flex_box_center___WpIvr","flex_space_between":"flex_space_between___cPtZs","flex_box_vertical_center":"flex_box_vertical_center___XHKBA","flex_box_center_end":"flex_box_center_end___GXlLT","flex_box_column":"flex_box_column___psxt1","flex-col":"flex-col___umKUz","flex-row":"flex-row___JJqsT","justify-start":"justify-start___zMBU6","justify-center":"justify-center___TLYXc","justify-end":"justify-end___FYduO","justify-evenly":"justify-evenly___ZOHOt","justify-around":"justify-around___heAnI","justify-between":"justify-between___RGbwN","align-start":"align-start___OSeGe","align-center":"align-center___ZD7lA","align-end":"align-end___vo5E0","all_box":"all_box___Vv9Ai","wrap":"wrap___TmtSa","left":"left___I2KXz","home":"home___Zh90P","info":"info___wwIGD","right":"right___fkBsz","search-bar":"search-bar___FpmLr"});
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
||||
var jsx_runtime = __webpack_require__(37712);
|
||||
;// CONCATENATED MODULE: ./src/components/XazyHeader/index.tsx
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var XazyHeaderComponents = function XazyHeaderComponents(_ref) {
|
||||
var _user$userInfo, _user$userInfo2, _user$navigationInfo;
|
||||
var user = _ref.user,
|
||||
globalSetting = _ref.globalSetting,
|
||||
loading = _ref.loading,
|
||||
title = _ref.title,
|
||||
dispatch = _ref.dispatch;
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: "materials-wrp-header",
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: "group_1 flex-row",
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: "flex-row",
|
||||
style: {
|
||||
flex: 1
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
||||
className: "thumbnail_1 current",
|
||||
onClick: function onClick() {
|
||||
return _umi_production_exports.history.push('/ythSys');
|
||||
},
|
||||
src: "/images/materials/SketchPng2032b4eb0c3138b021caf392ef497cf7503b52d5e8b5496802baec7585143010.png"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "text_1 current",
|
||||
onClick: function onClick() {
|
||||
return _umi_production_exports.history.push('/ythSys');
|
||||
},
|
||||
children: "\u8FD4\u56DE"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: "section_2 flex-col"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "text_2",
|
||||
children: "2025-01-21\xA0\u661F\u671F\u4E94\xA010:26"
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: "flex-row",
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: XazyHeadermodules['search-bar'],
|
||||
style: {
|
||||
flex: globalSetting.isIlearning ? 'initial' : 'initial',
|
||||
color: '#3061D0'
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Join/* default */.Z, {
|
||||
moreIcon: '/images/materials/SketchPng050cbed48f607daa69daece9e5665916c9cccdf9041080fbf6fe9f7c8e1f771d.png'
|
||||
}), !!(user !== null && user !== void 0 && (_user$userInfo = user.userInfo) !== null && _user$userInfo !== void 0 && _user$userInfo.login) && /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
|
||||
className: "c-white ml15 mr15 font18 relative",
|
||||
to: "/messages/".concat(user === null || user === void 0 || (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.login, "/user_tidings"),
|
||||
style: {
|
||||
color: '#3061D0'
|
||||
},
|
||||
children: (user === null || user === void 0 || (_user$navigationInfo = user.navigationInfo) === null || _user$navigationInfo === void 0 || (_user$navigationInfo = _user$navigationInfo.top) === null || _user$navigationInfo === void 0 ? void 0 : _user$navigationInfo.new_message) && /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
||||
className: "thumbnail_3",
|
||||
src: "/images/materials/SketchPng1df971f8284f1cda83bbae0d86891266c02445b6f05304f6ad2608e4da09f455.png"
|
||||
})
|
||||
// <span
|
||||
// className={styles.newslight}
|
||||
// style={{ color: '#3061D0' }}
|
||||
// ></span>
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(User/* default */.Z, {})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: "section_3 flex-row",
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: "section_4 flex-col"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: "section_5 flex-col"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: "section_6 flex-col"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "text_4",
|
||||
children: title
|
||||
})]
|
||||
})]
|
||||
})]
|
||||
})
|
||||
});
|
||||
};
|
||||
/* harmony default export */ var XazyHeader = ((0,_umi_production_exports.connect)(function (_ref2) {
|
||||
var user = _ref2.user,
|
||||
loading = _ref2.loading,
|
||||
globalSetting = _ref2.globalSetting;
|
||||
return {
|
||||
user: user,
|
||||
globalSetting: globalSetting,
|
||||
loading: loading.models.index
|
||||
};
|
||||
})(XazyHeaderComponents));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 57591:
|
||||
/*!****************************************************!*\
|
||||
!*** ./src/pages/CloudStudy/index.tsx + 4 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 */ pages_CloudStudy; }
|
||||
});
|
||||
|
||||
// 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: ./src/.umi-production/exports.ts
|
||||
var _umi_production_exports = __webpack_require__(88271);
|
||||
;// CONCATENATED MODULE: ./src/pages/CloudStudy/index.less?modules
|
||||
// extracted by mini-css-extract-plugin
|
||||
/* harmony default export */ var CloudStudymodules = ({"page":"page___K0Yo0","center":"center___X67Kr","box":"box___HQPxM","col":"col___gSs5X"});
|
||||
// EXTERNAL MODULE: ./src/components/XazyHeader/index.tsx + 1 modules
|
||||
var XazyHeader = __webpack_require__(14763);
|
||||
;// CONCATENATED MODULE: ./src/pages/CloudStudy/img/a1.png
|
||||
var a1_namespaceObject = __webpack_require__.p + "static/a1.d3e77a3f.png";
|
||||
;// CONCATENATED MODULE: ./src/pages/CloudStudy/img/a2.png
|
||||
var a2_namespaceObject = __webpack_require__.p + "static/a2.eb87e208.png";
|
||||
;// CONCATENATED MODULE: ./src/pages/CloudStudy/img/a3.png
|
||||
var a3_namespaceObject = __webpack_require__.p + "static/a3.61d671c8.png";
|
||||
// EXTERNAL MODULE: ./src/utils/hooks/useResponsiveFontSize.tsx
|
||||
var useResponsiveFontSize = __webpack_require__(9849);
|
||||
// EXTERNAL MODULE: ./src/utils/fetch.ts
|
||||
var fetch = __webpack_require__(82710);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
||||
var jsx_runtime = __webpack_require__(37712);
|
||||
;// CONCATENATED MODULE: ./src/pages/CloudStudy/index.tsx
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// 新版首页入口
|
||||
|
||||
var CloudStudy = function CloudStudy(_ref) {
|
||||
var user = _ref.user;
|
||||
(0,useResponsiveFontSize/* default */.Z)();
|
||||
var _useState = (0,_react_17_0_2_react.useState)([]),
|
||||
_useState2 = slicedToArray_default()(_useState, 2),
|
||||
data = _useState2[0],
|
||||
setData = _useState2[1];
|
||||
(0,_react_17_0_2_react.useEffect)(function () {
|
||||
getData();
|
||||
}, []);
|
||||
var getData = /*#__PURE__*/function () {
|
||||
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
||||
var res, _res$data;
|
||||
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
||||
while (1) switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
_context.next = 2;
|
||||
return (0,fetch/* default */.ZP)("/api/zz_classrooms/knowledges.json", {
|
||||
method: 'get'
|
||||
});
|
||||
case 2:
|
||||
res = _context.sent;
|
||||
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
|
||||
setData(res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.list);
|
||||
}
|
||||
case 4:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}, _callee);
|
||||
}));
|
||||
return function getData() {
|
||||
return _ref2.apply(this, arguments);
|
||||
};
|
||||
}();
|
||||
var _data = slicedToArray_default()(data, 4),
|
||||
dataA = _data[0],
|
||||
dataB = _data[1],
|
||||
dataC = _data[2],
|
||||
dataD = _data[3];
|
||||
console.log(dataA, 2);
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: "".concat(CloudStudymodules.page, " materials-wrp"),
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(XazyHeader/* default */.Z, {
|
||||
title: "\u4E91\u4E0A\u4E66\u623F",
|
||||
callBackUrl: '/counselling/expertList'
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: CloudStudymodules.center,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: CloudStudymodules.box,
|
||||
style: {
|
||||
left: '184rem',
|
||||
top: '108rem'
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
||||
src: a1_namespaceObject
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: CloudStudymodules.col,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: "\u76EE\u5F55\uFF1A"
|
||||
}), "3"]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: "\u89C6\u9891\u6570\u91CF\uFF1A"
|
||||
}), "3"]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: "\u8D44\u6E90\u6570\u91CF\uFF1A"
|
||||
}), "3"]
|
||||
})]
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: CloudStudymodules.box,
|
||||
style: {
|
||||
right: '184rem',
|
||||
top: '108rem'
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
||||
src: a2_namespaceObject
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: CloudStudymodules.col,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: "\u76EE\u5F55\uFF1A"
|
||||
}), "3"]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: "\u89C6\u9891\u6570\u91CF\uFF1A"
|
||||
}), "3"]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: "\u8D44\u6E90\u6570\u91CF\uFF1A"
|
||||
}), "3"]
|
||||
})]
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: CloudStudymodules.box,
|
||||
style: {
|
||||
right: '184rem',
|
||||
bottom: '54rem'
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
||||
src: a3_namespaceObject
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: CloudStudymodules.col,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: "\u76EE\u5F55\uFF1A"
|
||||
}), "3"]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: "\u89C6\u9891\u6570\u91CF\uFF1A"
|
||||
}), "3"]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: "\u8D44\u6E90\u6570\u91CF\uFF1A"
|
||||
}), "3"]
|
||||
})]
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: CloudStudymodules.box,
|
||||
style: {
|
||||
left: '184rem',
|
||||
bottom: '54rem'
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
||||
src: a3_namespaceObject
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: CloudStudymodules.col,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: "\u76EE\u5F55\uFF1A"
|
||||
}), "3"]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: "\u89C6\u9891\u6570\u91CF\uFF1A"
|
||||
}), "3"]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: "\u8D44\u6E90\u6570\u91CF\uFF1A"
|
||||
}), "3"]
|
||||
})]
|
||||
})]
|
||||
})]
|
||||
})]
|
||||
});
|
||||
};
|
||||
/* harmony default export */ var pages_CloudStudy = ((0,_umi_production_exports.connect)(function (_ref3) {
|
||||
var user = _ref3.user;
|
||||
return {
|
||||
user: user
|
||||
};
|
||||
})(CloudStudy));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 9849:
|
||||
/*!***************************************************!*\
|
||||
!*** ./src/utils/hooks/useResponsiveFontSize.tsx ***!
|
||||
\***************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 59301);
|
||||
|
||||
var useResponsiveFontSize = function useResponsiveFontSize() {
|
||||
var designWidth = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1920;
|
||||
var minFontSize = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.6;
|
||||
var maxFontSize = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 2;
|
||||
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
||||
var setRootFontSize = function setRootFontSize() {
|
||||
var docEl = document.documentElement;
|
||||
var clientWidth = docEl.clientWidth;
|
||||
var fontSize = clientWidth / designWidth;
|
||||
fontSize = fontSize > maxFontSize ? maxFontSize : fontSize < minFontSize ? minFontSize : fontSize;
|
||||
docEl.style.fontSize = fontSize + 'px';
|
||||
};
|
||||
window.addEventListener('resize', setRootFontSize);
|
||||
setRootFontSize(); // 初始化时设置字体大小
|
||||
|
||||
return function () {
|
||||
// 清除font-size样式
|
||||
document.documentElement.removeAttribute('style');
|
||||
window.removeEventListener('resize', setRootFontSize);
|
||||
};
|
||||
}, [designWidth, minFontSize, maxFontSize]);
|
||||
};
|
||||
/* harmony default export */ __webpack_exports__.Z = (useResponsiveFontSize);
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 174 KiB |
|
After Width: | Height: | Size: 164 KiB |
|
After Width: | Height: | Size: 178 KiB |
|
After Width: | Height: | Size: 2.9 MiB |
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue