...
|
...
|
@@ -26,6 +26,7 @@ import LoadingIndicator from '../../../common/components/LoadingIndicator'; |
|
|
import LoadMoreIndicator from '../../../common/components/LoadMoreIndicator';
|
|
|
import RedBrandTwoProductCell from './RedBrandTwoProductCell';
|
|
|
import BrandProductFilter from './BrandProductFilter';
|
|
|
import BrandProductMoreFilter from './BrandProductMoreFilter';
|
|
|
import CouponCell from '../../../brandStore/components/brandStore/brandStoreSubView/Cells/CouponCell';
|
|
|
import Prompt from '../../../coupon/components/coupon/Prompt';
|
|
|
import FourImages from './FourImages';
|
...
|
...
|
@@ -334,6 +335,7 @@ export default class RedBrand extends Component { |
|
|
lastSelected={this.props.productList.isFilter}
|
|
|
moreFilter={this.props.productList.isMoreFilter}
|
|
|
selectOrder={this.props.productList.order}
|
|
|
moreFilterSelectOrder={this.props.moreFilterSelectOrder}
|
|
|
/>
|
|
|
:null
|
|
|
}
|
...
|
...
|
@@ -359,11 +361,11 @@ export default class RedBrand extends Component { |
|
|
let {launchProfile, shopsdecorator} = this.props;
|
|
|
let resList = shopsdecorator.modules?shopsdecorator.modules.toArray():[];
|
|
|
return (
|
|
|
<Header
|
|
|
resource={rowData}
|
|
|
launchProfile={launchProfile}
|
|
|
onPressLaunchProfile={this._onPressLaunchProfile}
|
|
|
onPressCollection={this.props.onPressCollection}
|
|
|
<Header
|
|
|
resource={rowData}
|
|
|
launchProfile={launchProfile}
|
|
|
onPressLaunchProfile={this._onPressLaunchProfile}
|
|
|
onPressCollection={this.props.onPressCollection}
|
|
|
onPressLink={this.props.onPressLink}
|
|
|
/>
|
|
|
);
|
...
|
...
|
@@ -379,80 +381,80 @@ export default class RedBrand extends Component { |
|
|
};
|
|
|
if (rowData.get('module_type') == 'coupon') {
|
|
|
return (
|
|
|
<CouponCell
|
|
|
yh_exposureData={params}
|
|
|
resource={rowData}
|
|
|
<CouponCell
|
|
|
yh_exposureData={params}
|
|
|
resource={rowData}
|
|
|
onPressCoupon={this.props.onPressCoupon}
|
|
|
/>
|
|
|
);
|
|
|
} else if (rowData.get('module_type') == 'CarouselImage') {
|
|
|
return (
|
|
|
<RedBrandSwiper
|
|
|
yh_exposureData={params}
|
|
|
resource={rowData}
|
|
|
<RedBrandSwiper
|
|
|
yh_exposureData={params}
|
|
|
resource={rowData}
|
|
|
onPressSlideItem={this.props.onPressProduct}
|
|
|
/>
|
|
|
);
|
|
|
} else if (rowData.get('module_type') == 'Title') {
|
|
|
return (
|
|
|
<Title
|
|
|
yh_exposureData={params}
|
|
|
resource={rowData}
|
|
|
<Title
|
|
|
yh_exposureData={params}
|
|
|
resource={rowData}
|
|
|
onPressProduct={this.props.onPressProduct}
|
|
|
/>
|
|
|
);
|
|
|
} else if (rowData.get('module_type') == 'SingleImage') {
|
|
|
return (
|
|
|
<SingleImage
|
|
|
yh_exposureData={params}
|
|
|
resource={rowData}
|
|
|
<SingleImage
|
|
|
yh_exposureData={params}
|
|
|
resource={rowData}
|
|
|
onPressProduct={this.props.onPressProduct}
|
|
|
/>
|
|
|
);
|
|
|
} else if (rowData.get('module_type') == 'DoubleImage') {
|
|
|
return (
|
|
|
<DoubleImage
|
|
|
yh_exposureData={params}
|
|
|
resource={rowData}
|
|
|
<DoubleImage
|
|
|
yh_exposureData={params}
|
|
|
resource={rowData}
|
|
|
onPressProduct={this.props.onPressProduct}
|
|
|
/>
|
|
|
);
|
|
|
} else if (rowData.get('module_type') == 'Video') {
|
|
|
return (
|
|
|
<Video
|
|
|
yh_exposureData={params}
|
|
|
resource={rowData}
|
|
|
videoCounts={videoCounts}
|
|
|
<Video
|
|
|
yh_exposureData={params}
|
|
|
resource={rowData}
|
|
|
videoCounts={videoCounts}
|
|
|
onPressVideo={this.props.onPressVideo}
|
|
|
/>
|
|
|
);
|
|
|
} else if (rowData.get('module_type') == 'TripleImage') {
|
|
|
return (
|
|
|
<TripleImage
|
|
|
yh_exposureData={params}
|
|
|
resource={rowData}
|
|
|
<TripleImage
|
|
|
yh_exposureData={params}
|
|
|
resource={rowData}
|
|
|
onPressProduct={this.props.onPressProduct}
|
|
|
/>
|
|
|
);
|
|
|
} else if (rowData.get('module_type') == 'FourImage') {
|
|
|
return (
|
|
|
<FourImages
|
|
|
yh_exposureData={params}
|
|
|
resource={rowData}
|
|
|
<FourImages
|
|
|
yh_exposureData={params}
|
|
|
resource={rowData}
|
|
|
onPressProduct={this.props.onPressProduct}
|
|
|
/>
|
|
|
);
|
|
|
} else if (rowData.get('module_type') == 'AppRecommendProduct') {
|
|
|
return (
|
|
|
<GoodsGroupList
|
|
|
yh_exposureData={params}
|
|
|
resource={rowData}
|
|
|
<GoodsGroupList
|
|
|
yh_exposureData={params}
|
|
|
resource={rowData}
|
|
|
onPressProductRecommend={this.props.onPressProductRecommend}
|
|
|
/>
|
|
|
);
|
|
|
} else {
|
|
|
return (
|
|
|
<View
|
|
|
<View
|
|
|
style={{height:0,width:width,backgroundColor:'red'}}
|
|
|
/>
|
|
|
);
|
...
|
...
|
@@ -597,13 +599,21 @@ export default class RedBrand extends Component { |
|
|
filterNameFactors={filterNameFactors}
|
|
|
onPressProductFilterRightItem={this.props.onPressProductFilterRightItem}
|
|
|
onPressCloseMoreFilter={this.props.onPressCloseMoreFilter}
|
|
|
onPressMoreFilter={this.props.onPressMoreFilter}/> : null}
|
|
|
onPressMoreFilter={this.props.onPressMoreFilter}
|
|
|
moreFilterSelectOrder={this.props.moreFilterSelectOrder}/> : null}
|
|
|
{needShowToast ? <Prompt
|
|
|
text={showToastMessage}
|
|
|
duration={1000}
|
|
|
onPromptHidden={this.props.resetReceiveCouponResult}
|
|
|
/> : null}
|
|
|
|
|
|
{productList.isMoreFilter ?
|
|
|
<BrandProductMoreFilter
|
|
|
productList={productList}
|
|
|
onPressCloseMoreFilter={this.props.onPressCloseMoreFilter}
|
|
|
onPressMoreFilter={this.props.onPressMoreFilter}
|
|
|
moreFilterSelectOrder={this.props.moreFilterSelectOrder}/> : null}
|
|
|
|
|
|
<LoadingIndicator
|
|
|
isVisible={isFetching}
|
|
|
/>
|
...
|
...
|
|