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

dev_hs
cxt 6 years ago
commit ea317cd7c1

@ -3444,3 +3444,7 @@ a.singlepublishtwo{
.ant-tooltip{ .ant-tooltip{
max-width: 100% !important; max-width: 100% !important;
} }
.square-main p{
margin-bottom: 0 !important;
}

@ -242,7 +242,7 @@ class DetailCardsEditAndAdd extends Component{
//保存 //保存
clickShixunsaves=()=>{ clickShixunsaves=()=>{
debugger
let{stage_names,stage_descriptions,shixuns_listeditlist}=this.state; let{stage_names,stage_descriptions,shixuns_listeditlist}=this.state;
let newstage_descriptions=stage_descriptions; let newstage_descriptions=stage_descriptions;

@ -200,7 +200,8 @@ class DetailTop extends Component{
}) })
this.setState({ this.setState({
MenuItemskey:keys, MenuItemskey:keys,
courseslist:courseslist courseslist:courseslist,
onVisibleChangestype:!this.state.onVisibleChangestype
}) })
} }

@ -203,32 +203,9 @@ class PathDetailIndex extends Component{
} }
updatadetailInfoList=()=>{ updatadetailInfoList=()=>{
let pathid=this.props.match.params.pathId; this.getdatasindex();
let url="/paths/"+pathid+".json";
axios.get(url).then((result)=>{
// TODO 403 让后台返回status 403 比较好
if (result.data.status == 407 || result.data.status == 401) {
debugger
return;
}
if (result.data.status === 403 ) {
debugger
// window.location.href = "/403";
return;
} }
if(result.data.allow_visit===true){
this.setState({
detailInfoList:result.data,
items: getItems(result.data.members.length),
user_id:undefined,
})
}
}).catch((error)=>{
console.log(error);
})
}
clickNewsubscript=(val)=>{ clickNewsubscript=(val)=>{
if(val===0){ if(val===0){
this.setState({ this.setState({

@ -3740,3 +3740,7 @@ a.singlepublishtwo{
.ant-tooltip{ .ant-tooltip{
max-width: 100% !important; max-width: 100% !important;
} }
.square-main p{
margin-bottom: 0 !important;
}
Loading…
Cancel
Save