Merge branch 'dev_aliyun' of https://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun

dev_forum
daiao 5 years ago
commit 1ca075652f

@ -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,
@ -166,7 +182,7 @@ class InterestpageComponent extends Component {
//兴趣页面点击 //兴趣页面点击
Interestcompletionpage(){ Interestcompletionpage(){
if(this.state.gouxuans.length === 0){ if(this.state.gouxuans.length === 0){
this.openNotification("请选择您的职业"); this.openNotification("请选择职业");
return return
} }
@ -177,7 +193,7 @@ class InterestpageComponent extends Component {
} }
} }
if(ints.length<1){ if(ints.length<1){
this.openNotification("内容是最少得选一个"); this.openNotification("请至少选择一个您感兴趣的内容");
return return
} }
var url = "/users/interest.json"; var url = "/users/interest.json";

@ -71,7 +71,23 @@ class InterestpageMax 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,
@ -171,7 +187,7 @@ class InterestpageMax extends Component {
setpagecomplet:true setpagecomplet:true
}) })
if(this.state.gouxuans.length === 0){ if(this.state.gouxuans.length === 0){
this.openNotification("请选择您的职业"); this.openNotification("请选择职业");
return return
} }
@ -182,7 +198,7 @@ class InterestpageMax extends Component {
} }
} }
if(ints.length<1){ if(ints.length<1){
this.openNotification("内容是最少得选一个"); this.openNotification("请至少选择一个您感兴趣的内容");
return return
} }
var url = "/users/interest.json"; var url = "/users/interest.json";

@ -70,7 +70,7 @@
margin-right: 129px; margin-right: 129px;
} }
.ysldivhome2{ .ysldivhome2{
width: 100%; width: 800px;
display: flex; display: flex;
flex-flow: row wrap; flex-flow: row wrap;
align-content:stretch; align-content:stretch;

@ -71,6 +71,7 @@
margin-top: 10px; margin-top: 10px;
} }
.ysldivhome22{ .ysldivhome22{
width: 800px;
display: flex; display: flex;
flex-flow: row wrap; flex-flow: row wrap;
align-content:stretch; align-content:stretch;

Loading…
Cancel
Save