Commit c5c7e4eb by zhanghaozhe

Merge branch 'international-phone-number' into pre

parents a02090ad db32d9e6
......@@ -1050,11 +1050,18 @@ class Country extends Component {
return '';
});
lens.map((item,index) => {
if(item && (top + 200) > item) {
if(item && top >= item) {
this.setState({
currentNav: data[index]['type']
})
}
/*
if(item && (top + 200) > item) {
this.setState({
currentNav: data[index]['type']
})
}
*/
});
}
......@@ -1075,9 +1082,12 @@ class Country extends Component {
this.setState({
currentNav: param
});
window.scrollTo({left: 0, top: el.offsetTop, behavior: 'smooth'})
/*
el.scrollIntoView({
behavior: 'smooth'
});
*/
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment