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

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

@ -108,6 +108,12 @@ class Mailboxvalidation extends Component {
}).then((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({
secondsFlag: true
})

@ -107,6 +107,11 @@ class Phonenumberverification extends Component {
}).then((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({
secondsFlag: true
})

@ -108,6 +108,11 @@ class Mailboxvalidation extends Component {
}).then((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({
secondsFlag: true
})

@ -107,6 +107,11 @@ class Phonenumberverification extends Component {
}).then((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({
secondsFlag: true
})

@ -205,7 +205,11 @@ class Trialapplication extends Component {
}).then((result) => {
//验证有问题{"status":1,"message":"success"}
// 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) => {
console.log(error);

@ -220,7 +220,11 @@ class Trialapplicationysl extends Component {
}).then((result) => {
//验证有问题{"status":1,"message":"success"}
// 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) => {
console.log(error);

@ -86,6 +86,11 @@ class AccountSecure extends Component {
}}).then((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({
secondsFlag:true
})

Loading…
Cancel
Save