|
|
@ -321,11 +321,19 @@ class CompetitionContentspdfpeopledata extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
//撤销认证
|
|
|
|
//撤销认证
|
|
|
|
Cancellationofapplication = (index) => {
|
|
|
|
Cancellationofapplication = (index) => {
|
|
|
|
|
|
|
|
let userid;
|
|
|
|
|
|
|
|
let query=this.props.location&&this.props.location.search;
|
|
|
|
|
|
|
|
const types = query.split('user_id=')
|
|
|
|
|
|
|
|
if(types[1]===undefined){
|
|
|
|
|
|
|
|
userid=this.props.user&&this.props.user.user_id;
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
userid=types[1];
|
|
|
|
|
|
|
|
}
|
|
|
|
let url = ""
|
|
|
|
let url = ""
|
|
|
|
if (index === 1) {
|
|
|
|
if (index === 1) {
|
|
|
|
url = `/users/accounts/${this.props.user.user_id}/authentication_apply.json`;
|
|
|
|
url = `/users/accounts/${userid}/authentication_apply.json`;
|
|
|
|
} else if (index === 2) {
|
|
|
|
} else if (index === 2) {
|
|
|
|
url = `/users/accounts/${this.props.user.user_id}/professional_auth_apply.json`;
|
|
|
|
url = `/users/accounts/${userid}/professional_auth_apply.json`;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
axios.delete(url)
|
|
|
|
axios.delete(url)
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|