Merge branch 'dev_aliyun' of https://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun
commit
c2b17eba04
@ -1,100 +1,100 @@
|
|||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import { SnackbarHOC } from 'educoder';
|
import { SnackbarHOC } from 'educoder';
|
||||||
import {BrowserRouter as Router,Route,Switch} from 'react-router-dom';
|
import {BrowserRouter as Router,Route,Switch} from 'react-router-dom';
|
||||||
import Loadable from 'react-loadable';
|
import Loadable from 'react-loadable';
|
||||||
import Loading from '../../Loading';
|
import Loading from '../../Loading';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
// import { TPMIndexHOC } from '../tpm/TPMIndexHOC';
|
// import { TPMIndexHOC } from '../tpm/TPMIndexHOC';
|
||||||
import { CNotificationHOC } from './common/CNotificationHOC'
|
import { CNotificationHOC } from './common/CNotificationHOC'
|
||||||
import "./css/Courses.css"
|
import "./css/Courses.css"
|
||||||
//引入对应跳转的组件
|
//引入对应跳转的组件
|
||||||
const ListPageIndex = Loadable({
|
const ListPageIndex = Loadable({
|
||||||
loader: () => import('./ListPageIndex'),
|
loader: () => import('./ListPageIndex'),
|
||||||
loading:Loading,
|
loading:Loading,
|
||||||
})
|
})
|
||||||
// 讨论
|
// 讨论
|
||||||
const BoardsNew= Loadable({
|
const BoardsNew= Loadable({
|
||||||
loader: () => import('./boards/BoardsNew'),
|
loader: () => import('./boards/BoardsNew'),
|
||||||
loading: Loading,
|
loading: Loading,
|
||||||
})
|
})
|
||||||
const TopicDetail= Loadable({
|
const TopicDetail= Loadable({
|
||||||
loader: () => import('./boards/TopicDetail'),
|
loader: () => import('./boards/TopicDetail'),
|
||||||
loading: Loading,
|
loading: Loading,
|
||||||
})
|
})
|
||||||
|
|
||||||
// 讨论
|
// 讨论
|
||||||
const Boards= Loadable({
|
const Boards= Loadable({
|
||||||
loader: () => import('./boards'),
|
loader: () => import('./boards'),
|
||||||
loading: Loading,
|
loading: Loading,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
class CoursesIndex extends Component{
|
class CoursesIndex extends Component{
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props)
|
super(props)
|
||||||
this.state={
|
this.state={
|
||||||
// coursedata:undefined
|
// coursedata:undefined
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount(){
|
componentDidMount(){
|
||||||
|
|
||||||
}
|
}
|
||||||
render() {
|
render() {
|
||||||
const common = {
|
const common = {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Switch {...this.props}>
|
<Switch {...this.props}>
|
||||||
|
|
||||||
{/*课堂讨论*/}
|
{/*课堂讨论*/}
|
||||||
{/* /board/5464/messages/new */}
|
{/* /board/5464/messages/new */}
|
||||||
{/* <Route exact path="/courses/:coursesId/board/:boardId/messages/:topicId/edit"
|
{/* <Route exact path="/classrooms/:coursesId/board/:boardId/messages/:topicId/edit"
|
||||||
render={
|
render={
|
||||||
(props) => (<BoardsNew {...this.props} {...props} {...this.state} {...common} />)
|
(props) => (<BoardsNew {...this.props} {...props} {...this.state} {...common} />)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
|
|
||||||
<Route exact path="/courses/:coursesId/board/:boardId/messages/new" component={BoardsNew}
|
<Route exact path="/classrooms/:coursesId/board/:boardId/messages/new" component={BoardsNew}
|
||||||
render={
|
render={
|
||||||
(props) => (<BoardsNew {...this.props} {...props} {...this.state} {...common} />)
|
(props) => (<BoardsNew {...this.props} {...props} {...this.state} {...common} />)
|
||||||
}
|
}
|
||||||
></Route> */}
|
></Route> */}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{/*课堂讨论*/}
|
{/*课堂讨论*/}
|
||||||
<Route exact path="/courses/:coursesId/boards/:boardId/messages/:topicId/edit"
|
<Route exact path="/classrooms/:coursesId/boards/:boardId/messages/:topicId/edit"
|
||||||
render={
|
render={
|
||||||
(props) => (<BoardsNew {...this.props} {...props} {...this.state} {...common} />)
|
(props) => (<BoardsNew {...this.props} {...props} {...this.state} {...common} />)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
<Route exact path="/courses/:coursesId/boards/:boardId/messages/new"
|
<Route exact path="/classrooms/:coursesId/boards/:boardId/messages/new"
|
||||||
render={
|
render={
|
||||||
(props) => (<BoardsNew {...this.props} {...props} {...this.state} {...common} />)
|
(props) => (<BoardsNew {...this.props} {...props} {...this.state} {...common} />)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
<Route exact path="/courses/:coursesId/boards/:boardId/messages/:topicId"
|
<Route exact path="/classrooms/:coursesId/boards/:boardId/messages/:topicId"
|
||||||
render={
|
render={
|
||||||
(props) => (<TopicDetail {...this.props} {...this.state} {...props} {...common} />)
|
(props) => (<TopicDetail {...this.props} {...this.state} {...props} {...common} />)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
<Route exact path="/courses/:coursesId/boards/:boardId/messages/:topicId"
|
<Route exact path="/classrooms/:coursesId/boards/:boardId/messages/:topicId"
|
||||||
render={
|
render={
|
||||||
(props) => (<TopicDetail {...this.props} {...this.state} {...props} {...common} />)
|
(props) => (<TopicDetail {...this.props} {...this.state} {...props} {...common} />)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
<Route exact path="/courses/:coursesId/boards/:boardId"
|
<Route exact path="/classrooms/:coursesId/boards/:boardId"
|
||||||
render={
|
render={
|
||||||
(props) => (<ListPageIndex {...this.props} {...props} {...this.state} {...common} />)
|
(props) => (<ListPageIndex {...this.props} {...props} {...this.state} {...common} />)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
|
|
||||||
</Switch>
|
</Switch>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default CNotificationHOC() ( SnackbarHOC() ( (CoursesIndex) ));
|
export default CNotificationHOC() ( SnackbarHOC() ( (CoursesIndex) ));
|
||||||
|
@ -1,66 +1,66 @@
|
|||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
|
|
||||||
export function RouteHOC(options = {}) {
|
export function RouteHOC(options = {}) {
|
||||||
return function wrap(WrappedComponent) {
|
return function wrap(WrappedComponent) {
|
||||||
return class Wrapper extends Component {
|
return class Wrapper extends Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
||||||
this.state = {
|
this.state = {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
toDetailPage = (_courseId, boardId, topicId) => {
|
toDetailPage = (_courseId, boardId, topicId) => {
|
||||||
if (typeof _courseId == "object") {
|
if (typeof _courseId == "object") {
|
||||||
const topicId = _courseId.topicId
|
const topicId = _courseId.topicId
|
||||||
const boardId = _courseId.boardId
|
const boardId = _courseId.boardId
|
||||||
const courseId = _courseId.coursesId
|
const courseId = _courseId.coursesId
|
||||||
this.props.history.push(`/courses/${courseId}/boards/${boardId}/messages/${topicId}`)
|
this.props.history.push(`/classrooms/${courseId}/boards/${boardId}/messages/${topicId}`)
|
||||||
} else {
|
} else {
|
||||||
this.props.history.push(`/courses/${_courseId}/boards/${boardId}/messages/${topicId}`)
|
this.props.history.push(`/classrooms/${_courseId}/boards/${boardId}/messages/${topicId}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
toEditPage = (_courseId, boardId, topicId) => {
|
toEditPage = (_courseId, boardId, topicId) => {
|
||||||
if (typeof _courseId == "object") {
|
if (typeof _courseId == "object") {
|
||||||
const topicId = _courseId.topicId
|
const topicId = _courseId.topicId
|
||||||
const boardId = _courseId.boardId
|
const boardId = _courseId.boardId
|
||||||
const courseId = _courseId.coursesId
|
const courseId = _courseId.coursesId
|
||||||
this.props.history.push(`/courses/${courseId}/boards/${boardId}/messages/${topicId}/edit`)
|
this.props.history.push(`/classrooms/${courseId}/boards/${boardId}/messages/${topicId}/edit`)
|
||||||
} else {
|
} else {
|
||||||
this.props.history.push(`/courses/${_courseId}/boards/${boardId}/messages/${topicId}/edit`)
|
this.props.history.push(`/classrooms/${_courseId}/boards/${boardId}/messages/${topicId}/edit`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
toNewPage = (courseId, boardId) => {
|
toNewPage = (courseId, boardId) => {
|
||||||
this.props.history.push(`/courses/${courseId}/boards/${boardId}/messages/new`)
|
this.props.history.push(`/classrooms/${courseId}/boards/${boardId}/messages/new`)
|
||||||
}
|
}
|
||||||
toListPage = (_courseId, boardId) => {
|
toListPage = (_courseId, boardId) => {
|
||||||
if (typeof _courseId == "object") {
|
if (typeof _courseId == "object") {
|
||||||
const boardId = _courseId.boardId
|
const boardId = _courseId.boardId
|
||||||
const courseId = _courseId.coursesId
|
const courseId = _courseId.coursesId
|
||||||
this.props.history.push(`/courses/${courseId}/boards/${boardId}`)
|
this.props.history.push(`/classrooms/${courseId}/boards/${boardId}`)
|
||||||
} else {
|
} else {
|
||||||
this.props.history.push(`/courses/${_courseId}/boards${boardId ? '/' + boardId : ''}`)
|
this.props.history.push(`/classrooms/${_courseId}/boards${boardId ? '/' + boardId : ''}`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { snackbarOpen} = this.state;
|
const { snackbarOpen} = this.state;
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
<WrappedComponent {...this.props}
|
<WrappedComponent {...this.props}
|
||||||
toDetailPage={this.toDetailPage}
|
toDetailPage={this.toDetailPage}
|
||||||
toEditPage={this.toEditPage}
|
toEditPage={this.toEditPage}
|
||||||
toNewPage={this.toNewPage}
|
toNewPage={this.toNewPage}
|
||||||
toListPage={this.toListPage}
|
toListPage={this.toListPage}
|
||||||
>
|
>
|
||||||
|
|
||||||
</WrappedComponent>
|
</WrappedComponent>
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,142 +1,142 @@
|
|||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import { SnackbarHOC } from 'educoder';
|
import { SnackbarHOC } from 'educoder';
|
||||||
import {BrowserRouter as Router,Route,Switch} from 'react-router-dom';
|
import {BrowserRouter as Router,Route,Switch} from 'react-router-dom';
|
||||||
import Loadable from 'react-loadable';
|
import Loadable from 'react-loadable';
|
||||||
import Loading from '../../../Loading';
|
import Loading from '../../../Loading';
|
||||||
import { CNotificationHOC } from '../common/CNotificationHOC'
|
import { CNotificationHOC } from '../common/CNotificationHOC'
|
||||||
import { RouteHOC } from './common'
|
import { RouteHOC } from './common'
|
||||||
import "../css/busyWork.css"
|
import "../css/busyWork.css"
|
||||||
//引入对应跳转的组件
|
//引入对应跳转的组件
|
||||||
const ListPageIndex = Loadable({
|
const ListPageIndex = Loadable({
|
||||||
loader: () => import('../ListPageIndex'),
|
loader: () => import('../ListPageIndex'),
|
||||||
loading:Loading,
|
loading:Loading,
|
||||||
})
|
})
|
||||||
//新建分组/普通作业
|
//新建分组/普通作业
|
||||||
const NewWork = Loadable({
|
const NewWork = Loadable({
|
||||||
loader: () => import('./NewWork'),
|
loader: () => import('./NewWork'),
|
||||||
loading:Loading,
|
loading:Loading,
|
||||||
})
|
})
|
||||||
const CommonWorkDetailIndex = Loadable({
|
const CommonWorkDetailIndex = Loadable({
|
||||||
loader: () => import('./CommonWorkDetailIndex'),
|
loader: () => import('./CommonWorkDetailIndex'),
|
||||||
loading:Loading,
|
loading:Loading,
|
||||||
})
|
})
|
||||||
const CommonWorkSetting = Loadable({
|
const CommonWorkSetting = Loadable({
|
||||||
loader: () => import('./CommonWorkSetting'),
|
loader: () => import('./CommonWorkSetting'),
|
||||||
loading:Loading,
|
loading:Loading,
|
||||||
})
|
})
|
||||||
const CommonWorkList = Loadable({
|
const CommonWorkList = Loadable({
|
||||||
loader: () => import('./CommonWorkList'),
|
loader: () => import('./CommonWorkList'),
|
||||||
loading:Loading,
|
loading:Loading,
|
||||||
})
|
})
|
||||||
const CommonWorkQuestion = Loadable({
|
const CommonWorkQuestion = Loadable({
|
||||||
loader: () => import('./CommonWorkQuestion'),
|
loader: () => import('./CommonWorkQuestion'),
|
||||||
loading:Loading,
|
loading:Loading,
|
||||||
})
|
})
|
||||||
const CommonWorkAnswer = Loadable({
|
const CommonWorkAnswer = Loadable({
|
||||||
loader: () => import('./CommonWorkAnswer'),
|
loader: () => import('./CommonWorkAnswer'),
|
||||||
loading:Loading,
|
loading:Loading,
|
||||||
})
|
})
|
||||||
const CommonWorkAppraise = Loadable({
|
const CommonWorkAppraise = Loadable({
|
||||||
loader: () => import('./CommonWorkAppraise'),
|
loader: () => import('./CommonWorkAppraise'),
|
||||||
loading:Loading,
|
loading:Loading,
|
||||||
})
|
})
|
||||||
|
|
||||||
const CommonWorkPost = Loadable({
|
const CommonWorkPost = Loadable({
|
||||||
loader: () => import('./CommonWorkPost'),
|
loader: () => import('./CommonWorkPost'),
|
||||||
loading:Loading,
|
loading:Loading,
|
||||||
})
|
})
|
||||||
|
|
||||||
const CommonWork = Loadable({
|
const CommonWork = Loadable({
|
||||||
loader: () => import('./commonWork'),
|
loader: () => import('./commonWork'),
|
||||||
loading:Loading,
|
loading:Loading,
|
||||||
})
|
})
|
||||||
class CoursesWorkIndex extends Component{
|
class CoursesWorkIndex extends Component{
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props)
|
super(props)
|
||||||
}
|
}
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Switch {...this.props}>
|
<Switch {...this.props}>
|
||||||
|
|
||||||
{/* --------------------------------------------------------------------- */}
|
{/* --------------------------------------------------------------------- */}
|
||||||
|
|
||||||
{/* 作业设置 */}
|
{/* 作业设置 */}
|
||||||
{/* http://localhost:3007/courses/1309/homework/9300/setting */}
|
{/* http://localhost:3007/classrooms/1309/homework/9300/setting */}
|
||||||
<Route exact path="/courses/:coursesId/common_homeworks/:workId/setting"
|
<Route exact path="/classrooms/:coursesId/common_homeworks/:workId/setting"
|
||||||
render={
|
render={
|
||||||
(props) => (<CommonWorkDetailIndex {...this.props} {...props} {...this.state} />)
|
(props) => (<CommonWorkDetailIndex {...this.props} {...props} {...this.state} />)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
|
|
||||||
{/* 作品列表 */}
|
{/* 作品列表 */}
|
||||||
<Route exact path="/courses/:coursesId/common_homeworks/:workId/list"
|
<Route exact path="/classrooms/:coursesId/common_homeworks/:workId/list"
|
||||||
render={
|
render={
|
||||||
(props) => (<CommonWorkDetailIndex {...this.props} {...props} {...this.state} />)
|
(props) => (<CommonWorkDetailIndex {...this.props} {...props} {...this.state} />)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
{/* 作业问答 */}
|
{/* 作业问答 */}
|
||||||
<Route exact path="/courses/:coursesId/common_homeworks/:workId/question"
|
<Route exact path="/classrooms/:coursesId/common_homeworks/:workId/question"
|
||||||
render={
|
render={
|
||||||
(props) => (<CommonWorkDetailIndex {...this.props} {...props} {...this.state} />)
|
(props) => (<CommonWorkDetailIndex {...this.props} {...props} {...this.state} />)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
<Route exact path="/courses/:coursesId/common_homeworks/:workId/answer"
|
<Route exact path="/classrooms/:coursesId/common_homeworks/:workId/answer"
|
||||||
render={
|
render={
|
||||||
(props) => (<CommonWorkDetailIndex {...this.props} {...props} {...this.state} />)
|
(props) => (<CommonWorkDetailIndex {...this.props} {...props} {...this.state} />)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
|
|
||||||
{/* 评阅 */}
|
{/* 评阅 */}
|
||||||
<Route exact path="/courses/:coursesId/common_homeworks/:workId/:studentWorkId/appraise"
|
<Route exact path="/classrooms/:coursesId/common_homeworks/:workId/:studentWorkId/appraise"
|
||||||
render={
|
render={
|
||||||
(props) => (<CommonWorkAppraise {...this.props} {...props} {...this.state} />)
|
(props) => (<CommonWorkAppraise {...this.props} {...props} {...this.state} />)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
|
|
||||||
{/* 提交作品 */}
|
{/* 提交作品 */}
|
||||||
<Route exact path="/courses/:coursesId/common_homeworks/:workId/post"
|
<Route exact path="/classrooms/:coursesId/common_homeworks/:workId/post"
|
||||||
render={
|
render={
|
||||||
(props) => (<CommonWorkPost {...this.props} {...props} {...this.state} />)
|
(props) => (<CommonWorkPost {...this.props} {...props} {...this.state} />)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
<Route exact path="/courses/:coursesId/common_homeworks/:workId/:studentWorkId/post_edit"
|
<Route exact path="/classrooms/:coursesId/common_homeworks/:workId/:studentWorkId/post_edit"
|
||||||
render={
|
render={
|
||||||
(props) => (<CommonWorkPost {...this.props} {...props} {...this.state} />)
|
(props) => (<CommonWorkPost {...this.props} {...props} {...this.state} />)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
|
|
||||||
|
|
||||||
{/* 新建 */}
|
{/* 新建 */}
|
||||||
{/* http://localhost:3007/courses/1309/common_homeworks/9299/edit/1 */}
|
{/* http://localhost:3007/classrooms/1309/common_homeworks/9299/edit/1 */}
|
||||||
<Route exact path="/courses/:coursesId/common_homeworks/:workId/:pageType"
|
<Route exact path="/classrooms/:coursesId/common_homeworks/:workId/:pageType"
|
||||||
render={
|
render={
|
||||||
(props) => (<NewWork {...this.props} {...props} {...this.state} />)
|
(props) => (<NewWork {...this.props} {...props} {...this.state} />)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
<Route exact path="/courses/:coursesId/common_homeworks/:categroy_id/new"
|
<Route exact path="/classrooms/:coursesId/common_homeworks/:categroy_id/new"
|
||||||
render={
|
render={
|
||||||
(props) => (<NewWork {...this.props} {...props} {...this.state} />)
|
(props) => (<NewWork {...this.props} {...props} {...this.state} />)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{/* 作业列表 */}
|
{/* 作业列表 */}
|
||||||
<Route path="/courses/:coursesId/common_homeworks"
|
<Route path="/classrooms/:coursesId/common_homeworks"
|
||||||
render={
|
render={
|
||||||
(props) => (<ListPageIndex {...this.props} {...props} {...this.state} />)
|
(props) => (<ListPageIndex {...this.props} {...props} {...this.state} />)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
|
|
||||||
{/* --------------------------------------------------------------------- */}
|
{/* --------------------------------------------------------------------- */}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</Switch>
|
</Switch>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default RouteHOC() (CNotificationHOC() (SnackbarHOC() ( CoursesWorkIndex) ));
|
export default RouteHOC() (CNotificationHOC() (SnackbarHOC() ( CoursesWorkIndex) ));
|
||||||
|
@ -1,140 +1,140 @@
|
|||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import { SnackbarHOC } from 'educoder';
|
import { SnackbarHOC } from 'educoder';
|
||||||
import {BrowserRouter as Router,Route,Switch} from 'react-router-dom';
|
import {BrowserRouter as Router,Route,Switch} from 'react-router-dom';
|
||||||
import Loadable from 'react-loadable';
|
import Loadable from 'react-loadable';
|
||||||
import Loading from '../../../Loading';
|
import Loading from '../../../Loading';
|
||||||
import { CNotificationHOC } from '../common/CNotificationHOC'
|
import { CNotificationHOC } from '../common/CNotificationHOC'
|
||||||
import { RouteHOC } from './common'
|
import { RouteHOC } from './common'
|
||||||
import "../css/busyWork.css"
|
import "../css/busyWork.css"
|
||||||
//引入对应跳转的组件
|
//引入对应跳转的组件
|
||||||
const ListPageIndex = Loadable({
|
const ListPageIndex = Loadable({
|
||||||
loader: () => import('../ListPageIndex'),
|
loader: () => import('../ListPageIndex'),
|
||||||
loading:Loading,
|
loading:Loading,
|
||||||
})
|
})
|
||||||
//新建分组/普通作业
|
//新建分组/普通作业
|
||||||
const NewWork = Loadable({
|
const NewWork = Loadable({
|
||||||
loader: () => import('./NewWork'),
|
loader: () => import('./NewWork'),
|
||||||
loading:Loading,
|
loading:Loading,
|
||||||
})
|
})
|
||||||
const CommonWorkPost = Loadable({
|
const CommonWorkPost = Loadable({
|
||||||
loader: () => import('./CommonWorkPost'),
|
loader: () => import('./CommonWorkPost'),
|
||||||
loading:Loading,
|
loading:Loading,
|
||||||
})
|
})
|
||||||
const CommonWorkSetting = Loadable({
|
const CommonWorkSetting = Loadable({
|
||||||
loader: () => import('./CommonWorkSetting'),
|
loader: () => import('./CommonWorkSetting'),
|
||||||
loading:Loading,
|
loading:Loading,
|
||||||
})
|
})
|
||||||
const CommonWorkList = Loadable({
|
const CommonWorkList = Loadable({
|
||||||
loader: () => import('./CommonWorkList'),
|
loader: () => import('./CommonWorkList'),
|
||||||
loading:Loading,
|
loading:Loading,
|
||||||
})
|
})
|
||||||
const CommonWorkQuestion = Loadable({
|
const CommonWorkQuestion = Loadable({
|
||||||
loader: () => import('./CommonWorkQuestion'),
|
loader: () => import('./CommonWorkQuestion'),
|
||||||
loading:Loading,
|
loading:Loading,
|
||||||
})
|
})
|
||||||
const CommonWorkAnswer = Loadable({
|
const CommonWorkAnswer = Loadable({
|
||||||
loader: () => import('./CommonWorkAnswer'),
|
loader: () => import('./CommonWorkAnswer'),
|
||||||
loading:Loading,
|
loading:Loading,
|
||||||
})
|
})
|
||||||
const CommonWorkAppraise = Loadable({
|
const CommonWorkAppraise = Loadable({
|
||||||
loader: () => import('./CommonWorkAppraise'),
|
loader: () => import('./CommonWorkAppraise'),
|
||||||
loading:Loading,
|
loading:Loading,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
const CommonWork = Loadable({
|
const CommonWork = Loadable({
|
||||||
loader: () => import('./commonWork'),
|
loader: () => import('./commonWork'),
|
||||||
loading:Loading,
|
loading:Loading,
|
||||||
})
|
})
|
||||||
|
|
||||||
const CommonWorkDetailIndex = Loadable({
|
const CommonWorkDetailIndex = Loadable({
|
||||||
loader: () => import('./CommonWorkDetailIndex'),
|
loader: () => import('./CommonWorkDetailIndex'),
|
||||||
loading:Loading,
|
loading:Loading,
|
||||||
})
|
})
|
||||||
class CoursesWorkIndex extends Component{
|
class CoursesWorkIndex extends Component{
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props)
|
super(props)
|
||||||
}
|
}
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Switch {...this.props}>
|
<Switch {...this.props}>
|
||||||
|
|
||||||
|
|
||||||
{/* --------------------------------------------------------------------- */}
|
{/* --------------------------------------------------------------------- */}
|
||||||
|
|
||||||
{/* --------------------------------------------------------------------- */}
|
{/* --------------------------------------------------------------------- */}
|
||||||
|
|
||||||
{/* 作业设置 */}
|
{/* 作业设置 */}
|
||||||
<Route exact path="/courses/:coursesId/group_homeworks/:workId/setting"
|
<Route exact path="/classrooms/:coursesId/group_homeworks/:workId/setting"
|
||||||
render={
|
render={
|
||||||
(props) => (<CommonWorkDetailIndex {...this.props} {...props} {...this.state} />)
|
(props) => (<CommonWorkDetailIndex {...this.props} {...props} {...this.state} />)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
|
|
||||||
{/* 作品列表 */}
|
{/* 作品列表 */}
|
||||||
<Route exact path="/courses/:coursesId/group_homeworks/:workId/list"
|
<Route exact path="/classrooms/:coursesId/group_homeworks/:workId/list"
|
||||||
render={
|
render={
|
||||||
(props) => (<CommonWorkDetailIndex {...this.props} {...props} {...this.state} />)
|
(props) => (<CommonWorkDetailIndex {...this.props} {...props} {...this.state} />)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
|
|
||||||
{/* 作业问答 */}
|
{/* 作业问答 */}
|
||||||
<Route exact path="/courses/:coursesId/group_homeworks/:workId/question"
|
<Route exact path="/classrooms/:coursesId/group_homeworks/:workId/question"
|
||||||
render={
|
render={
|
||||||
(props) => (<CommonWorkDetailIndex {...this.props} {...props} {...this.state} />)
|
(props) => (<CommonWorkDetailIndex {...this.props} {...props} {...this.state} />)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
{/* 参考答案 */}
|
{/* 参考答案 */}
|
||||||
<Route exact path="/courses/:coursesId/group_homeworks/:workId/answer"
|
<Route exact path="/classrooms/:coursesId/group_homeworks/:workId/answer"
|
||||||
render={
|
render={
|
||||||
(props) => (<CommonWorkDetailIndex {...this.props} {...props} {...this.state} />)
|
(props) => (<CommonWorkDetailIndex {...this.props} {...props} {...this.state} />)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
{/* 评阅 */}
|
{/* 评阅 */}
|
||||||
<Route exact path="/courses/:coursesId/group_homeworks/:workId/:studentWorkId/appraise"
|
<Route exact path="/classrooms/:coursesId/group_homeworks/:workId/:studentWorkId/appraise"
|
||||||
render={
|
render={
|
||||||
(props) => (<CommonWorkAppraise {...this.props} {...props} {...this.state} />)
|
(props) => (<CommonWorkAppraise {...this.props} {...props} {...this.state} />)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
|
|
||||||
|
|
||||||
<Route exact path="/courses/:coursesId/group_homeworks/:workId/post"
|
<Route exact path="/classrooms/:coursesId/group_homeworks/:workId/post"
|
||||||
render={
|
render={
|
||||||
(props) => (<CommonWorkPost {...this.props} {...props} {...this.state} />)
|
(props) => (<CommonWorkPost {...this.props} {...props} {...this.state} />)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
<Route exact path="/courses/:coursesId/group_homeworks/:workId/:studentWorkId/post_edit"
|
<Route exact path="/classrooms/:coursesId/group_homeworks/:workId/:studentWorkId/post_edit"
|
||||||
render={
|
render={
|
||||||
(props) => (<CommonWorkPost {...this.props} {...props} {...this.state} />)
|
(props) => (<CommonWorkPost {...this.props} {...props} {...this.state} />)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
|
|
||||||
{/* 新建 */}
|
{/* 新建 */}
|
||||||
{/* http://localhost:3007/courses/1309/group_homeworks/9299/edit/1 */}
|
{/* http://localhost:3007/classrooms/1309/group_homeworks/9299/edit/1 */}
|
||||||
<Route exact path="/courses/:coursesId/group_homeworks/:workId/:pageType"
|
<Route exact path="/classrooms/:coursesId/group_homeworks/:workId/:pageType"
|
||||||
render={
|
render={
|
||||||
(props) => (<NewWork {...this.props} {...props} {...this.state} />)
|
(props) => (<NewWork {...this.props} {...props} {...this.state} />)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
<Route exact path="/courses/:coursesId/group_homeworks/:categroy_id/new"
|
<Route exact path="/classrooms/:coursesId/group_homeworks/:categroy_id/new"
|
||||||
render={
|
render={
|
||||||
(props) => (<NewWork {...this.props} {...props} {...this.state} />)
|
(props) => (<NewWork {...this.props} {...props} {...this.state} />)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
|
|
||||||
{/* 作业列表 */}
|
{/* 作业列表 */}
|
||||||
<Route path="/courses/:coursesId/group_homeworks"
|
<Route path="/classrooms/:coursesId/group_homeworks"
|
||||||
render={
|
render={
|
||||||
(props) => (<ListPageIndex {...this.props} {...props} {...this.state} />)
|
(props) => (<ListPageIndex {...this.props} {...props} {...this.state} />)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
|
|
||||||
|
|
||||||
</Switch>
|
</Switch>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default RouteHOC() (CNotificationHOC() (SnackbarHOC() ( CoursesWorkIndex) ));
|
export default RouteHOC() (CNotificationHOC() (SnackbarHOC() ( CoursesWorkIndex) ));
|
||||||
|
@ -1,190 +1,190 @@
|
|||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
|
|
||||||
import {Link} from 'react-router-dom';
|
import {Link} from 'react-router-dom';
|
||||||
import {Tooltip,Menu} from 'antd';
|
import {Tooltip,Menu} from 'antd';
|
||||||
import {getImageUrl} from 'educoder';
|
import {getImageUrl} from 'educoder';
|
||||||
|
|
||||||
import "./usersInfo.css"
|
import "./usersInfo.css"
|
||||||
import "../../courses/css/members.css"
|
import "../../courses/css/members.css"
|
||||||
import "../../courses/css/Courses.css"
|
import "../../courses/css/Courses.css"
|
||||||
class banner_out extends Component{
|
class banner_out extends Component{
|
||||||
constructor(props){
|
constructor(props){
|
||||||
super(props);
|
super(props);
|
||||||
}
|
}
|
||||||
render(){
|
render(){
|
||||||
let {
|
let {
|
||||||
data ,
|
data ,
|
||||||
is_current,
|
is_current,
|
||||||
is_edit,
|
is_edit,
|
||||||
sign,
|
sign,
|
||||||
type,
|
type,
|
||||||
followed,
|
followed,
|
||||||
id,
|
id,
|
||||||
login,
|
login,
|
||||||
moduleName,
|
moduleName,
|
||||||
next_gold
|
next_gold
|
||||||
}=this.props;
|
}=this.props;
|
||||||
let {username}= this.props.match.params;
|
let {username}= this.props.match.params;
|
||||||
return(
|
return(
|
||||||
<div className="user-main-half">
|
<div className="user-main-half">
|
||||||
<div className="user-headImg"></div>
|
<div className="user-headImg"></div>
|
||||||
<div className="user-headCon">
|
<div className="user-headCon">
|
||||||
<div className="pr" style={{"min-height": "465px"}}>
|
<div className="pr" style={{"min-height": "465px"}}>
|
||||||
<div className="educontent pt80 clearfix edu-txt-center">
|
<div className="educontent pt80 clearfix edu-txt-center">
|
||||||
<div className="inline">
|
<div className="inline">
|
||||||
<div className="fl headtab">
|
<div className="fl headtab">
|
||||||
<span>{is_current ? "我":"TA"}的经验值</span>
|
<span>{is_current ? "我":"TA"}的经验值</span>
|
||||||
<a style={{ cursor: 'default' }}
|
<a style={{ cursor: 'default' }}
|
||||||
// href={`${this.props.Headertop && this.props.Headertop.old_url}/users/${username}/user_experience`}
|
// href={`${this.props.Headertop && this.props.Headertop.old_url}/users/${username}/user_experience`}
|
||||||
>{data && data.experience}</a>
|
>{data && data.experience}</a>
|
||||||
</div>
|
</div>
|
||||||
<em className="v-h-line fl"></em>
|
<em className="v-h-line fl"></em>
|
||||||
<div className="fl headtab">
|
<div className="fl headtab">
|
||||||
<span>{is_current ? "我":"TA"}的金币</span>
|
<span>{is_current ? "我":"TA"}的金币</span>
|
||||||
<a style={{ cursor: 'default' }}
|
<a style={{ cursor: 'default' }}
|
||||||
// href={`${this.props.Headertop && this.props.Headertop.old_url}/users/${username}/user_grade`}
|
// href={`${this.props.Headertop && this.props.Headertop.old_url}/users/${username}/user_grade`}
|
||||||
id="user_code">{data && data.grade}</a>
|
id="user_code">{data && data.grade}</a>
|
||||||
</div>
|
</div>
|
||||||
<div className="headphoto mt14">
|
<div className="headphoto mt14">
|
||||||
<img alt="头像" id="user_avatar_show" nhname="avatar_image" src={data && `${getImageUrl('images/'+data.avatar_url)}`}/>
|
<img alt="头像" id="user_avatar_show" nhname="avatar_image" src={data && `${getImageUrl('images/'+data.avatar_url)}`}/>
|
||||||
</div>
|
</div>
|
||||||
<div className="fl headtab">
|
<div className="fl headtab">
|
||||||
<span>{is_current ? "我":"TA"}的粉丝</span>
|
<span>{is_current ? "我":"TA"}的粉丝</span>
|
||||||
<a style={{ cursor: 'default' }}
|
<a style={{ cursor: 'default' }}
|
||||||
// href={`${this.props.Headertop && this.props.Headertop.old_url}/users/${username}/user_fanslist`}
|
// href={`${this.props.Headertop && this.props.Headertop.old_url}/users/${username}/user_fanslist`}
|
||||||
id="user_h_fan_count">{data && data.fan_count}</a>
|
id="user_h_fan_count">{data && data.fan_count}</a>
|
||||||
</div>
|
</div>
|
||||||
<em className="v-h-line fl"></em>
|
<em className="v-h-line fl"></em>
|
||||||
<div className="fl headtab">
|
<div className="fl headtab">
|
||||||
<span>{is_current ? "我":"TA"}的关注</span>
|
<span>{is_current ? "我":"TA"}的关注</span>
|
||||||
<a style={{ cursor: 'default' }}
|
<a style={{ cursor: 'default' }}
|
||||||
// href={`${this.props.Headertop && this.props.Headertop.old_url}/users/${username}/user_watchlist`}
|
// href={`${this.props.Headertop && this.props.Headertop.old_url}/users/${username}/user_watchlist`}
|
||||||
>{data && data.follow_count}</a>
|
>{data && data.follow_count}</a>
|
||||||
</div>
|
</div>
|
||||||
<span className="clearfix"></span>
|
<span className="clearfix"></span>
|
||||||
<span className="myName">{data && data.name}</span>
|
<span className="myName">{data && data.name}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="educontent mt10 clearfix edu-txt-center">
|
<div className="educontent mt10 clearfix edu-txt-center">
|
||||||
<div className="inline">
|
<div className="inline">
|
||||||
{
|
{
|
||||||
data && is_current == false && data.identity =="学生" ? "" : <span className="mypost fl mr10">{data && data.identity}</span>
|
data && is_current == false && data.identity =="学生" ? "" : <span className="mypost fl mr10">{data && data.identity}</span>
|
||||||
}
|
}
|
||||||
<a
|
<a
|
||||||
// href={is_current ? `${this.props.Headertop && this.props.Headertop.old_url}/account/authentication` :"javascript:void(0)"}
|
// href={is_current ? `${this.props.Headertop && this.props.Headertop.old_url}/account/authentication` :"javascript:void(0)"}
|
||||||
// target="_blank"
|
// target="_blank"
|
||||||
className={is_current ? "ringauto fl" :"ringauto fl cdefault"}>
|
className={is_current ? "ringauto fl" :"ringauto fl cdefault"}>
|
||||||
<Tooltip placement='bottom' title={ data && data.authentication ?"已实名认证":"未实名认证"}>
|
<Tooltip placement='bottom' title={ data && data.authentication ?"已实名认证":"未实名认证"}>
|
||||||
<i className={ data && data.authentication ? "iconfont icon-shenfenrenzheng font-13 color-blue":"iconfont icon-shenfenrenzheng font-13 color-grey-9"}></i>
|
<i className={ data && data.authentication ? "iconfont icon-shenfenrenzheng font-13 color-blue":"iconfont icon-shenfenrenzheng font-13 color-grey-9"}></i>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
// href={is_current ? `${this.props.Headertop && this.props.Headertop.old_url}/account/professional_certification` :"javascript:void(0)"}
|
// href={is_current ? `${this.props.Headertop && this.props.Headertop.old_url}/account/professional_certification` :"javascript:void(0)"}
|
||||||
// target="_blank"
|
// target="_blank"
|
||||||
className={is_current ? "ringauto fl" :"ringauto fl cdefault"}>
|
className={is_current ? "ringauto fl" :"ringauto fl cdefault"}>
|
||||||
<Tooltip placement='bottom' title={ data && data.professional_certification ?"已职业认证":"未职业认证"}>
|
<Tooltip placement='bottom' title={ data && data.professional_certification ?"已职业认证":"未职业认证"}>
|
||||||
<i className={ data && data.professional_certification ? "iconfont icon-zhiyerenzheng font-13 color-blue":"iconfont icon-zhiyerenzheng font-13 color-grey-9"}></i>
|
<i className={ data && data.professional_certification ? "iconfont icon-zhiyerenzheng font-13 color-blue":"iconfont icon-zhiyerenzheng font-13 color-grey-9"}></i>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
// href={is_current ? `${this.props.Headertop && this.props.Headertop.old_url}/account/change_or_bind?type=phone` :"javascript:void(0)"}
|
// href={is_current ? `${this.props.Headertop && this.props.Headertop.old_url}/account/change_or_bind?type=phone` :"javascript:void(0)"}
|
||||||
// target="_blank"
|
// target="_blank"
|
||||||
className={is_current ? "ringauto fl" :"ringauto fl cdefault"}>
|
className={is_current ? "ringauto fl" :"ringauto fl cdefault"}>
|
||||||
<Tooltip placement='bottom' title={ data && data.phone_binded ?"已手机认证":"未手机认证"}>
|
<Tooltip placement='bottom' title={ data && data.phone_binded ?"已手机认证":"未手机认证"}>
|
||||||
<i className={ data && data.phone_binded ? "iconfont icon-shoujirenzheng font-13 color-blue":"iconfont icon-shoujirenzheng font-13 color-grey-9"}></i>
|
<i className={ data && data.phone_binded ? "iconfont icon-shoujirenzheng font-13 color-blue":"iconfont icon-shoujirenzheng font-13 color-grey-9"}></i>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
// href={is_current ? `${this.props.Headertop && this.props.Headertop.old_url}/my/account` :"javascript:void(0)"}
|
// href={is_current ? `${this.props.Headertop && this.props.Headertop.old_url}/my/account` :"javascript:void(0)"}
|
||||||
// target="_blank"
|
// target="_blank"
|
||||||
className={is_current ? "ringauto fl" :"ringauto fl cdefault"}>
|
className={is_current ? "ringauto fl" :"ringauto fl cdefault"}>
|
||||||
<Tooltip placement='bottom' title={ data && data.email_binded ?"已邮箱认证":"未邮箱认证"}>
|
<Tooltip placement='bottom' title={ data && data.email_binded ?"已邮箱认证":"未邮箱认证"}>
|
||||||
<i className={ data && data.email_binded ? "iconfont icon-youxiangrenzheng font-13 color-blue":"iconfont icon-youxiangrenzheng font-13 color-grey-9"}></i>
|
<i className={ data && data.email_binded ? "iconfont icon-youxiangrenzheng font-13 color-blue":"iconfont icon-youxiangrenzheng font-13 color-grey-9"}></i>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</a>
|
</a>
|
||||||
{/* <!--学院管理员身份--> */}
|
{/* <!--学院管理员身份--> */}
|
||||||
{
|
{
|
||||||
data && data.college_identifier &&
|
data && data.college_identifier &&
|
||||||
<a
|
<a
|
||||||
// href={`${this.props.Headertop && this.props.Headertop.old_url}/colleges/${data.college_identifier}/statistics`} target="_blank"
|
// href={`${this.props.Headertop && this.props.Headertop.old_url}/colleges/${data.college_identifier}/statistics`} target="_blank"
|
||||||
className={is_current ? "ringauto fl" :"ringauto fl cdefault"}>
|
className={is_current ? "ringauto fl" :"ringauto fl cdefault"}>
|
||||||
<Tooltip placement='bottom' title="学院管理员">
|
<Tooltip placement='bottom' title="学院管理员">
|
||||||
<i className="iconfont icon-chengyuanguanli font-12 color-blue" data-tip-down="学院管理员"></i>
|
<i className="iconfont icon-chengyuanguanli font-12 color-blue" data-tip-down="学院管理员"></i>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</a>
|
</a>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="mt15 educontent clearfix edu-txt-center">
|
<div className="mt15 educontent clearfix edu-txt-center">
|
||||||
<p className="mb20" style={{"height": "28px"}}>
|
<p className="mb20" style={{"height": "28px"}}>
|
||||||
{
|
{
|
||||||
is_edit && is_current ?
|
is_edit && is_current ?
|
||||||
<input type="text" id="mysign" class="mysign-input" placeholder="请输入您的个性签名" style={{height:"20px"}} value={sign} onInput={this.inputSign} onBlur={this.savemysign}/>
|
<input type="text" id="mysign" class="mysign-input" placeholder="请输入您的个性签名" style={{height:"20px"}} value={sign} onInput={this.inputSign} onBlur={this.savemysign}/>
|
||||||
:
|
:
|
||||||
is_current ?
|
is_current ?
|
||||||
<a className="mysign-span" onClick={this.editmysign} style={{"display": "block"}}>{sign || "这家伙很懒,什么都没留下~"}</a>
|
<a className="mysign-span" onClick={this.editmysign} style={{"display": "block"}}>{sign || "这家伙很懒,什么都没留下~"}</a>
|
||||||
:
|
:
|
||||||
<span className="mysign-span" style={{"display": "block","cursor":"default"}}>{sign || "这家伙很懒,什么都没留下~"}</span>
|
<span className="mysign-span" style={{"display": "block","cursor":"default"}}>{sign || "这家伙很懒,什么都没留下~"}</span>
|
||||||
}
|
}
|
||||||
</p>
|
</p>
|
||||||
{
|
{
|
||||||
is_current ?
|
is_current ?
|
||||||
<div className="inline">
|
<div className="inline">
|
||||||
{
|
{
|
||||||
data && data.attendance_signed ?
|
data && data.attendance_signed ?
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
<span className="user_default_btn user_grey_btn mb5">已签到</span>
|
<span className="user_default_btn user_grey_btn mb5">已签到</span>
|
||||||
<p id="attendance_notice" className="none font-12 color-grey-6" style={{"display":"block"}}>明日签到 <font className="color-orange">+{next_gold}</font> 金币</p>
|
<p id="attendance_notice" className="none font-12 color-grey-6" style={{"display":"block"}}>明日签到 <font className="color-orange">+{next_gold}</font> 金币</p>
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
:
|
:
|
||||||
<a herf="javascript:void(0);" onClick={this.props.signFor} id="attendance" className="user_default_btn user_orange_btn fl mb15">签到</a>
|
<a herf="javascript:void(0);" onClick={this.props.signFor} id="attendance" className="user_default_btn user_orange_btn fl mb15">签到</a>
|
||||||
// <a herf="javascript:void(0);" onClick={this.trialapplications} id="authentication_apply" className="user_default_btn user_private_btn fl ml15">试用申请</a>
|
// <a herf="javascript:void(0);" onClick={this.trialapplications} id="authentication_apply" className="user_default_btn user_private_btn fl ml15">试用申请</a>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
:
|
:
|
||||||
<div className="inline">
|
<div className="inline">
|
||||||
<a href="javascript:void(0);" onClick={this.props.followPerson} className="user_default_btn user_watch_btn user_private_btn fl mr20">{followed ? "取消关注":"关注"}</a>
|
<a href="javascript:void(0);" onClick={this.props.followPerson} className="user_default_btn user_watch_btn user_private_btn fl mr20">{followed ? "取消关注":"关注"}</a>
|
||||||
<a href={`${this.props.Headertop && this.props.Headertop.old_url}/messages/${login}/message_detail?target_ids=${id}`} className="user_default_btn user_private_btn fl">私信</a>
|
<a href={`${this.props.Headertop && this.props.Headertop.old_url}/messages/${login}/message_detail?target_ids=${id}`} className="user_default_btn user_private_btn fl">私信</a>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
<div className="edu-txt-center navInfo">
|
<div className="edu-txt-center navInfo">
|
||||||
<div className="inline">
|
<div className="inline">
|
||||||
<li className={`${moduleName == 'courses' ||moduleName == undefined ? 'active' : '' }`}>
|
<li className={`${moduleName == 'classrooms' ||moduleName == undefined ? 'active' : '' }`}>
|
||||||
<Link
|
<Link
|
||||||
onClick={() => this.setState({moduleName: 'courses'})}
|
onClick={() => this.setState({moduleName: 'classrooms'})}
|
||||||
to={`/users/${username}/courses`}>课堂</Link>
|
to={`/users/${username}/courses`}>课堂</Link>
|
||||||
</li>
|
</li>
|
||||||
<li className={`${moduleName == 'shixuns' ? 'active' : '' }`}>
|
<li className={`${moduleName == 'shixuns' ? 'active' : '' }`}>
|
||||||
<Link
|
<Link
|
||||||
onClick={() => this.setState({moduleName: 'shixuns'})}
|
onClick={() => this.setState({moduleName: 'shixuns'})}
|
||||||
to={`/users/${username}/shixuns`}>实训</Link>
|
to={`/users/${username}/shixuns`}>实训</Link>
|
||||||
</li>
|
</li>
|
||||||
<li className={`${moduleName == 'paths' ? 'active' : '' }`}>
|
<li className={`${moduleName == 'paths' ? 'active' : '' }`}>
|
||||||
<Link
|
<Link
|
||||||
onClick={() => this.setState({moduleName: 'paths'})}
|
onClick={() => this.setState({moduleName: 'paths'})}
|
||||||
to={`/users/${username}/paths`}>实践课程</Link>
|
to={`/users/${username}/paths`}>实践课程</Link>
|
||||||
</li>
|
</li>
|
||||||
<li className={`${moduleName == 'projects' ? 'active' : '' }`}>
|
<li className={`${moduleName == 'projects' ? 'active' : '' }`}>
|
||||||
<Link
|
<Link
|
||||||
onClick={() => this.setState({moduleName: 'projects'})}
|
onClick={() => this.setState({moduleName: 'projects'})}
|
||||||
to={`/users/${username}/projects`}>开发项目</Link>
|
to={`/users/${username}/projects`}>开发项目</Link>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li className={`${moduleName == 'package' ? 'active' : '' }`}>
|
<li className={`${moduleName == 'package' ? 'active' : '' }`}>
|
||||||
<Link
|
<Link
|
||||||
onClick={() => this.setState({moduleName: 'package'})}
|
onClick={() => this.setState({moduleName: 'package'})}
|
||||||
to={`/users/${username}/package`}>众包</Link>
|
to={`/users/${username}/package`}>众包</Link>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
{/*{ data && data.identity!="学生" && <li> <a href={`${this.props.Headertop && this.props.Headertop.old_url}/users/${username}?type=m_bank`}>题库</a></li>}*/}
|
{/*{ data && data.identity!="学生" && <li> <a href={`${this.props.Headertop && this.props.Headertop.old_url}/users/${username}?type=m_bank`}>题库</a></li>}*/}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export default banner_out;
|
export default banner_out;
|
||||||
|
Loading…
Reference in new issue