dev_forum
杨树林 5 years ago
parent 75cfe55863
commit 64c934ce7a

@ -1591,7 +1591,7 @@ class Listofworksstudentone extends Component {
// 设置数据 // 设置数据
seacthdatat = (teacherdata,student_works,work_efficiency,course_group_info) => { seacthdatat = (teacherdata,student_works,work_efficiency,course_group_info) => {
debugger
let {page, limit} = this.state; let {page, limit} = this.state;
let datalist = []; let datalist = [];
let columns = this.state.columns; let columns = this.state.columns;

@ -123,3 +123,7 @@
letter-spacing: 2px; letter-spacing: 2px;
cursor: pointer; cursor: pointer;
} }
.myinput{
display: flex;
justify-content: center;
}

@ -7,7 +7,7 @@ import Dialog, {
DialogTitle, DialogTitle,
} from 'material-ui/Dialog'; } from 'material-ui/Dialog';
import axios from 'axios'; import axios from 'axios';
import './LoginDialog.css'
import {broadcastChannelPostMessage} from 'educoder' import {broadcastChannelPostMessage} from 'educoder'
import {Tabs, Input, Checkbox, Button, notification, Menu} from 'antd'; import {Tabs, Input, Checkbox, Button, notification, Menu} from 'antd';

@ -24,7 +24,7 @@ class Trialapplicationysl extends Component {
codes: "", codes: "",
reason: "", reason: "",
Phonenumberisnotcoreason: undefined, Phonenumberisnotcoreason: undefined,
isRenders: false, isRenders: true,
seconds: 60, seconds: 60,
getverificationcodes: true, getverificationcodes: true,
Phonenumberisnotco: undefined, Phonenumberisnotco: undefined,
@ -44,27 +44,27 @@ class Trialapplicationysl extends Component {
Cancel = () => { Cancel = () => {
// this.props.Cancel() // this.props.Cancel()
} }
//
componentWillReceiveProps(nextProps) { // componentWillReceiveProps(nextProps) {
// console.log("46"); // // console.log("46");
// console.log(nextProps); // // console.log(nextProps);
// console.log(this.props); // // console.log(this.props);
// if (nextProps.user != this.props.user) { // // if (nextProps.user != this.props.user) {
// // console.log("50"); // // // console.log("50");
// // console.log(nextProps.user); // // // console.log(nextProps.user);
// if (nextProps.user !== undefined) { // // if (nextProps.user !== undefined) {
// // console.log("53"); // // // console.log("53");
// // console.log(nextProps.user); // // // console.log(nextProps.user);
// this.setState({ // // this.setState({
// user_phone_binded: nextProps.user.user_phone_binded, // // user_phone_binded: nextProps.user.user_phone_binded,
// }) // // })
// } // // }
// //
// //
// // }
// //
// //
// } // }
}
getipthon=()=>{ getipthon=()=>{
// console.log("Trialapplicationysl"); // console.log("Trialapplicationysl");
// console.log("70"); // console.log("70");

@ -18,7 +18,7 @@ import Addcourses from '../courses/coursesPublic/Addcourses';
import LoginDialog from '../login/LoginDialog'; import LoginDialog from '../login/LoginDialog';
import Trialapplicationysl from '../login/Trialapplicationysl' import Trialapplication from '../login/Trialapplication'
import 'antd/lib/modal/style/index.css'; import 'antd/lib/modal/style/index.css';
@ -636,7 +636,7 @@ submittojoinclass=(value)=>{
{/* />*/} {/* />*/}
{/* :""*/} {/* :""*/}
{/*}*/} {/*}*/}
{/*<Trialapplicationysl {...this.state} {...this.props} Cancel={() => this.cancelModulationModels()} ></Trialapplicationysl>*/} {/*<Trialapplication {...this.state} {...this.props} Cancel={() => this.cancelModulationModels()} ></Trialapplication>*/}
<div className="educontent clearfix"> <div className="educontent clearfix">
{/*<%= link_to image_tag("/images/educoder/logo.png", alt:"高校智能化教学与实训平台", className:"logoimg"), home_path %>*/} {/*<%= link_to image_tag("/images/educoder/logo.png", alt:"高校智能化教学与实训平台", className:"logoimg"), home_path %>*/}
<a href="/"> <a href="/">

@ -43,6 +43,7 @@ class LoginRegisterComponent extends Component {
Whethertoverify:false, Whethertoverify:false,
modalsType:false, modalsType:false,
pciphone:true, pciphone:true,
boolyzm:false,
} }
} }
@ -213,7 +214,10 @@ class LoginRegisterComponent extends Component {
}) })
return return
} }
if (this.state.password !== this.state.passwords==="") {
this.openNotification(`两次输入的密码不一致`);
return
}
else if (this.state.password !==undefined&&this.state.password.length>0&&this.state.password.length<8){ else if (this.state.password !==undefined&&this.state.password.length>0&&this.state.password.length<8){
this.setState({ this.setState({
Phonenumberisnotcosmmm:"密码不能少于8位", Phonenumberisnotcosmmm:"密码不能少于8位",
@ -236,13 +240,6 @@ class LoginRegisterComponent extends Component {
}) })
return return
} }
if (this.state.password !== this.state.passwords) {
this.setState({
Phonenumberisnotcosmmm:"两次输入的密码不一致",
Phonenumberisnotcosymmmm:"两次输入的密码不一致",
})
return
}
if (this.state.codes === undefined|| this.state.codes.length ===0 || this.state.codes === "") { if (this.state.codes === undefined|| this.state.codes.length ===0 || this.state.codes === "") {
this.setState({ this.setState({
Phonenumberisnotcosyzm:"验证码不能为空" Phonenumberisnotcosyzm:"验证码不能为空"
@ -271,6 +268,12 @@ class LoginRegisterComponent extends Component {
Phonenumberisnotcosyzm:"验证码不正确", Phonenumberisnotcosyzm:"验证码不正确",
}) })
return;
}else if(result.data.message==="1小时内同一手机号发送次数超过限制"){
this.setState({
boolyzm:true,
})
this.openNotification(result.data.message);
return; return;
}else { }else {
this.openNotification(result.data.message); this.openNotification(result.data.message);
@ -311,6 +314,7 @@ class LoginRegisterComponent extends Component {
login: stirngt, login: stirngt,
Phonenumberisnotco:undefined, Phonenumberisnotco:undefined,
dragOk:false, dragOk:false,
boolyzm:false,
Whethertoverify:this.state.Whethertoverify===true?false:true, Whethertoverify:this.state.Whethertoverify===true?false:true,
}) })
} }
@ -505,6 +509,7 @@ class LoginRegisterComponent extends Component {
codes, codes,
Whethertoverify, Whethertoverify,
pciphone, pciphone,
boolyzm,
} = this.state } = this.state
// height: 346px; // height: 346px;
return ( return (
@ -667,11 +672,13 @@ class LoginRegisterComponent extends Component {
<Button className=" ml5 " <Button className=" ml5 "
style={{"width": "120px", "text-align": "center", "height": "45px"}} style={{"width": "120px", "text-align": "center", "height": "45px"}}
type="primary" type="primary"
disabled={boolyzm}
onClick={() => this.getverificationcode()} size={"large"}>获取验证码</Button> onClick={() => this.getverificationcode()} size={"large"}>获取验证码</Button>
: :
<Button className=" ml5 " <Button className=" ml5 "
style={{"width": "120px", "text-align": "center", "height": "45px"}} style={{"width": "120px", "text-align": "center", "height": "45px"}}
type="primary" type="primary"
disabled={boolyzm}
onClick={() => this.getverificationcode()} size={"large"}>重新发送</Button> onClick={() => this.getverificationcode()} size={"large"}>重新发送</Button>
} }

@ -1,7 +1,7 @@
.login_register_content, .login_register_content .ant-tabs-tabpane { /*.login_register_content, .login_register_content .ant-tabs-tabpane {*/
display: flex; /* display: flex;*/
justify-content: center; /* justify-content: center; */
} /*}*/
.login_register_content .ant-input { .login_register_content .ant-input {
background:rgb(244,244,244); background:rgb(244,244,244);
} }

Loading…
Cancel
Save