dev_tj
杨树明 5 years ago
parent 59ed6bd1f6
commit 9c4bd37ea2

@ -75,17 +75,18 @@ class ShixunCardList extends Component {
type="new";
}
if(typekeyid===key){
if(upcircle===true){
this.setState({
upcircle:false,
})
this.props.Shixunsupcircles("desc")
// this.props.Shixunsupcircles("desc")
}else if(upcircle===false){
this.setState({
upcircle:true,
})
this.props.Shixunsupcircles("asc")
// this.props.Shixunsupcircles("desc")
}
}else{
this.setState({
@ -93,8 +94,8 @@ class ShixunCardList extends Component {
})
}
//allevent
this.props.ShixunsState(false,type);
this.props.ShixunsState(false,type,"desc");
}

@ -296,21 +296,23 @@ class ShixunsIndex extends Component {
console.log(error)
});
}
ShixunsState=(val,type)=>{
ShixunsState=(val,type,sorts)=>{
// sort,
let {tag_level, tag_id, page, limit, keyword, status, diff,sort} = this.state;
let newsort=sort;
let newsort=sorts?sorts:sort;
this.setState({
order_by:type,
typepvisible:true,
pages:1,
// sort:sort
sort:sorts?sorts:sort
})
let params
// let vals=false
if(newsort===undefined){
newsort="desc"
}else{
newsort=sorts?sorts:sort
}
params= {
order_by:type,

Loading…
Cancel
Save