|
|
|
|
@ -4641,7 +4641,7 @@ var ShixunDetail_excluded = ["classroomList", "globalSetting", "shixunHomeworks"
|
|
|
|
|
|
|
|
|
|
var Content = layout/* default */.Z.Content;
|
|
|
|
|
var ShixunDetail_ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
var _userInfo$course5, _detailTopBanner$grou, _detailTopBanner$grou2, _detailTopBanner$grou3, _globalSetting$settin, _globalSetting$settin3;
|
|
|
|
|
var _userInfo$course6, _detailTopBanner$grou, _detailTopBanner$grou2, _detailTopBanner$grou3, _globalSetting$settin, _globalSetting$settin3;
|
|
|
|
|
var classroomList = _ref.classroomList,
|
|
|
|
|
globalSetting = _ref.globalSetting,
|
|
|
|
|
shixunHomeworks = _ref.shixunHomeworks,
|
|
|
|
|
@ -5112,7 +5112,7 @@ var ShixunDetail_ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
var renderSign = function renderSign() {
|
|
|
|
|
var _userInfo$course, _userInfo$course2, _userInfo$course3, _userInfo$course4;
|
|
|
|
|
var _userInfo$course, _userInfo$course2, _userInfo$course3, _userInfo$course4, _userInfo$course5;
|
|
|
|
|
var str = '';
|
|
|
|
|
if ((detailTopBanner !== null && detailTopBanner !== void 0 && detailTopBanner.switch_to_student || detailTopBanner !== null && detailTopBanner !== void 0 && detailTopBanner.switch_to_teacher || detailTopBanner !== null && detailTopBanner !== void 0 && detailTopBanner.switch_to_assistant) && !(detailTopBanner !== null && detailTopBanner !== void 0 && detailTopBanner.excellent)) {
|
|
|
|
|
str = ' ▼';
|
|
|
|
|
@ -5121,7 +5121,25 @@ var ShixunDetail_ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
style: {
|
|
|
|
|
pointerEvents: str ? 'all' : 'none'
|
|
|
|
|
},
|
|
|
|
|
children: [(userInfo === null || userInfo === void 0 || (_userInfo$course = userInfo.course) === null || _userInfo$course === void 0 ? void 0 : _userInfo$course.course_role) === 8 && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
children: [![5, 8, 12, 15].includes(userInfo === null || userInfo === void 0 || (_userInfo$course = userInfo.course) === null || _userInfo$course === void 0 ? void 0 : _userInfo$course.course_role) && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
style: {
|
|
|
|
|
color: '#262A46'
|
|
|
|
|
},
|
|
|
|
|
children: "\u5F53\u524D\u8EAB\u4EFD\uFF1A"
|
|
|
|
|
}), " ", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
style: {
|
|
|
|
|
color: '#323544',
|
|
|
|
|
fontWeight: 500
|
|
|
|
|
},
|
|
|
|
|
children: "--"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
style: {
|
|
|
|
|
color: '#939AAC'
|
|
|
|
|
},
|
|
|
|
|
children: str
|
|
|
|
|
})]
|
|
|
|
|
}), (userInfo === null || userInfo === void 0 || (_userInfo$course2 = userInfo.course) === null || _userInfo$course2 === void 0 ? void 0 : _userInfo$course2.course_role) === 8 && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
style: {
|
|
|
|
|
color: '#262A46'
|
|
|
|
|
@ -5139,7 +5157,7 @@ var ShixunDetail_ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
},
|
|
|
|
|
children: str
|
|
|
|
|
})]
|
|
|
|
|
}), (userInfo === null || userInfo === void 0 || (_userInfo$course2 = userInfo.course) === null || _userInfo$course2 === void 0 ? void 0 : _userInfo$course2.course_role) === 5 && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
}), (userInfo === null || userInfo === void 0 || (_userInfo$course3 = userInfo.course) === null || _userInfo$course3 === void 0 ? void 0 : _userInfo$course3.course_role) === 5 && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
style: {
|
|
|
|
|
color: '#262A46'
|
|
|
|
|
@ -5157,7 +5175,7 @@ var ShixunDetail_ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
},
|
|
|
|
|
children: str
|
|
|
|
|
})]
|
|
|
|
|
}), (userInfo === null || userInfo === void 0 || (_userInfo$course3 = userInfo.course) === null || _userInfo$course3 === void 0 ? void 0 : _userInfo$course3.course_role) === 12 && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
}), (userInfo === null || userInfo === void 0 || (_userInfo$course4 = userInfo.course) === null || _userInfo$course4 === void 0 ? void 0 : _userInfo$course4.course_role) === 12 && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
style: {
|
|
|
|
|
color: '#262A46'
|
|
|
|
|
@ -5175,7 +5193,7 @@ var ShixunDetail_ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
},
|
|
|
|
|
children: str
|
|
|
|
|
})]
|
|
|
|
|
}), (userInfo === null || userInfo === void 0 || (_userInfo$course4 = userInfo.course) === null || _userInfo$course4 === void 0 ? void 0 : _userInfo$course4.course_role) === 15 && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
}), (userInfo === null || userInfo === void 0 || (_userInfo$course5 = userInfo.course) === null || _userInfo$course5 === void 0 ? void 0 : _userInfo$course5.course_role) === 15 && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
style: {
|
|
|
|
|
color: '#262A46'
|
|
|
|
|
@ -5591,7 +5609,7 @@ var ShixunDetail_ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
justifyContent: 'space-between'
|
|
|
|
|
},
|
|
|
|
|
children: [(userInfo === null || userInfo === void 0 || (_userInfo$course5 = userInfo.course) === null || _userInfo$course5 === void 0 ? void 0 : _userInfo$course5.course_role) === null && (userInfo === null || userInfo === void 0 ? void 0 : userInfo.identity) === 'teacher' && (detailTopBanner === null || detailTopBanner === void 0 ? void 0 : detailTopBanner.allow_copy) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [(userInfo === null || userInfo === void 0 || (_userInfo$course6 = userInfo.course) === null || _userInfo$course6 === void 0 ? void 0 : _userInfo$course6.course_role) === null && (userInfo === null || userInfo === void 0 ? void 0 : userInfo.identity) === 'teacher' && (detailTopBanner === null || detailTopBanner === void 0 ? void 0 : detailTopBanner.allow_copy) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: ShixunDetailmodules.copy,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
onClick: handleCopy,
|