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