Authored by shixiang

bug fix 【店铺重构】店铺筛选中先按照尺码筛选,然后切换到折扣,折扣选项不显示,需要向下滑动才能显示

review 于良
... ... @@ -27,7 +27,7 @@ export default class BrandSwiper extends React.Component {
borderRadius: 3,
marginLeft: 3,
marginRight: 3,
marginTop: (Platform.OS === 'ios')?3:23,
marginTop: (Platform.OS === 'ios')?3:1,
marginBottom: 0,
}}
/>;
... ...
... ... @@ -31,6 +31,7 @@ export default class ProductCategoryList extends React.Component {
}
_pressLeftRow(rowData) {
this.refs.subCategoryList && this.refs.subCategoryList.scrollTo({x: 0, y: 0, animated: false});
this.props.onPressProductFilterLeftItem(rowData);
}
... ... @@ -68,7 +69,6 @@ export default class ProductCategoryList extends React.Component {
rightRenderRow(rowData, sectionID, rowID, highlightRow) {
let colorStyle = rowData.get('isSelect') ? {backgroundColor: '#DBDBDB'} : {backgroundColor: '#f4f4f4'};
return (
<TouchableOpacity onPress={() => this._pressRightRow(rowData.toJS())}>
<View style={[styles.rightRow, colorStyle]}>
... ... @@ -103,6 +103,7 @@ export default class ProductCategoryList extends React.Component {
scrollsToTop={false}
/>
<ListView
ref='subCategoryList'
style={styles.rightContentContainer}
dataSource={this.dataSourceR.cloneWithRows(subList.toArray())}
renderRow={this.rightRenderRow}
... ...
... ... @@ -202,7 +202,7 @@ let styles = StyleSheet.create({
select_icon: {
position: 'absolute',
left: width/2-6,
top:rowHeight/2-6,
top:rowHeight/2-8,
width: 6,
height: 12,
... ...
... ... @@ -69,6 +69,7 @@ class CategoryContainer extends Component {
_pressSubCateRow(value, index){
this.props.actions.jumpToCategory(value, index, this.props.category.channelFliter);
}
render() {
... ...
... ... @@ -200,6 +200,7 @@ export function setCurrentChannelId(channelID){
}
}
export function jumpToCategory(value, index, channel){
ReactNative.NativeModules.YH_CommonHelper.jumpToCategory(value, parseInt(index), parseInt(channel));
return {
... ...