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.
623 lines
25 KiB
623 lines
25 KiB
"use strict";
|
|
(self["webpackChunk"] = self["webpackChunk"] || []).push([[40559],{
|
|
|
|
/***/ 63606:
|
|
/*!******************************************************************************!*\
|
|
!*** ./node_modules/@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/helpers/esm/extends.js
|
|
var esm_extends = __webpack_require__(87462);
|
|
// EXTERNAL MODULE: ./node_modules/react/index.js
|
|
var react = __webpack_require__(67294);
|
|
;// CONCATENATED MODULE: ./node_modules/@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/es/components/AntdIcon.js + 8 modules
|
|
var AntdIcon = __webpack_require__(74643);
|
|
;// CONCATENATED MODULE: ./node_modules/@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.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.forwardRef(CheckOutlined_CheckOutlined));
|
|
|
|
/***/ }),
|
|
|
|
/***/ 96073:
|
|
/*!*********************************************************!*\
|
|
!*** ./src/layouts/virtualDetail/index.tsx + 6 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 */ virtualDetail; },
|
|
"listPlanLibrary": function() { return /* binding */ listPlanLibrary; }
|
|
});
|
|
|
|
// EXTERNAL MODULE: ./node_modules/react/index.js
|
|
var react = __webpack_require__(67294);
|
|
// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 8 modules
|
|
var _umi_production_exports = __webpack_require__(89214);
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/layout/index.js
|
|
var layout = __webpack_require__(97183);
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/row/index.js
|
|
var row = __webpack_require__(71230);
|
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectSpread2.js
|
|
var objectSpread2 = __webpack_require__(42122);
|
|
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
|
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js
|
|
var regeneratorRuntime = __webpack_require__(17061);
|
|
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
|
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/asyncToGenerator.js
|
|
var asyncToGenerator = __webpack_require__(17156);
|
|
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
|
|
var slicedToArray = __webpack_require__(27424);
|
|
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectWithoutProperties.js
|
|
var objectWithoutProperties = __webpack_require__(70215);
|
|
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/skeleton/index.js + 12 modules
|
|
var skeleton = __webpack_require__(21687);
|
|
// EXTERNAL MODULE: ./node_modules/react-beautiful-dnd/dist/react-beautiful-dnd.esm.js + 27 modules
|
|
var react_beautiful_dnd_esm = __webpack_require__(66012);
|
|
;// CONCATENATED MODULE: ./src/layouts/virtualDetail/LeftMenus/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var LeftMenusmodules = ({"flex_box_center":"flex_box_center___DQ9X1","flex_space_between":"flex_space_between___FvB3U","flex_box_vertical_center":"flex_box_vertical_center___CjjN6","flex_box_center_end":"flex_box_center_end___kfWYR","flex_box_column":"flex_box_column___P4a8M","leftMenu":"leftMenu___Xh9Tv","menuText":"menuText___r8qUK","list":"list___gc6zr","icon":"icon___BIyI5","name":"name___EvZQx","activeCssOne":"activeCssOne___bjRI_","activeCssTwo":"activeCssTwo___X0Axs"});
|
|
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
|
|
var jsx_runtime = __webpack_require__(85893);
|
|
;// CONCATENATED MODULE: ./src/layouts/virtualDetail/LeftMenus/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
var _excluded = ["virtualSpaces", "globalSetting", "user", "loading", "dispatch", "children"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Menus = function Menus(_ref) {
|
|
var virtualSpaces = _ref.virtualSpaces,
|
|
globalSetting = _ref.globalSetting,
|
|
user = _ref.user,
|
|
loading = _ref.loading,
|
|
dispatch = _ref.dispatch,
|
|
_children = _ref.children,
|
|
props = objectWithoutProperties_default()(_ref, _excluded);
|
|
var query = (0,_umi_production_exports.useParams)();
|
|
var location = (0,_umi_production_exports.useLocation)();
|
|
//展开的Key值
|
|
var _useState = (0,react.useState)([]),
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
openFirstKey = _useState2[0],
|
|
setOpenFirstKey = _useState2[1];
|
|
var menus = virtualSpaces.menus;
|
|
console.log(menus, 'menus');
|
|
(0,react.useEffect)(function () {
|
|
getMenus();
|
|
}, []);
|
|
var SubmenuIcons = {
|
|
syllabuses: 'iconfont font18 icon-jiaoxuedagang',
|
|
courses: 'iconfont font18 icon-kechengziyuan',
|
|
shixuns: 'iconfont font18 icon-shixunxiangmu',
|
|
videos: 'iconfont font18 icon-shipinziyuan',
|
|
attachments: 'iconfont icon-kejianziyuan',
|
|
members: 'iconfont font18 icon-chengyuanguanli2',
|
|
notices: 'iconfont font18 icon-tongzhigonggao',
|
|
graphs: 'iconfont font18 icon-zhishitupu',
|
|
achievements: 'iconfont font18 icon-jiaoyanchengguo',
|
|
vresearches: 'iconfont font18 icon-VRyantao',
|
|
leaderboards: 'iconfont font18 icon-gongxianpaihang',
|
|
news: 'iconfont font18 icon-tongzhigonggao',
|
|
collaborates: 'iconfont font18 icon-jiaoxuexietong',
|
|
educations: 'iconfont font18 icon-kechengziyuan',
|
|
practices: 'iconfont font18 icon-jiaoyanchengguo',
|
|
communities: 'iconfont font18 icon-gongxianpaihang',
|
|
managements: 'iconfont font18 icon-shezhi6'
|
|
};
|
|
var getMenus = /*#__PURE__*/function () {
|
|
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
|
var res, key, id;
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
while (1) switch (_context.prev = _context.next) {
|
|
case 0:
|
|
_context.next = 2;
|
|
return dispatch({
|
|
type: 'virtualSpaces/getVirtualSpacesMenus',
|
|
payload: {
|
|
id: query.virtual_spacesId
|
|
}
|
|
});
|
|
case 2:
|
|
res = _context.sent;
|
|
key = [];
|
|
id = '';
|
|
res === null || res === void 0 ? void 0 : res.forEach(function (e) {
|
|
var _e$children;
|
|
e === null || e === void 0 ? void 0 : (_e$children = e.children) === null || _e$children === void 0 ? void 0 : _e$children.forEach(function (k) {
|
|
var _location$pathname;
|
|
if (location !== null && location !== void 0 && (_location$pathname = location.pathname) !== null && _location$pathname !== void 0 && _location$pathname.includes(k.module_url)) {
|
|
id = k.id;
|
|
}
|
|
});
|
|
key.push(e.id);
|
|
});
|
|
setOpenFirstKey(key);
|
|
dispatch({
|
|
type: 'virtualSpaces/setActionTabs',
|
|
payload: {
|
|
module_id: id
|
|
}
|
|
});
|
|
case 8:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}, _callee);
|
|
}));
|
|
return function getMenus() {
|
|
return _ref2.apply(this, arguments);
|
|
};
|
|
}();
|
|
var onDragEnd = /*#__PURE__*/function () {
|
|
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(data) {
|
|
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
|
|
while (1) switch (_context2.prev = _context2.next) {
|
|
case 0:
|
|
case "end":
|
|
return _context2.stop();
|
|
}
|
|
}, _callee2);
|
|
}));
|
|
return function onDragEnd(_x) {
|
|
return _ref3.apply(this, arguments);
|
|
};
|
|
}();
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("section", {
|
|
className: LeftMenusmodules.leftMenu,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(skeleton/* default */.Z, {
|
|
loading: loading.effects['virtualSpaces/getVirtualSpacesMenus'],
|
|
children: menus === null || menus === void 0 ? void 0 : menus.map(function (v, k) {
|
|
var _v$children;
|
|
var bool = v === null || v === void 0 ? void 0 : (_v$children = v.children) === null || _v$children === void 0 ? void 0 : _v$children.some(function (e) {
|
|
return location.pathname.indexOf(e.module_url) > -1;
|
|
});
|
|
bool = bool || location.pathname === (v === null || v === void 0 ? void 0 : v.module_url);
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("ul", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("li", {
|
|
className: bool && LeftMenusmodules.activeCssOne,
|
|
onClick: function onClick() {
|
|
if ((v === null || v === void 0 ? void 0 : v.icon_type) === 'managements') {
|
|
_umi_production_exports.history.push(v === null || v === void 0 ? void 0 : v.module_url);
|
|
}
|
|
// if (openFirstKey?.includes(v.id)) {
|
|
// setOpenFirstKey(openFirstKey?.filter((e: any) => e !== v.id))
|
|
// } else {
|
|
// setOpenFirstKey([...openFirstKey, v.id])
|
|
// }
|
|
},
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: LeftMenusmodules.list,
|
|
style: (v === null || v === void 0 ? void 0 : v.icon_type) === 'managements' ? {
|
|
cursor: 'pointer'
|
|
} : {},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
className: LeftMenusmodules.icon,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: SubmenuIcons === null || SubmenuIcons === void 0 ? void 0 : SubmenuIcons[v.icon_type]
|
|
}), " "]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: LeftMenusmodules.name,
|
|
children: v.name
|
|
})]
|
|
})
|
|
}), (openFirstKey === null || openFirstKey === void 0 ? void 0 : openFirstKey.includes(v.id)) && /*#__PURE__*/(0,jsx_runtime.jsx)(react_beautiful_dnd_esm/* DragDropContext */.Z5, {
|
|
onDragEnd: onDragEnd,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(react_beautiful_dnd_esm/* Droppable */.bK, {
|
|
droppableId: String(v.id),
|
|
children: function children(provided, snapshot) {
|
|
var _v$children2;
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("ul", objectSpread2_default()(objectSpread2_default()({
|
|
ref: provided.innerRef
|
|
}, provided.droppableProps), {}, {
|
|
children: v === null || v === void 0 ? void 0 : (_v$children2 = v.children) === null || _v$children2 === void 0 ? void 0 : _v$children2.map(function (val, key) {
|
|
var _val$id;
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(react_beautiful_dnd_esm/* Draggable */._l, {
|
|
draggableId: "".concat((_val$id = val.id) === null || _val$id === void 0 ? void 0 : _val$id.toString(), "-").concat(k, "-").concat(key),
|
|
index: key,
|
|
isDragDisabled: true,
|
|
children: function children(provided, snapshot) {
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({
|
|
ref: provided.innerRef
|
|
}, provided.draggableProps), provided.dragHandleProps), {}, {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
|
|
className: location.pathname.indexOf(val.module_url) > -1 && LeftMenusmodules.activeCssTwo,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: LeftMenusmodules.menuText,
|
|
onClick: function onClick(e) {
|
|
_umi_production_exports.history.push(val.module_url);
|
|
dispatch({
|
|
type: 'virtualSpaces/setActionTabs',
|
|
payload: {
|
|
module_id: v.id
|
|
}
|
|
});
|
|
},
|
|
children: val.name
|
|
})
|
|
})
|
|
}), key);
|
|
}
|
|
}, val.id);
|
|
})
|
|
}));
|
|
}
|
|
})
|
|
})]
|
|
}, k);
|
|
})
|
|
})
|
|
});
|
|
};
|
|
/* harmony default export */ var LeftMenus = ((0,_umi_production_exports.connect)(function (_ref4) {
|
|
var virtualSpaces = _ref4.virtualSpaces,
|
|
loading = _ref4.loading,
|
|
globalSetting = _ref4.globalSetting,
|
|
user = _ref4.user;
|
|
return {
|
|
virtualSpaces: virtualSpaces,
|
|
globalSetting: globalSetting,
|
|
user: user,
|
|
loading: loading
|
|
};
|
|
})(Menus));
|
|
// EXTERNAL MODULE: ./src/layouts/virtualDetail/TopBanner/index.tsx + 1 modules
|
|
var TopBanner = __webpack_require__(49620);
|
|
;// CONCATENATED MODULE: ./src/layouts/virtualDetail/TopPlanBanner/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var TopPlanBannermodules = ({"bg":"bg___kZNV_","headName":"headName___ZMo2u"});
|
|
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
|
var env = __webpack_require__(59758);
|
|
;// CONCATENATED MODULE: ./src/layouts/virtualDetail/TopPlanBanner/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var TopPlanBanner_TopBanner = function TopBanner(_ref) {
|
|
var virtualSpaces = _ref.virtualSpaces,
|
|
user = _ref.user,
|
|
dispatch = _ref.dispatch;
|
|
var virtualSpacesDetails = virtualSpaces.virtualSpacesDetails;
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: TopPlanBannermodules.bg,
|
|
style: {
|
|
background: "url('".concat(env/* default.API_SERVER */.Z.API_SERVER + (virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.backbground_image_url), "') no-repeat center center")
|
|
},
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: TopPlanBannermodules.headName,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
children: [" ", virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.name]
|
|
})
|
|
})
|
|
});
|
|
};
|
|
/* harmony default export */ var TopPlanBanner = ((0,_umi_production_exports.connect)(function (_ref2) {
|
|
var virtualSpaces = _ref2.virtualSpaces,
|
|
user = _ref2.user;
|
|
return {
|
|
virtualSpaces: virtualSpaces,
|
|
user: user
|
|
};
|
|
})(TopPlanBanner_TopBanner));
|
|
;// CONCATENATED MODULE: ./src/layouts/virtualDetail/LeftPlanMenus/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var LeftPlanMenusmodules = ({"flex_box_center":"flex_box_center___tyjzz","flex_space_between":"flex_space_between___twMxD","flex_box_vertical_center":"flex_box_vertical_center___rpdJ6","flex_box_center_end":"flex_box_center_end___HPgPu","flex_box_column":"flex_box_column___Xw8TQ","menuWrap":"menuWrap___oMbDo","nav":"nav___tDkKA","active":"active___CEg8Y"});
|
|
;// CONCATENATED MODULE: ./src/layouts/virtualDetail/LeftPlanMenus/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
var LeftPlanMenus_excluded = ["user", "globalSetting", "dispatch", "virtualSpaces"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Banner = function Banner(_ref) {
|
|
var _renderList;
|
|
var user = _ref.user,
|
|
globalSetting = _ref.globalSetting,
|
|
dispatch = _ref.dispatch,
|
|
virtualSpaces = _ref.virtualSpaces,
|
|
props = objectWithoutProperties_default()(_ref, LeftPlanMenus_excluded);
|
|
var location = (0,_umi_production_exports.useLocation)();
|
|
var _useState = (0,react.useState)(),
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
activeKey = _useState2[0],
|
|
setActiveKey = _useState2[1];
|
|
var params = (0,_umi_production_exports.useParams)();
|
|
var virtual_spacesId = params.virtual_spacesId;
|
|
var _virtualSpaces$menus = virtualSpaces.menus,
|
|
menus = _virtualSpaces$menus === void 0 ? [] : _virtualSpaces$menus;
|
|
(0,react.useEffect)(function () {
|
|
if (menus.length) {
|
|
var _location$pathname$sp;
|
|
var active = ((_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[3]) || 'homepage';
|
|
setActiveKey(active);
|
|
|
|
// const keys = renderList().map(e => e.icon_type)
|
|
// if (keys.includes(active)) {
|
|
// setActiveKey(active);
|
|
// } else {
|
|
// setActiveKey(keys[0]);
|
|
// }
|
|
}
|
|
}, [location.pathname, menus]);
|
|
(0,react.useEffect)(function () {
|
|
getMenus();
|
|
}, []);
|
|
var getMenus = /*#__PURE__*/function () {
|
|
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
while (1) switch (_context.prev = _context.next) {
|
|
case 0:
|
|
dispatch({
|
|
type: 'virtualSpaces/getVirtualSpacesMenus',
|
|
payload: {
|
|
id: virtual_spacesId
|
|
}
|
|
});
|
|
case 1:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}, _callee);
|
|
}));
|
|
return function getMenus() {
|
|
return _ref2.apply(this, arguments);
|
|
};
|
|
}();
|
|
var renderList = function renderList() {
|
|
var list = menus.map(function (e) {
|
|
var param = listPlanLibrary.find(function (k) {
|
|
return k.icon_type === e.icon_type;
|
|
});
|
|
return objectSpread2_default()(objectSpread2_default()({}, e), {}, {
|
|
icon: param === null || param === void 0 ? void 0 : param.icon
|
|
});
|
|
});
|
|
list = list.filter(function (e) {
|
|
return !e.hidden;
|
|
});
|
|
return list;
|
|
};
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: LeftPlanMenusmodules.menuWrap,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: LeftPlanMenusmodules.nav,
|
|
children: (_renderList = renderList()) === null || _renderList === void 0 ? void 0 : _renderList.map(function (item) {
|
|
var icon_type = item.icon_type,
|
|
icon = item.icon,
|
|
name = item.name,
|
|
module_url = item.module_url;
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
|
|
to: module_url,
|
|
onClick: function onClick() {
|
|
return setActiveKey(icon_type);
|
|
},
|
|
className: activeKey === icon_type ? LeftPlanMenusmodules.active : '',
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: icon
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
title: name,
|
|
children: name
|
|
})]
|
|
}, icon_type);
|
|
})
|
|
})
|
|
});
|
|
};
|
|
/* harmony default export */ var LeftPlanMenus = ((0,_umi_production_exports.connect)(function (_ref3) {
|
|
var user = _ref3.user,
|
|
VirtualSpacesModelState = _ref3.virtualSpaces,
|
|
globalSetting = _ref3.globalSetting;
|
|
return {
|
|
user: user,
|
|
globalSetting: globalSetting,
|
|
virtualSpaces: VirtualSpacesModelState
|
|
};
|
|
})(Banner));
|
|
// EXTERNAL MODULE: ./src/utils/util.tsx
|
|
var util = __webpack_require__(29427);
|
|
;// CONCATENATED MODULE: ./src/layouts/virtualDetail/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var listPlanLibrary = [{
|
|
icon_type: "homepage",
|
|
name: "101计划-软件工程",
|
|
icon: 'iconfont icon-a-101jihua'
|
|
}, {
|
|
icon_type: "announcement",
|
|
name: "通知公告",
|
|
icon: 'iconfont icon-tongzhigonggao1'
|
|
}, {
|
|
icon_type: "survey",
|
|
name: "课程调研",
|
|
icon: 'iconfont icon-kechengtiaoyan'
|
|
}, {
|
|
icon_type: "knowledge",
|
|
name: "知识体系",
|
|
icon: 'iconfont icon-zhishitixi'
|
|
}, {
|
|
icon_type: "plan",
|
|
name: "课程教案",
|
|
icon: 'iconfont icon-kechengjiaoan'
|
|
}, {
|
|
icon_type: "material",
|
|
name: "课程教材",
|
|
icon: 'iconfont icon-kechengjiaocai'
|
|
}, {
|
|
icon_type: "experiment",
|
|
name: "实验体系",
|
|
icon: 'iconfont icon-shijianxiangmu'
|
|
}, {
|
|
icon_type: "resources",
|
|
name: "教学资源",
|
|
icon: 'iconfont icon-jiaoxueziyuan'
|
|
},
|
|
// {
|
|
// icon_type: "contribute",
|
|
// name: "社区贡献",
|
|
// icon: 'iconfont icon-shijianxiangmu',
|
|
// },
|
|
{
|
|
icon_type: "settings",
|
|
name: "社区设置",
|
|
icon: 'iconfont icon-shequshezhi'
|
|
}];
|
|
var Content = layout/* default.Content */.Z.Content;
|
|
var Page = function Page(_ref) {
|
|
var globalSetting = _ref.globalSetting,
|
|
user = _ref.user,
|
|
dispatch = _ref.dispatch,
|
|
children = _ref.children,
|
|
virtualSpaces = _ref.virtualSpaces;
|
|
var urlParams = (0,_umi_production_exports.useParams)();
|
|
var location = (0,_umi_production_exports.useLocation)();
|
|
var virtualSpacesDetails = virtualSpaces.virtualSpacesDetails,
|
|
loading = virtualSpaces.loading;
|
|
//新版本的虚拟社区
|
|
var newPage = util/* vtrsKey */.AS === '101' || util/* vtrsKey */.AS === 'vtrs';
|
|
(0,react.useEffect)(function () {
|
|
dispatch({
|
|
type: "globalSetting/setTheme",
|
|
payload: "vspaces"
|
|
});
|
|
return function () {
|
|
dispatch({
|
|
type: "globalSetting/setTheme",
|
|
payload: "default"
|
|
});
|
|
};
|
|
}, []);
|
|
(0,react.useEffect)(function () {
|
|
dispatch({
|
|
type: 'virtualSpaces/getVirtualSpacesDetails',
|
|
payload: {
|
|
id: urlParams === null || urlParams === void 0 ? void 0 : urlParams.virtual_spacesId
|
|
}
|
|
});
|
|
}, []);
|
|
(0,react.useEffect)(function () {
|
|
if (virtualSpacesDetails !== null && virtualSpacesDetails !== void 0 && virtualSpacesDetails.id && loading) {
|
|
dispatch({
|
|
type: "virtualSpaces/setVirtualSpacesLoading",
|
|
payload: false
|
|
});
|
|
}
|
|
}, [virtualSpacesDetails, loading]);
|
|
if (loading) {
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {});
|
|
}
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: newPage ? /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(TopPlanBanner, {}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
className: "bg-white",
|
|
wrap: false,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(LeftPlanMenus, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(Content, {
|
|
style: {
|
|
flex: 1,
|
|
overflow: 'hidden'
|
|
},
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Outlet, {})
|
|
})]
|
|
})]
|
|
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(TopBanner/* default */.Z, {}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
|
|
className: "edu-container mb20",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(LeftMenus, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(Content, {
|
|
className: "ml20",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Outlet, {})
|
|
})]
|
|
})
|
|
})]
|
|
})
|
|
});
|
|
};
|
|
/* harmony default export */ var virtualDetail = ((0,_umi_production_exports.connect)(function (_ref2) {
|
|
var globalSetting = _ref2.globalSetting,
|
|
user = _ref2.user,
|
|
virtualSpaces = _ref2.virtualSpaces;
|
|
return {
|
|
globalSetting: globalSetting,
|
|
user: user,
|
|
virtualSpaces: virtualSpaces
|
|
};
|
|
})(Page));
|
|
|
|
/***/ }),
|
|
|
|
/***/ 97183:
|
|
/*!**********************************************!*\
|
|
!*** ./node_modules/antd/es/layout/index.js ***!
|
|
\**********************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./layout */ 84321);
|
|
/* harmony import */ var _Sider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Sider */ 7293);
|
|
'use client';
|
|
|
|
|
|
|
|
const Layout = _layout__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP;
|
|
Layout.Header = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Header */ .h4;
|
|
Layout.Footer = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Footer */ .$_;
|
|
Layout.Content = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Content */ .VY;
|
|
Layout.Sider = _Sider__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z;
|
|
/* harmony default export */ __webpack_exports__["Z"] = (Layout);
|
|
|
|
/***/ })
|
|
|
|
}]); |