当筛选栏在中间位置,点击筛选栏中某一项,筛选栏会自动滑到顶部悬浮,到达初始悬浮高度后往下滑取消悬浮 review by hongmo
Showing
1 changed file
with
1 additions
and
6 deletions
@@ -52,13 +52,8 @@ export default class RedBrand extends Component { | @@ -52,13 +52,8 @@ export default class RedBrand extends Component { | ||
52 | 52 | ||
53 | _onPressProductFilter(value){ | 53 | _onPressProductFilter(value){ |
54 | 54 | ||
55 | - if(value === 'filter'){ | ||
56 | - this.refs.redBrandList && this.refs.redBrandList.scrollTo({x: 0, y: yPosition, animated: false}); | ||
57 | - } | ||
58 | - if(value==='default'){ | ||
59 | - this.refs.redBrandList && this.refs.redBrandList.scrollTo({x: 0, y: yPosition, animated: false}); | 55 | + this.refs.redBrandList && this.refs.redBrandList.scrollTo({x: 0, y: yPosition, animated: false}); |
60 | 56 | ||
61 | - } | ||
62 | this.props.onPressProductFilter && this.props.onPressProductFilter(value); | 57 | this.props.onPressProductFilter && this.props.onPressProductFilter(value); |
63 | 58 | ||
64 | } | 59 | } |
-
Please register or login to post a comment