...
|
...
|
@@ -21,6 +21,7 @@ import ProductFliter from './ProductFliter'; |
|
|
import BrandProductListCell from '../../../common/components/ListCell/ProductListCell';
|
|
|
import ActivityCell from './ActivityCell';
|
|
|
import NoActivityView from './NoActivityView';
|
|
|
import Prompt from '../../../coupon/components/coupon/Prompt';
|
|
|
|
|
|
export default class OutletPageListView extends Component {
|
|
|
constructor(props) {
|
...
|
...
|
@@ -100,7 +101,6 @@ export default class OutletPageListView extends Component { |
|
|
}
|
|
|
|
|
|
renderRow(rowData, sectionID, rowID, highlightRow) {
|
|
|
// console.log(rowData.toJS());
|
|
|
if (sectionID == 'outletHomeReource') {
|
|
|
if (rowData.get('template_name') == 'NL2R') {
|
|
|
return(<OutletThreeImage resource={rowData} onPressProduct={this.props.onPressProduct}/>);
|
...
|
...
|
@@ -108,7 +108,7 @@ export default class OutletPageListView extends Component { |
|
|
return(<OutletSwiper resource={rowData} onPressProduct={this.props.onPressProduct}/>);
|
|
|
}else if (rowData.get('template_name') == 'single_image') {
|
|
|
return(<OutletSingleImage resource={rowData} onPressProduct={this.props.onPressProduct}/>);
|
|
|
}else if (rowData.get('template_name') == 'double_image') {
|
|
|
}else if (rowData.get('template_name') == 'small_pic') {
|
|
|
return(<OutletDoubleImage resource={rowData} onPressProduct={this.props.onPressProduct}/>);
|
|
|
}else if (rowData.get('template_name') == 'recommend_content_five') {
|
|
|
return(<OutletRecommendFive resource={rowData} onPressProduct={this.props.onPressProduct}/>);
|
...
|
...
|
@@ -118,7 +118,7 @@ export default class OutletPageListView extends Component { |
|
|
// return(<TripleImage resource={rowData} onPressProduct={this.props.onPressProduct}/>);
|
|
|
}
|
|
|
}else if (sectionID == 'activityList') {
|
|
|
return(<ActivityCell resource={rowData} key = {rowID + 'activityList'} onPressProduct={this.props.onPressProduct}/>);
|
|
|
return(<ActivityCell resource={rowData} key = {rowID + 'activityList'} showToast={this.props.showToast} onPressProduct={this.props.onPressProduct}/>);
|
|
|
}else if (sectionID == 'activityMore') {
|
|
|
if (rowData == 'more') {
|
|
|
let sourceIcon = require('../../../brandStore/image/filter/brandstore_filter_arrow_down_normal.png');
|
...
|
...
|
@@ -152,11 +152,16 @@ export default class OutletPageListView extends Component { |
|
|
let {
|
|
|
resource,
|
|
|
tabLabel,
|
|
|
toastMessage,
|
|
|
isShowToast,
|
|
|
} = this.props;
|
|
|
|
|
|
if (!resource) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
let needShowToast = isShowToast;
|
|
|
let showToastMessage = toastMessage;
|
|
|
let title = tabLabel;
|
|
|
let isFetching_homeResource = resource.get('isFetching')?resource.get('isFetching'):false;
|
|
|
let honeResource = resource.get('honeResource');
|
...
|
...
|
@@ -219,6 +224,11 @@ export default class OutletPageListView extends Component { |
|
|
}
|
|
|
}}
|
|
|
/>
|
|
|
{needShowToast ? <Prompt
|
|
|
text={showToastMessage}
|
|
|
duration={3000}
|
|
|
onPromptHidden={this.props.hideToastMessage}
|
|
|
/> : null}
|
|
|
</View>
|
|
|
);
|
|
|
}
|
...
|
...
|
|