|
|
@ -29,12 +29,14 @@ class ShixunModal extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
axios.get(url).then((result)=>{
|
|
|
|
axios.get(url).then((result)=>{
|
|
|
|
if(result.status===200){
|
|
|
|
if(result.status===200){
|
|
|
|
|
|
|
|
if(result.data.message===undefined){
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
shixunmodallist:result.data,
|
|
|
|
shixunmodallist:result.data,
|
|
|
|
hometypepvisible:false,
|
|
|
|
hometypepvisible:false,
|
|
|
|
newshixunmodallist:result.data.shixun_list,
|
|
|
|
newshixunmodallist:result.data.shixun_list,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}).catch((error)=>{
|
|
|
|
}).catch((error)=>{
|
|
|
|
console.log(error);
|
|
|
|
console.log(error);
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -59,7 +61,7 @@ class ShixunModal extends Component{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).then((result)=>{
|
|
|
|
}).then((result)=>{
|
|
|
|
if(result.status===200){
|
|
|
|
if(result.status===200){
|
|
|
|
|
|
|
|
if(result.data.message===undefined){
|
|
|
|
let shixun_list = result.data.shixun_list;
|
|
|
|
let shixun_list = result.data.shixun_list;
|
|
|
|
for (var i = 0; i < shixun_list.length; i++) {
|
|
|
|
for (var i = 0; i < shixun_list.length; i++) {
|
|
|
|
newshixunmodallists.push(shixun_list[i])
|
|
|
|
newshixunmodallists.push(shixun_list[i])
|
|
|
@ -70,7 +72,7 @@ class ShixunModal extends Component{
|
|
|
|
hometypepvisible: false
|
|
|
|
hometypepvisible: false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}).catch((error)=>{
|
|
|
|
}).catch((error)=>{
|
|
|
|