diff --git a/public/react/src/modules/courses/coursesDetail/CoursesBanner.js b/public/react/src/modules/courses/coursesDetail/CoursesBanner.js
index 4e3f6a42d..f113209c4 100644
--- a/public/react/src/modules/courses/coursesDetail/CoursesBanner.js
+++ b/public/react/src/modules/courses/coursesDetail/CoursesBanner.js
@@ -64,6 +64,15 @@ class CoursesBanner extends Component {
}
}
+ componentDidUpdate = (prevProps) => {
+ if(prevProps.current_user!=this.props.current_user){
+ if(this.props.current_user!==undefined){
+ this.setState({
+ user_phone_binded :this.props.current_user.user_phone_binded,
+ })
+ }
+ }
+ }
onloadupdatabanner=()=>{
this.updatabanner()
}
@@ -344,16 +353,7 @@ class CoursesBanner extends Component {
render() {
let { Addcoursestypes, coursedata, modalsType, modalsTopval, loadtype,modalsBottomval,antIcon,user_phone_binded} = this.state;
- try {
- if(this.props.current_user!==undefined){
- this.setState({
- user_phone_binded :this.props.current_user.user_phone_binded,
- })
- }
- }catch (e) {
- console.log("CoursesBanner 354")
- console.log(e)
- }
+
return (
diff --git a/public/react/src/modules/courses/members/studentsList.js b/public/react/src/modules/courses/members/studentsList.js
index e75baa3fe..ba29dfccb 100644
--- a/public/react/src/modules/courses/members/studentsList.js
+++ b/public/react/src/modules/courses/members/studentsList.js
@@ -1,5 +1,5 @@
import React,{ Component } from "react";
-import { Input,Checkbox,Table, Pagination, Modal,Menu ,Spin} from "antd";
+import { Input,Checkbox,Table, Pagination, Modal,Menu ,Spin, Tooltip} from "antd";
import ClipboardJS from 'clipboard'
import '../css/Courses.css'
import '../css/members.css'
@@ -31,14 +31,6 @@ const dataSource = [{
const buildColumns = (that) => {
const columns=[{
- title: '',
- dataIndex: 'check',
- key: 'check',
- render: (text, item) => {
- return
- },
- width:"5%"
- },{
title: '序号',
dataIndex: 'id',
key: 'id',
@@ -71,6 +63,19 @@ const buildColumns = (that) => {
width:"50%",
className:"color-grey-6"
}];
+ const isAdmin = that.props.isAdmin()
+ if (isAdmin) {
+ columns.unshift({
+ title: '',
+ dataIndex: 'check',
+ key: 'check',
+ render: (text, item) => {
+ return
+ },
+ width:"5%"
+ })
+ }
+
return columns;
}
@@ -445,7 +450,14 @@ class studentsList extends Component{
{invite_code}
-
+
+ 成员可以通过邀请码主动加入课堂
+ 点击立刻复制邀请码
+ }>
+