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({ @@ -404,11 +404,11 @@ let styles = StyleSheet.create({
404 height: 15, 404 height: 15,
405 }, 405 },
406 thumbsUpNumView: { 406 thumbsUpNumView: {
407 - backgroundColor: 'red', 407 + backgroundColor: '#D0021B',
408 borderRadius: 5, 408 borderRadius: 5,
409 position: 'absolute', 409 position: 'absolute',
410 - left: 12,  
411 - top: 10, 410 + left: 16,
  411 + top: 8,
412 }, 412 },
413 thumbsUpNumText: { 413 thumbsUpNumText: {
414 backgroundColor: 'transparent', 414 backgroundColor: 'transparent',
@@ -198,7 +198,7 @@ let styles = StyleSheet.create({ @@ -198,7 +198,7 @@ let styles = StyleSheet.create({
198 width: 16, 198 width: 16,
199 height: 16, 199 height: 16,
200 left: width - 84, 200 left: width - 84,
201 - top:14, 201 + top:13,
202 }, 202 },
203 203
204 shareButton: { 204 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,7 +175,12 @@ export default class Product extends Component { @@ -175,7 +175,12 @@ export default class Product extends Component {
175 if (productList.size == 0) { 175 if (productList.size == 0) {
176 return null; 176 return null;
177 } 177 }
178 - return (<TabHeader 178 + let {selectedProductList, categoryList, selectedCategoryIndex} = commonProduct;
  179 + let isShow = currentTab === 'common' && selectedProductList.size > 0;
  180 +
  181 + return (
  182 + <View>
  183 + <TabHeader
179 currentTab={currentTab} 184 currentTab={currentTab}
180 onPressTab={(tab)=>{ 185 onPressTab={(tab)=>{
181 if (tab == currentTab) { 186 if (tab == currentTab) {
@@ -185,7 +190,17 @@ export default class Product extends Component { @@ -185,7 +190,17 @@ export default class Product extends Component {
185 this.setState({currentlyOpenSwipeable: null}); 190 this.setState({currentlyOpenSwipeable: null});
186 this.props.onPressTab && this.props.onPressTab(tab); 191 this.props.onPressTab && this.props.onPressTab(tab);
187 }} 192 }}
188 - />) 193 + />
  194 + {isShow ? <CategorySelector
  195 + data={categoryList}
  196 + selectedCategoryIndex={selectedCategoryIndex}
  197 + onPressCategory={(rowData, rowID) => {
  198 + this.listView && this.listView.scrollTo({x: 0, y: 0, animated: false});
  199 + this.props.onPressCategory && this.props.onPressCategory(rowData, rowID);
  200 + }}
  201 + /> : null}
  202 + </View>
  203 + )
189 } 204 }
190 205
191 renderSectionHeader(sectionData, sectionID) { 206 renderSectionHeader(sectionData, sectionID) {
@@ -255,7 +270,7 @@ export default class Product extends Component { @@ -255,7 +270,7 @@ export default class Product extends Component {
255 dataSource={this.dataSource.cloneWithRows(dataArray)} 270 dataSource={this.dataSource.cloneWithRows(dataArray)}
256 renderRow={this.renderRow} 271 renderRow={this.renderRow}
257 renderHeader={this.renderHeader} 272 renderHeader={this.renderHeader}
258 - renderSectionHeader={this.renderSectionHeader} 273 + // renderSectionHeader={this.renderSectionHeader}
259 onScroll={this.handleScroll} 274 onScroll={this.handleScroll}
260 renderFooter={this.renderFooter} 275 renderFooter={this.renderFooter}
261 bounces={dataArray.length > 0} 276 bounces={dataArray.length > 0}