dev_forum
杨树林 5 years ago
parent 91fd4fc401
commit a44dbc2aea

@ -71,7 +71,23 @@ class InterestpageComponent extends Component {
}if(response.data.repertoires[i].id===9){ }if(response.data.repertoires[i].id===9){
qdkfys=rgzn; qdkfys=rgzn;
} }
var datas={id:response.data.repertoires[i].id,name:response.data.repertoires[i].name,bool:false,url:qdkfys};
if(response.data.repertoires[i].id===1) {
var datas = {
id: response.data.repertoires[i].id,
name: response.data.repertoires[i].name,
bool: true,
url: qdkfys
};
} else{
var datas = {
id: response.data.repertoires[i].id,
name: response.data.repertoires[i].name,
bool: false,
url: qdkfys
};
}
gouxuans4.push(datas); gouxuans4.push(datas);
this.setState({ this.setState({
gouxuans4:gouxuans4, gouxuans4:gouxuans4,

@ -71,6 +71,7 @@ class InterestpageMax extends Component {
}if(response.data.repertoires[i].id===9){ }if(response.data.repertoires[i].id===9){
qdkfys=rgzn; qdkfys=rgzn;
} }
if(response.data.repertoires[i].id===1) { if(response.data.repertoires[i].id===1) {
var datas = { var datas = {
id: response.data.repertoires[i].id, id: response.data.repertoires[i].id,
@ -86,6 +87,7 @@ class InterestpageMax extends Component {
url: qdkfys url: qdkfys
}; };
} }
gouxuans4.push(datas); gouxuans4.push(datas);
this.setState({ this.setState({
gouxuans4:gouxuans4, gouxuans4:gouxuans4,

Loading…
Cancel
Save