-
+
+ {data === undefined ? "" :
}
+
+ {JSON.stringify(datas) !== "[]" ?
+
+
+
-
{teacherdata === undefined ? "0" : teacherdata.commit_count === undefined ? "0" : teacherdata.commit_count}
@@ -3761,8 +3761,8 @@ class Listofworksstudentone extends Component {
style={{color: '#FF6800'}}>{teacherdata.left_time.time}}
-
-
-
- {/*
计算成绩时间:{teacherdata&&teacherdata.calculation_time==null?"--": moment(teacherdata&&teacherdata.calculation_time).format('YYYY-MM-DD HH:mm')}*/}
- {/* { course_is_end===true?"":teacherdata&&teacherdata.task_operation&&teacherdata.task_operation[0]==="开启挑战"?"":
*/}
- {/* {computeTimetype===true?*/}
-
- {/* (this.props.isNotMember()===false?*/}
- {/* (*/}
- {/* teacherdata&&teacherdata.update_score===true?*/}
- {/* */}
- {/* 查看最新成绩*/}
- {/*
:""*/}
- {/* )*/}
- {/* :""):*/}
- {/* teacherdata&&teacherdata.homework_status!==undefined&&teacherdata.homework_status[0]=== "未发布"? "":*/}
- {/* (this.props.isNotMember()===false?*/}
- {/* 查看最新成绩*/}
- {/*
:"")*/}
- {/* }*/}
- {/*}*/}
-
+
+
+
+ {/*
计算成绩时间:{teacherdata&&teacherdata.calculation_time==null?"--": moment(teacherdata&&teacherdata.calculation_time).format('YYYY-MM-DD HH:mm')}*/}
+ {/* { course_is_end===true?"":teacherdata&&teacherdata.task_operation&&teacherdata.task_operation[0]==="开启挑战"?"":
*/}
+ {/* {computeTimetype===true?*/}
+
+ {/* (this.props.isNotMember()===false?*/}
+ {/* (*/}
+ {/* teacherdata&&teacherdata.update_score===true?*/}
+ {/* */}
+ {/* 查看最新成绩*/}
+ {/*
:""*/}
+ {/* )*/}
+ {/* :""):*/}
+ {/* teacherdata&&teacherdata.homework_status!==undefined&&teacherdata.homework_status[0]=== "未发布"? "":*/}
+ {/* (this.props.isNotMember()===false?*/}
+ {/* 查看最新成绩*/}
+ {/*
:"")*/}
+ {/* }*/}
+ {/*}*/}
-
-
-
- {datas === undefined ? "" :
}
-
+
+ {datas === undefined ? "" :
}
- {
- teacherdata && teacherdata.work_count && teacherdata.work_count > limit ?
-
- : ""
- }
- :
-
-
-
-
-
暂时还没有相关数据哦!
+ {
+ teacherdata && teacherdata.work_count && teacherdata.work_count > limit ?
+
+ : ""
+ }
+
+ :
+
+
+
+
+
暂时还没有相关数据哦!
- }
-
+
+ }
- }
+ }
+
}
diff --git a/public/react/src/modules/courses/shixunHomework/shixunHomework.js b/public/react/src/modules/courses/shixunHomework/shixunHomework.js
index 8e68a7398..cbfdaf72b 100644
--- a/public/react/src/modules/courses/shixunHomework/shixunHomework.js
+++ b/public/react/src/modules/courses/shixunHomework/shixunHomework.js
@@ -4,6 +4,7 @@ import { WordsBtn,on, off, trigger } from 'educoder';
import {BrowserRouter as Router,Route,Switch,Link} from 'react-router-dom';
import axios from'axios';
import HomeworkModal from "../coursesPublic/HomeworkModal";
+import OneSelfOrderModal from "../coursesPublic/OneSelfOrderModal";
import ShixunModal from "../coursesPublic/ShixunModal";
import PathModal from "../coursesPublic/PathModal";
import NewShixunModel from '../coursesPublic/NewShixunModel';
@@ -227,10 +228,11 @@ class ShixunHomework extends Component{
addnametab:undefined,
typs:undefined,
starttimes:undefined,
+ OneSelftype:false
})
+ this.cancelmodel()
+ this.homeworkupdatalist(Coursename,page,order);
this.props.updataleftNavfun()
- this.homeworkupdatalist(Coursename,page,order);
- this.cancelmodel()
}
@@ -272,6 +274,48 @@ class ShixunHomework extends Component{
});
}
+
+
+ //立即发布
+ homeworkOneSelfstart=()=>{
+ let selectnum= this.testonSelect();
+ if(selectnum===true){
+ this.noSelect();
+ return
+ }
+ let coursesId=this.props.match.params.coursesId;
+ let url="/courses/"+coursesId+"/all_course_groups.json";
+
+ axios.get(url).then((response) => {
+
+ if(response.status===200){
+ let starttime= this.props.getNowFormatDates(1);
+ let endtime=this.props.getNowFormatDates(2);
+ this.setState({
+ modalname:"立即发布",
+ modaltype:response.data.course_groups===null||response.data.course_groups.length===0?2:1,
+ OneSelftype:true,
+ typs:"start",
+ Topval:"学生将立即收到作业",
+ // Botvalleft:"暂不发布",
+ Botval:`本操作只对"未发布"的分班有效`,
+ starttime:"发布时间:"+moment(moment(new Date())).format("YYYY-MM-DD HH:mm"),
+ starttimes:starttime,
+ endtime:"截止时间:"+endtime,
+ Cancelname:"暂不发布",
+ Savesname:"立即发布",
+ Cancel:this.homeworkhide,
+ Saves:this.homeworkstartend,
+ course_groups:response.data.course_groups,
+ })
+ }
+ }).catch((error) => {
+ console.log(error)
+ });
+
+ }
+
+
cancelmodels=()=>{
this.setState({
Modalstype:false,
@@ -316,10 +360,12 @@ class ShixunHomework extends Component{
})
}
- this.props.showNotification(result.data.message)
+
+ this.homeworkupdatalist(Coursename,page,order);
+ this.cancelmodel()
+ this.props.showNotification(result.data.message)
this.props.updataleftNavfun()
- this.homeworkupdatalist(Coursename,page,order);
- this.cancelmodel()
+
}
}).catch((error)=>{
console.log(error);
@@ -414,11 +460,11 @@ class ShixunHomework extends Component{
Loadtype:false,
course_groups:[]
})
-
+ this.homeworkupdatalist(Coursename,page,order);
+ this.cancelmodel()
this.props.showNotification(response.data.message)
this.props.updataleftNavfun()
- this.homeworkupdatalist(Coursename,page,order);
- this.cancelmodel()
+
}
})
.catch(function (error) {
@@ -722,8 +768,8 @@ class ShixunHomework extends Component{
checkedtype:false,
antIcon:false
})
+ this.homeworkupdatalist(Coursename,page,order);
this.props.showNotification(response.data.message)
- this.homeworkupdatalist(Coursename,page,order);
this.props.updataleftNavfun()
}else{
this.setState({
@@ -782,6 +828,7 @@ class ShixunHomework extends Component{
this.setState({
Modalstype:false,
+ OneSelftype:false,
Loadtype:false,
visible:false,
Modalstopval:"",
@@ -834,9 +881,10 @@ class ShixunHomework extends Component{
Loadtype:false,
checkBoxValues:[]
})
+ this.homeworkupdatalist(Coursename,page,order);
this.props.showNotification(response.data.message)
- this.homeworkupdatalist(Coursename,page,order);
+
}
})
.catch(function (error) {
@@ -886,9 +934,10 @@ class ShixunHomework extends Component{
checkBoxValues:[],
checkAllValue:false
})
+ this.homeworkupdatalist(Coursename,page,order);
this.props.showNotification('已完成')
this.props.updataleftNavfun()
- this.homeworkupdatalist(Coursename,page,order);
+
}
})
}
@@ -1022,7 +1071,7 @@ class ShixunHomework extends Component{
loadtype={this.state.Loadtype}
antIcon={this.state.antIcon}
/>:""}
- {/*立即发布*/}
+ {/*批量立即发布*/}
{visible===true?
this.getcourse_groupslist(id)}
/>:""}
-
+ {/*{单个立即发布}*/}
+ {/*this.getcourse_groupslist(id)}*/}
+ {/*/>*/}
{shixunmodal===true||shixunpath===true?
+
+
+
+
+
+
+
+
+ 为了更好的为您服务,请关联一个EduCoder账号
+
+
+
+
+
+
+
+
+
+ 新用户
+
+
+
+ 欢迎来到EduCoder,新用户登录EduCoder可以到“账号管理-安全设置”中绑定手机/邮箱,以后可以用绑定的手机/邮箱,设置的密码登录EduCoder了。
+ 立即体验表示您已经同意我们的 服务协议条款
+
+
+
+
+
+
+
+
+
+ 老用户
+
+
+
+ 已有EduCoder账号,可以输入您的账号和密码,将您的微信账号与EduCoder账号进行绑定。
+
+
+
+
+
+
+ {this.state.logintypes==="username"?请填写账号:this.state.logintypes==="password"?请填写密码:""}
+
+
+
+
+
+
+
+
+
© 2019 EduCoder
湘ICP备17009477号Trustie & IntelliDE inside.
+
+
+
+
+ )
+ }
+
+}
+
+export default Otherlogin;
diff --git a/public/react/src/modules/login/Otherloginstart.js b/public/react/src/modules/login/Otherloginstart.js
new file mode 100644
index 000000000..4b134805d
--- /dev/null
+++ b/public/react/src/modules/login/Otherloginstart.js
@@ -0,0 +1,52 @@
+import React, { Component } from 'react';
+
+import { BrowserRouter as Router, Route, Link } from "react-router-dom";
+
+import { Spin } from 'antd';
+import axios from 'axios';
+class Otherloginstart extends Component {
+
+ componentDidMount() {
+ let query=this.props.location.search;
+ const type = query.split('?code=');
+ const types = type[1].split('&state=');
+ let codeurl = `/auth/wechat/callback.json`
+ axios.get(codeurl,{params:{
+ code:types[0]
+ }}).then((result)=> {
+ if(result){
+ if(result.data.status===0){
+ if(result.data.true===false){
+ window.location.href="/otherlogin"
+ }else{
+ // this.getinfo()
+ window.location.href="/"
+ }
+ }
+ }
+ }).catch((error)=>{
+
+ })
+
+ }
+
+ render() {
+ // Loading
+ return (
+
+
+
+
+ );
+ }
+}
+
+export default Otherloginstart;
\ No newline at end of file
diff --git a/public/react/src/modules/user/FindPasswordComponent.js b/public/react/src/modules/user/FindPasswordComponent.js
index b6e9dda22..e95ea2b7f 100644
--- a/public/react/src/modules/user/FindPasswordComponent.js
+++ b/public/react/src/modules/user/FindPasswordComponent.js
@@ -594,7 +594,10 @@ class LoginRegisterComponent extends Component {
})
}
-
+ gobackshowbool=()=>{
+ this.props.history.push("/login");
+ this.props.Setshowbool(1)
+ }
render() {
const {
// 登录
@@ -621,7 +624,7 @@ class LoginRegisterComponent extends Component {
// height: 346px;
return (
-
diff --git a/public/react/src/modules/user/LoginRegisterComponent.js b/public/react/src/modules/user/LoginRegisterComponent.js
index 8b7df2e02..fedc3cb22 100644
--- a/public/react/src/modules/user/LoginRegisterComponent.js
+++ b/public/react/src/modules/user/LoginRegisterComponent.js
@@ -67,7 +67,7 @@ class LoginRegisterComponent extends Component {
MyEduCoderModals:false,
registered:undefined,
Phonenumberisnotcodmms:undefined,
-
+ weixinlogin:false,
}
}
if(props.loginstatus === false){
@@ -105,6 +105,7 @@ class LoginRegisterComponent extends Component {
MyEduCoderModals:false,
registered:undefined,
Phonenumberisnotcodmms:undefined,
+ weixinlogin:false,
}
}
@@ -135,15 +136,22 @@ class LoginRegisterComponent extends Component {
let pcipns=this.IsPC();
if (this.props.match.url === "/login") {
console.log("11111111111111111111111111");
- this.state = {
- tab:["0"],
-
- }
+ // this.state = {
+ // tab:["0"],
+ //
+ // }
+ this.setState({
+ tab:["0"]
+ })
} else if (this.props.match.url === "/register") {
- this.state = {
- tab:["1"],
-
- }
+ console.log("11111111111111111111111111");
+ // this.state = {
+ // tab:["1"],
+ //
+ // }
+ this.setState({
+ tab:["1"]
+ })
}
this.setState({
pciphone:pcipns,
@@ -857,6 +865,18 @@ class LoginRegisterComponent extends Component {
registered:"注册成功"
})
};
+
+ openweixinlogin=()=>{
+ this.setState({
+ weixinlogin:true
+ })
+ }
+ hideweixinlogin=()=>{
+ this.setState({
+ weixinlogin:false,
+ tab:["0"]
+ })
+ }
render() {
const {
// 登录
@@ -881,16 +901,19 @@ class LoginRegisterComponent extends Component {
readAgreement,
pciphone,
Phonenumberisnotcodmms,
+ weixinlogin
} = this.state
// height: 346px;
if (this.state.seconds === 0) {
// window.location.href='http://www.cnblogs.com/a-cat/';
}
- console.log(classpass);
+
return (
-
+
-
:""}
- {
- parseInt(tab[0])==0 &&
+ {
+ weixinlogin===false&&parseInt(tab[0])==0 &&