...
|
...
|
@@ -42,6 +42,7 @@ import VipUserFloor from '../floor/VipUserFloor'; |
|
|
import ActivityProductFloor from '../floor/ActivityProductFloor';
|
|
|
import HotCategoryIndividualization from '../floor/HotCategoryIndividualization';
|
|
|
import ProductListCell from '../../../common/components/ListCell/ProductListCell';
|
|
|
import channelTransfer from '../../../common/utils/channelTransfer';
|
|
|
|
|
|
export default class Home extends Component {
|
|
|
|
...
|
...
|
@@ -81,17 +82,8 @@ export default class Home extends Component { |
|
|
|
|
|
_currentChannelData() {
|
|
|
let channel = this.props.channel;
|
|
|
let data = {};
|
|
|
if (channel == 1) {
|
|
|
data = this.props.data.boy;
|
|
|
} else if (channel == 2) {
|
|
|
data = this.props.data.girl;
|
|
|
} else if (channel == 3) {
|
|
|
data = this.props.data.kid;
|
|
|
} else if (channel == 4) {
|
|
|
data = this.props.data.lifeStyle;
|
|
|
}
|
|
|
return data;
|
|
|
let channelStr = channelTransfer.number2String(channel);
|
|
|
return this.props.data[channelStr];
|
|
|
}
|
|
|
|
|
|
_renderRow(rowData, sectionID, rowID) {
|
...
|
...
|
@@ -301,7 +293,7 @@ export default class Home extends Component { |
|
|
return (
|
|
|
<ShopRecommend
|
|
|
data={rowData.get('data')}
|
|
|
favoriteState={data.shop}
|
|
|
favoriteState={data.shop.get('list')}
|
|
|
onPressShopRecommendItem={this.props.onPressShopRecommendItem}
|
|
|
onPressShopFavorite={this.props.onPressShopFavorite}
|
|
|
onPressTitleMore={this.props.onPressTitleMore}
|
...
|
...
|
|