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

@ -75,17 +75,18 @@ class ShixunCardList extends Component {
type="new"; type="new";
} }
if(typekeyid===key){ if(typekeyid===key){
if(upcircle===true){ if(upcircle===true){
this.setState({ this.setState({
upcircle:false, upcircle:false,
}) })
this.props.Shixunsupcircles("desc") // this.props.Shixunsupcircles("desc")
}else if(upcircle===false){ }else if(upcircle===false){
this.setState({ this.setState({
upcircle:true, upcircle:true,
}) })
this.props.Shixunsupcircles("asc") // this.props.Shixunsupcircles("desc")
} }
}else{ }else{
this.setState({ 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) console.log(error)
}); });
} }
ShixunsState=(val,type)=>{ ShixunsState=(val,type,sorts)=>{
// sort, // sort,
let {tag_level, tag_id, page, limit, keyword, status, diff,sort} = this.state; let {tag_level, tag_id, page, limit, keyword, status, diff,sort} = this.state;
let newsort=sort; let newsort=sorts?sorts:sort;
this.setState({ this.setState({
order_by:type, order_by:type,
typepvisible:true, typepvisible:true,
pages:1, pages:1,
// sort:sort sort:sorts?sorts:sort
}) })
let params let params
// let vals=false // let vals=false
if(newsort===undefined){ if(newsort===undefined){
newsort="desc" newsort="desc"
}else{
newsort=sorts?sorts:sort
} }
params= { params= {
order_by:type, order_by:type,

Loading…
Cancel
Save