|
|
|
|
@ -427,8 +427,6 @@ var row = __webpack_require__(95237);
|
|
|
|
|
var col = __webpack_require__(43604);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/menu/index.js + 11 modules
|
|
|
|
|
var menu = __webpack_require__(20834);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js + 1 modules
|
|
|
|
|
var dropdown = __webpack_require__(38854);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/radio/index.js + 5 modules
|
|
|
|
|
var es_radio = __webpack_require__(5112);
|
|
|
|
|
// EXTERNAL MODULE: ./src/service/home.ts
|
|
|
|
|
@ -1354,30 +1352,19 @@ var Join = function Join(_ref) {
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
console.log(isClassroomsHidden);
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
|
|
if (globalSetting !== null && globalSetting !== void 0 && globalSetting.setting && user !== null && user !== void 0 && user.userInfo) {
|
|
|
|
|
var _user$userInfo20, _globalSetting$settin11;
|
|
|
|
|
setShowDrop(!isClassroomsHidden || !isShixunsHidden || !isPathsHidden || !isGraduationsHidden || ((_user$userInfo20 = user.userInfo) === null || _user$userInfo20 === void 0 ? void 0 : _user$userInfo20.main_site) && !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin11 = globalSetting.setting) !== null && _globalSetting$settin11 !== void 0 && _globalSetting$settin11.is_local));
|
|
|
|
|
var _globalSetting$settin11, _user$userInfo20, _globalSetting$settin12;
|
|
|
|
|
console.log(globalSetting === null || globalSetting === void 0 || (_globalSetting$settin11 = globalSetting.setting) === null || _globalSetting$settin11 === void 0 ? void 0 : _globalSetting$settin11.is_local);
|
|
|
|
|
console.log(isClassroomsHidden);
|
|
|
|
|
console.log(isShixunsHidden);
|
|
|
|
|
console.log(isPathsHidden);
|
|
|
|
|
console.log(isGraduationsHidden);
|
|
|
|
|
setShowDrop(!isClassroomsHidden || !isShixunsHidden || !isPathsHidden || !isGraduationsHidden || ((_user$userInfo20 = user.userInfo) === null || _user$userInfo20 === void 0 ? void 0 : _user$userInfo20.main_site) && !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin12 = globalSetting.setting) !== null && _globalSetting$settin12 !== void 0 && _globalSetting$settin12.is_local));
|
|
|
|
|
}
|
|
|
|
|
}, [globalSetting, user === null || user === void 0 ? void 0 : user.userInfo]);
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
|
|
|
|
|
children: [showdrop && /*#__PURE__*/(0,jsx_runtime.jsx)(dropdown/* default */.Z, {
|
|
|
|
|
dropdownRender: function dropdownRender() {
|
|
|
|
|
var _user$userInfo21;
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z, {
|
|
|
|
|
className: ((_user$userInfo21 = user.userInfo) === null || _user$userInfo21 === void 0 ? void 0 : _user$userInfo21.user_identity) !== '学生' ? "".concat(Joinmodules.rightMenu, " ").concat(Joinmodules.joinMenu, " mt10") : "".concat(Joinmodules.rightMenu, " ").concat(Joinmodules.joinMenu, " ").concat(Joinmodules.w140, " mt10"),
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(JoinOverlay, {})
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
placement: "bottom",
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
style: {
|
|
|
|
|
lineHeight: 'inherit'
|
|
|
|
|
},
|
|
|
|
|
className: "iconfont icon-tianjiafangda c-white font18 current ml15 mr15"
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(JoinClassroomModal/* default */.Z, {
|
|
|
|
|
children: [ false && /*#__PURE__*/0, /*#__PURE__*/(0,jsx_runtime.jsx)(JoinClassroomModal/* default */.Z, {
|
|
|
|
|
visible: visibleJoinClassroom,
|
|
|
|
|
onCancel: function onCancel() {
|
|
|
|
|
return setVisibleJoinClassroom(false);
|
|
|
|
|
@ -1412,6 +1399,8 @@ var Join = function Join(_ref) {
|
|
|
|
|
loading: loading.models.index
|
|
|
|
|
};
|
|
|
|
|
})(Join));
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js + 1 modules
|
|
|
|
|
var dropdown = __webpack_require__(38854);
|
|
|
|
|
;// CONCATENATED MODULE: ./src/components/Header/components/User/index.less?modules
|
|
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
|
/* harmony default export */ var Usermodules = ({"flex_box_center":"flex_box_center___YbxYn","flex_space_between":"flex_space_between___Atwkg","flex_box_vertical_center":"flex_box_vertical_center____I6AC","flex_box_center_end":"flex_box_center_end___LrYPg","flex_box_column":"flex_box_column___j7QNF","userPic":"userPic___a46Uz","rightMenu":"rightMenu___y_nqk","menuWrap":"menuWrap___iwlZB","exit":"exit___MOREW","classromediv":"classromediv___crYsO","glow":"glow___jMGk7","height67":"height67___asp2E","login":"login___WGEW9","icon":"icon___HABAt"});
|