dev_static
杨树明 5 years ago
parent df1ecfccaa
commit 31c66eb5e1

@ -27,16 +27,16 @@ function locationurl(list){
// TODO 开发期多个身份切换 // TODO 开发期多个身份切换
let debugType ="" let debugType =""
// if (isDev) { if (isDev) {
// const _search = window.location.search; const _search = window.location.search;
// let parsed = {}; let parsed = {};
// if (_search) { if (_search) {
// parsed = queryString.parse(_search); parsed = queryString.parse(_search);
// } }
// debugType = window.location.search.indexOf('debug=t') != -1 ? 'teacher' : debugType = window.location.search.indexOf('debug=t') != -1 ? 'teacher' :
// window.location.search.indexOf('debug=s') != -1 ? 'student' : window.location.search.indexOf('debug=s') != -1 ? 'student' :
// window.location.search.indexOf('debug=a') != -1 ? 'admin' : parsed.debug || 'admin' window.location.search.indexOf('debug=a') != -1 ? 'admin' : parsed.debug || 'admin'
// } }
// 超管 // 超管
// debugType="admin"; // debugType="admin";
// 老师 // 老师

@ -108,6 +108,12 @@ class Mailboxvalidation extends Component {
}).then((result) => { }).then((result) => {
if (result) { if (result) {
// 倒计时 // 倒计时
if(result.data.status===1){
this.props.showNotification("验证码已发送,请注意查收!",2);
}else if(result.data.status===-2){
this.props.showNotification(result.data.message,2);
}
this.setState({ this.setState({
secondsFlag: true secondsFlag: true
}) })

@ -107,6 +107,11 @@ class Phonenumberverification extends Component {
}).then((result) => { }).then((result) => {
if (result) { if (result) {
// 倒计时 // 倒计时
if(result.data.status===1){
this.props.showNotification("验证码已发送,请注意查收!",2);
}else if(result.data.status===-2){
this.props.showNotification(result.data.message,2);
}
this.setState({ this.setState({
secondsFlag: true secondsFlag: true
}) })

@ -108,6 +108,11 @@ class Mailboxvalidation extends Component {
}).then((result) => { }).then((result) => {
if (result) { if (result) {
// 倒计时 // 倒计时
if(result.data.status===1){
this.props.showNotification("验证码已发送,请注意查收!",2);
}else if(result.data.status===-2){
this.props.showNotification(result.data.message,2);
}
this.setState({ this.setState({
secondsFlag: true secondsFlag: true
}) })

@ -107,6 +107,11 @@ class Phonenumberverification extends Component {
}).then((result) => { }).then((result) => {
if (result) { if (result) {
// 倒计时 // 倒计时
if(result.data.status===1){
this.props.showNotification("验证码已发送,请注意查收!",2);
}else if(result.data.status===-2){
this.props.showNotification(result.data.message,2);
}
this.setState({ this.setState({
secondsFlag: true secondsFlag: true
}) })

@ -205,7 +205,11 @@ class Trialapplication extends Component {
}).then((result) => { }).then((result) => {
//验证有问题{"status":1,"message":"success"} //验证有问题{"status":1,"message":"success"}
// console.log(result); // console.log(result);
if(result.data.status===1){
this.props.showNotification("验证码已发送,请注意查收!",2);
}else if(result.data.status===-2){
this.props.showNotification(result.data.message,2);
}
}).catch((error) => { }).catch((error) => {
console.log(error); console.log(error);

@ -220,7 +220,11 @@ class Trialapplicationysl extends Component {
}).then((result) => { }).then((result) => {
//验证有问题{"status":1,"message":"success"} //验证有问题{"status":1,"message":"success"}
// console.log(result); // console.log(result);
if(result.data.status===1){
this.props.showNotification("验证码已发送,请注意查收!",2);
}else if(result.data.status===-2){
this.props.showNotification(result.data.message,2);
}
}).catch((error) => { }).catch((error) => {
console.log(error); console.log(error);

@ -86,6 +86,11 @@ class AccountSecure extends Component {
}}).then((result)=>{ }}).then((result)=>{
if(result){ if(result){
// 倒计时 // 倒计时
if(result.data.status===1){
this.props.showNotification("验证码已发送,请注意查收!",2);
}else if(result.data.status===-2){
this.props.showNotification(result.data.message,2);
}
this.setState({ this.setState({
secondsFlag:true secondsFlag:true
}) })

Loading…
Cancel
Save