Authored by 王海元

Merge branch '710_0.49' into '718_0.49'

710 0.49



See merge request !9
... ... @@ -404,11 +404,11 @@ let styles = StyleSheet.create({
height: 15,
},
thumbsUpNumView: {
backgroundColor: 'red',
backgroundColor: '#D0021B',
borderRadius: 5,
position: 'absolute',
left: 12,
top: 10,
left: 16,
top: 8,
},
thumbsUpNumText: {
backgroundColor: 'transparent',
... ...
... ... @@ -198,7 +198,7 @@ let styles = StyleSheet.create({
width: 16,
height: 16,
left: width - 84,
top:14,
top:13,
},
shareButton: {
... ...

1.15 KB | W: | H:

1.84 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

1.84 KB | W: | H:

2.8 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

829 Bytes | W: | H:

1.32 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

1.32 KB | W: | H:

1.95 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

3.5 KB | W: | H:

5.43 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

4.8 KB | W: | H:

3.5 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

1.28 KB | W: | H:

1.28 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

2.12 KB | W: | H:

2.1 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
... ... @@ -175,17 +175,32 @@ export default class Product extends Component {
if (productList.size == 0) {
return null;
}
return (<TabHeader
currentTab={currentTab}
onPressTab={(tab)=>{
if (tab == currentTab) {
return;
}
this.state.currentlyOpenSwipeable && this.state.currentlyOpenSwipeable.recenter();
this.setState({currentlyOpenSwipeable: null});
this.props.onPressTab && this.props.onPressTab(tab);
}}
/>)
let {selectedProductList, categoryList, selectedCategoryIndex} = commonProduct;
let isShow = currentTab === 'common' && selectedProductList.size > 0;
return (
<View>
<TabHeader
currentTab={currentTab}
onPressTab={(tab)=>{
if (tab == currentTab) {
return;
}
this.state.currentlyOpenSwipeable && this.state.currentlyOpenSwipeable.recenter();
this.setState({currentlyOpenSwipeable: null});
this.props.onPressTab && this.props.onPressTab(tab);
}}
/>
{isShow ? <CategorySelector
data={categoryList}
selectedCategoryIndex={selectedCategoryIndex}
onPressCategory={(rowData, rowID) => {
this.listView && this.listView.scrollTo({x: 0, y: 0, animated: false});
this.props.onPressCategory && this.props.onPressCategory(rowData, rowID);
}}
/> : null}
</View>
)
}
renderSectionHeader(sectionData, sectionID) {
... ... @@ -255,7 +270,7 @@ export default class Product extends Component {
dataSource={this.dataSource.cloneWithRows(dataArray)}
renderRow={this.renderRow}
renderHeader={this.renderHeader}
renderSectionHeader={this.renderSectionHeader}
// renderSectionHeader={this.renderSectionHeader}
onScroll={this.handleScroll}
renderFooter={this.renderFooter}
bounces={dataArray.length > 0}
... ...